/* Cart Sidebar Styles - Add to your existing CSS */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 5, 0.5);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0e8dc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: antiquewhite;
}

.cart-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2c1810;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge-count {
    background: #b8860b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn {
    width: 32px;
    height: 32px;
    background: #f5ede0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c1810;
    transition: background 0.2s;
}

.cart-close-btn:hover {
    background: #e0d0b8;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.cart-items-container::-webkit-scrollbar {
    width: 4px;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: #e0d0b8;
    border-radius: 2px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: #aaa;
    padding: 40px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 48px;
    opacity: 0.4;
}

.cart-empty-text {
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f5ede0;
    animation: slideInCart 0.3s ease;
    position: relative;
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
    background: #f9f6f2;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c1810;
    line-height: 1.4;
    margin-bottom: 4px;
}

.cart-item-category {
    font-size: 10px;
    color: #b8860b;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c1810;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: #f5ede0;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c1810;
    transition: background 0.2s;
    line-height: 1;
}

.qty-btn:hover {
    background: #e8d5a3;
}

.qty-value {
    font-size: 13px;
    font-weight: 600;
    color: #2c1810;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    position: absolute;
    top: 16px;
    right: 0;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-sidebar-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid #f0e8dc;
    background: #faf7f3;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cart-subtotal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
}

.cart-subtotal-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c1810;
}

.cart-shipping-note {
    font-size: 11px;
    color: #b8860b;
    margin-bottom: 18px;
    text-align: center;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #2c1810;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.btn-checkout:hover {
    background: #b8860b;
}

.btn-continue-shopping {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #2c1810;
    border: 1px solid #e0d0b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.btn-continue-shopping:hover {
    background: #f5ede0;
}

/* Header cart badge */
.count-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #b8860b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    right: -8px;
}

/* Toast notification */
.cart-toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: #2c1810;
    color: #fff;
    padding: 14px 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* new arrival css */
/* ===== New Arrivals Section ===== */
.new-arrivals-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
    overflow: visible;
}

.na-card {
    margin-left: 20px;
    margin-right: 37px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f5ede0;
    transition: all 0.3s ease;
    box-shadow: -8px 10px 15px rgba(65, 64, 63, 0.82);
    border-color: #e8d5a3;
}

/* .na-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(184, 134, 11, 0.12);
    border-color: #e8d5a3;
} */

.na-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(45deg, #f9f6f2, #f5ede0);
}

.na-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.na-card:hover .na-card__image {
    transform: scale(1.06);
}

.na-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.na-card__info {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.na-card__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    /* font-family: 'Cormorant Garamond', serif; */
    line-height: 1.4;
    font-style: "Jost", sans-serif;
}

.na-card__title a {
    color: #2c1810;
    text-decoration: none;
    transition: color 0.3s ease;
}

.na-card__title a:hover {
    color: #b8860b;
}

/* New Arrivals Price Styles */
.na-card__info .price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.na-card__info .price-new {
    font-size: 18px;
    font-weight: 700;
    color: #2c1810;
    font-family: 'Lato', sans-serif;
}

.na-card__info .price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-family: 'Lato', sans-serif;
}

.na-card__info .price-discount-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
}

.na-card__info .price-discount-tag.gold-green-glow {
    background: #fdf0dc;
    color: #b8860b;
}

.na-add-to-cart {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: linear-gradient(to bottom, #f8e7a0, #d4a93a);
    color: #2b1a05;
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
}

.na-add-to-cart:hover {
    transform: translateY(-3px);
    color: #2b1a05;
    background: linear-gradient(to bottom, #ffe8a6, #c9972f);
}

.na-add-to-cart:active {
    transform: translateY(0);
}

.na-add-to-cart.added {
    background: linear-gradient(135deg, #2d7a2d, #3a8a3a);
    pointer-events: none;
}

/* Pagination for new arrivals */
.na-pagination.swiper-pagination-bullet {
    background: #ddd;
}

.na-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #b8860b, #d4a017);
}

@media (max-width: 768px) {
    .new-arrivals-section {
        padding: 40px 0;
        overflow: visible;
    }

    .na-card {
        margin-left: 0;
        margin-right: 0;
    }

    .na-card__title {
        font-size: 15px;
    }

    .na-add-to-cart {
        font-size: 13px;
        padding: 10px 14px;
    }
}


/* ============================================
   COMPACT SEARCH BAR (replaces offcanvas-top)
   ============================================ */

/*
  The page has:
  - Marquee bar: ~42px  (position: sticky, z-index: 10001)
  - Navbar:      ~70px  (position: sticky/fixed)
  Total offset:  ~112px

  JS dynamically sets the exact top offset at runtime.
  These are fallback values only.
*/
#search.offcanvas.offcanvas-top {
    top: 112px !important;          /* fallback; JS overrides this */
    height: auto !important;
    max-height: none !important;    /* let the body control height */
    border-bottom: 2px solid #B48C4C;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border-radius: 0 0 12px 12px;
    z-index: 9999 !important;
}

/* Header row: search input + close button */
#search .offcanvas-header {
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #f0e8dc;
}

/* Pill-shaped search input wrapper */
#search .search-input-wrapper {
    background: #f9f6f2;
    border: 1.5px solid #e0d0b8;
    border-radius: 50px;
    padding: 9px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search .search-input-wrapper:focus-within {
    border-color: #B48C4C;
    box-shadow: 0 0 0 3px rgba(180, 140, 76, 0.12);
}

#search .search-input-wrapper .icon-search {
    color: #B48C4C;
    font-size: 15px;
    flex-shrink: 0;
}

#search .search-input-wrapper input {
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    color: #3A2C1B;
    padding: 0 !important;
    width: 100%;
}

#search .search-input-wrapper input::placeholder {
    color: #bbb;
    font-size: 14px;
}

#search .btn-close {
    opacity: 0.45;
    flex-shrink: 0;
    margin-left: 12px;
}

#search .btn-close:hover {
    opacity: 1;
}

/* Body: tall enough to show all results fully, no cutoff */
#search .offcanvas-body {
    padding: 12px 24px 20px !important;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #fff;
}

/* When results are empty, collapse body to zero height */
#search .offcanvas-body:has(#searchResults:empty) {
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Mobile: search panel should only be as tall as needed */
@media (max-width: 767px) {
    #search.offcanvas.offcanvas-top {
        height: auto !important;
        max-height: none !important;
    }
    #search .offcanvas-body {
        max-height: 50vh !important;
    }
    /* When no results typed yet — hide body completely on mobile */
    #search .offcanvas-body:has(#searchResults:empty):has(#searchEmpty.d-none) {
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
}

/* Search result cards */
/* Compact list-style search result items */
.search-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #f0e8dc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    margin-bottom: 6px;
}

.search-list-item:last-child {
    margin-bottom: 0;
}

.search-list-item:hover {
    border-color: #B48C4C;
    background: #fdf8f0;
    box-shadow: 0 3px 10px rgba(180, 140, 76, 0.1);
}

.search-list-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f9f6f2;
}

.search-list-info {
    flex: 1;
    min-width: 0;
}

.search-list-name {
    font-size: 13px;
    font-weight: 600;
    color: #3A2C1B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-list-price {
    font-size: 13px;
    font-weight: 700;
    color: #B48C4C;
}

.search-list-arrow {
    font-size: 20px;
    color: #ddd;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.search-list-item:hover .search-list-arrow {
    color: #B48C4C;
}

/* Meta row: price + type badge */
.search-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

/* Product type badge */
.search-list-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.search-list-badge.bracelet {
    background: #fdf0dc;
    color: #B48C4C;
}

.search-list-badge.spiritual {
    background: #e8f5e9;
    color: #2e7d32;
}

#searchEmpty {
    font-size: 13px;
    color: #bbb;
    padding: 10px 0 4px;
    text-align: center;
}

/* ============================================
   Save ₹ tag — hover effect matching Add to Cart button
   (golden → dark green on hover, lifts up)
   ============================================ */

.price-discount-tag.gold-green-glow {
    transition: background 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease !important;
    animation: goldPulse 2.5s infinite;
}

.price-discount-tag.gold-green-glow:hover,
.price-badge.gold-green-glow:hover {
    background: #b8860b !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.5) !important;
    transform: translateY(-2px) !important;
    animation: none !important;
}

.price-discount-tag.gold-green-glow:hover::before,
.price-badge.gold-green-glow:hover::before {
    display: none !important;
}

.price-badge.gold-green-glow {
    transition: background 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease !important;
}

/* ============================================
   User Avatar Badge (shown when logged in)
   ============================================ */
.user-avatar-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #B48C4C 0%, #D4AF6C 50%, #B48C4C 100%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Lato', sans-serif !important;
    letter-spacing: 0 !important;
    box-shadow: 0 2px 8px rgba(180, 140, 76, 0.5), 0 0 0 2px rgba(180, 140, 76, 0.2) !important;
    border: 2px solid #fff !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    position: relative !important;
}

.user-avatar-badge:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 4px 14px rgba(180, 140, 76, 0.65), 0 0 0 3px rgba(180, 140, 76, 0.25) !important;
}

/* Green online dot */
.user-avatar-badge::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 9px !important;
    height: 9px !important;
    background: #22c55e !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
}

/* ============================================
   User logged-in indicator — handled by .user-avatar-badge::after above
   ============================================ */
li.user-logged-in {
    position: relative;
}

/* ============================================
   Mobile menu search — fix text overlapping icon
   ============================================ */
.canvas-mb .form-search input,
.canvas-mb .form-search fieldset input {
    padding-left: 42px !important;
    padding-right: 44px !important;
}
