
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    line-height: 1.6;
    color: #2d1b05;
    background: #fdf6e3;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 5% 12px;
    background: linear-gradient(135deg, #fff, #f9e8b0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-search-shell {
    width: min(680px, 100%);
    align-self: center;
    position: relative;
    overflow: visible;
}

.logo {
    --logo-frame-h: 92px;
    --logo-img-h: 140px;
    height: var(--logo-frame-h);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo img {
    height: var(--logo-img-h);
    width: auto;
    display: block;
    object-fit: cover;
    object-position: 50% 55%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li {
    margin: 0 25px;
}

.nav-list a {
    text-decoration: none;
    color: #2d1b05;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-list a:hover, .nav-list a.active {
    color: #d35400;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cart-icon,
.orders-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #2d1b05;
    transition: all 0.3s ease;
}

.cart-icon:hover,
.orders-icon:hover {
    color: #d35400;
    transform: scale(1.1);
}

.cart-icon.bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes flyToCart {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3);
        opacity: 0;
    }
}

.flying-item {
    position: fixed;
    pointer-events: none;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d35400;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.toggle-menu {
    display: none;
    font-size: 30px;
    color: #2d1b05;
    cursor: pointer;
}

.close-menu {
    display: none;
    font-size: 30px;
    color: #2d1b05;
    cursor: pointer;
}

.toggle-menu.is-hidden {
    display: none !important;
}

.close-menu.active {
    display: block;
}

body.filters-open {
    overflow: hidden;
}

.header-search-section {
    margin: 0;
}

/* ============================================
   PRODUCTS HERO SECTION
   ============================================ */
.products-hero {
    background: linear-gradient(135deg, #c94c3b 0%, #d35400 40%, #e67e22 80%, #f39c12 100%);
    padding: 40px 5%;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 172, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-icon {
    display: inline-block;
    font-size: 48px;
    margin-bottom: 16px;
    color: #fff;
    animation: scaleIn 0.8s ease-out;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out 0.1s both;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #ffffff, transparent);
    margin: 16px auto 16px;
    border-radius: 2px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    font-size: 15px;
    color: #fff;
    line-height: 1.7;
    font-family: playfair display, serif;
    margin-bottom: 0;
    font-weight: 400;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.hero-accent {
    color: #ffee00;
    font-family: playfair display, serif;
    font-weight: 600;
}

.hero-tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 12px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   PRODUCTS PAGE LAYOUT
   ============================================ */
.products-page {
    padding: 0 5%;
    background: #fff;
    padding-top: 30px;
    padding-bottom: 40px;
}

.products-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.filters-sidebar {
    width: 280px;
    background: linear-gradient(170deg, #fffaf2 0%, #ffffff 100%);
    border: 1px solid #f0dfca;
    border-radius: 16px;
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: 132px;
    box-shadow: 0 12px 28px rgba(45, 27, 5, 0.08);
    transition: top 0.24s ease;
}

@media (min-width: 769px) {
    .filters-sidebar {
        max-height: calc(100vh - 148px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #d7b98f #f8f1e5;
    }

    body.products-header-hidden .filters-sidebar {
        top: 14px;
        max-height: calc(100vh - 28px);
    }

    .filters-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .filters-sidebar::-webkit-scrollbar-thumb {
        background: #d7b98f;
        border-radius: 999px;
    }

    .filters-sidebar::-webkit-scrollbar-track {
        background: #f8f1e5;
        border-radius: 999px;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ecdcc8;
}

.sidebar-header h3 {
    font-size: 18px;
    color: #2d1b05;
    display: flex;
    align-items: center;
    gap: 9px;
}

.clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    background: #d32f2f;
    border: 1px solid #b71c1c;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.clear-filters:hover {
    background: #c62828;
    border-color: #a31616;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(211, 47, 47, 0.18);
}

.clear-filters:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.14);
}

.clear-filters:focus-visible {
    outline: 3px solid rgba(211, 47, 47, 0.35);
    outline-offset: 2px;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    color: #2d1b05;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 5px;
}

.close-filters:hover {
    color: #d35400;
    transform: rotate(90deg);
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #4a2c07;
}

.filter-group {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f1e4d3;
    background: #fff;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #2d1b05;
    transition: color 0.3s ease, background 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 7px 8px;
}

.filter-option:hover {
    color: #d35400;
    background: #fff8ee;
    border-color: #f4d9b4;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #d35400;
}

.filter-option span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.filter-count {
    font-style: normal;
    font-size: 11px;
    color: #7a6b57;
    background: #f7ead8;
    border-radius: 999px;
    padding: 1px 7px;
}

.price-range {
    padding: 4px 0 0;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    accent-color: #d35400;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #4a2c07;
    font-weight: 500;
}

.quick-budget-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.budget-chip {
    border: 1px solid #f0d9ba;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #6b4724;
    background: #fff8ee;
    cursor: pointer;
    transition: all 0.25s ease;
}

.budget-chip:hover {
    border-color: #d35400;
    color: #d35400;
}

.budget-chip.active {
    background: #d35400;
    color: #fff;
    border-color: #d35400;
    box-shadow: 0 6px 12px rgba(211, 84, 0, 0.2);
}

#sort-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d1b05;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#sort-select:focus {
    outline: none;
    border-color: #d35400;
}

/* ============================================
   PRODUCTS MAIN AREA
   ============================================ */
.products-main {
    flex: 1;
}

.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.search-bar {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
    background: #fffdf8;
    border-radius: 14px;
    padding: 10px 18px;
    border: 1px solid #ead5bd;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: #d35400;
    background: #fff;
    box-shadow: 0 8px 18px rgba(211, 84, 0, 0.14);
}

.search-bar i {
    color: #d35400;
    margin-right: 10px;
    font-size: 16px;
}

.search-bar input {
    border: none;
    background: none;
    flex: 1;
    font-size: 15px;
    color: #2d1b05;
    outline: none;
}

.search-bar input::placeholder {
    color: #999;
}

.search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.search-clear:hover {
    color: #d35400;
}

.filter-toggle-mobile i{
    margin-right: 7px;
}

.filter-toggle-mobile {
    display: none;
    background: #2d1b05;
    color: #fff;
    border: none;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-toggle-mobile:hover {
    background: #d35400;
    transform: translateY(-1px);
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-top: 0;
    border: 1px solid #ecd8c0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(33, 20, 5, 0.14);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
    z-index: 1100;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f3e7d8;
    background: #fff;
    text-align: left;
    cursor: pointer;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    transition: background 0.25s ease;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover {
    background: #fff8ef;
}

.search-suggestion-item img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #f0e4d2;
}

.search-suggestion-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-suggestion-name {
    font-size: 13px;
    line-height: 1.3;
    color: #2d1b05;
    font-weight: 600;
}

.search-suggestion-meta {
    font-size: 11px;
    color: #7b6651;
}

.search-suggestion-price {
    color: #0d5e2b;
    font-size: 13px;
    font-weight: 700;
}

.search-suggestion-item.is-exact .search-suggestion-name::after {
    content: 'Exact';
    margin-left: 6px;
    font-size: 10px;
    color: #fff;
    background: #012f83;
    border-radius: 999px;
    padding: 2px 7px;
    vertical-align: middle;
}

.search-suggestions-empty {
    padding: 12px;
    font-size: 13px;
    color: #7b6651;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-count {
    font-size: 14px;
    color: #4a2c07;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #2d1b05;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: #d35400;
    color: #000000;
}

.view-btn.active {
    background: #d35400;
    border-color: #d35400;
    color: #fff;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
}

.pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #2d1b05;
    border-radius: 8px;
    min-width: 40px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #d35400;
    color: #d35400;
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-btn.active {
    background: #d35400;
    border-color: #d35400;
    color: #fff;
}

.pagination-ellipsis {
    color: #888;
    font-weight: 700;
    padding: 0 3px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card.deep-linked-highlight {
    animation: deepLinkPulse 1.2s ease;
}

@keyframes deepLinkPulse {
    0% { box-shadow: 0 0 0 rgba(1, 47, 131, 0); }
    30% { box-shadow: 0 0 0 4px rgba(1, 47, 131, 0.2); }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
}

.product-grid.list-view .product-card {
    flex-direction: row;
    align-items: center;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    height: 200px;
}

.product-grid.list-view .product-image-wrapper {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #068f01;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.discount-badge:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d1b05;
    margin-bottom: 8px;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    text-decoration: underline;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #202020;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 8px;
}

.qty-btn {
    background: #eeece9;
    color: #000000;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(211, 84, 0, 0.2);
}

.qty-btn:hover {
    background: #eeece9;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(211, 84, 0, 0.3);
}

.quantity-display {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    background: #012f83;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.25);
}

.share-product-btn {
    background: #ffffff;
    color: #012f83;
    border: 1px solid #012f83;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.share-product-btn:hover {
    background: #012f83;
    color: #ffffff;
}

.add-to-cart-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(211, 84, 0, 0.35);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(211, 84, 0, 0.2);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 64px;
    color: #d35400;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d1b05;
}

/* ============================================
   SHOPPING CART SIDEBAR
   ============================================ */
.cart-sidebar {
    --cart-sidebar-width: 600px;
    position: fixed;
    top: 0;
    right: calc(0px - var(--cart-sidebar-width));
    width: var(--cart-sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #f0f0f0;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2d1b05 0%, #3d2817 100%);
    color: #fff;
    flex-shrink: 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
    align-items: start;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-details h4 {
    font-size: 13px;
    color: #2d1b05;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cart-item-price .original {
    text-decoration: line-through;
    color: #bbb;
}

.cart-item-price .current {
    font-weight: 700;
    color: #000000;
}

.cart-item-total {
    font-size: 13px;
    font-weight: 700;
    color: #0126a1;
    margin-top: 2px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    font-size: 12px;
    background: #f8f8f8;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.cart-qty-btn {
    background: none;
    color: #333;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
}

.cart-qty-btn:hover {
    background: #e8e8e8;
}

.cart-qty-btn:active {
    background: #ddd;
    transform: scale(0.9);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #da0000;
    cursor: pointer;
    font-size: 12px;
    margin-right: 30px;
    margin-top: 5px;
    transition: color 0.2s ease;
    padding: 0;
    font-weight: 600;
    text-decoration: none;
}

.remove-item-btn:hover {
    color: #8f0000;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: #999;
}

.cart-empty i {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.cart-empty p {
    font-size: 14px;
    margin: 0;
}

.cart-footer {
    padding: 10px 12px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    flex-shrink: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    font-size: 11px;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-total .summary-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.cart-total .summary-value {
    font-size: 11px;
    color: #555;
    text-align: right;
    font-weight: 600;
}

.cart-total .original-value {
    text-decoration: line-through;
    color: #ddd;
    font-size: 10px;
}

.cart-grand-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1.5px solid #f0f0f0;
}

.cart-grand-total .summary-label {
    font-size: 12px;
    font-weight: 700;
    color: #2d1b05;
}

.total-amount {
    font-size: 14px;
    font-weight: 800;
    color: #0130b3;
}

.cart-savings-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 8px 8px;
    font-size: 11px;
    color: #2d7c2e;
    text-align: center;
}

.cart-savings-box strong {
    font-weight: 700;
    color: #1b5e20;
}

.clear-cart-btn,
.checkout-btn {
    width: 100%;
    padding: 18px 15px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.clear-cart-btn {
    background: #ff0000;
    color: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 0;
}



.clear-cart-btn:active {
    transform: scale(0.98);
}

.checkout-btn {
    background: linear-gradient(135deg, #1fa05b, #27ae60);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 160, 91, 0.15);
    margin-bottom: 0px;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #17883b, #229955);
    box-shadow: 0 6px 16px rgba(31, 160, 91, 0.22);
    transform: translateY(-1px);
}

.checkout-btn:active {
    transform: translateY(0);
}

.continue-shopping-btn {
    width: 100%;
    padding: 11px 18px;
    border: 1.5px solid #d35400;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    background: #fff;
    color: #33241a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.continue-shopping-btn:hover {
    background: #fff4ed;
}

.continue-shopping-btn:active {
    transform: scale(0.98);
}

/* Desktop/Laptop: optimized wider cart */

    .cart-sidebar {
        --cart-sidebar-width: 530px;
    }

    .cart-header {
        padding: 10px 16px;
    }

    .cart-header h2 {
        font-size: 20px;
    }

    .cart-item {
        padding: 9px 13px;
    }

    .cart-item-image {
        width: 52px;
        height: 52px;
    }

    .cart-item-details h4 {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 11px;
    }

    

    .cart-footer {
        padding: 8px 11px;
        padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
    }

    .cart-total {
        padding: 2px 0;
        font-size: 10px;
    }

    .cart-grand-total {
        padding: 4px 0 3px 0;
    }

    .total-amount {
        font-size: 12px;
    }

    .continue-shopping-btn,
    .clear-cart-btn,
    .checkout-btn {
        padding: 10px 10px;
        font-size: 10px;
        gap: 3px;
    }
    

.checkout-btn i{
        margin-right: 3px;
    }
    .clear-cart-btn i{
        margin: 3px;
    }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1999;
}

.cart-overlay.active {
    display: block;
}

/* ============================================
   CONFIRM MODAL (REMOVE FROM CART)
   ============================================ */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 4000;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 18px 18px 16px;
}

.confirm-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2d1b05;
}

.confirm-message {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.45;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.confirm-btn:active {
    transform: translateY(1px);
}

.confirm-no {
    background: #16a34a;
    color: #fff;
}

.confirm-yes {
    background: #dc2626;
    color: #fff;
}

.confirm-no:hover,
.confirm-yes:hover {
    filter: brightness(0.95);
}

/* ============================================
   PACKING MODAL (GLOBAL - Desktop + Mobile)
   ============================================ */
.packing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
}

.packing-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.packing-modal-content {
    background: white;
    border-radius: 25px;
    padding: 80px 60px;
    text-align: center;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.packing-animation {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.box {
    position: relative;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    animation: boxRocking 1.5s ease-in-out infinite;
}

@keyframes boxRocking {
    0%, 100% { transform: rotateZ(-3deg) translateY(0); }
    25% { transform: rotateZ(3deg) translateY(-5px); }
    50% { transform: rotateZ(0) translateY(-10px); }
    75% { transform: rotateZ(-3deg) translateY(-5px); }
}

.tape { position: absolute; background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%); z-index: 5; }
.tape { width: 100%; height: 8px; top: 50%; left: 0; transform: translateY(-50%); }
.tape-2 { width: 8px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); }

.item { position: absolute; background: radial-gradient(circle, #ff6b6b 0%, #ee5a6f 100%); border-radius: 50%; }
.item-1 { width: 24px; height: 24px; top: 25px; left: 25px; animation: itemFloat1 2s ease-in-out infinite; }
.item-2 { width: 22px; height: 22px; top: 45px; right: 30px; background: radial-gradient(circle, #4ecdc4 0%, #24b8a0 100%); animation: itemFloat2 2.2s ease-in-out infinite; }
.item-3 { width: 20px; height: 20px; bottom: 25px; left: 45px; background: radial-gradient(circle, #ffe66d 0%, #ffd700 100%); animation: itemFloat3 1.8s ease-in-out infinite; }

@keyframes itemFloat1 { 0%,100%{ transform: translateY(0px); } 50%{ transform: translateY(-8px); } }
@keyframes itemFloat2 { 0%,100%{ transform: translateY(0px); } 50%{ transform: translateY(-6px); } }
@keyframes itemFloat3 { 0%,100%{ transform: translateY(0px); } 50%{ transform: translateY(-7px); } }

.packing-modal-content h2 { font-size: 36px; color: #333; margin: 25px 0 15px; font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: 0.5px; }
.packing-modal-content p { font-size: 18px; color: #666; margin-bottom: 30px; font-weight: 300; line-height: 1.6; }

.loading-dots { display: flex; justify-content: center; gap: 10px; align-items: center; }
.loading-dots span { width: 14px; height: 14px; background: #D2691E; border-radius: 50%; animation: dotBounce 1.4s infinite; box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3); }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce { 0%,80%,100%{ opacity: 0.3; transform: translateY(0); } 40%{ opacity: 1; transform: translateY(-10px); } }


/* ============================================
   CHECKOUT SECTION
   ============================================ */
.checkout-section {
    display: none;
    padding: 40px 5%;
    background: #f9f9f9;
    min-height: 100vh;
}

.checkout-section.active {
    display: block;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-to-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #2d1b05;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.back-to-products:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.checkout-container h2 {
    font-size: 32px;
    color: #2d1b05;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* COD label and info button next to Checkout heading */
.checkout-cod {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(211, 84, 0, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkout-cod:hover {
    background: rgba(211, 84, 0, 0.12);
}

.checkout-cod .cod-text {
    font-size: 13px;
    color: #2d1b05;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.info-btn {
    background: transparent;
    border: none;
    color: #d35400;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.info-btn:hover {
    background: rgba(211, 84, 0, 0.15);
    color: #c84f00;
    transform: scale(1.1);
}

.info-btn:focus { 
    outline: 2px solid #d35400;
    outline-offset: 2px;
    border-radius: 6px; 
}

/* Availability bottom notice */
.availability-notice {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(780px, calc(100% - 28px));
    transform: translate(-50%, calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    z-index: 1500;
    transition: transform 0.38s ease, opacity 0.28s ease;
}

.availability-notice.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.availability-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #fff6e9, #ffe8cc);
    border: 1px solid #f0d5b6;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    padding: 12px 14px 12px 16px;
}

.availability-notice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #2d1b05;
    line-height: 1.4;
}

.availability-notice-text strong {
    font-size: 15px;
}

.availability-notice-text span {
    font-size: 13px;
    color: #5f4d38;
}

.availability-notice-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    flex-shrink: 0;
    background: #000000;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.availability-notice-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.availability-notice-toggle:focus-visible {
    outline: 2px solid #d35400;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .availability-notice {
        width: calc(100% - 16px);
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .availability-notice-content {
        padding: 11px 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .availability-notice-text strong {
        font-size: 13px;
    }

    .availability-notice-text span {
        font-size: 12px;
    }

    .availability-notice-toggle {
        width: 32px;
        height: 32px;
    }
}

/* Shared product preview modal */
.product-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2200;
    padding: 16px;
}

.product-preview-modal.active {
    display: flex;
}

.product-preview-content {
    position: relative;
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    padding: 20px;
}

.product-preview-title {
    margin: 0 36px 14px 0;
    color: #2d1b05;
    font-size: 22px;
}

.product-preview-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.product-preview-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
}

.product-preview-media {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 10px;
}

.product-preview-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-preview-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #012f83;
}

.product-preview-name {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
    color: #1f1f1f;
}

.product-preview-description {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.product-preview-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.product-preview-cut {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-preview-current {
    font-size: 24px;
    font-weight: 700;
    color: #012f83;
}

.product-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-preview-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-preview-btn.primary {
    background: #012f83;
    color: #fff;
}

.product-preview-btn.primary:hover {
    background: #d35400;
}

.product-preview-btn.secondary {
    background: #fff;
    color: #012f83;
    border: 1px solid #012f83;
}

.product-preview-btn.secondary:hover {
    background: #012f83;
    color: #fff;
}

.product-preview-btn.tertiary {
    background: #f5f5f5;
    color: #333;
}

.product-preview-btn.tertiary:hover {
    background: #e8e8e8;
}

/* COD modal styles */
.cod-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    padding: 20px;
}
.cod-modal.active { display: flex; }
.cod-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 520px;
    width: 100%;
    padding: 18px 18px 22px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    position: relative;
}
.cod-modal-content h3 { margin-bottom: 8px; color: #2d1b05; }
.cod-modal-content p { color: #444; font-size: 14px; line-height: 1.45; }
.cod-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}
.cod-modal-close:focus { outline: 2px solid rgba(0,0,0,0.08); border-radius: 6px; }

.policy-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    padding: 20px;
}

.policy-modal.active {
    display: flex;
}

.policy-modal-content {
    position: relative;
    width: min(680px, 100%);
    max-height: min(84vh, 760px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
}

.policy-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.policy-modal-close:hover {
    color: #222;
}

.policy-modal-content h3 {
    margin: 0 28px 10px 0;
    color: #2d1b05;
    font-size: 20px;
}

.policy-modal-body {
    overflow-y: auto;
    padding-right: 4px;
}

.policy-modal-body p {
    margin: 0 0 10px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.policy-modal-body ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-modal-body li {
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}

.customer-details { order: 1; }
.order-summary { order: 2; }

.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.order-summary-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.order-summary h3 { font-size: 18px; margin: 0; color: #2d1b05; }
.order-summary-subtitle { margin: 0; font-size: 12px; color: #777; line-height: 1.4; }

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    align-items: center;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f2f2f2;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.checkout-item-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.checkout-item-meta .price-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.checkout-item-meta .orig { color: #999; text-decoration: line-through; font-size: 12px; }
.checkout-item-meta .curr {
    color: #000000;
    font-weight: 600;
    font-size: 12px;
}
.checkout-item-meta .item-save {
    margin-left: auto;
    color: #2d8f3a;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    background: rgba(39,174,96,0.10);
    padding: 2px 8px;
    border-radius: 999px;
}

.checkout-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #0134a3;
    min-width: 90px;
    text-align: right;
    white-space: nowrap;
}

.checkout-total {
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    font-size: 14px;
}

.summary-label { color: #666; font-weight: 600; }
.summary-value { font-weight: 800; color: #2d1b05; white-space: nowrap; }

.checkout-total .total {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed #e9e9e9;
    font-size: 16px;
}

.checkout-total .total .summary-value {
    color: #0134a3;
    font-size: 18px;
}

/* Savings and shipping styling */
.shipping-price { display: inline-flex; gap: 10px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.original-shipping { color: #999; text-decoration: line-through; font-size: 13px; font-weight: 600; }
.discounted-shipping { color: #27ae60; font-weight: 800; background: rgba(39,174,96,0.08); padding: 3px 8px; border-radius: 999px; font-size: 13px; }

.summary-savings {
    background: #fff9f3;
    border: 1px solid #fde6cf;
    padding: 10px;
    border-radius: 10px;
}

.summary-savings summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #c04a13;
}

.summary-savings summary::-webkit-details-marker { display: none; }
.summary-savings-amount { color: #00b45a; white-space: nowrap; }
.summary-savings-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.saving-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 12px; color: #444; }

/* Tighter layout for checkout: reduce huge gaps and large inputs */
.checkout-content { grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
.customer-details { padding: 12px; }
.order-summary { padding: 12px; }
.form-group input, .form-group textarea { padding: 10px; font-size: 14px; }
.place-order-btn { padding: 12px; font-size: 15px; }
.back-to-products { color: #2d1b05; }

.customer-details {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.customer-details h3 {
    font-size: 18px;
    margin-bottom: 14px;
        color: #1fa05b;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.18s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9e9e9e;
}
.form-group input,
.form-group textarea {
    background: #ffffff;
    color: #2d1b05;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d35400;
    box-shadow: 0 4px 14px rgba(211,84,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.optional-details-wrap {
    margin: 8px 0 10px;
    border: 1px solid #efdfc8;
    border-radius: 10px;
    background: #fffaf2;
}

.optional-details-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #8f2d0b;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.optional-details-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.optional-details-toggle i {
    color: #b54a11;
}

.optional-details-toggle:hover {
    background: #fff5e6;
}

.optional-details-toggle.is-open {
    border-bottom: 1px solid #efdfc8;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.optional-details-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.optional-details-toggle.is-open .optional-details-arrow {
    transform: rotate(180deg);
}

.optional-details-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    padding: 0 12px;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease, visibility 0.2s ease;
}

.optional-details-panel.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 10px 12px 2px;
}

@keyframes optionalAutofillStart {
    from { }
    to { }
}

.optional-details-panel input:-webkit-autofill,
.optional-details-panel textarea:-webkit-autofill {
    animation-name: optionalAutofillStart;
    animation-duration: 0.01s;
    animation-iteration-count: 1;
}

.checkout-consent {
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fafafa;
}

.checkout-consent.needs-attention {
    border-color: #e67e22;
    background: #fff8ef;
    animation: consentBlink 1.6s ease-in-out infinite;
}

.checkout-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkout-consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #1d8f4a;
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-consent.needs-attention .checkout-consent-label input[type="checkbox"] {
    animation: consentCheckboxPulse 1.2s ease-in-out infinite;
}

.checkout-consent.consent-error-pulse {
    animation: consentErrorPulse 0.65s ease;
}

.checkout-consent-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: #4a4a4a;
    font-size: 12px;
    line-height: 1.45;
}

.checkout-consent-text label {
    color: #4a4a4a;
    cursor: pointer;
}

.policy-link-btn {
    border: none;
    background: transparent;
    color: #0126a1;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
}

.policy-link-btn:hover {
    color: #d35400;
}

.policy-link-btn:focus-visible,
.policy-modal-close:focus-visible {
    outline: 2px solid rgba(211, 84, 0, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(90deg,#1fa05b,#029b35);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    margin-top: 14px;
    box-shadow: 0 6px 18px rgba(2,155,53,0.12);
    position: relative;
    overflow: hidden;
}

.place-order-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(2,155,53,0.14); }
.place-order-btn:disabled { background: #cfcfcf; cursor: not-allowed; transform: none; box-shadow: none; }

.place-order-btn .btn-idle,
.place-order-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.place-order-btn .btn-idle {
    opacity: 1;
    transform: translateY(0);
}

.place-order-btn .btn-loading {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
}

.place-order-btn.is-loading {
    background: linear-gradient(90deg,#13934f,#0ca751);
    cursor: wait;
    box-shadow: 0 10px 26px rgba(12, 167, 81, 0.3);
}

.place-order-btn.is-loading:disabled {
    background: linear-gradient(90deg,#13934f,#0ca751);
    opacity: 1;
    box-shadow: 0 10px 26px rgba(12, 167, 81, 0.3);
}

.place-order-btn.is-loading .btn-idle {
    opacity: 0;
    transform: translateY(-8px);
}

.place-order-btn.is-loading .btn-loading {
    opacity: 1;
    transform: translateY(0);
}

.place-order-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -42%;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: placeOrderSweep 1.2s linear infinite;
}

.order-btn-spinner {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: placeOrderSpin 0.7s linear infinite;
}

@keyframes consentBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.05); }
    50% { box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2); }
}

@keyframes consentCheckboxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

@keyframes consentErrorPulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.35); }
    100% { box-shadow: 0 0 0 8px rgba(211, 84, 0, 0); }
}

@keyframes placeOrderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes placeOrderSweep {
    0% { left: -42%; }
    100% { left: 120%; }
}

/* ============================================
   THANK YOU SECTION
   ============================================ */
.thank-you-section {
    display: none;
    min-height: 100vh;
    padding: 80px 5%;
    background: linear-gradient(135deg, #f9e8b0, #fff);
}

.thank-you-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    background: #fff;
    padding: 60px 40px;

    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.thank-you-content h2 {
    font-size: 32px;
    color: #2d1b05;
    margin-bottom: 15px;
}

.order-code {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.order-code strong {
    color: #d35400;
    font-weight: 700;
}

.thank-you-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.order-message {
    font-weight: 500;
    color: #2d1b05;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.continue-shopping,
.view-orders {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.continue-shopping {
    background: #d35400;
    color: #fff;
}

.continue-shopping:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.view-orders {
    background: #f0f0f0;
    color: #2d1b05;
}

.view-orders:hover {
    background: #e0e0e0;
}

/* ============================================
   ORDER HISTORY SECTION
   ============================================ */
.order-history-section {
    display: none;
    padding: 40px 5%;
    background: #f9f9f9;
    min-height: 100vh;
}

.order-history-section.active {
    display: block;
}

.order-history-container {
    max-width: 1000px;
    margin: 0 auto;
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.order-history-header h2 {
    font-size: 32px;
    color: #2d1b05;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-history {
    background: none;
    border: none;
    color: #d35400;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-history:hover {
    transform: rotate(90deg);
}

.order-history-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.order-info h3 {
    font-size: 20px;
    color: #2d1b05;
    margin-bottom: 8px;
}

.order-date {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-total {
    text-align: right;
}

.total-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-total .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #d35400;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-item-details p {
    font-size: 14px;
    color: #666;
}

.order-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #d35400;
}

.order-delivery {
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-delivery p {
    font-size: 14px;
    color: #2d1b05;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
}

.reorder-btn {
    background: #d35400;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.reorder-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.no-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #666;
}

.no-orders i {
    font-size: 80px;
    color: #d35400;
    margin-bottom: 20px;
}

.no-orders h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2d1b05;
}

.shop-now-btn {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 24px rgba(211, 84, 0, 0.22);
    min-width: 220px;
}

.shop-now-btn i {
    font-size: 1em;
    line-height: 1;
    display: block;
    color: black;
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(211, 84, 0, 0.28);
}

.shop-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(211, 84, 0, 0.22);
}

.shop-now-btn:focus-visible {
    outline: 3px solid rgba(211, 84, 0, 0.35);
    outline-offset: 3px;
}

/* ============================================
   TABLET RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header {
        padding: 10px 4% 12px;
    }

    .header-top-row {
        gap: 12px;
    }

    .header-search-shell {
        width: min(620px, 100%);
    }

    .products-hero {
        padding: 60px 5%;
        min-height: 340px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-icon {
        font-size: 42px;
    }

    .search-section {
        gap: 10px;
    }

    .search-bar {
        min-width: 220px;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        order: 2;
    }
    
    .customer-details {
        order: 1;
    }
}

@media (max-width: 768px) {
    body.filters-open .header-actions #toggle-menu,
    body.filters-open .header-actions #close-menu {
        display: none !important;
        pointer-events: none;
    }

    .products-hero {
        padding: 50px 5%;
        min-height: 320px;
    }

    .hero-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .hero-divider {
        margin: 12px auto 12px;
        width: 50px;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero-tagline {
        font-size: 11px;
        margin-top: 10px;
        padding: 3px 10px;
    }

    .products-hero::before {
        width: 350px;
        height: 350px;
        top: -35%;
        right: -25%;
    }

    .products-hero::after {
        width: 300px;
        height: 300px;
        bottom: -40%;
        left: -25%;
    }

    .search-section {
        gap: 8px;
        margin-bottom: 0;
        flex-direction: row;
        align-items: center;
    }

    .search-bar {
        width: 100%;
        min-width: 0;
    }

    .filter-toggle-mobile {
        width: auto;
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .header-search-shell {
        width: 100%;
    }

    .search-suggestions {
        top: calc(100% + 8px);
        max-height: 260px;
    }

    .search-suggestion-item {
        grid-template-columns: 38px 1fr auto;
        gap: 8px;
        padding: 9px 10px;
    }

    .search-suggestion-item img {
        width: 38px;
        height: 38px;
    }

    .products-header {
        margin-bottom: 15px;
    }

    .products-count {
        font-size: 12px;
    }

    .view-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 36px;
        height: 36px;
    }
    
    .header {
        padding: 10px 4% 10px;
        gap: 8px;
    }

    .header-top-row {
        gap: 10px;
    }
    
    .logo {
        --logo-frame-h: 88px;
        --logo-img-h: 130px;
    }

   .cart-footer {
        padding: 8px 22px;
        padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
    }
    
    /* Use shared drawer/menu behavior from styles.css for consistency across pages. */
    
    .products-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 85%;
        height: 100vh;
        z-index: 2001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .filters-sidebar .close-filters {
        display: block;
    }
    
    .filter-toggle-mobile {
        display: flex;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 5px;
    }

    .product-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .product-image-wrapper {
        height: 150px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .product-description {
        font-size: 11px;
        color: #666;
        margin-bottom: 8px;
        display: none;
    }

    .product-price {
        gap: 6px;
        margin-bottom: 10px;
    }

    .original-price {
        font-size: 12px;
    }

    .current-price {
        font-size: 18px;
        font-weight: 700;
    }

    .discount-badge {
        top: 3px;
        right: 2px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .product-actions {
        gap: 6px;
        margin-top: auto;
    }

    .quantity-selector {
        gap: 10px;
        padding: 8px;
        border-radius: 6px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .quantity-display {
        font-size: 14px;
        font-weight: 600;
        min-width: 28px;
    }

    .add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
        gap: 6px;
        min-height: 22px;
    }

    .add-to-cart-btn i {
        font-size: 11px;
    }

    .share-product-btn {
        padding: 10px 8px;
        width: 100%;
        font-size: 12px;
        gap: 5px;
    }

    .share-product-btn i {
        font-size: 11px;
    }

    .add-to-cart-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(211, 84, 0, 0.2);
    }

    .qty-btn:active {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(211, 84, 0, 0.15);
    }

    .discount-badge {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        letter-spacing: 0.3px;
    }

    .products-header {
        margin-bottom: 15px;
    }

    .pagination {
        margin-top: 20px;
        gap: 6px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 34px;
        font-size: 13px;
        padding: 0 10px;
    }

    .pagination-pages {
        gap: 4px;
    }

    .products-count {
        font-size: 13px;
    }

    .view-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .cart-sidebar {
        --cart-sidebar-width: 100vw;
        right: -100vw;
    }


    .checkout-item-meta .item-save{
        font-size: 10px;
        margin-top: 7px;
    }

    .remove-item-btn {
        grid-area: remove;
        margin: 0;
        justify-self: end;
        margin-right: 10px;
        align-self: start;
        white-space: nowrap;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    .continue-shopping-btn,
    .clear-cart-btn,
    .checkout-btn {
        padding: 12px 10px;
        font-size: 12px;
        font-weight: 700;
    }

    .cart-header h2 {
        font-size: 16px;
        margin-left: 10px;
    }

    .cart-header {
        padding: 20px 14px;
    }

    .cart-total {
        padding: 3px 0;
        font-size: 10px;
    }

    .cart-grand-total {
        padding: 5px 0 4px 0;
    }

    .total-amount {
        font-size: 13px;
    }

    .cart-item {
        padding: 8px 0 8px 10px;
        column-gap: 10px;
        row-gap: 5px;
        grid-template-columns: 52px 1fr auto;
        grid-template-areas:
            "image details remove"
            "controls . .";
        align-items: start;
    }

    .cart-item img {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .cart-item-image {
        grid-area: image;
    }

    .cart-item-details {
        grid-area: details;
        min-width: 0;
        align-self: start;
    }

    .cart-item-details h4 {
        font-size: 12.5px;
        line-height: 1.25;
    }

    .cart-item-details .cart-item-price {
        font-size: 11px;
    }

    .cart-item-details .cart-item-total {
        font-size: 11px;
        font-weight: 700;
        color: #0130b3;
        margin-top: 1px;
    }

    

    .cart-content {
        padding: 12px 8px 12px 12px;
    }

    .cart-item-actions {
        display: contents;
    }

    .cart-qty-btn {
        width: 34px;
        height: 24px;
        margin-right: 0;
        border-radius: 50%;
        font-weight: 700;
        font-size: 12px;
    }

    .cart-qty-controls {
        grid-area: controls;
        margin: 0;
        font-size: 12px;
        justify-self: start;
        padding: 3px 6px;
        gap: 1px;
        border-radius: 999px;
        border: 1px solid #e4e7ec;
        background: #f8fafc;
    }

    .order-header {
        padding: 14px;
        gap: 10px;
    }

    .order-select-checkbox {
        width: 20px;
        height: 20px;
    }

    .order-info h3 {
        font-size: 14px;
    }

    .order-item {
        gap: 12px;
        padding: 12px;
    }

    .order-item img {
        width: 55px;
        height: 55px;
    }

    .order-item-details h4 {
        font-size: 13px;
    }

    .order-item-details p {
        font-size: 12px;
    }

    .order-item-price {
        font-size: 13px;
    }

    /* Checkout Section Mobile */
    .checkout-section {
        padding: 20px 5%;
    }

    .checkout-container h2 {
        font-size: 24px;
        flex-wrap: wrap;
        margin-left: 10px;
        
    }

    .checkout-cod {
        margin-left: 0;
        width: 100%;
        margin-top: 12px;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }

    .checkout-cod .cod-text {
        font-size: 12px;
        flex: 1;
    }

    .info-btn {
        font-size: 16px;
        padding: 6px 8px;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .info-btn:hover {
        background-color: rgba(211, 84, 0, 0.1);
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .checkout-consent {
        margin-top: 9px;
        padding: 8px;
    }

    .checkout-consent-label {
        gap: 7px;
    }

    .checkout-consent-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .checkout-consent-text {
        font-size: 11px;
    }

    .policy-link-btn {
        font-size: 11px;
    }

    .place-order-btn {
        padding: 12px;
        font-size: 15px;
        min-height: 44px;
    }

    .order-summary-header { margin-bottom: 12px; }
    .order-summary h3 { font-size: 16px; text-align: center; }
    .order-summary-subtitle { font-size: 12px; text-align: center; margin-bottom: 10px; }

    .checkout-items { gap: 12px; margin-bottom: 14px; }
    .checkout-item { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 8px 0; }
    .checkout-item img { width: 48px; height: 48px; }
    .checkout-item-info h4 { font-size: 13px; }
    .checkout-item-price { min-width: 76px; font-size: 14px; }

    .summary-row { font-size: 13px; }
    .summary-savings { padding: 9px; }
    .summary-savings summary { font-size: 12px; }
    .checkout-total .total { font-size: 15px; }
    .checkout-total .total .summary-value { font-size: 17px; }

    /* Thank You Section Mobile */
    .thank-you-section {
        padding: 40px 5%;
    }

    .thank-you-content {
        padding: 40px 20px;
    }

    .success-icon {
        font-size: 60px;
    }

    .thank-you-content h2 {
        font-size: 24px;
    }

    .thank-you-content p {
        font-size: 15px;
    }

    /* Order History Mobile */
    .order-history-section {
        padding: 20px 5%;
    }

    .order-history-header h2 {
        font-size: 24px;
    }

    .order-history-container {
        max-width: 1000px;
    }

    .no-orders {
        padding: 60px 20px;
    }

    .no-orders i {
        font-size: 60px;
    }

    .no-orders h3 {
        font-size: 22px;
    }

    .shop-now-btn {
        width: 100%;
        max-width: 340px;
        padding: 12px 18px;
        font-size: 15px;
        min-width: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }


    @media (max-width: 768px) {
        .product-preview-modal {
            padding: 10px;
        }

        .product-preview-content {
            padding: 16px 14px;
            border-radius: 12px;
        }

        .product-preview-title {
            font-size: 18px;
            margin: 0 28px 12px 0;
        }

        .product-preview-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .product-preview-image {
            height: 170px;
        }

        .product-preview-name {
            font-size: 18px;
        }

        .product-preview-description {
            font-size: 13px;
        }

        .product-preview-current {
            font-size: 21px;
        }

        .product-preview-actions {
            flex-direction: column;
        }

        .product-preview-btn {
            width: 100%;
            font-size: 13px;
        }

        .policy-modal {
            padding: 10px;
        }

        .policy-modal-content {
            max-height: 88vh;
            border-radius: 10px;
            padding: 16px 14px 12px;
        }

        .policy-modal-content h3 {
            font-size: 18px;
            margin-right: 24px;
        }

        .policy-modal-body p {
            font-size: 13px;
        }

        .policy-modal-body li {
            font-size: 12px;
            line-height: 1.4;
        }

        .packing-modal-content {
            padding: 40px 20px;
            max-width: 95%;
        }

        .packing-animation {
            height: 140px;
            margin-bottom: 25px;
        }

        .box {
            width: 90px;
            height: 90px;
        }

        .item-1 {
            width: 16px;
            height: 16px;
            top: 15px;
            left: 15px;
        }

        .item-2 {
            width: 14px;
            height: 14px;
            top: 30px;
            right: 20px;
        }

        .item-3 {
            width: 12px;
            height: 12px;
            bottom: 15px;
            left: 28px;
        }

        .packing-modal-content h2 {
            font-size: 22px;
            margin: 15px 0 10px;
        }

        .packing-modal-content p {
            font-size: 14px;
            margin-bottom: 20px;
        }

        .loading-dots {
            gap: 8px;
        }

        .loading-dots span {
            width: 10px;
            height: 10px;
        }


        
    }

}
