/* ============================================================
   KUM KUM KURTAS — Premium Indian Ethnic Wear
   Design System & Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --crimson: #8B1A2B;
    --crimson-dark: #6B1020;
    --crimson-light: #C4384F;
    --gold: #C9A84C;
    --gold-light: #E5CC6E;
    --gold-dark: #9E7E2E;
    --ivory: #FFF8F0;
    --ivory-dark: #F5EBDC;
    --saffron: #E8873A;
    --saffron-light: #F2A35E;
    --deep-maroon: #4A0E1A;
    --charcoal: #2C2C2C;
    --dark-bg: #1A1118;
    --text-primary: #2C2020;
    --text-secondary: #6B5E5E;
    --text-light: #9E8F8F;
    --border-color: #E8DDD5;
    --success: #2D7A4F;
    --error: #C4384F;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(139, 26, 43, 0.06);
    --shadow-md: 0 4px 20px rgba(139, 26, 43, 0.10);
    --shadow-lg: 0 8px 40px rgba(139, 26, 43, 0.14);
    --shadow-xl: 0 16px 60px rgba(139, 26, 43, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;
    --container: 1280px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--ivory);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: var(--font-body);
    font-size: 1rem;
}

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

/* ---------- Decorative Border Pattern ---------- */
.ornate-border {
    position: relative;
}

.ornate-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--crimson), var(--gold), transparent);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-maroon);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '✦';
    display: block;
    text-align: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 8px;
    letter-spacing: 8px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 26, 43, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--crimson-light), var(--crimson));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 43, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--crimson);
    border: 2px solid var(--crimson);
}

.btn-secondary:hover {
    background: var(--crimson);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--deep-maroon);
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 248, 240, 0.98);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--crimson);
}

.nav-logo .dot {
    width: 10px;
    height: 10px;
    background: var(--crimson);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.nav-logo span {
    color: var(--gold-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--crimson);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-actions button,
.nav-actions a {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-actions button:hover,
.nav-actions a:hover {
    color: var(--crimson);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--crimson);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ivory);
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--ivory-dark);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    gap: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav-search:focus-within {
    border-color: var(--gold);
    background: var(--white);
}

.nav-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 160px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.nav-search input::placeholder {
    color: var(--text-light);
}

.nav-search svg {
    color: var(--text-light);
    flex-shrink: 0;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    margin-top: var(--nav-height);
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--deep-maroon) 0%, var(--crimson-dark) 40%, var(--crimson) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 15 L30 10 L25 15 Z' fill='rgba(201,168,76,0.05)' /%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px;
}

.hero-tag {
    display: inline-block;
    background: rgba(201, 168, 76, 0.2);
    color: var(--gold-light);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 em {
    color: var(--gold-light);
    font-style: italic;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img img {
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.hero-pattern {
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(201, 168, 76, 0.1);
    border-radius: 50%;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 2px solid rgba(201, 168, 76, 0.07);
    border-radius: 50%;
}

.hero-float {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-float:nth-child(1) {
    top: 20%;
    right: 30%;
    animation-delay: 0s;
}

.hero-float:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    width: 14px;
    height: 14px;
}

.hero-float:nth-child(3) {
    top: 40%;
    right: 45%;
    animation-delay: 4s;
    width: 10px;
    height: 10px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ---------- Categories Grid ---------- */
.categories {
    padding: 100px 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    gap: 20px;
    justify-content: center;
}

.cat-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card:hover img {
    transform: scale(1.08);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(74, 14, 26, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.cat-card-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.cat-card-overlay span {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- Product Cards Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ivory-dark);
}

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

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--crimson);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.product-wishlist:hover {
    color: var(--crimson);
    background: var(--white);
}

.product-card-body {
    padding: 20px;
}

.product-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--deep-maroon);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-body .category-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: var(--gold);
    font-size: 0.85rem;
}

.product-rating .count {
    color: var(--text-light);
    font-size: 0.8rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price .current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--crimson);
}

.product-price .original {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price .discount {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

.product-card .btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.product-card .btn-add-cart:hover {
    background: linear-gradient(135deg, var(--crimson-light), var(--crimson));
    box-shadow: 0 4px 15px rgba(139, 26, 43, 0.3);
}

/* ---------- Featured Carousel ---------- */
.featured {
    padding: 100px 0;
    background: var(--white);
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crimson);
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--deep-maroon), var(--crimson-dark));
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(201,168,76,0.08)'/%3E%3C/svg%3E");
}

.testimonials .section-title h2 {
    color: var(--white);
}

.testimonials .section-title h2::after {
    color: var(--gold-light);
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-marquee {
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 24px;
    animation: testimonialScroll 15s linear infinite;
    width: max-content;
}

.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 16px;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--deep-maroon);
    font-size: 1.1rem;
}

.testimonial-info h5 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-info span {
    color: var(--gold-light);
    font-size: 0.8rem;
}

/* ---------- Newsletter ---------- */
.newsletter {
    padding: 80px 0;
    background: var(--ivory-dark);
}

.newsletter-inner {
    background: linear-gradient(135deg, var(--crimson), var(--deep-maroon));
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--gold);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--deep-maroon);
    border-color: var(--gold);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ---------- Shop Page Layout ---------- */
.page-header {
    margin-top: var(--nav-height);
    padding: 60px 0;
    background: linear-gradient(135deg, var(--deep-maroon), var(--crimson));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 8px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: var(--gold-light);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 48px 0;
}

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--deep-maroon);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group label:hover {
    color: var(--crimson);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    accent-color: var(--crimson);
    width: 16px;
    height: 16px;
}

.price-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-range input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
}

.price-range input:focus {
    border-color: var(--gold);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-toolbar .result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shop-toolbar select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.shop-toolbar select:focus {
    border-color: var(--gold);
}

/* ---------- Product Detail Page ---------- */
.product-detail {
    margin-top: var(--nav-height);
    padding: 48px 0 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--ivory-dark);
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
    border-color: var(--crimson);
    opacity: 1;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.product-info .product-category {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.product-info .product-rating {
    margin-bottom: 20px;
}

.product-info .product-price {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.product-info .product-price .current {
    font-size: 2rem;
}

.product-info .product-price .original {
    font-size: 1.1rem;
}

.size-selector,
.color-selector {
    margin-bottom: 24px;
}

.size-selector h4,
.color-selector h4,
.quantity-selector h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 48px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    text-align: center;
}

.size-btn:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}

.size-btn.active {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.color-btn.active,
.color-btn:hover {
    outline-color: var(--crimson);
}

.quantity-selector {
    margin-bottom: 28px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.qty-control button {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--ivory-dark);
    color: var(--crimson);
}

.qty-control input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.product-actions .btn {
    flex: 1;
}

/* Product Tabs */
.product-tabs {
    margin-top: 48px;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 0;
}

.tab-header {
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    cursor: pointer;
}

.tab-header:hover {
    color: var(--crimson);
}

.tab-header.active {
    color: var(--crimson);
    border-bottom-color: var(--crimson);
}

.tab-content {
    display: none;
    padding: 8px 0;
    line-height: 1.9;
    color: var(--text-secondary);
}

.tab-content.active {
    display: block;
}

/* ---------- Cart Page ---------- */
.cart-page {
    margin-top: var(--nav-height);
    padding: 48px 0 80px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.cart-item-img {
    width: 100px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ivory-dark);
}

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

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cart-item-info .meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.cart-item-info .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--crimson);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-actions .remove-btn {
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* Order Summary Sidebar */
.order-summary {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.order-summary h3 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-maroon);
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
    padding-top: 16px;
}

.free-shipping-note {
    background: rgba(45, 122, 79, 0.08);
    color: var(--success);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin: 16px 0;
    text-align: center;
}

/* ---------- Checkout Page ---------- */
.checkout-page {
    margin-top: var(--nav-height);
    padding: 48px 0 80px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.step.active {
    color: var(--crimson);
}

.step.active .step-num {
    background: var(--crimson);
    color: var(--white);
}

.step.completed .step-num {
    background: var(--success);
    color: var(--white);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    align-self: center;
}

.step-connector.completed {
    background: var(--success);
}

.checkout-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-section h3 {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error {
    border-color: var(--error);
}

.form-group .error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Payment Methods */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--gold);
}

.payment-option.selected {
    border-color: var(--crimson);
    background: rgba(139, 26, 43, 0.04);
}

.payment-option input {
    accent-color: var(--crimson);
    width: 18px;
    height: 18px;
}

.payment-option .payment-icon {
    font-size: 1.5rem;
}

.payment-option .payment-name {
    font-weight: 600;
}

.payment-option .payment-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Order Confirmation */
.order-confirmation {
    text-align: center;
    padding: 60px 0;
}

.order-confirmation .checkmark {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.order-confirmation h2 {
    color: var(--success);
    margin-bottom: 12px;
}

.order-number {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.order-number strong {
    color: var(--crimson);
    font-size: 1.2rem;
}

/* ---------- About Page ---------- */
.about-hero {
    margin-top: var(--nav-height);
    padding: 100px 0;
    background: linear-gradient(135deg, var(--deep-maroon), var(--crimson));
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-story {
    padding: 80px 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-text h2 {
    margin-bottom: 20px;
}

.about-story-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-story-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about-story-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.why-choose {
    padding: 80px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.why-card .icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(139, 26, 43, 0.08), rgba(201, 168, 76, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.why-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px 0;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 26, 43, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--crimson);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: var(--ivory-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ---------- 404 Page ---------- */
.page-404 {
    margin-top: var(--nav-height);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
}

.page-404 h1 {
    font-size: 8rem;
    color: var(--crimson);
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--crimson), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-404 h2 {
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    min-width: 280px;
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ---------- Loading Spinner ---------- */
.spinner-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--crimson);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination button:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}

.pagination button.active {
    background: var(--crimson);
    color: var(--white);
    border-color: var(--crimson);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .hero-img {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        padding: 48px 32px;
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        display: none;
    }

    .filter-sidebar.open {
        display: block;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-story-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }

    .nav-search {
        display: none;
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-logo {
        font-size: 1.15rem;
        gap: 6px;
        white-space: nowrap;
    }

    .nav-logo .dot {
        width: 8px;
        height: 8px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-actions button,
    .nav-actions a {
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
    }

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

    .hero-content {
        padding: 40px 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }

    .newsletter-inner {
        padding: 40px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .checkout-steps {
        flex-wrap: wrap;
    }

    .step-connector {
        width: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-item-actions {
        flex-direction: row;
    }

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

    .page-404 h1 {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .product-actions {
        flex-direction: column;
    }

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

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] {
    --ivory: #121212;
    --ivory-dark: #1a1a1a;
    --white: #1e1e1e;
    --text-primary: #e8e0d8;
    --text-secondary: #a89e96;
    --text-light: #786e66;
    --border-color: #2e2828;
    --deep-maroon: #e8c8a0;
    --dark-bg: #0a0a0a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid #2e2828;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(18, 18, 18, 0.98);
}

[data-theme="dark"] .nav-search {
    background: #1a1a1a;
    border-color: #2e2828;
}

[data-theme="dark"] .nav-search:focus-within {
    border-color: var(--gold);
    background: #252525;
}

[data-theme="dark"] .nav-search input {
    color: #e8e0d8;
}

[data-theme="dark"] .nav-toggle span {
    background: #e8e0d8;
}

[data-theme="dark"] .cart-badge {
    border-color: #121212;
}

[data-theme="dark"] .product-card {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

[data-theme="dark"] .product-card-img {
    background: #252525;
}

[data-theme="dark"] .product-wishlist {
    background: rgba(30, 30, 30, 0.9);
    color: #786e66;
}

[data-theme="dark"] .product-wishlist:hover {
    background: #2a2a2a;
    color: var(--crimson-light);
}

[data-theme="dark"] .testimonial-card {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

[data-theme="dark"] .newsletter-inner {
    background: linear-gradient(135deg, #1a0a10, #2a1018);
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e8e0d8;
}

[data-theme="dark"] .footer {
    background: #0a0a0a;
}

[data-theme="dark"] .footer-col a {
    color: #a89e96;
}

[data-theme="dark"] .footer-col a:hover {
    color: var(--gold);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0a0508, #1a0a12);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1a1a1a;
    color: #e8e0d8;
    border-color: #2e2828;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--gold);
}

[data-theme="dark"] .contact-form-box {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

[data-theme="dark"] .contact-info-card {
    background: #1e1e1e;
    border-color: #2e2828;
}

[data-theme="dark"] .about-image-box::after,
[data-theme="dark"] .about-values-card {
    background: #1e1e1e;
    border-color: #2e2828;
}

[data-theme="dark"] .shop-filters {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

[data-theme="dark"] .cart-table th {
    background: #1a1a1a;
}

[data-theme="dark"] .cart-table td {
    border-color: #2e2828;
}

[data-theme="dark"] .cart-summary {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

[data-theme="dark"] .checkout-form {
    background: #1e1e1e;
    border: 1px solid #2e2828;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--ivory-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--gold);
    color: var(--deep-maroon);
    border-color: var(--gold);
    transform: rotate(30deg);
}

[data-theme="dark"] .theme-toggle {
    background: #252525;
    border-color: #3a3a3a;
    color: var(--gold);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gold);
    color: #121212;
}

/* ============================================================
   GOOGLE AUTH — Sign In Button & User Dropdown
   ============================================================ */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-signin-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.google-signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--crimson);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* User Avatar Button */
.user-auth-wrapper {
    position: relative;
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initials {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transition: all 0.2s ease;
    z-index: 1100;
    overflow: hidden;
}

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

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-dropdown-avatar span {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.user-dropdown-info {
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--deep-maroon);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.user-dropdown-item:hover {
    background: var(--ivory-dark);
    color: var(--crimson);
}

.dropdown-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.user-dropdown-logout {
    color: var(--error);
}

.user-dropdown-logout:hover {
    background: rgba(196, 56, 79, 0.08);
    color: var(--error);
}

/* Dark mode overrides */
[data-theme="dark"] .google-signin-btn {
    background: #1e1e1e;
    color: #e8e0d8;
    border-color: #3a3a3a;
}

[data-theme="dark"] .user-dropdown {
    background: #1e1e1e;
    border-color: #2e2828;
}

[data-theme="dark"] .user-dropdown-item:hover {
    background: #252525;
}

[data-theme="dark"] .user-dropdown-divider {
    background: #2e2828;
}

/* Responsive — icon-only on mobile */
@media (max-width: 768px) {
    .google-signin-btn {
        padding: 8px;
        font-size: 0;
        gap: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
    }

    .google-signin-btn .google-icon {
        width: 20px;
        height: 20px;
    }

    .nav-actions {
        gap: 8px;
    }
}