/* ============================================
   SoftStopShop - Bright Gold Theme
   E-Commerce Stylesheet
   ============================================ */

/* Rorenza - brand display font (Latin/numerals); Thai falls back to Kanit */
@font-face {
    font-family: 'Rorenza';
    src: url('../fonts/Rorenza-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - Design Tokens */
:root {
    /* Bright Gold Palette */
    --gold: #C8960C;
    --gold-light: #E8B732;
    --gold-dark: #A67B08;
    --gold-text: #8a6708;
    --gold-gradient: linear-gradient(135deg, #C8960C, #E8B732, #C8960C);
    --black: #1a1a2e;
    --black-light: #f8f9fc;
    --black-muted: #e8eaf0;
    --black-card: #ffffff;
    --gray-dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #71717a;
    --gray-lighter: #374151;
    --white: #ffffff;
    --white-off: #f3f4f8;
    --surface: #f3f4f8;
    --red: #dc2626;
    --red-light: #ef4444;
    --green: #16a34a;
    --green-light: #22c55e;
    --blue: #2563eb;
    --orange: #ea580c;

    /* Typography */
    --font-family: 'Rorenza', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 28px;
    --font-size-5xl: 36px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-black: 700;
    --line-height: 1.6;

    /* Spacing */
    --space-1: 5px;
    --space-2: 8px;
    --space-3: 10px;
    --space-4: 12px;
    --space-5: 15px;
    --space-6: 20px;
    --space-7: 25px;
    --space-8: 30px;
    --space-9: 40px;
    --space-10: 50px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-gold: 0 4px 20px rgba(200,150,12,0.2);

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;
    --header-height: 70px;
    --nav-height: 45px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);
    color: var(--gray-dark);
    background-color: var(--white-off);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-family);
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    outline: none;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--black);
    border-bottom: 1px solid var(--black-muted);
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.top-bar a {
    color: #c9cede;
    font-size: var(--font-size-sm);
}

.top-bar span {
    color: #aab1c4;
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar i {
    margin-right: var(--space-1);
    color: var(--gold);
}

.admin-link {
    color: var(--gold) !important;
    font-weight: var(--font-weight-medium);
}

/* ============================================
   Main Header
   ============================================ */
.main-header {
    background: var(--white);
    padding: var(--space-4) 0;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    color: var(--black);
}

.logo-text h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    line-height: 1.2;
}

.logo-text span {
    font-size: var(--font-size-xs);
    color: var(--gray-light);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid var(--black-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.search-input-wrapper input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--white-off);
    border: none;
    color: var(--gray-dark);
    font-size: var(--font-size-base);
}

.search-input-wrapper input::placeholder {
    color: var(--gray-light);
}

.search-input-wrapper button {
    padding: var(--space-3) var(--space-5);
    background: var(--gold);
    color: var(--black);
    font-size: var(--font-size-lg);
    transition: background var(--transition-fast);
}

.search-input-wrapper button:hover {
    background: var(--gold-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.header-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-off);
    border-radius: var(--radius-full);
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.header-action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: var(--white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--black-muted);
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    color: var(--gray-dark);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--gold-text);
    background: rgba(200,150,12,0.08);
}

.nav-menu > li > a i {
    font-size: var(--font-size-sm);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--black-muted);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: var(--space-3) var(--space-5);
    color: var(--gray-dark);
    font-size: var(--font-size-md);
    border-bottom: 1px solid var(--black-muted);
    transition: all var(--transition-fast);
}

.submenu li a:hover {
    background: rgba(200,150,12,0.06);
    color: var(--gold);
    padding-left: var(--space-7);
}

.submenu li:last-child a {
    border-bottom: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    color: var(--gold);
    font-size: var(--font-size-3xl);
    padding: var(--space-3);
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: rgba(39,174,96,0.2);
    border: 1px solid var(--green);
    color: var(--green-light);
}

.flash-error {
    background: rgba(204,0,0,0.2);
    border: 1px solid var(--red);
    color: var(--red-light);
}

.flash-warning {
    background: rgba(230,126,34,0.2);
    border: 1px solid var(--orange);
    color: var(--orange);
}

.flash-info {
    background: rgba(41,128,185,0.2);
    border: 1px solid var(--blue);
    color: #5dade2;
}

.flash-close {
    background: none;
    color: inherit;
    font-size: var(--font-size-lg);
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Hero Slider / Banner
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.hero-slider .slides {
    display: flex;
    transition: transform var(--transition-slow);
}

.hero-slider .slide {
    min-width: 100%;
    position: relative;
}

.hero-slider .slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-slider .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.hero-slider .slide-overlay h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin-bottom: var(--space-2);
}

.hero-slider .slide-overlay p {
    font-size: var(--font-size-lg);
    color: var(--gray-lighter);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dots .dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.slider-btn.prev { left: var(--space-4); }
.slider-btn.next { right: var(--space-4); }

/* ============================================
   Brand Banners
   ============================================ */
.brand-banners {
    padding: var(--space-6) 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.banner-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Brand Logos - Marquee
   ============================================ */
.brand-section {
    padding: var(--space-6) 0 0;
}

.brand-marquee {
    overflow: hidden;
    position: relative;
    padding: var(--space-4) 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brand-marquee-track {
    display: flex;
    gap: var(--space-4);
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    background: var(--black-card);
    border: 2px solid var(--black-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    padding: var(--space-2);
}

.brand-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.brand-item img {
    max-width: 70px;
    max-height: 55px;
    object-fit: contain;
}

.brand-item span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--gray-dark);
    text-align: center;
}

/* ============================================
   Product Carousel
   ============================================ */
.product-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: var(--space-8);
}

.product-carousel .carousel-track {
    display: flex;
    gap: var(--space-4);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.product-carousel .carousel-track .product-card {
    flex: 0 0 calc(25% - var(--space-4) * 3 / 4);
    min-width: 0;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black-card);
    border: 2px solid var(--black-muted);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.product-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.carousel-prev {
    left: var(--space-2);
}

.carousel-next {
    right: var(--space-2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--black-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .product-carousel .carousel-track .product-card {
        flex: 0 0 calc(33.333% - var(--space-4) * 2 / 3);
    }
}

@media (max-width: 768px) {
    .product-carousel .carousel-track .product-card {
        flex: 0 0 calc(50% - var(--space-4) / 2);
    }
    .carousel-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-carousel .carousel-track .product-card {
        flex: 0 0 100%;
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--black-muted);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: var(--gold);
    border-radius: 2px;
}

.section-title .badge-new {
    background: var(--red);
    color: var(--white);
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
}

.section-link {
    color: var(--gold-text);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-link:hover {
    color: var(--gold-light);
}

/* Tab Filters */
.tab-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.tab-filter {
    padding: var(--space-2) var(--space-5);
    background: var(--white);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-full);
    color: var(--gray-dark);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-filter:hover,
.tab-filter.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   Product Cards
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    position: relative;
    padding-top: 100%;
    background: var(--white-off);
    overflow: hidden;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-badges {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 5;
}

.product-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.badge-sale {
    background: var(--red);
    color: var(--white);
}

.badge-new {
    background: var(--green);
    color: var(--white);
}

.badge-hot {
    background: var(--orange);
    color: var(--white);
}

.product-card .product-actions {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-full);
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.product-card .product-info {
    padding: var(--space-4);
}

.product-card .product-category {
    font-size: var(--font-size-xs);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .product-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--gray-dark);
    margin: var(--space-1) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-card .product-name a {
    color: var(--gray-dark);
}

.product-card .product-name a:hover {
    color: var(--gold);
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.product-card .price-current {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gold-text);
}

.product-card .price-original {
    font-size: var(--font-size-sm);
    color: var(--gray);
    text-decoration: line-through;
}

.product-card .price-discount {
    font-size: var(--font-size-xs);
    color: var(--red);
    font-weight: var(--font-weight-bold);
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.product-card .product-rating .stars {
    color: var(--gold);
    font-size: var(--font-size-sm);
}

.product-card .product-rating .count {
    font-size: var(--font-size-xs);
    color: var(--gray);
}

.product-card .product-sold {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin-top: var(--space-1);
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: var(--space-3);
    background: var(--gold);
    border: 1px solid var(--gold);
    border-top: none;
    color: #1a1a2e;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: var(--gold-dark);
    color: #1a1a2e;
}

.add-to-cart-btn.added {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-8) 0;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-6);
}

.product-gallery .thumbnail-list {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
}

.product-gallery .thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid var(--black-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--gold);
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-1);
}

.product-info-detail h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--black);
    margin-bottom: var(--space-3);
}

.product-info-detail .product-meta {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.product-info-detail .product-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-info-detail .product-meta i {
    color: var(--gold);
}

.product-price-detail {
    background: var(--black-card);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-5) 0;
}

.product-price-detail .price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.product-price-detail .current-price {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
}

.product-price-detail .original-price {
    font-size: var(--font-size-xl);
    color: var(--gray);
    text-decoration: line-through;
}

.product-price-detail .discount-badge {
    background: var(--red);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.product-description {
    margin: var(--space-5) 0;
    color: var(--gray-lighter);
    line-height: 1.8;
}

.product-description p {
    margin-bottom: var(--space-3);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.quantity-selector label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    background: var(--black-muted);
    color: var(--gold);
    font-size: var(--font-size-lg);
    transition: background var(--transition-fast);
}

.quantity-controls button:hover {
    background: var(--gold);
    color: var(--black);
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: var(--black);
    border: none;
    border-left: 1px solid var(--gold-dark);
    border-right: 1px solid var(--gold-dark);
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

/* Product Action Buttons */
.product-actions-detail {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.btn-add-cart {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-buy-now {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--black);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.btn-buy-now:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-wishlist-detail {
    width: 50px;
    height: 50px;
    background: var(--black-card);
    border: 2px solid var(--black-muted);
    border-radius: var(--radius-md);
    color: var(--gray-lighter);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-wishlist-detail:hover,
.btn-wishlist-detail.active {
    border-color: var(--red);
    color: var(--red);
}

/* Product Specs Table */
.product-specs {
    margin: var(--space-6) 0;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs table tr {
    border-bottom: 1px solid var(--black-muted);
}

.product-specs table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
}

.product-specs table td:first-child {
    color: var(--gray);
    width: 40%;
    font-weight: var(--font-weight-medium);
}

.product-specs table td:last-child {
    color: var(--black);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-danger:hover {
    background: var(--red-light);
    border-color: var(--red-light);
}

.btn-outline {
    background: transparent;
    color: var(--gray-lighter);
    border-color: var(--gray-dark);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
    color: var(--gray-lighter);
    font-size: var(--font-size-base);
}

.form-group label .required {
    color: var(--red);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-md);
    color: var(--gray-dark);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,12,0.15);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-control.error {
    border-color: var(--red);
}

.form-error {
    color: var(--red-light);
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

.cart-items {
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-5);
    border-bottom: 1px solid var(--black-muted);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--black-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-2);
}

.cart-item-info h4 {
    color: var(--white);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-1);
}

.cart-item-info h4 a {
    color: var(--white);
}

.cart-item-info h4 a:hover {
    color: var(--gold);
}

.cart-item-info .item-sku {
    font-size: var(--font-size-xs);
    color: var(--gray);
}

.cart-item-price {
    text-align: right;
}

.cart-item-price .price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
}

.cart-item-remove {
    background: none;
    color: var(--gray);
    font-size: var(--font-size-lg);
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--red);
}

/* Cart Summary */
.cart-summary {
    background: var(--black-card);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: sticky;
    top: 150px;
}

.cart-summary h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--black-muted);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    color: var(--gray-lighter);
}

.cart-summary .summary-row.total {
    border-top: 2px solid var(--gold-dark);
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
}

.cart-summary .btn {
    margin-top: var(--space-5);
}

/* Coupon Input */
.coupon-input {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.coupon-input input {
    flex: 1;
    padding: var(--space-3);
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
    color: var(--white);
}

.coupon-input button {
    padding: var(--space-3) var(--space-4);
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
}

/* ============================================
   Checkout Page
   ============================================ */
.checkout-page {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

.checkout-section {
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
}

.checkout-section h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.checkout-section h3 .step-number {
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
}

/* Shipping & Payment Options */
.option-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--black);
    border: 2px solid var(--black-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-item:hover {
    border-color: var(--gold-dark);
}

.option-item.selected {
    border-color: var(--gold);
    background: rgba(212,175,55,0.05);
}

.option-item input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

.option-item .option-info {
    flex: 1;
}

.option-item .option-name {
    font-weight: var(--font-weight-medium);
    color: var(--white);
}

.option-item .option-desc {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.option-item .option-price {
    font-weight: var(--font-weight-bold);
    color: var(--gold);
}

/* ============================================
   Auth Pages (Login/Register)
   ============================================ */
.auth-page {
    max-width: 450px;
    margin: var(--space-10) auto;
    padding: var(--space-8);
}

.auth-card {
    background: var(--black-card);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.auth-card h2 {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    margin-bottom: var(--space-6);
}

.auth-card .form-group {
    margin-bottom: var(--space-5);
}

.auth-card .btn {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
}

.auth-divider {
    text-align: center;
    margin: var(--space-5) 0;
    color: var(--gray);
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-dark);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-link {
    text-align: center;
    margin-top: var(--space-5);
    color: var(--gray-lighter);
}

.auth-link a {
    color: var(--gold);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   Category / Listing Page
   ============================================ */
.listing-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    align-items: start;
}

/* Sidebar Filters */
.sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
}

.filter-card {
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.filter-card h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: #1a1a2e;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--black-muted);
}

.filter-card .filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 0;
    color: #4b5563;
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.filter-card .filter-option:hover {
    color: var(--gold);
}

.filter-card .filter-option input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
}

.price-range-filter {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.price-range-filter input {
    width: 100%;
    padding: 8px 10px;
    background: #f0f0f5;
    border: 1px solid #e0e0e8;
    border-radius: var(--radius-sm);
    color: #1a1a2e;
    font-size: var(--font-size-sm);
}

.price-range-filter input:focus {
    border-color: var(--gold);
    outline: none;
}

.price-range-filter input::placeholder {
    color: #9ca3af;
}

/* Listing Header */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--black-muted);
}

.listing-header .result-count {
    color: #6b7280;
    font-size: var(--font-size-sm);
}

.listing-header .sort-select {
    padding: 8px 32px 8px 12px;
    background: #f0f0f5;
    border: 1px solid #e0e0e8;
    border-radius: var(--radius-md);
    color: #1a1a2e;
    font-size: var(--font-size-sm);
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray-lighter);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .separator {
    color: var(--gray-dark);
}

.breadcrumb .current {
    color: var(--gold);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-8) 0;
}

.page-link {
    padding: var(--space-2) var(--space-4);
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-md);
    color: var(--gray-lighter);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.page-link:hover,
.page-link.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* ============================================
   Star Rating
   ============================================ */
.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: var(--font-size-lg);
}

.star.filled {
    color: var(--gold);
}

.star.half {
    color: var(--gold);
    opacity: 0.5;
}

.star.empty {
    color: var(--gray-dark);
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews-section {
    margin: var(--space-8) 0;
}

.review-card {
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.review-author {
    font-weight: var(--font-weight-medium);
    color: var(--gray-dark);
}

.review-card h4 {
    color: var(--gray-dark);
    margin-bottom: var(--space-2);
}

.review-date {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.review-text {
    color: var(--gray-lighter);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    background: var(--black);
    border-top: 2px solid var(--gold);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: var(--space-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-col h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    margin-bottom: var(--space-5);
}

.footer-col p {
    color: #b9b9c8;
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: var(--space-3);
}

.footer-col ul li a {
    color: #c9cede;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: var(--space-2);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--black-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-lighter);
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: #b6bccd;
    font-size: var(--font-size-base);
}

.contact-list li i {
    color: var(--gold);
    margin-top: 4px;
}

.payment-icons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.payment-icons span {
    width: 40px;
    height: 40px;
    background: var(--black-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: var(--font-size-xl);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--black-muted);
    color: var(--gray);
    font-size: var(--font-size-sm);
}

.footer-bottom p {
    margin-bottom: var(--space-1);
    color: #98a0b3;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: all var(--transition-fast);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-10);
    color: var(--gray);
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-dark);
    margin-bottom: var(--space-5);
}

.empty-state h3 {
    font-size: var(--font-size-2xl);
    color: var(--gray-lighter);
    margin-bottom: var(--space-3);
}

.empty-state p {
    margin-bottom: var(--space-5);
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--black-muted);
    border-top-color: var(--gold);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Account Page
   ============================================ */
.account-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

.account-sidebar {
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: sticky;
    top: 150px;
    align-self: start;
}

.account-sidebar .user-info {
    text-align: center;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--black-muted);
    margin-bottom: var(--space-4);
}

.account-sidebar .user-avatar {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    color: var(--black);
    margin: 0 auto var(--space-3);
}

.account-sidebar .user-name {
    font-weight: var(--font-weight-bold);
    color: var(--white);
}

.account-sidebar .user-email {
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.account-nav li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-lighter);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.account-nav li a:hover,
.account-nav li a.active {
    background: rgba(212,175,55,0.1);
    color: var(--gold);
}

.account-nav li a i {
    width: 20px;
    text-align: center;
}

/* Order Status Badge */
.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.status-pending { background: rgba(230,126,34,0.2); color: var(--orange); }
.status-confirmed { background: rgba(41,128,185,0.2); color: #5dade2; }
.status-processing { background: rgba(155,89,182,0.2); color: #bb8fce; }
.status-shipped { background: rgba(52,152,219,0.2); color: #5dade2; }
.status-delivered { background: rgba(39,174,96,0.2); color: var(--green-light); }
.status-cancelled { background: rgba(204,0,0,0.2); color: var(--red-light); }
.status-refunded { background: rgba(127,140,141,0.2); color: var(--gray-light); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .listing-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .cart-page, .checkout-page {
        grid-template-columns: 1fr;
    }

    .account-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black-light);
        border-bottom: 2px solid var(--gold);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: var(--space-4) var(--space-5);
        border-bottom: 1px solid var(--black-muted);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: var(--white);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .hero-slider .slide img {
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--space-3);
    }

    .cart-item-price, .cart-item-remove {
        grid-column: 2;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .btn-wishlist-detail {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .product-card .product-info {
        padding: var(--space-2);
    }

    .product-card .product-name {
        font-size: var(--font-size-sm);
    }

    .product-card .price-current {
        font-size: var(--font-size-base);
    }

    .container {
        padding: 0 var(--space-3);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .top-bar, .main-header, .main-nav, .main-footer, .back-to-top {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Fade in from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Product card stagger animation */
.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner card animation */
.banner-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.banner-card:nth-child(1) { animation-delay: 0.05s; }
.banner-card:nth-child(2) { animation-delay: 0.1s; }
.banner-card:nth-child(3) { animation-delay: 0.15s; }
.banner-card:nth-child(4) { animation-delay: 0.2s; }
.banner-card:nth-child(5) { animation-delay: 0.25s; }
.banner-card:nth-child(6) { animation-delay: 0.3s; }

/* Smooth page load animation */
.container {
    animation: pageLoad 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--white-off) 25%, var(--black-muted) 50%, var(--white-off) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav-badge {
    animation: pulse 2s infinite;
}

/* Smooth hover glow for gold elements */
@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(200,150,12,0.2); }
    50% { box-shadow: 0 0 20px rgba(200,150,12,0.4); }
}

/* Back to top smooth animation */
.back-to-top {
    animation: bounceIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.5); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============================================
   Dark Mode (Storefront)
   ============================================ */
html[data-theme="dark"] {
    --gold-text: #E8B732;
    --black: #eef0f4;
    --black-light: #232331;
    --black-muted: #2b2b3a;
    --black-card: #1c1c28;
    --gray-dark: #e6e6ee;
    --gray: #a0a0b4;
    --gray-light: #a1a1aa;
    --gray-lighter: #c2c2d0;
    --white: #191922;
    --white-off: #101016;
    --surface: #101016;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .top-bar { background: #0b0b11; }
html[data-theme="dark"] .top-bar span,
html[data-theme="dark"] .top-bar a { color: #b9b9c8; }
html[data-theme="dark"] .top-bar a:hover { color: var(--gold-light); }
html[data-theme="dark"] .main-footer { background: #0b0b11; }
html[data-theme="dark"] .main-footer h3 { color: #f0f0f5; }
html[data-theme="dark"] .main-footer p,
html[data-theme="dark"] .main-footer li a,
html[data-theme="dark"] .main-footer span,
html[data-theme="dark"] .footer-contact li { color: #b9b9c8; }
html[data-theme="dark"] .main-footer li a:hover { color: var(--gold-light); }
html[data-theme="dark"] .footer-bottom p { color: #8b8b9e; }
html[data-theme="dark"] .footer-social a { background: #232331; color: #cfcfda; }
html[data-theme="dark"] .main-nav { background: #14141d; }
html[data-theme="dark"] .nav-menu > li > a { color: #d6d6e0; }
html[data-theme="dark"] .search-input-wrapper input { color: #e6e6ee; }
html[data-theme="dark"] .search-input-wrapper input::placeholder { color: #77778a; }
html[data-theme="dark"] .product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background: #232331; color: #e6e6ee; border-color: #34344a;
}
html[data-theme="dark"] .modal { background: #1c1c28; }
html[data-theme="dark"] .coupon-input input,
html[data-theme="dark"] .price-range-filter input { background: #232331; color: #e6e6ee; }

/* Dark Mode – Product Detail Page contrast */
html[data-theme="dark"] .product-info-detail h1 { color: #f0f0f5; }
html[data-theme="dark"] .product-info-detail .product-meta { color: #b9b9c8; }
html[data-theme="dark"] .product-info-detail .product-meta i { color: var(--gold-light); }
html[data-theme="dark"] .product-price-detail {
    background: #232331;
    border-color: #3a3a50;
}
html[data-theme="dark"] .product-price-detail .current-price { color: var(--gold-light); }
html[data-theme="dark"] .product-price-detail .original-price { color: #9999aa; }
html[data-theme="dark"] .product-description { color: #c2c2d0; }
html[data-theme="dark"] .quantity-selector label { color: #e6e6ee; }
html[data-theme="dark"] .quantity-controls input { background: #232331; color: #e6e6ee; }
html[data-theme="dark"] .product-specs table tr { border-color: #34344a; }
html[data-theme="dark"] .product-specs table td:first-child { color: #b9b9c8; }
html[data-theme="dark"] .product-specs table td:last-child { color: #f0f0f5; }
html[data-theme="dark"] .review-card { background: #232331; border-color: #34344a; }
html[data-theme="dark"] .review-author { color: #f0f0f5; }
html[data-theme="dark"] .review-text { color: #c2c2d0; }
html[data-theme="dark"] .review-date { color: #8b8b9e; }
html[data-theme="dark"] .checkout-section { background: #232331; border-color: #34344a; }
html[data-theme="dark"] .btn-add-cart { border-color: var(--gold-light); color: var(--gold-light); }
html[data-theme="dark"] .btn-add-cart:hover { background: var(--gold-light); color: #1a1a2e; }
html[data-theme="dark"] .btn-buy-now { background: var(--gold-light); color: #1a1a2e; border-color: var(--gold-light); }
html[data-theme="dark"] .btn-wishlist-detail { background: #232331; border-color: #34344a; color: #c2c2d0; }
/* Override inline style="color: var(--gold)" in dark mode */
html[data-theme="dark"] .product-specs h3[style*="color"] { color: var(--gold-light) !important; }
html[data-theme="dark"] .reviews-section h3[style*="color"] { color: var(--gold-light) !important; }
/* Override inline description div in dark mode */
html[data-theme="dark"] .checkout-section div[style*="color"] { color: #c2c2d0 !important; }
/* Review card h4 in dark mode */
html[data-theme="dark"] .review-card h4 { color: #f0f0f5; }

/* ============================================
   Category Showcase Cards
   ============================================ */
.category-showcase .category-card {
    display: block;
    background: var(--black-card);
    border: 1px solid var(--black-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.category-card h3 {
    color: var(--gold-text);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-1);
}
.category-card p {
    color: var(--gray);
    font-size: var(--font-size-sm);
}
.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
.section-title .badge-new,
.section-title .badge-hot {
    color: #ffffff;
}

/* ============================================
   Mobile Bottom Tab Bar (native app feel)
   ============================================ */
.mobile-tabbar { display: none; }
@media (max-width: 768px) {
    .mobile-tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        border-top: 1px solid var(--black-muted);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        z-index: 1200;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 0;
        color: var(--gray);
        font-size: 10px;
        text-decoration: none;
        position: relative;
    }
    .mobile-tabbar a i { font-size: 18px; }
    .mobile-tabbar a.active { color: var(--gold-text); font-weight: 600; }
    .mobile-tabbar .tab-badge {
        position: absolute;
        top: 0;
        right: calc(50% - 18px);
        background: var(--red);
        color: #fff;
        border-radius: 10px;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        padding: 0 4px;
    }
    body { padding-bottom: 64px; }
    .main-header { position: sticky; top: 0; z-index: 900; }
}

@media (max-width: 768px) {
    .back-to-top { bottom: 80px; }
}

/* ============================================
   Mobile Off-Canvas Drawer (hamburger menu)
   ============================================ */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: var(--font-size-3xl);
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal);
    z-index: 2000;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 84%;
    max-width: 340px;
    background: var(--white);
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top)) var(--space-5) 12px var(--space-5);
    background: var(--gold-gradient);
    color: #fff;
    flex-shrink: 0;
}
.drawer-logo { max-height: 34px; width: auto; background: #fff; padding: 3px 8px; border-radius: var(--radius-sm); }
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: var(--font-size-3xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.drawer-account {
    padding: var(--space-4) var(--space-5);
    background: var(--black-light);
    border-bottom: 1px solid var(--black-muted);
}
.drawer-account-main { display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--gray-dark); }
.drawer-account-main i { font-size: 26px; color: var(--gold); }
.drawer-account-actions { display: flex; gap: var(--space-4); margin-top: var(--space-3); }
.drawer-account-actions a { font-size: var(--font-size-md); color: var(--gold-text); }

.drawer-section-title {
    padding: var(--space-4) var(--space-5) var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-light);
}
.drawer-nav { list-style: none; }
.drawer-nav > li { border-bottom: 1px solid var(--black-muted); }
.drawer-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    color: var(--gray-dark);
    font-size: var(--font-size-base);
    -webkit-tap-highlight-color: transparent;
}
.drawer-nav > li > a > span { display: flex; align-items: center; gap: var(--space-3); }
.drawer-nav > li > a i { color: var(--gold); width: 20px; text-align: center; }
.drawer-nav > li > a:active, .drawer-nav > li > a:hover { background: rgba(200,150,12,0.08); }
.drawer-nav .admin-link, .drawer-nav .admin-link i { color: var(--red); font-weight: var(--font-weight-bold); }
.sub-caret { transition: transform var(--transition-fast); font-size: var(--font-size-sm); color: var(--gray) !important; }
.drawer-nav li.open > a .sub-caret { transform: rotate(180deg); }
.drawer-sub {
    list-style: none;
    display: none;
    background: var(--black-light);
}
.drawer-nav li.open .drawer-sub { display: block; }
.drawer-sub li a { display: block; padding: var(--space-3) var(--space-5) var(--space-3) var(--space-9); color: var(--gray); font-size: var(--font-size-md); border-bottom: 1px solid var(--black-muted); }
.drawer-sub li a::before { content: '\2022'; margin-right: var(--space-2); color: var(--gold); }

body.drawer-locked { overflow: hidden; }

/* Native mobile feel */
button, a, .header-action-btn, .mobile-tabbar a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .hamburger-btn { display: inline-flex; }
    .main-nav { display: none !important; }
    .mobile-menu-toggle { display: none !important; }
    .header-content { gap: var(--space-2); }
    .logo { order: 1; }
    .header-actions { order: 2; margin-left: auto; }
    .search-bar { order: 3; }
}

/* ============================================
   PDPA / Cookie Consent Banner
   ============================================ */

/* Banner - Fixed bottom bar */
.pdpa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: var(--black);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    padding: var(--space-5) 0;
    animation: pdpaSlideUp 0.4s ease-out;
    transition: opacity var(--motion-duration-fast), transform var(--motion-duration-fast);
}
.pdpa-banner-hide {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}
@keyframes pdpaSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.pdpa-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
}
.pdpa-banner-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex: 1;
    min-width: 0;
}
.pdpa-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.2rem;
}
.pdpa-banner-text {
    flex: 1;
    min-width: 0;
}
.pdpa-banner-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin: 0 0 var(--space-1);
}
.pdpa-banner-text p {
    margin: 0;
    color: #b9b9c8;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}
.pdpa-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--motion-duration-fast);
}
.pdpa-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}
.pdpa-banner-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}
.pdpa-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--motion-duration-fast);
    white-space: nowrap;
}
.pdpa-btn-settings {
    background: transparent;
    border: 1px solid #b9b9c8;
    color: #b9b9c8;
}
.pdpa-btn-settings:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.pdpa-btn-accept {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black);
}
.pdpa-btn-accept:hover {
    box-shadow: 0 2px 12px rgba(200, 150, 12, 0.4);
    transform: translateY(-1px);
}

/* Body lock when modal open */
body.pdpa-locked {
    overflow: hidden;
}

/* Settings Modal */
.pdpa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--motion-duration-fast), visibility var(--motion-duration-fast);
}
.pdpa-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.pdpa-modal {
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform var(--motion-duration-fast);
}
.pdpa-modal-overlay.open .pdpa-modal {
    transform: scale(1);
}
.pdpa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
}
.pdpa-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.pdpa-modal-close {
    background: none;
    border: none;
    color: #b9b9c8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: color var(--motion-duration-fast);
}
.pdpa-modal-close:hover {
    color: var(--white);
}
.pdpa-modal-body {
    padding: var(--space-5) var(--space-6);
}
.pdpa-consent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    transition: border-color var(--motion-duration-fast);
}
.pdpa-consent-item:hover {
    border-color: var(--gold);
}
.pdpa-consent-required {
    opacity: 0.7;
}
.pdpa-consent-info h4 {
    margin: 0 0 var(--space-1);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--white);
}
.pdpa-consent-info p {
    margin: 0;
    font-size: var(--font-size-xs);
    color: #b9b9c8;
    line-height: 1.5;
}
/* Toggle Switch */
.pdpa-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.pdpa-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.pdpa-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-lighter);
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--motion-duration-fast);
}
.pdpa-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--motion-duration-fast);
}
.pdpa-toggle input:checked + .pdpa-toggle-slider {
    background: var(--gold);
}
.pdpa-toggle input:checked + .pdpa-toggle-slider::before {
    transform: translateX(20px);
}
.pdpa-toggle input:disabled + .pdpa-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}
/* Modal Footer */
.pdpa-modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border);
}
.pdpa-btn-outline {
    background: transparent;
    border: 1px solid #b9b9c8;
    color: #b9b9c8;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--motion-duration-fast);
}
.pdpa-btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
}
.pdpa-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: var(--black);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--motion-duration-fast);
}
.pdpa-btn-primary:hover {
    box-shadow: 0 2px 12px rgba(200, 150, 12, 0.4);
}

/* PDPA Responsive */
@media (max-width: 768px) {
    .pdpa-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pdpa-banner-content {
        flex-direction: column;
        align-items: center;
    }
    .pdpa-banner-actions {
        justify-content: center;
    }
    .pdpa-modal {
        max-width: 100%;
        margin: var(--space-4);
    }
    .pdpa-modal-footer {
        flex-direction: column;
    }
    .pdpa-modal-footer .pdpa-btn-outline,
    .pdpa-modal-footer .pdpa-btn-primary {
        width: 100%;
        justify-content: center;
    }
}
