/* =========================================================
   PANEL / SECONDARY NAVIGATION
========================================================= */
/* =========================================================
   ALL GIFTS
========================================================= */
.panel-all {
    flex-shrink: 0;
}

/* =========================================================
   DROPDOWN CONTAINER
========================================================= */
.nav-dropdown {
    flex-shrink: 0;
}

/* =========================================================
   DROPDOWN BUTTON
========================================================= */
/* SHOP DROPDOWNS */
.dropdown-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.dropdown-menu {
    display: none !important;

    position: absolute !important;

    top: 100% !important;
    left: 0 !important;

    width: 240px !important;
    min-width: 240px !important;

    border: 1px solid #ddd !important;
    border-radius: 8px !important;

    padding: 8px 0 !important;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

/* HOVER */
.nav-dropdown:hover .dropdown-menu {
    display: block !important;
}

/* ITEMS */
.dropdown-menu a {
    display: block !important;

    width: 100% !important;
    box-sizing: border-box !important;

    padding: 12px 16px !important;

    color: #333 !important;

    background: white !important;

    text-decoration: none !important;

    cursor: pointer !important;
}

.dropdown-menu a:hover {
    background: #f3f3f3 !important;
}

/* =========================================================
   SPECIAL OFFERS
========================================================= */
/* =========================================================
   SPECIAL OFFER PRODUCT CARD
========================================================= */
/* Discount badge */
/* Price */
.product-price {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
}

.original-price {
    font-size: 14px;

    color: #888888;

    text-decoration: line-through;
}

.discount {
    font-size: 12px;
}

/* =========================================================
   SPECIAL OFFER TITLE
========================================================= */
#categoryTitle.special-offer-title {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #4a2635;
}

#categoryTitle.special-offer-title::before {
    content: "\1F381";
}

/* =====================================================
   SPECIAL OFFERS PAGE
   ===================================================== */
.special-offers-heading {
    text-align: center;
    margin: 25px 0 8px;
    color: #4a2635;
    font-size: 34px;
    font-weight: 800;
}

.special-offers-subtitle {
    text-align: center;
    margin: 0 auto 25px;
    color: #777;
    font-size: 15px;
}

/* Hide normal filters on Special Offers */
.special-offers-page .filter-section {
    display: none;
}

/* Special offer discount badge */
.product-card .discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #e35486;
    color: #ffffff;

    font-weight: 700;
    font-size: 12px;

    padding: 7px 12px;
    border-radius: 20px;

    margin-left: 6px;
}

/* Special offer price */
.product-card .current-price {
    color: #4a2635;
    font-weight: 800;
}

/* Original price */
.product-card .original-price {
    color: #888;
    text-decoration: line-through;
    margin-left: 5px;
}

/* Mobile */
@media (max-width: 600px) {
    .special-offers-heading {
        font-size: 27px;
        margin: 18px 0 6px;
    }

    .special-offers-subtitle {
        font-size: 13px;
        padding: 0 15px;
        margin-bottom: 18px;
    }

    .product-card .discount {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* =====================================================
   FIX MOBILE PANEL WIDTH + HORIZONTAL SCROLL
===================================================== */
@media (max-width: 700px) {
    .header {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;

        box-sizing: border-box !important;
    }

    .panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;

        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;

        scrollbar-width: none !important;
    }

    .panel::-webkit-scrollbar {
        display: none !important;
    }

    .panel>* {
        flex: 0 0 auto !important;
    }

    .nav-dropdown {
        position: relative !important;
        flex: 0 0 auto !important;
    }

    .dropdown-menu {
        position: fixed !important;

        top: 0;
        left: 0;

        min-width: 220px;

        background: #ffffff;

        z-index: 999999 !important;

        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

        border-radius: 0 0 8px 8px;
    }
}

/* =========================================
   MOBILE + SMALL MOBILE NAV SCROLL
   ========================================= */
@media (max-width: 900px) {
    .panel {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;

        height: 45px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;

        gap: 20px !important;

        padding-left: 12px !important;
        padding-right: 12px !important;

        touch-action: pan-x !important;

        -webkit-overflow-scrolling: touch !important;

        scrollbar-width: none !important;
    }

    .panel::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .panel>* {
        flex: 0 0 auto !important;
        min-width: max-content !important;
    }

    .panel-all,
    .nav-dropdown,
    .panel-deals {
        flex: 0 0 auto !important;
        width: max-content !important;
        min-width: max-content !important;
    }

    .panel-all a,
    .dropdown-btn,
    .panel-deals a {
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .panel {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;

        gap: 16px !important;

        padding-left: 10px !important;
        padding-right: 10px !important;

        overflow-x: scroll !important;
        overflow-y: hidden !important;
    }

    .panel>* {
        flex-shrink: 0 !important;
    }
}

/* =====================================================
   FINAL FIX - SMALL MOBILE NAV SCROLL
===================================================== */
@media screen and (max-width: 767px) {
    .panel {
        min-width: 0 !important;
        flex-direction: row !important;

        box-sizing: border-box !important;

        padding-left: 10px !important;
        padding-right: 10px !important;

        scrollbar-width: none !important;
    }

    .panel::-webkit-scrollbar {
        display: none !important;
    }

    .panel>* {
        flex: 0 0 auto !important;
        width: max-content !important;
        min-width: max-content !important;
    }

    .panel-all,
    .nav-dropdown,
    .panel-deals {
        width: max-content !important;
        min-width: max-content !important;
    }
}

/* ================= CANCEL ORDER ================= */
.order-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #ddd;
}

.cancel-order-btn {
    padding: 11px 22px;

    border: 1px solid #e35486;
    border-radius: 8px;

    background: #fff;
    color: #e35486;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cancel-order-btn:hover {
    background: #e35486;
    color: #fff;
    transform: translateY(-1px);
}

.cancel-order-btn:active {
    transform: translateY(0);
}

/* Cancelled order status */
.status-badge.cancelled {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

/* =========================================================
   RISHTABOX - SECONDARY NAVIGATION
   ALL GIFTS + RELATIONSHIP + FESTIVAL + CATEGORY + OFFERS
========================================================= */
/* =========================================================
   MAIN NAVIGATION BAR
========================================================= */
.panel {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    padding: 0 20px;

    gap: 25px;

    background: #f3e1e7;
    color: #4a2635;

    border-top: 1px solid rgba(227, 84, 134, 0.25);

    border-bottom: 1px solid rgba(227, 84, 134, 0.35);

    font-size: 14px;
}

/* =========================================================
   ALL GIFTS
========================================================= */
.panel-all {
    height: 100%;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.panel-all a {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 8px;

    color: #4a2635;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition: color 0.2s ease, background 0.2s ease;
}

.panel-all a:hover {
    color: #e35486;

    background: rgba(227, 84, 134, 0.15);
}

/* =========================================================
   DROPDOWN CONTAINER
========================================================= */
.nav-dropdown {
    height: 100%;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

/* =========================================================
   DROPDOWN BUTTON
========================================================= */
.dropdown-btn {
    height: 100%;

    display: flex;
    align-items: center;

    border: none;

    outline: none;

    background: transparent;

    color: #4a2635;

    padding: 0 8px;

    margin: 0;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-btn:hover {
    color: #e35486;

    background: rgba(227, 84, 134, 0.15);
}

/* Arrow */
.dropdown-btn span {
    margin-left: 6px;

    font-size: 10px;

    transition: transform 0.2s ease;
}

/* Rotate arrow on hover */
.nav-dropdown:hover .dropdown-btn span {
    transform: rotate(180deg);
}

/* =========================================================
   DROPDOWN MENU
========================================================= */
.dropdown-menu {

    max-height: 70vh;

    overflow-x: hidden;

    overflow-y: auto;

    box-sizing: border-box;
}

/* =========================================================
   DESKTOP - OPEN ON HOVER
========================================================= */
@media screen and (min-width: 768px) {
    .nav-dropdown:hover>.dropdown-menu {
        display: block;
    }
}

/* =========================================================
   DROPDOWN ITEMS
========================================================= */
.dropdown-menu a {

    font-size: 14px;

    font-weight: 500;

    white-space: nowrap;

    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {

    color: #e35486;
}

/* =========================================================
   EMPTY DROPDOWN
========================================================= */
.dropdown-empty {
    padding: 12px 16px;

    color: #777777;

    font-size: 14px;

    white-space: nowrap;
}

/* =========================================================
   SPECIAL OFFERS
========================================================= */
.panel-deals {
    height: 100%;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.panel-deals a {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 18px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition: color 0.2s ease, background 0.2s ease;
}

.panel-deals a:hover {
    color: #f8a4bf;

    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */
@media screen and (max-width: 767px) {
    /* -----------------------------------------
       NAV BAR
    ----------------------------------------- */
    .panel {
        width: 100vw !important;

        max-width: 100vw !important;

        height: 35px !important;

        display: flex !important;

        align-items: center !important;

        flex-wrap: nowrap !important;

        gap: 12px !important;

        padding: 0 12px !important;

        overflow-x: auto !important;

        overflow-y: hidden !important;

        white-space: nowrap !important;

        touch-action: pan-x !important;

        -webkit-overflow-scrolling: touch !important;
    }

/* -----------------------------------------
       NAV ITEMS
    ----------------------------------------- */
    .panel-all,
    .nav-dropdown,
    .panel-deals {
        height: 35px !important;

        flex: 0 0 auto !important;
    }

    /* -----------------------------------------
       ALL GIFTS
    ----------------------------------------- */
    .panel-all a {
        height: 35px !important;

        padding: 0 8px !important;
    }

    /* -----------------------------------------
       DROPDOWN BUTTON
    ----------------------------------------- */
    .dropdown-btn {
        height: 35px !important;

        display: flex !important;

        align-items: center !important;

        padding: 0 10px !important;

        font-size: 14px !important;

        white-space: nowrap !important;

        position: relative !important;

        z-index: 1000000 !important;

        pointer-events: auto !important;
    }

    /* -----------------------------------------
       DISABLE DESKTOP HOVER MENU
    ----------------------------------------- */
    .nav-dropdown:hover>.dropdown-menu {
        display: none !important;
    }

    /* -----------------------------------------
       NORMAL MOBILE MENU
    ----------------------------------------- */
    .dropdown-menu {
        display: none !important;

        position: fixed !important;

        top: auto;

        left: auto;

        width: 220px !important;

        min-width: 0 !important;

        max-width: calc(100vw - 20px) !important;

        max-height: 70vh !important;

        overflow-x: hidden !important;

        overflow-y: auto !important;

        box-sizing: border-box !important;

        padding: 8px 0 !important;

        background: #ffffff !important;

        border: 1px solid #dddddd !important;

        border-radius: 8px !important;

        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;

        z-index: 9999999 !important;
    }

    /* -----------------------------------------
       OPEN MOBILE MENU
    ----------------------------------------- */
    .dropdown-menu.mobile-open {
        display: block !important;
    }

    /* -----------------------------------------
       MOBILE MENU ITEMS
    ----------------------------------------- */
    .dropdown-menu.mobile-open a {
        display: block !important;

        width: 100% !important;

        box-sizing: border-box !important;

        padding: 12px 16px !important;

        color: #333333 !important;

        background: #ffffff !important;

        text-decoration: none !important;

        font-size: 14px !important;

        white-space: nowrap !important;

        cursor: pointer !important;
    }

    .dropdown-menu.mobile-open a:hover {
        background: #fce5ed !important;

        color: #e35486 !important;
    }

    .dropdown-menu.mobile-open a:active {
        background: #fce5ed !important;

        color: #e35486 !important;
    }

    /* -----------------------------------------
       SPECIAL OFFERS
    ----------------------------------------- */
    .panel-deals a {
        height: 45px !important;

        padding: 0 12px !important;

        white-space: nowrap !important;
    }
}

/* =========================================================
   SPECIAL OFFER PRODUCT BADGE
========================================================= */
.product-card {
    position: relative;
}

.special-offer-badge {
    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 5;

    background: #e35486;

    color: #ffffff;

    padding: 6px 10px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 700;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   FINAL FIX - NAV DROPDOWN ABOVE ALL PAGE CONTENT
========================================================= */
.panel {
    position: relative !important;
    z-index: 2147483640 !important;
    isolation: isolate !important;
}

/* Dropdown itself */
.nav-dropdown {
    position: relative !important;
    z-index: 2147483641 !important;
}

.dropdown-menu {
    z-index: 2147483647 !important;

    background: #ffffff !important;
    opacity: 1 !important;

    isolation: isolate !important;
}

/* Mobile / Tablet */
@media screen and (max-width: 1024px) {
    .panel {
        position: relative !important;
        z-index: 2147483640 !important;
        isolation: isolate !important;
    }

    .nav-dropdown {
        position: static !important;
        z-index: 2147483641 !important;
    }

    .dropdown-menu {
        position: fixed !important;
        z-index: 2147483647 !important;

        background: #ffffff !important;
        opacity: 1 !important;

        isolation: isolate !important;
    }

    .dropdown-menu.mobile-open {
        display: block !important;
        z-index: 2147483647 !important;
    }
}

/* =========================================================
   FORCE FILTER CONTENT BELOW NAV
========================================================= */
.filter-section {
    position: relative;
    z-index: 1 !important;
}

.container {
    position: relative;
    z-index: 1 !important;
}

.page {
    position: relative;
    z-index: 1 !important;
}

.product-grid {
    position: relative;
    z-index: 1 !important;
}

