/* ============================================
   Maison Lyon — Fine Jewelry Website
   Style: Inspired by Louis Vuitton
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F7F5;
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-border: #e8e6e3;
    --color-border-light: #d1d5db;
    --color-gold: #D4AF37;
    --color-gold-light: rgba(212, 175, 55, 0.1);
    --color-navy: #0F172A;
    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --header-height: 80px;
    --container-max: 1320px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.25s ease;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul { list-style: none; }

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input { font-family: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 18px;
}


/* === HEADER / NAVIGATION (Ghost → Solid on Hover) === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Ghost state: only background transparent, all content fully visible */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* All nav content is ALWAYS fully visible — only the white bg fades */
.header .nav-left,
.header .nav-right {
    opacity: 1;
}
.header .logo {
    opacity: 1;
}
.header .nav-icon {
    opacity: 1;
}

/* Solid state: white bg appears — triggered on hover or scroll */
.header.is-visible {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* Solid header for inner pages (cart, etc.) — always visible */
.header--solid {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Nav container: full width with minimal edge padding like LV */
.header .nav {
    max-width: 100%;
    padding: 0 40px;
}

/* Inner pages have fixed header spacing */
.page-inner {
    padding-top: var(--header-height);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
}
.nav-right { justify-content: flex-end; }

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-text);
    white-space: nowrap;
    position: relative;
}
.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}
.logo:hover::after { width: 60%; }

/* Nav Links */
.nav-links {
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--color-text-light);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--color-text);
}
.nav-links a:hover::after { width: 100%; }

/* Nav Icons */
.nav-icon {
    color: var(--color-text);
    padding: 6px;
    position: relative;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}
.nav-icon svg {
    display: block;
    pointer-events: none;
}
.nav-icon:hover { opacity: 0.6; }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    pointer-events: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-smooth);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-list {
    text-align: center;
}
.mobile-nav-list li { margin: 20px 0; }
.mobile-nav-list a {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--color-text);
}
.mobile-nav-list a:hover { color: var(--color-gold); }

.desktop-only { display: flex; }
.mobile-only { display: none; }


/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    max-width: 650px;
}

.hero-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 18px;
    font-weight: 400;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.2);
}
.hero-desc {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 420px;
    line-height: 1.8;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 60px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}


/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 38px;
    background: var(--color-navy);
    color: #fff;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(15,23,42,0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-outline-dark:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: #fff;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--color-navy);
    border-color: #fff;
}

.btn-full { width: 100%; }


/* === SECTION COMMON === */
/* Product sections: wider container to fill screen like LV */
.bestsellers .container,
.collection-section .container,
.new-arrivals .container {
    max-width: 1800px;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 44px;
}
.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 14px;
    font-weight: 400;
}
.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 2px;
}
.section-subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    max-width: 480px;
    margin: 14px auto 0;
    line-height: 1.8;
}
.section-footer {
    text-align: center;
    margin-top: 52px;
}


/* === PRODUCT GRID (LV-Style 4-Col) === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    group: true;
    cursor: pointer;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    overflow: hidden;
    margin-bottom: 12px;
}
.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Product Overlay on Hover */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}
.product-card:hover .product-overlay { opacity: 1; }

.btn-quick-view {
    padding: 12px 28px;
    background: #fff;
    color: var(--color-text);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 400;
}
.btn-quick-view:hover {
    background: var(--color-navy);
    color: #fff;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    background: var(--color-navy);
    color: #fff;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    z-index: 2;
}

/* Product Info */
.product-name {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 3px;
    transition: var(--transition-fast);
}
.product-card:hover .product-name { color: var(--color-gold); }

.product-price {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-align: center;
    color: var(--color-text-light);
}

/* Empty Product Slot (Placeholder) */
.product-card--empty {
    cursor: default;
    pointer-events: none;
}
.product-card--empty:hover .product-name { color: var(--color-text); }
.product-image-placeholder {
    background: rgba(0,0,0,0.02);
    border: 1px dashed rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-placeholder .placeholder-inner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
}
.product-name-placeholder {
    color: transparent;
    user-select: none;
}


/* === EDITORIAL BANNER (Full-Width Lifestyle Shot) === */
.editorial-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.editorial-inner {
    position: relative;
    height: 70vh;
    min-height: 500px;
}
.editorial-banner--tall .editorial-inner {
    height: 85vh;
    min-height: 600px;
}
.editorial-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.editorial-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 60%);
}
.editorial-overlay--dark {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}

.editorial-content {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    max-width: 520px;
    color: #fff;
}
.editorial-content--center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.editorial-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
    font-weight: 400;
}
.editorial-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.editorial-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}
.editorial-content--center .editorial-text {
    margin-left: auto;
    margin-right: auto;
    max-width: 450px;
}


/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    text-align: center;
}
.service-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 24px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.service-card:hover .service-image img {
    transform: scale(1.06);
}
.service-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.service-desc {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}


/* === NEWSLETTER SECTION === */
.newsletter-section {
    background: var(--color-bg-alt);
    padding: 90px 0;
}
.newsletter-content {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}
.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.newsletter-content p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    margin-bottom: 28px;
}
.newsletter-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-border);
    background: #fff;
}
.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 13px;
}
.newsletter-form input::placeholder { color: #bbb; }
.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
    border-radius: 0;
}


/* === FOOTER === */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 72px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 14px;
}
.footer-tagline {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 22px;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}
.social-links a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.footer-contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}
.footer-contact-link:hover {
    color: var(--color-gold);
}
.footer-contact-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-col h4 {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text);
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
}
.footer-col a:hover { color: var(--color-text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
}
.footer-bottom-links {
    display: flex;
    gap: 24px;
}
.footer-bottom-links a { color: var(--color-text-light); }
.footer-bottom-links a:hover { color: var(--color-text); }


/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    width: 92%;
    max-width: 920px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    color: var(--color-text-light);
    z-index: 5;
    line-height: 1;
    transition: var(--transition-fast);
}
.modal-close:hover { color: var(--color-text); }
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.modal-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.modal-info {
    padding: 44px 40px;
}
.modal-info h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}
.modal-price {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}
.modal-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 28px;
}
.modal-options label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    margin-bottom: 28px;
}
.qty-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text);
    transition: var(--transition-fast);
}
.qty-btn:hover { background: var(--color-bg-alt); }
.qty-selector input {
    width: 54px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    outline: none;
    font-size: 14px;
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* === SCROLL ANIMATIONS === */
.animate-up,
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade { transform: translateY(0); }
.animate-up.visible,
.animate-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Below */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .services-grid .service-card:last-child {
        grid-column: span 2;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-title { font-size: 48px; }
    .section-title { font-size: 34px; }
    .editorial-title { font-size: 36px; }
    .editorial-content { left: 44px; max-width: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-image { order: -1; }
    .footer-brand { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-height: 62px; }
    .container { padding: 0 20px; }

    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    /* Mobile Nav */
    .nav-left, .nav-right { flex: initial; }
    .logo { font-size: 16px; letter-spacing: 2px; }

    /* Hero */
    .hero {
        min-height: 520px;
        max-height: 700px;
    }
    .hero-content {
        padding: 0 24px;
        align-items: flex-end;
        padding-bottom: 80px;
    }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 11px; }
    .hero-desc { font-size: 13px; margin-bottom: 26px; }
    .hero-scroll-indicator { left: 24px; bottom: 24px; }

    /* Sections */
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 28px; }

    /* Product Grid — Single Column on Mobile for Luxury Feel */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .product-name { font-size: 12px; }
    .product-price { font-size: 12px; }

    /* Editorial Banner */
    .editorial-inner { height: 55vh; min-height: 380px; }
    .editorial-banner--tall .editorial-inner {
        height: 65vh;
        min-height: 440px;
    }
    .editorial-content {
        left: 20px;
        right: 20px;
        max-width: 100%;
    }
    .editorial-content--center {
        left: 50%;
        right: auto;
        max-width: calc(100% - 40px);
    }
    .editorial-title { font-size: 28px; }
    .editorial-text { font-size: 13px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 32px; }
    .services-grid .service-card:last-child { grid-column: auto; }

    /* Newsletter */
    .newsletter-section { padding: 60px 0; }
    .newsletter-content h2 { font-size: 26px; }
    .newsletter-form { flex-direction: column; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-brand { grid-column: auto; }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-bottom-links { gap: 16px; flex-wrap: wrap; justify-content: center; }

    /* Modal */
    .modal-info { padding: 28px 24px; }
    .modal-info h2 { font-size: 22px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 20px; max-width: 340px; margin: 0 auto; }
    .btn-primary { padding: 13px 28px; font-size: 11px; }
    .hero-title { font-size: 30px; }
    .section-title { font-size: 24px; }
}


/* === HEADER HOVER TRIGGER ZONE === */
.header-trigger-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1001;
}


/* ============================================
   PRODUCT DETAIL PAGE — LV-Style Layout
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--color-text-light);
}
.breadcrumb-inner a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--color-text); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--color-text); }

/* --- Product Detail Layout (2-column) --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

/* --- Left: Image Gallery --- */
.product-gallery {
    display: flex;
    flex-direction: column;
}

/* Main image area (desktop, shown above stack) */
.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-alt);
    overflow: hidden;
    margin-bottom: 12px;
    display: none; /* Hidden on desktop, shown on mobile */
}
.gallery-active-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail strip (horizontal, below main image) */
.gallery-thumbs {
    display: none; /* Hidden by default, shown on tablet/mobile */
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumb {
    width: 64px;
    height: 80px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 2px;
    transition: border-color 0.25s;
    flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: rgba(0,0,0,0.15); }
.thumb-active { border-color: var(--color-text); }

/* Scrollable image STACK (LV style — full-width stacked images) */
.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-stack-item {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-bg-alt);
    overflow: hidden;
}
.gallery-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-stack-item:hover img {
    transform: scale(1.02);
}


/* --- Right: Sticky Purchase Panel --- */
.product-panel {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    padding-top: 8px;
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    overscroll-behavior-y: contain;

    /* Subtle scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.product-panel::-webkit-scrollbar {
    width: 5px;
}

.product-panel::-webkit-scrollbar-track {
    background: transparent;
}

.product-panel::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.12);
    border-radius: 10px;
}

.product-panel:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.22);
}

.panel-info {
    margin-bottom: 28px;
}
.panel-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.panel-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.2;
}
.panel-price {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 1px;
}

/* Color / Option Selector */
.panel-option {
    margin-bottom: 22px;
}
.option-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.5px;
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}
.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f9f9f9;
    color: var(--color-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-btn:hover { background: #eee; }
.qty-input {
    width: 44px;
    height: 38px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Add to Cart Button (LV style: black full-width) */
.btn-add-cart {
    width: 100%;
    padding: 17px 32px;
    background: var(--color-text);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    margin-bottom: 14px;
    font-family: var(--font-body);
}
.btn-add-cart:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-add-cart:active {
    transform: translateY(0);
}

/* PayPal Divider */
.paypal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
}
.paypal-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.paypal-divider-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* PayPal Button Container */
.paypal-button-container {
    margin-bottom: 24px;
    min-height: 48px;
}
.paypal-button-container:empty {
    margin-bottom: 0;
    min-height: 0;
}

/* Payment Success Overlay */
.payment-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, visibility 0s 0.4s;
    padding: 24px;
}
.payment-success-overlay.overlay-active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, visibility 0s 0s;
}

.payment-success-card {
    background: #fff;
    max-width: 440px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
.payment-success-overlay.overlay-active .payment-success-card {
    transform: translateY(0) scale(1);
}

.payment-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #0F172A;
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-success-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.payment-success-subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.payment-success-detail {
    background: #f8f9fa;
    padding: 20px 24px;
    margin-bottom: 20px;
    text-align: left;
}
.payment-success-detail p {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text);
}
.payment-success-detail p span {
    color: var(--color-text-light);
}
.payment-success-detail p strong {
    font-weight: 600;
}

.payment-success-note {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.payment-success-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Delivery info */
.panel-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Product Description */
.panel-description { margin-bottom: 24px; }
.desc-text {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 6px;
}
.desc-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-text);
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text);
    padding: 0 0 1px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.read-more-btn:hover { opacity: 0.6; }

/* --- Accordion (LV style expandable sections) --- */
.accordion {
    border-top: 1px solid #eaeaea;
}
.accordion-item {
    border-bottom: 1px solid #eaeaea;
}
.accordion-header {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    user-select: none;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
details[open] .accordion-header svg {
    transform: rotate(180deg);
}
.accordion-body {
    padding: 0 0 18px 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.8;
    color: var(--color-text-light);
}
.accordion-body p { margin: 0; }


/* --- Get The Look Section --- */
.get-the-look-section {
    border-top: 1px solid #f0f0f0;
}


/* ============================================
   PRODUCT DETAIL — RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr 380px;
        gap: 40px;
        padding: 36px 28px 60px;
    }
    .panel-title { font-size: 26px; }
}

/* Mobile */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 24px 18px 50px;
    }

    /* Show main image + thumbnails on mobile, hide stack */
    .gallery-stack { display: none !important; }
    .gallery-main { display: block; margin-bottom: 10px; }
    .gallery-thumbs { display: flex; }

    /* Panel no longer sticky on mobile */
    .product-panel {
        position: static;
        padding-top: 24px;
        border-top: 1px solid #f0f0f0;
        max-height: none;
        overflow-y: visible;
    }
    .panel-title { font-size: 24px; }
    .btn-add-cart { padding: 15px 24px; font-size: 12px; }

    .breadcrumb-bar { padding: 12px 0; }
    .breadcrumb-inner { font-size: 10px; }
}

@media (max-width: 480px) {
    .panel-title { font-size: 21px; }
    .product-detail { padding: 20px 14px 40px; }
}


/* ============================================
   CART PAGE
   ============================================ */

.cart-page {
    padding: 48px 0 80px;
    min-height: 60vh;
}

.cart-page-header {
    text-align: center;
    margin-bottom: 48px;
}
.cart-page-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- Empty Cart --- */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.cart-empty-icon {
    color: #d0d0d0;
    margin-bottom: 24px;
}
.cart-empty-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}
.cart-empty-text {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}
.cart-empty-btn {
    padding: 14px 40px;
}

/* --- Cart Content Layout --- */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* --- Cart Items List --- */
.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
}
.cart-item:first-child {
    border-top: 1px solid #eee;
}

.cart-item-image {
    width: 120px;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
}
.cart-item-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
}
.cart-item-price {
    font-size: 14px;
    color: var(--color-text);
    margin-top: 4px;
}
.cart-item-remove {
    background: none;
    border: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    margin-top: 8px;
    transition: color 0.2s;
    text-align: left;
}
.cart-item-remove:hover {
    color: #c0392b;
}

/* --- Qty Selector in Cart --- */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
}
.cart-qty-btn {
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s;
}
.cart-qty-btn:hover {
    background: #f5f5f5;
}
.cart-qty-value {
    width: 36px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* --- Order Summary --- */
.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: #fafafa;
    padding: 32px 28px;
}
.cart-summary-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 24px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}
.cart-summary-row span:first-child {
    color: var(--color-text-light);
}
.cart-free-shipping {
    color: #2d6a2d;
    font-weight: 500;
}
.cart-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0 16px;
}
.cart-summary-total {
    font-size: 18px !important;
    font-weight: 600;
}
.cart-summary-total span:first-child {
    color: var(--color-text) !important;
}

/* PayPal button in cart */
.cart-summary .paypal-button-container {
    margin-top: 28px;
    margin-bottom: 16px;
    min-height: 48px;
}

.checkout-signin-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    margin-top: 28px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}

.checkout-signin-text {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.checkout-signin-prompt .google-signin-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.cart-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}
.cart-continue-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
    transition: opacity 0.2s;
}
.cart-continue-link:hover {
    opacity: 0.6;
}

/* --- Cart Page Responsive --- */
@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cart-summary {
        position: static;
    }
}
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 90px 1fr;
        gap: 16px;
        row-gap: 12px;
    }
    .cart-item-image {
        width: 90px;
        height: 112px;
    }
    .cart-item-qty {
        grid-column: 2;
        justify-self: start;
    }
    .cart-item-total {
        grid-column: 2;
        text-align: left;
    }
    .cart-page-title { font-size: 28px; }
}


/* ============================================
   SHIPPING FORM — Cart Page
   ============================================ */

.cart-items-section {
    display: block;
}

@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .cart-items-section { display: block; }
}

.cart-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.shipping-form {
    margin-top: 36px;
    padding: 32px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.shipping-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

.shipping-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group--country {
    min-width: 0;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    background-color: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Validation error states */
.form-group--error input,
.form-group--error select {
    border-color: #dc2626;
    animation: shakeField 0.4s ease;
}

@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
}

.form-error-msg {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    font-weight: 500;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.form-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}


/* ============================================
   ORDER LOOKUP PAGE
   ============================================ */

.order-lookup-page {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.lookup-header {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 48px;
}

.lookup-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--color-dark);
    margin-bottom: 14px;
}

.lookup-subtitle {
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
}

.lookup-form-card {
    max-width: 520px;
    margin: 0 auto 32px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.lookup-fields {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.btn-lookup-submit {
    width: 100%;
    height: 50px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Loading */
.lookup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 18px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.lookup-loading p {
    font-size: 14px;
    color: #64748b;
}

/* Error */
.lookup-error {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 52px 24px;
    flex-direction: column;
    gap: 14px;
    display: none;
}

.lookup-error[style*="flex"],
.lookup-error.show {
    display: flex !important;
}

.lookup-error-icon {
    color: #dc2626;
    margin-bottom: 4px;
}

.lookup-error h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-dark);
}

.lookup-error p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
}

/* Result Card */
.result-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
    border-bottom: 1px solid var(--color-border-light);
    background: linear-gradient(135deg, #fafafa, #f8f8fc);
}

.result-order-id {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-dark);
}

.result-order-date {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.result-section {
    padding: 28px 36px;
    border-bottom: 1px solid var(--color-border-light);
}

.result-section:last-of-type {
    border-bottom: none;
}

.result-section-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 18px;
}

.result-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.result-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.55;
}

/* Order Items in result */
.result-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.result-item-img img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

.result-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.result-item-info p {
    font-size: 13px;
    color: #64748b;
}

.result-item-total {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
}

/* Summary */
.result-summary {
    max-width: 320px;
}

.result-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}

.result-summary-total {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    padding-top: 12px;
}

.result-summary-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 0;
}

/* Status Badge */
.order-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-processing {
    background: #fef3c7;
    color: #92400e;
}

.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Tracking Card */
.tracking-card {
    margin-top: 20px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: linear-gradient(135deg, #eff6ff, #f8faff);
    padding: 22px 26px;
}

.tracking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 14px;
}

.tracking-body p {
    font-size: 13px;
    color: #475569;
    margin: 6px 0;
}

.tracking-number {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.btn-track {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent) !important;
    text-decoration: none !important;
    margin-top: 10px;
    transition: gap 0.2s ease;
}

.btn-track:hover {
    gap: 10px;
}

.processing-note {
    border-color: #fef3c7;
    background: linear-gradient(135deg, #fffbeb, #fefce8);
}

.processing-note p {
    color: #92400e;
    font-style: italic;
    margin: 0;
}

/* Result actions */
.result-actions {
    padding: 24px 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    background: #fafafa;
}

.result-actions .btn-primary {
    min-width: 200px;
}


/* ============================================
   ORDER LOOKUP — RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .lookup-title {
        font-size: 28px;
    }

    .lookup-form-card {
        padding: 28px 22px;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 22px 20px;
    }

    .result-section {
        padding: 22px 20px;
    }

    .result-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .result-item {
        grid-template-columns: 64px 1fr;
        gap: 14px;
    }

    .result-item-total {
        grid-column: 1 / -1;
        text-align: right;
        padding-top: 8px;
        border-top: 1px dashed #eee;
    }

    .result-actions {
        padding: 20px;
        flex-direction: column;
    }

    .result-actions .btn-primary {
        width: 100%;
    }

    .shipping-grid {
        grid-template-columns: 1fr;
    }

    .shipping-grid.three-col {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   LEGAL PAGES — Privacy Policy, Terms, etc.
   ============================================ */

.legal-page {
    padding: 140px 24px 80px;
    background: #fff;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-label {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 16px;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.legal-updated {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.legal-intro {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.legal-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.legal-list li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
}

.legal-list li strong {
    color: var(--color-dark);
    font-weight: 600;
}

.legal-link {
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--color-gold);
}

.legal-contact {
    background: #FAFAF8;
    border-left: 3px solid var(--color-gold);
    padding: 20px 24px;
    margin-top: 16px;
    border-radius: 0 4px 4px 0;
}

.legal-contact p {
    margin-bottom: 4px;
    color: #555;
}

.legal-contact strong {
    color: var(--color-dark);
    font-size: 16px;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 120px 20px 60px;
    }

    .legal-title {
        font-size: 32px;
    }

    .legal-heading {
        font-size: 20px;
    }

    .legal-content p,
    .legal-list li,
    .legal-intro {
        font-size: 14px;
    }
}


/* ============================================
   AUTH — Account Button, Login Modal, Dropdown
   ============================================ */

/* --- Account Button in Nav --- */
.nav-account {
    position: relative;
    flex-shrink: 0;
}

.nav-account.logged-in {
    /* When logged in, the avatar replaces the icon */
}

.nav-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-gold);
}

.nav-avatar-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--color-gold);
}


/* --- Login Modal --- */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 2px;
    padding: 56px 48px 44px;
    text-align: center;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.login-modal.active .login-card {
    transform: translateY(0) scale(1);
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.login-close:hover {
    color: var(--color-navy);
}

.login-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--color-navy);
    margin-bottom: 28px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.login-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 36px;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    transition: all 0.25s ease;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.google-signin-btn:active {
    transform: scale(0.98);
}

.google-signin-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.google-signin-btn span {
    letter-spacing: 0.3px;
}

.login-terms {
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.6;
    color: #9aa0a6;
    margin-top: 24px;
}

/* --- Login Modal: Email Auth --- */
.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    font-family: var(--font-body);
    font-size: 11px;
    color: #9aa0a6;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}
.login-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}
.login-tab.active {
    color: var(--color-navy);
    border-bottom-color: var(--color-navy);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-field {
    position: relative;
}
.login-field input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: var(--transition-fast);
    box-sizing: border-box;
}
.login-field input:focus {
    outline: none;
    border-color: var(--color-navy);
    background: #fff;
}
.login-field.confirm-field {
    display: none;
}
.login-form[hidden],
.login-link-mode[hidden] {
    display: none;
}

.login-link-mode {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-link-mode p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

.login-form-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.login-form-row a {
    font-size: 12px;
    color: var(--color-text-light);
    cursor: pointer;
    text-decoration: none;
}
.login-form-row a:hover {
    color: var(--color-navy);
}

.login-submit-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 4px;
    background: var(--color-navy);
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}
.login-submit-btn:hover {
    background: #1e293b;
}
.login-submit-btn:active {
    transform: scale(0.98);
}
.login-submit-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.login-error {
    font-size: 12px;
    line-height: 1.5;
    color: #c0392b;
    min-height: 18px;
    text-align: left;
    font-family: var(--font-body);
}
.login-error.success {
    color: #27ae60;
}

.login-alt-link {
    margin-top: 18px;
    font-size: 12px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    text-align: center;
}
.login-alt-link a {
    color: var(--color-navy);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.login-alt-link a:hover {
    text-decoration: underline;
}

.login-verify-banner {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 2px;
    text-align: left;
    font-size: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
}
.login-verify-banner.active {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-verify-banner button {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-navy);
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Password rules checklist (sign-up mode only) */
.login-password-rules {
    display: none;
    margin-top: -4px;
    padding: 0;
    list-style: none;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.8;
    color: var(--color-text-light);
}
.login-password-rules.show {
    display: block;
}
.login-password-rules li {
    padding-left: 18px;
    position: relative;
    transition: var(--transition-fast);
}
.login-password-rules li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-border);
    font-size: 14px;
    line-height: 1.6;
}
.login-password-rules li.met {
    color: #27ae60;
}
.login-password-rules li.met::before {
    content: '\2713';
    color: #27ae60;
    font-size: 11px;
}

/* Submit button disabled state */
.login-submit-btn:disabled,
.login-submit-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Verify banner enhanced layout */
.login-verify-banner .verify-banner-text {
    flex: 1;
    min-width: 0;
}
.login-verify-banner .verify-banner-main {
    display: block;
    font-weight: 500;
    line-height: 1.4;
}
.login-verify-banner .verify-banner-hint {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Auth Toast */
.auth-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    padding: 14px 20px;
    background: var(--color-navy);
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    font-family: var(--font-body);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 360px;
}
.auth-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.auth-toast.error {
    background: #c0392b;
}


/* --- User Dropdown --- */
.user-dropdown {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    width: 260px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

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

.user-dropdown-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-navy);
}

.user-dropdown-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.user-dropdown-body {
    padding: 8px 0;
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.user-dropdown-link:hover {
    background: #f5f5f5;
    color: var(--color-navy);
}

.user-dropdown-link svg {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.user-dropdown-link:hover svg {
    color: var(--color-navy);
}

.user-dropdown-signout {
    color: #c0392b;
}

.user-dropdown-signout svg {
    color: #c0392b;
}

.user-dropdown-signout:hover {
    background: #fdf2f2;
    color: #a93226;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .login-card {
        padding: 44px 32px 36px;
    }

    .login-title {
        font-size: 28px;
    }

    .user-dropdown {
        right: 16px;
        width: 240px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 32px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .google-signin-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* =============================================
   MY ORDERS PAGE
   ============================================= */

.my-orders-page {
    min-height: 60vh;
    padding: 48px 0 80px;
}

/* --- Page Header --- */
.orders-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.orders-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.orders-subtitle {
    font-size: 16px;
    color: #777;
    font-family: var(--font-body);
}

/* --- States --- */
.orders-loading,
.orders-not-logged-in,
.orders-empty,
.orders-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 80px 24px;
}

.orders-loading .spinner {
    width: 36px;
    height: 36px;
    border: 2px solid #e8e4df;
    border-top-color: #8b7355;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.orders-loading p,
.orders-error p,
.orders-empty p {
    font-size: 15px;
    color: #777;
}

.orders-auth-icon,
.orders-empty-icon,
.orders-error-icon {
    color: #c8c2bb;
    margin-bottom: 8px;
}

.orders-not-logged-in h2,
.orders-empty h2,
.orders-error h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
}

.orders-error button {
    margin-top: 8px;
}

/* --- Orders List Grid --- */
.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* --- Order Card --- */
.order-card {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 2px;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.order-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 12px;
    gap: 12px;
}

.order-card-id {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.order-card-date {
    display: block;
    font-size: 12px;
    color: #999;
}

.order-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    gap: 16px;
}

.order-card-imgs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.order-card-item-img {
    width: 52px;
    height: 52px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #f0ece8;
    background: #faf9f7;
    flex-shrink: 0;
}

.order-card-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card-item-more {
    width: 52px;
    height: 52px;
    border-radius: 2px;
    background: #f0ece8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    flex-shrink: 0;
}

.order-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.order-card-items-count {
    font-size: 12px;
    color: #999;
}

.order-card-total {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Order Status Badges --- */
.order-status-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-processing {
    background: #f5f0e8;
    color: #8b7355;
    border: 1px solid #d4c5a9;
}

.status-shipped {
    background: #e8f0f8;
    color: #4a7ab5;
    border: 1px solid #a8c4e0;
}

.status-delivered {
    background: #e8f5e8;
    color: #4a8b4a;
    border: 1px solid #a8d0a8;
}

.status-cancelled {
    background: #f8e8e8;
    color: #b54a4a;
    border: 1px solid #d0a8a8;
}

/* =============================================
   ORDER DETAIL MODAL
   ============================================= */

.order-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.order-detail-modal.active {
    display: block;
}

.order-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
}

.order-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 2px;
    scrollbar-width: thin;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 6px;
    z-index: 1;
    transition: color 0.2s;
    line-height: 0;
}

.modal-close-btn:hover {
    color: #333;
}

/* --- Modal Result Card (reuse lookup result styles via namespacing) --- */
.modal-result-card {
    padding: 48px 40px 40px;
}

.modal-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
}

.modal-result-order-id {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.modal-result-order-date {
    font-size: 13px;
    color: #999;
}

.modal-result-section {
    margin-bottom: 28px;
}

.modal-result-section-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ece8;
}

.modal-result-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.modal-result-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.modal-result-value {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Items */
.modal-result-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-result-item-img {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #f0ece8;
    background: #faf9f7;
    flex-shrink: 0;
}

.modal-result-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-result-item-info {
    flex: 1;
}

.modal-result-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.modal-result-item-info p {
    font-size: 12px;
    color: #888;
}

.modal-result-item-total {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Summary */
.modal-result-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-result-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.modal-result-summary-divider {
    height: 1px;
    background: #f0ece8;
    margin: 4px 0;
}

.modal-result-summary-total {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Tracking */
.modal-tracking-card {
    background: #f9f8f6;
    border: 1px solid #e8e4df;
    border-radius: 2px;
    padding: 18px;
}

.modal-tracking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-tracking-body p {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.modal-tracking-body code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f0ece8;
    padding: 2px 6px;
    border-radius: 2px;
}

.btn-track {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #8b7355;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #d4c5a9;
    transition: opacity 0.2s;
}

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

.modal-tracking-processing p {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Actions */
.modal-result-actions {
    margin-top: 8px;
}

.modal-result-actions .btn-primary {
    display: inline-block;
    text-align: center;
    padding: 12px 32px;
    background: var(--text-dark);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--text-dark);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-result-actions .btn-primary:hover {
    background: transparent;
    color: var(--text-dark);
}

/* --- Mobile Responsive --- */
@media (max-width: 640px) {
    .orders-title {
        font-size: 32px;
    }

    .orders-list {
        grid-template-columns: 1fr;
    }

    .modal-result-card {
        padding: 40px 20px 28px;
    }

    .modal-result-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
