/* ============================================================
   store.css — WestJewel Store
   Modern Resell Shop Style (StockX/GOAT/Vinted inspired)
   ============================================================ */

:root {
    /* Modern Color Palette */
    --white:      #ffffff;
    --black:      #000000;
    --gray-100:   #f7f7f7;
    --gray-200:   #f0f0f0;
    --gray-300:   #e0e0e0;
    --gray-400:   #999999;
    --gray-500:   #666666;
    --gray-600:   #333333;
    
    /* Accent Colors */
    --primary:    #000000;
    --secondary:  #6366f1;
    --success:    #22c55e;
    --error:      #ef4444;
    --warning:    #f59e0b;
    
    /* Spacing */
    --container-max: 1400px;
    --header-height: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--gray-600);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ── Navigation ──────────────────────────────────────────── */
.nav-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--black);
    text-transform: uppercase;
}

.site-logo:hover { opacity: 0.7; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: var(--transition);
}

.nav-link:hover { color: var(--black); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    color: var(--black);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover { opacity: 0.7; }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--black);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-badge.hidden { display: none; }

/* Menu Toggle - Always Visible */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 700px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--gray-600);
    transform: translateY(-2px);
}

.hero-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid white;
    color: white;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-left: 1rem;
    transition: var(--transition);
}

.hero-secondary:hover {
    background: white;
    color: var(--black);
}

/* ── Collections Section ─────────────────────────────────── */
.collections-section {
    padding: 3rem 0;
    background: var(--white);
}

.collections-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
}

/* Collections Slider */
.collections-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0;
    margin: 0 -1.5rem;
    padding: 0.5rem 1.5rem 1rem;
}

.collections-slider::-webkit-scrollbar { display: none; }

.collection-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-4px);
}

.collection-image-wrap {
    aspect-ratio: 1/1;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.collection-card:hover .collection-image {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.collection-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.collection-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.collection-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    font-size: 2.5rem;
    color: var(--gray-400);
    border-radius: var(--radius-lg);
}

/* ── Products Section ────────────────────────────────────── */
.products-section {
    padding: 3rem 0;
    background: var(--gray-100);
}

.products-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-image-wrap {
    aspect-ratio: 1/1.15;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.add-to-cart-btn {
    padding: 0.85rem 2rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--gray-600);
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.add-quick-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gray-200);
    color: var(--black);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.add-quick-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ── Product Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
}
.modal-overlay.active {
    display: flex;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    touch-action: none !important;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    pointer-events: auto;
    z-index: 3001;
}

/* Write Review Modal - higher z-index */
#write-review-modal {
    z-index: 3100;
}
#write-review-modal .modal-content {
    z-index: 3101;
}

/* Zoom Modal - highest z-index */
.zoom-modal {
    z-index: 3200;
}
.zoom-modal-content {
    z-index: 3201;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--gray-100);
    border-color: var(--black);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.product-images {
    padding: 2rem;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
}
.modal-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}
.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MOBILE FIX - Override image cropping */
@media (max-width: 1024px) {
    .modal-main-image {
        width: 100% !important;
        height: 40vh !important;
        min-height: 320px !important;
        max-height: 400px !important;
        aspect-ratio: auto !important;
        background: var(--gray-100) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin: 0 !important;
        border-radius: 0 !important;
        position: static !important;
        padding: 1.5rem !important;
    }
    .modal-main-image img {
        display: block !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 auto !important;
    }
    .modal-thumbnails {
        padding: 1rem !important;
        gap: 0.75rem !important;
        justify-content: center !important;
        background: var(--white) !important;
        border-bottom: 1px solid var(--gray-100) !important;
    }
    .modal-thumbnails img {
        width: 70px !important;
        height: 70px !important;
        border: 2px solid var(--gray-300) !important;
        border-radius: 8px !important;
        padding: 2px !important;
    }
    .modal-thumbnails img.active,
    .modal-thumbnails img:hover {
        border-color: var(--black) !important;
    }
    .product-images {
        padding: 0 !important;
        background: var(--white) !important;
        border: none !important;
        width: 100% !important;
    }
    .modal-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .modal-info {
        padding: 1.5rem 1.25rem !important;
        background: var(--white) !important;
    }
    .modal-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    .modal-price {
        font-size: 1.6rem !important;
        margin: 0.75rem 0 1rem !important;
    }
    .modal-description {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }
    .product-details-table {
        font-size: 0.9rem !important;
        margin: 0 0 1.5rem !important;
    }
    .modal-add-to-cart {
        padding: 1.1rem 1.5rem !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .modal-close {
        top: 1rem !important;
        right: 1rem !important;
        width: 42px !important;
        height: 42px !important;
    }
    .product-image-zoom-hint {
        display: none !important;
    }
    .modal-reviews-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    .modal-review-card {
        padding: 1.1rem !important;
        margin-bottom: 0.875rem !important;
    }
}
.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem;
}
.modal-thumbnails::-webkit-scrollbar {
    display: none;
}
.modal-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}
.modal-thumbnails img:hover,
.modal-thumbnails img.active {
    border-color: var(--black);
}
.modal-info {
    padding: 2rem;
}
.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}
.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.modal-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}
.modal-rating-count {
    color: var(--gray-500);
    font-size: 0.85rem;
}
.modal-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
}
.modal-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.modal-add-to-cart {
    width: 100%;
    padding: 1.25rem;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}
.modal-add-to-cart:hover {
    background: var(--gray-800);
}

/* Product Details Table */
.product-details-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}
.product-details-table tr {
    border-bottom: 1px solid var(--gray-200);
}
.product-details-table tr:last-child {
    border-bottom: none;
}
.product-details-table td {
    padding: 0.75rem 0;
}
.product-details-table td:first-child {
    font-weight: 600;
    color: var(--gray-600);
    width: 120px;
}
.product-details-table td:last-child {
    color: var(--gray-900);
}

.modal-reviews-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
.modal-reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}
.modal-review-card {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}
.modal-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.modal-review-name {
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
}
.modal-review-date {
    color: var(--gray-500);
    font-size: 0.8rem;
}
.modal-review-text {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}
.modal-review-photos {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.modal-review-photos img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
}
.no-reviews {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}
.product-image-zoom-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.modal-main-image:hover .product-image-zoom-hint {
    opacity: 1;
}

/* ── Photo Zoom Modal ───────────────────────────────────── */
.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
}
.zoom-modal.active {
    display: flex;
}
.zoom-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    pointer-events: auto;
}
.zoom-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.zoom-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}
.zoom-modal-close:hover {
    opacity: 0.7;
}

/* ── Cart Drawer ─────────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: none !important;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: var(--white);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex !important;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.cart-close {
    font-size: 1.5rem;
    color: var(--gray-500);
    transition: var(--transition);
    padding: 0.25rem;
    line-height: 1;
}

.cart-close:hover { color: var(--black); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image svg {
    width: 40px;
    height: 40px;
}

.cart-item-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.35rem;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-200);
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.qty-btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.qty-num {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.cart-item-remove:hover { color: var(--error); }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cart-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.cart-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--gray-600);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray-500);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1rem;
    font-weight: 500;
}

.empty-browse-btn {
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    border: 2px solid var(--gray-300);
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.empty-browse-btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .site-logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ── Toast Notification ──────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.hidden {
    display: none;
}

/* ── Loading Spinner ─────────────────────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Slide up animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* ── Mobile Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Fix touch targets for mobile (44px minimum) */
    button, a, input, select, textarea {
        min-height: 44px;
    }

    /* Navigation mobile */
    .menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
        display: block;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero mobile */
    .hero-section {
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-secondary {
        display: none;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }

    /* Section titles mobile */
    .section-title {
        font-size: 1.5rem;
    }

    /* Collections mobile */
    .collections-slider {
        gap: 0.75rem;
    }

    .collection-card {
        flex: 0 0 160px;
    }

    /* Products grid mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .product-description {
        display: none;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .add-quick-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    /* Cart mobile */
    .cart-drawer {
        width: 100%;
    }

    .cart-item {
        padding: 1rem 0;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Checkout mobile */
    .checkout-container {
        padding: 0 1rem 2rem !important;
    }

    .checkout-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .checkout-form .form-input,
    .checkout-form .form-select {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    .delivery-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .delivery-option {
        padding: 1.25rem !important;
    }

    .address-section {
        padding: 1.25rem !important;
    }

    #card-element {
        max-width: 100% !important;
    }

    .submit-btn {
        max-width: 100% !important;
    }

    /* Contact page mobile */
    .contact-content {
        padding: 1.5rem !important;
    }

    .contact-content .form-input,
    .contact-content .form-textarea {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* Track order mobile */
    .tracking-search-box {
        padding: 1.5rem !important;
    }

    .tracking-search-box .form-input {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    .order-timeline {
        padding: 1.5rem !important;
    }

    /* Product page mobile */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .product-images {
        position: static !important;
    }

    .main-image {
        margin-bottom: 1rem !important;
    }

    .add-to-cart-large {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* Admin mobile */
    .admin-card {
        padding: 1rem !important;
    }

    .admin-card-header {
        padding: 1rem !important;
    }

    .admin-table {
        font-size: 0.75rem !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.25rem !important;
    }

    .admin-form .form-row {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Modal mobile */
    .modal-overlay {
        padding: 0 !important;
    }

    .modal-content {
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .modal-grid {
        grid-template-columns: 1fr !important;
    }

    .product-images {
        padding: 0 !important;
        border: none !important;
    }

    .modal-main-image {
        height: 40vh !important;
        min-height: 280px !important;
        max-height: 350px !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .modal-main-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .modal-thumbnails {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    .modal-thumbnails img {
        width: 60px !important;
        height: 60px !important;
    }

    .modal-info {
        padding: 1.25rem !important;
    }

    .modal-title {
        font-size: 1.25rem !important;
    }

    .modal-price {
        font-size: 1.4rem !important;
    }

    .modal-description {
        font-size: 0.9rem !important;
    }

    .modal-add-to-cart {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }

    .modal-review-card {
        padding: 1rem !important;
    }

    /* Zoom modal mobile */
    .zoom-modal-content {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .zoom-modal-img {
        max-width: 100% !important;
        max-height: 90vh !important;
    }

    /* Write review modal mobile */
    #write-review-modal .modal-content {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    /* Scroll to top button mobile */
    #scroll-top {
        bottom: 16px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* Sidebar mobile */
    .sidebar {
        width: 100% !important;
    }

    /* Toast mobile */
    .toast {
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        white-space: normal !important;
        text-align: center !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .collection-card {
        flex: 0 0 140px;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .modal-title {
        font-size: 1.15rem !important;
    }

    .modal-price {
        font-size: 1.25rem !important;
    }

    .admin-table {
        font-size: 0.7rem !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.4rem 0.2rem !important;
    }

    .btn-sm {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* ── Modern Animations ───────────────────────────────────────── */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-description {
        display: none;
    }

    .cart-drawer {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Checkout Mobile - Stack forms vertically */
    .checkout-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .checkout-form .form-group {
        margin-bottom: 1.25rem !important;
    }
    .checkout-form .form-input,
    .checkout-form .form-select {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    .delivery-options {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .delivery-option {
        padding: 1.25rem !important;
    }
    .address-section {
        padding: 1.25rem !important;
    }

    /* Contact Page Mobile */
    .contact-content {
        padding: 1.5rem !important;
    }
    .contact-content .form-group {
        margin-bottom: 1.25rem !important;
    }
    .contact-content .form-input,
    .contact-content .form-textarea {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* Track Order Page Mobile */
    .tracking-search-box {
        padding: 1.5rem !important;
    }
    .tracking-search-box .form-input {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    .tracking-search-box .submit-order-btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    .order-timeline {
        padding: 1.5rem !important;
    }
    .timeline-item {
        padding: 1rem !important;
    }

    /* Cart Mobile */
    .cart-item {
        padding: 1.25rem 0 !important;
    }
    .cart-item-image {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
    }
    .cart-item-name {
        font-size: 0.95rem !important;
    }
    .cart-item-price {
        font-size: 0.9rem !important;
    }
    .cart-footer {
        padding: 1.5rem !important;
    }
    .checkout-btn {
        padding: 1.1rem !important;
        font-size: 1rem !important;
    }

    /* Product Page Mobile */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .product-images {
        position: static !important;
    }
    .main-image {
        margin-bottom: 1rem !important;
    }
    .add-to-cart-large {
        padding: 1.1rem !important;
        font-size: 1rem !important;
    }

    /* Admin Mobile */
    .admin-card {
        padding: 1rem !important;
    }
    .admin-card-header {
        padding: 1rem !important;
    }
    .admin-table {
        font-size: 0.8rem !important;
    }
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem !important;
    }
    .admin-form .form-row {
        grid-template-columns: 1fr !important;
    }
    .admin-form .form-input,
    .admin-form .form-select,
    .admin-form .form-textarea {
        padding: 0.875rem !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .collection-card {
        flex: 0 0 140px;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .modal-title {
        font-size: 1.3rem !important;
    }
    .modal-price {
        font-size: 1.5rem !important;
    }
}

/* ── Modern Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.modal-content {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn, button, .add-to-cart-btn, .checkout-btn, .submit-order-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover, button:hover, .add-to-cart-btn:hover, .checkout-btn:hover, .submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-input, .form-select, .form-textarea {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.collection-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover {
    transform: translateY(-4px);
}

.collection-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .collection-image {
    transform: scale(1.08);
}

.hero-cta, .hero-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.qty-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.cart-item-remove {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-remove:hover {
    transform: translateX(2px);
    color: var(--danger);
}

.sidebar-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    transform: translateX(4px);
}

.nav-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.modal-close, .zoom-modal-close, .sidebar-close, .cart-close {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover, .zoom-modal-close:hover, .sidebar-close:hover, .cart-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.admin-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
    transform: translateX(2px);
}

.badge {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover {
    transform: scale(1.05);
}

.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.admin-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.delivery-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.timeline-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateX(4px);
}

.shimmer {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ── Utilities ───────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.text-center { text-align: center; }
.text-black { color: var(--black); }
.text-gray { color: var(--gray-500); }
