/* ==========================================================================
   MIAREXON Occasion Gifts Category & Product Tabs v4.0.0
   ========================================================================== */
.mx-occ-section {
    width: 100%;
    padding: 36px 16px 44px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.mx-occ-section *,
.mx-occ-section *::before,
.mx-occ-section *::after {
    box-sizing: border-box;
}

.mx-occ-container {
    max-width: 1240px;
    margin: 0 auto;
}

.mx-occ-heading {
    margin: 0 0 32px;
    text-align: center;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    color: #0f3d26;
}

/* Floating Pill Tab Bar */
.mx-occ-tabs-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
    margin-bottom: -30px;
    padding: 0 10px;
    max-width: 100%;
}

.mx-occ-tabs-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e7d8b5;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.12);
}

.mx-occ-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #0f3d26;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mx-occ-tab-btn:hover:not(.is-active) {
    background: #f7f4ec;
}

.mx-occ-tab-btn.is-active {
    background-color: #133b25;
    color: #ffffff;
}

.mx-occ-tab-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.mx-occ-tab-icon i {
    color: inherit;
    font-size: 16px;
}

.mx-occ-tab-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
}

/* Outer Rounded Frame Box */
.mx-occ-frame-box {
    border: 1px solid #cbd5d1;
    border-radius: 20px;
    padding: 58px 28px 30px;
    background: #ffffff;
}

/* 4-Column Card Grid */
.mx-occ-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.mx-occ-cards-grid.is-hidden {
    display: none;
}

.mx-occ-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    background: #f8f1eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.mx-occ-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 61, 38, 0.12);
}

.mx-occ-card-media {
    aspect-ratio: 1 / 1.05;
    width: 100%;
    overflow: hidden;
    background: #f4ebe3;
    position: relative;
}

.mx-occ-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mx-occ-card:hover .mx-occ-card-media img {
    transform: scale(1.05);
}

.mx-occ-card-footer {
    padding: 15px 12px;
    background-color: #e3d2a4;
    color: #0f3d26;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.mx-occ-card-count {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

.mx-occ-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: #6b7280;
    font-size: 14.5px;
}

/* ==========================================================================
   Tablet & Mobile: Single-Line Horizontal Scrollable Pill Bar
   ========================================================================== */
@media (max-width: 991px) {
    .mx-occ-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .mx-occ-tabs-wrapper {
        display: block;
        width: 100%;
        margin-bottom: -24px;
        padding: 0 8px;
    }

    .mx-occ-tabs-pill {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        border-radius: 999px;
        padding: 5px 14px 5px 5px;
        gap: 6px;
    }

    .mx-occ-tabs-pill::-webkit-scrollbar {
        display: none;
    }

    .mx-occ-tab-btn {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        padding: 9px 16px;
        font-size: 13.5px;
    }
}

@media (max-width: 575px) {
    .mx-occ-section {
        padding: 26px 12px 34px;
    }

    .mx-occ-heading {
        margin-bottom: 22px;
    }

    .mx-occ-tabs-wrapper {
        margin-bottom: -22px;
        padding: 0 6px;
    }

    .mx-occ-tabs-pill {
        padding: 5px 16px 5px 5px;
        gap: 5px;
    }

    .mx-occ-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .mx-occ-tab-icon,
    .mx-occ-tab-icon i {
        font-size: 14.5px;
    }

    .mx-occ-frame-box {
        padding: 40px 14px 18px;
        border-radius: 16px;
    }

    .mx-occ-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mx-occ-card-footer {
        padding: 11px 8px;
        font-size: 13px;
    }
}
