﻿/* ========================================================================
   Reeron â€” Showcase Website Styles
   Clean white / warm ivory luxury jewelry theme
   ======================================================================== */

/* ----- CSS Custom Properties â€” Light Mode (default) ----- */
:root {
    /* Colors â€” clean white palette with warm undertones */
    --color-bg: #faf9f7;
    --color-bg-elevated: #f4f2ee;
    --color-bg-card: #ffffff;
    --color-surface: #f0ede7;
    --color-white: #ffffff;

    --color-gold: #8b6914;
    --color-gold-light: #a47d1e;
    --color-gold-dark: #6b5010;
    --color-gold-bg: #f5f0e4;
    --color-rose: #9e5a63;

    --color-text: #1e1b16;
    --color-text-muted: #5e574e;
    --color-text-subtle: #9b958d;

    --color-border: #e8e4dd;
    --color-border-hover: #d4cfc5;

    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-border: var(--color-border);
    --mobile-nav-bg: rgba(255, 255, 255, 0.97);

    /* Hero overlay */
    --hero-overlay: linear-gradient(180deg,
            rgba(255, 255, 255, 0.70) 0%,
            rgba(250, 249, 247, 0.40) 40%,
            rgba(250, 249, 247, 0.55) 70%,
            rgba(250, 249, 247, 0.85) 100%);

    /* Product image overlay */
    --product-overlay-bg: rgba(30, 27, 22, 0.25);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Misc */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.08);
}

/* ----- Dark Mode ----- */
[data-theme="dark"] {
    --color-bg: #0f0e0c;
    --color-bg-elevated: #1a1816;
    --color-bg-card: #1e1c19;
    --color-surface: #252320;
    --color-white: #1e1c19;

    --color-gold: #c9a84c;
    --color-gold-light: #dbb95e;
    --color-gold-dark: #a88a3a;
    --color-gold-bg: #1f1c14;
    --color-rose: #c47a84;

    --color-text: #f0ede7;
    --color-text-muted: #b5aea4;
    --color-text-subtle: #7a7470;

    --color-border: #2e2b27;
    --color-border-hover: #3d3a35;

    --navbar-bg: rgba(15, 14, 12, 0.92);
    --navbar-border: var(--color-border);
    --mobile-nav-bg: rgba(15, 14, 12, 0.97);

    --hero-overlay: linear-gradient(180deg,
            rgba(15, 14, 12, 0.65) 0%,
            rgba(15, 14, 12, 0.35) 40%,
            rgba(15, 14, 12, 0.50) 70%,
            rgba(15, 14, 12, 0.85) 100%);

    --product-overlay-bg: rgba(0, 0, 0, 0.35);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* Smooth theme transition for all elements */
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ----- Theme Toggle Button ----- */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold);
    transition: all var(--transition);
    padding: 0;
    flex-shrink: 0;
}

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

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

/* Show/hide icon based on theme */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

/* Dark mode: product image bg */
[data-theme="dark"] .product-image-wrapper {
    background: var(--color-surface);
}

/* Dark mode: hero overlay tweak */
[data-theme="dark"] .hero-title em {
    -webkit-text-fill-color: transparent;
}

/* Dark mode: view detail button */
[data-theme="dark"] .view-detail {
    color: #f0ede7;
    border-color: rgba(240, 237, 231, 0.6);
}

/* Dark mode: footer logo invert */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo-img {
    filter: invert(1) brightness(1.2);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* ----- Logo Image ----- */
.logo-img {
    height: 64px;
    width: auto;
    display: block;
    transition: opacity var(--transition);
}

.logo:hover .logo-img {
    opacity: 0.65;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

/* Left nav links */
.nav-links-left {
    display: flex;
    gap: var(--space-xl);
    flex: 1;
    justify-content: flex-end;
}

/* Right group: links + theme toggle */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex: 1;
    justify-content: flex-start;
}

.nav-links-right {
    display: flex;
    gap: var(--space-xl);
}

/* Center logo */
.logo {
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/static/img/hero.png?v=2') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl);
    max-width: 700px;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

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

.hero-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    font-weight: 300;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--color-text);
    color: var(--color-white);
    border: 1px solid var(--color-text);
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.2);
}

.btn-buy {
    padding: 0.85rem 1.8rem;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    margin-top: auto;
    align-self: flex-start;
}

.btn-buy:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.2);
}

.btn-buy svg {
    transition: transform var(--transition);
}

.btn-buy:hover svg {
    transform: translate(2px, -2px);
}

.btn-buy-large {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 2rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    margin-top: var(--space-2xl);
}

/* ----- Section Common ----- */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--color-text);
}

.section-divider {
    width: 50px;
    height: 1.5px;
    background: var(--color-gold);
    margin: var(--space-lg) auto 0;
}

/* ----- Product Cards ----- */
.products-section {
    background: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* Product Card - Perfect Alignment */
.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 5;
    padding: 0.3rem 0.9rem;
    background: #8b6914;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
}

.product-discount-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 5;
    padding: 0.3rem 0.9rem;
    background: #8b6914;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--space-lg);
}

.product-price-original {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-price-discounted {
    color: #e53935;
    margin-bottom: 0;
}

.product-image-link {
    display: block;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg);
}

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

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

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 27, 22, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.view-detail {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

.product-info {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
    display: block;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.product-name a:hover {
    color: var(--color-gold);
}

.product-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

/* ----- About Section ----- */
.about-section {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    max-width: 700px;
    margin-inline: auto;
}

.about-content .section-subtitle,
.about-content .section-title {
    text-align: left;
}

.about-content .section-divider {
    margin-left: 0;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-lg);
    line-height: 1.85;
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

/* ----- Footer ----- */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-tagline {
    color: var(--color-text-subtle);
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
    color: var(--color-text-subtle);
    font-size: 0.8rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
    opacity: 0.7;
    /* Make it look older/previous */
}

/* ----- Product Detail Page ----- */
.product-detail-page {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    min-height: 80vh;
    background: var(--color-white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    font-size: 0.8rem;
    color: var(--color-text-subtle);
}

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

.breadcrumb-sep {
    color: var(--color-text-subtle);
    opacity: 0.4;
}

.breadcrumb-current {
    color: var(--color-text-muted);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.product-detail-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-detail-info {
    padding-top: var(--space-lg);
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text);
    margin: var(--space-sm) 0 var(--space-md);
}

.product-detail-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.product-detail-divider {
    width: 40px;
    height: 1.5px;
    background: var(--color-gold);
    margin: var(--space-xl) 0;
}

.product-detail-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.product-detail-features {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
    padding: 2rem 0.7rem 5px;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.feature-icon {
    color: var(--color-gold);
    font-size: 22px;
    flex-shrink: 0;
}

.shopier-note {
    text-align: left;
    font-size: 0.78rem;
    color: var(--color-text-subtle);
    margin-top: 15px;
    padding: 0 1.5rem;
}

/* ----- Product Image Gallery ----- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.gallery-image-hidden {
    display: none !important;
}

.product-detail-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gallery-thumbnails {
    display: flex;
    gap: var(--space-sm);
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 80px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.gallery-thumb:hover {
    border-color: var(--color-gold-light);
}

.gallery-thumb.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 1px var(--color-gold);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.thumb-label {
    display: block;
    padding: 4px 0;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    background: var(--color-white);
    transition: color var(--transition);
}

.gallery-thumb.active .thumb-label {
    color: var(--color-gold);
}

/* ===== SCROLL ANIMATIONS SYSTEM ===== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(139, 105, 20, 0.4);
}

/* Base reveal animation */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

/* Direction variants */
.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-rotate {
    transform: translateY(30px) rotate(2deg);
}

/* Legacy fade-in (still supported) */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays â€” generic */
.stagger-1 {
    transition-delay: 0ms !important;
}

.stagger-2 {
    transition-delay: 80ms !important;
}

.stagger-3 {
    transition-delay: 160ms !important;
}

.stagger-4 {
    transition-delay: 240ms !important;
}

.stagger-5 {
    transition-delay: 320ms !important;
}

.stagger-6 {
    transition-delay: 400ms !important;
}

.stagger-7 {
    transition-delay: 480ms !important;
}

.stagger-8 {
    transition-delay: 560ms !important;
}

.stagger-9 {
    transition-delay: 640ms !important;
}

.stagger-10 {
    transition-delay: 720ms !important;
}

/* Stagger product cards */
.product-card.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.product-card.reveal:nth-child(2) {
    transition-delay: 100ms;
}

.product-card.reveal:nth-child(3) {
    transition-delay: 200ms;
}

.product-card.reveal:nth-child(4) {
    transition-delay: 300ms;
}

.product-card.reveal:nth-child(5) {
    transition-delay: 400ms;
}

.product-card.reveal:nth-child(6) {
    transition-delay: 500ms;
}

/* Stagger category cards */
.category-card.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.category-card.reveal:nth-child(2) {
    transition-delay: 100ms;
}

.category-card.reveal:nth-child(3) {
    transition-delay: 200ms;
}

.category-card.reveal:nth-child(4) {
    transition-delay: 300ms;
}

.category-card.reveal:nth-child(5) {
    transition-delay: 400ms;
}

/* Stagger stats */
.stat.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.stat.reveal:nth-child(2) {
    transition-delay: 150ms;
}

.stat.reveal:nth-child(3) {
    transition-delay: 300ms;
}

/* Parallax hero */
.hero.parallax-active {
    background-attachment: fixed;
}

/* Hero text float effect */
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-desc,
.hero-content .btn {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Floating decorative shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background: var(--color-gold);
}

.floating-shape-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -100px;
    animation: floatSlow 8s ease-in-out infinite;
}

.floating-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -60px;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.floating-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    animation: floatSlow 12s ease-in-out infinite 2s;
}

@keyframes floatSlow {

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

    25% {
        transform: translate(15px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(-10px, -35px) rotate(-3deg);
    }

    75% {
        transform: translate(20px, -15px) rotate(4deg);
    }
}

/* Divider grow animation */
.section-divider {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.section-header.visible .section-divider,
.about-content.visible .section-divider {
    transform: scaleX(1);
}

/* Counter animation number style */
.stat-number {
    display: inline-block;
    overflow: hidden;
}

/* 3D tilt container */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

.tilt-card .product-image-wrapper,
.tilt-card .product-info {
    transition: transform 0.3s ease-out;
}

/* Smooth scroll snap for about stats */
.about-stats .stat {
    position: relative;
}

.about-stats .stat::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.6s ease-out;
}

.about-stats .stat.visible::after {
    width: 100%;
}

/* Image zoom reveal */
.product-image-wrapper .product-image {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.product-card.reveal:not(.visible) .product-image {
    filter: blur(2px);
    transform: scale(1.08);
}

.product-card.reveal.visible .product-image {
    filter: blur(0);
    transform: scale(1);
}

/* Text highlight animation */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-title em {
    background: linear-gradient(90deg,
            var(--color-gold) 0%,
            var(--color-gold-light) 25%,
            #d4a533 50%,
            var(--color-gold-light) 75%,
            var(--color-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    color: var(--color-gold);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.25);
}

/* ----- Categories Section (Home) ----- */
.categories-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: calc((100% - 4 * var(--space-xl)) / 5);
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}

.category-card:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 50px rgba(139, 105, 20, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* ----- Category Image â€” Fullcover with hover zoom ----- */
.category-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    will-change: transform;
}

.category-card:hover .category-img {
    transform: translateZ(0) scale(1.08);
}

/* Hover overlay â€” "Ä°ncele" text */
.category-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.category-overlay-text {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

/* Dark gradient at bottom for text readability */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* ----- Category Content ----- */
.category-content {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 0 var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-line {
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    margin-bottom: var(--space-xs);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.category-card:hover .category-line {
    width: 40px;
}

.category-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.category-card:hover .category-name {
    transform: translateY(-4px) scale(1.05);
    letter-spacing: 0.18em;
}

.category-arrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Category Page ----- */
.category-page {
    padding-top: 100px;
    padding-bottom: var(--space-3xl);
    min-height: 80vh;
    background: var(--color-white);
}

.category-page-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.category-page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--color-text);
}

.category-page-count {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    flex-shrink: 0;
    padding: 0.55rem 1.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.category-tab.active {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--color-text-subtle);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-stats {
        gap: var(--space-xl);
    }

    .categories-grid {
        gap: var(--space-lg);
    }

    .category-card {
        width: calc((100% - 2 * var(--space-lg)) / 3);
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        justify-content: space-between;
        gap: 0;
    }

    .nav-group-left,
    .nav-right {
        flex: initial;
        margin: 0;
        gap: var(--space-sm);
    }

    .nav-group-left {
        display: none;
        /* Hide left desktop group on mobile */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links-left,
    .nav-right {
        display: none;
    }

    .nav-links-left.open,
    .nav-links-right.open {
        display: flex;
    }

    .navbar-inner {
        justify-content: space-between;
    }

    /* Mobile menu overlay â€” both link groups merge into one panel */
    .nav-links-left.open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        z-index: 999;
    }

    .nav-links-right.open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        z-index: 999;
        padding-top: calc(50vh + 40px);
    }

    .nav-links-left.open {
        padding-bottom: calc(50vh - 20px);
    }

    /* Keep the nav-right wrapper visible for theme toggle */
    .nav-right {
        display: flex;
    }

    .nav-right .nav-links-right {
        display: none;
    }

    .nav-right .nav-links-right.open {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-lg);
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .product-detail-features {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-content {
        padding: var(--space-lg);
    }

    .categories-grid {
        gap: var(--space-md);
    }

    .category-card {
        width: calc((100% - var(--space-md)) / 2);
    }

    .category-card {
        padding: var(--space-lg) var(--space-md);
    }

    .category-page-header {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        width: calc((100% - var(--space-md)) / 2);
    }
}

/* ----- Inline Navbar Search ----- */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gold);
    transition: all var(--transition);
    padding: 0;
    flex-shrink: 0;
    z-index: 2;
}

.search-toggle:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

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

.search-toggle svg {
    width: 18px;
    height: 18px;
}

/* Expandable input - Now opens to the RIGHT */
.search-input-box {
    position: absolute;
    left: 0;
    /* Changed from right: 0 to expand rightwards */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    /* overflow: hidden; */
    /* Allow dropdown visibility */
    width: 36px;
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.25s ease,
        box-shadow 0.3s ease;
    z-index: 1;
    box-shadow: none;
}

.nav-search.active .search-input-box {
    width: 220px;
    /* Reduced width as requested */
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-card);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-text);
    outline: none;
    padding: 0.5rem 0.75rem 0.5rem 2.8rem;
    /* Increased left padding to clear the button */
    min-width: 0;
}

.search-input::placeholder {
    color: var(--color-text-subtle);
    font-size: 0.78rem;
}

/* Navbar Layout Consolidation */
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-group-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-right: 0.8rem;
    /* Even closer to logo */
}

.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-left: 0.8rem;
    /* Even closer to logo */
}

.nav-links-left,
.nav-links-right {
    flex: none;
    display: flex;
    gap: 2rem;
    /* Increased gap between individual links */
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-toggle {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-gold);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-subtle);
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    flex-shrink: 0;
}

.search-close:hover {
    color: var(--color-text);
}

.search-close svg {
    width: 14px;
    height: 14px;
}

/* Search Dropdown - Now relative to the expanding box */
.search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 380px;
    max-height: 450px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

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

/* Search Results */
.search-results {
    max-height: 380px;
    overflow-y: auto;
    padding: var(--space-xs) 0;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.search-result-group-label {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--color-surface);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-icon.category-icon {
    background: var(--color-gold-bg);
    color: var(--color-gold);
}

.search-result-icon.category-icon svg {
    width: 16px;
    height: 16px;
}

.search-result-icon.product-icon {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
}

.btn-buy {
    width: fit-content;
    /* Only as wide as its content */
    margin-top: auto;
    /* Push button to the very bottom */
    padding: 0.6rem 4.2rem;
    font-size: 0.9rem;
}

.search-result-icon.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.68rem;
    color: var(--color-text-subtle);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.4rem;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    background: var(--color-gold);
    color: #fff;
}

.search-result-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
    margin-left: auto;
}

.search-no-results {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--color-text-subtle);
    font-size: 0.85rem;
}

.search-no-results svg {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-sm);
    color: var(--color-text-subtle);
    opacity: 0.4;
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .nav-search.active .search-input-box {
        width: 220px;
    }

    .search-dropdown {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .nav-search.active .search-input-box {
        width: 180px;
    }

    .search-dropdown {
        width: 260px;
        right: -10px;
    }
}

/* View More Button - Styled like Buy Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.view-more-container .btn-view-more {
    padding: 0.9rem 2.5rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-text);
    /* Black in light mode, white in dark mode */
    color: var(--color-bg);
    /* White in light mode, black in dark mode */
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border: 1px solid var(--color-text);
}

.view-more-container .btn-view-more:hover {
    background: transparent;
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.view-more-container .btn-view-more svg {
    transition: transform 0.3s ease;
}

.view-more-container .btn-view-more:hover svg {
    transform: translate(3px, -3px);
}

/* ===== ENHANCED GALLERY NAVIGATION ===== */
.product-detail-image-wrapper {
    position: relative;
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .gallery-nav {
    background: rgba(30, 28, 25, 0.8);
    border-color: var(--color-border);
    color: var(--color-white);
}

.product-detail-image-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: var(--space-md);
}

.gallery-nav-next {
    right: var(--space-md);
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2010;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-gold);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2010;
}

.lightbox-nav:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav svg {
    width: 30px;
    height: 30px;
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2010;
}

.lightbox-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.lightbox-controls button:hover {
    color: var(--color-gold);
    transform: scale(1.2);
}

.lightbox-controls svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}
/* ========================================================================
   REERON MASTER RESPONSIVE FIX (WEB & MOBILE)
   ======================================================================== */

/* 1. Masaüstünde (Web) Mobil Elemanları Gizle */
.nav-mobile-actions, .mobile-search-toggle, .mobile-search-modal, .drawer-overlay, .mobile-drawer {
    display: none;
}

@media (max-width: 992px) {
    /* 2. Navbar Düzeni: Logo Sol, Arama & Hamburger Sağ */
    .navbar-inner {
        position: relative !important;
        display: flex !important;
        justify-content: flex-start !important;
        min-height: 70px !important;
        padding: 0 15px !important;
    }

    .logo {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        display: block !important;
    }

    .logo-img { height: 40px !important; }

    .nav-mobile-actions {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        align-items: center !important;
        gap: 15px !important;
        border: none !important;
    }

    .mobile-search-toggle { display: flex !important; background: none; border: none; padding: 0; color: var(--color-gold); }
    .mobile-search-toggle svg { width: 22px; height: 22px; }

    .nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 30px !important;
        background: none; border: none; padding: 0;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); }

    /* Masaüstü Linklerini Kapat */
    .nav-group-left, .nav-right, .nav-links-left, .nav-links-right, .nav-search, .theme-toggle { display: none !important; }

    /* 3. Mobil Drawer (Sağdan Çıkan Menü) */
    .mobile-drawer {
        display: flex !important;
        position: fixed; top: 0; right: -100%; 
        width: 65%; max-width: 280px; height: 100vh;
        background: var(--color-bg-card); z-index: 3000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        flex-direction: column; padding: 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .mobile-drawer.active { right: 0 !important; }

    .drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 30px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    .drawer-logo { height: 28px !important; }
    .drawer-close { background: none; border: none; font-size: 28px; color: var(--color-text); cursor: pointer; }

    .drawer-nav { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .drawer-link {
        display: block !important;
        font-size: 1.1rem !important;
        padding: 15px 0 !important;
        color: var(--color-text) !important;
        border-bottom: 1px solid var(--color-border) !important;
        text-decoration: none !important;
    }
    .drawer-nav a:last-of-type { border-bottom: none !important; }

    .drawer-footer { margin-top: auto; padding-top: 20px; opacity: 0.5; text-align: center; }

    /* 4. Arama Modalı */
    .mobile-search-modal {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--color-bg-card); z-index: 4000; flex-direction: column; padding: 20px;
    }
    .mobile-search-modal.active { display: flex !important; }
    .mobile-search-header { display: flex; align-items: center; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--color-border); }
    .mobile-search-input { flex: 1; background: var(--color-bg); border: 1px solid var(--color-border); padding: 12px; border-radius: 8px; color: var(--color-text); }
    .mobile-search-results { flex: 1; overflow-y: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
    .mobile-search-item { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 10px; background: var(--color-bg); border-radius: 8px; }
    .mobile-search-item .item-img { width: 45px; height: 45px; border-radius: 4px; overflow: hidden; }
    .mobile-search-item .item-img img { width: 100%; height: 100%; object-fit: cover; }
    .category-label { background: var(--color-gold); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: bold; }
    
    .drawer-overlay {
        display: block !important; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2999;
        opacity: 0; visibility: hidden; transition: all 0.3s ease;
    }
    .drawer-overlay.active { opacity: 1 !important; visibility: visible !important; }
}
/* Arama Pop-up Buton ve İkon İnce Ayarı */
@media (max-width: 992px) {
    .mobile-search-close {
        background: none !important;
        border: none !important;
        font-size: 32px !important; /* X butonu artık büyük ve net */
        color: var(--color-text) !important;
        padding: 0 10px !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .category-icon-placeholder svg {
        width: 30px !important; /* İkonu biraz küçülttük */
        height: 30px !important;
        color: var(--color-text) !important;
    }

    .mobile-search-header {
        padding-top: 10px !important;
    }
}
/* Arama ve Hamburger Butonu Arasını Açma */
@media (max-width: 992px) {
    .nav-mobile-actions {
        gap: 25px !important; /* Boşluğu 15'ten 25'e çıkardım */
    }
}
/* Mobil Menü Başlık Düzeni (Logo - Tema - Çarpı) */
@media (max-width: 992px) {
    .drawer-header {
        display: flex !important;
        justify-content: flex-start !important; /* Her şeyi sola yasla */
        align-items: center !important;
        gap: 20px !important; /* Elemanlar arası boşluk */
    }

    .drawer-close {
        margin-left: auto !important; /* Çarpıyı en sağa it */
        padding: 0 5px !important;
    }

    .theme-toggle-mobile {
        background: none !important;
        border: none !important;
        color: var(--color-text) !important;
        font-size: 1.1rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px !important;
    }
}
/* Gece Modunda Logo ve Buton Görünürlüğü */
[data-theme="dark"] .drawer-logo,
[data-theme="dark"] .logo-img {
    filter: invert(1) brightness(200%) !important; /* Logoyu bembeyaz yapar */
}

[data-theme="dark"] .theme-toggle-mobile,
[data-theme="dark"] .drawer-close {
    color: #fff !important; /* Gece modunda simgeleri beyaz yap */
}

/* Butonun her zaman belirgin olması için (isteğe bağlı altın rengi) */
.theme-toggle-mobile i {
    color: var(--color-gold) !important; 
    font-size: 1.2rem !important;
}
/* Gece Modu Butonu Görünürlük Garantisi */
.theme-toggle-mobile {
    color: var(--color-gold) !important; /* Her zaman altın rengi olsun */
    min-width: 40px !important;
    min-height: 40px !important;
    z-index: 9999 !important;
}

.theme-toggle-mobile i {
    color: var(--color-gold) !important;
    font-size: 1.4rem !important; /* Daha büyük ve belirgin */
    display: block !important;
}

/* Gece modunda da parlamaya devam etsin */
[data-theme="dark"] .theme-toggle-mobile i {
    color: var(--color-gold) !important;
}
/* Mobil Tema Emoji Düzenlemesi */
.theme-emoji {
    font-size: 1.5rem !important;
    display: inline-block !important;
    line-height: 1 !important;
    filter: none !important; /* Logoya verdiğimiz invert emojiyi bozmasın */
}
/* Mobil Gece Modu İkonu — FontAwesome Tutarlılığı */
.theme-toggle-mobile i {
    color: var(--color-gold) !important;
    font-size: 1.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    filter: none !important;
}

[data-theme="dark"] .theme-toggle-mobile i {
    color: var(--color-gold) !important; /* Gece modunda da altın kalsın */
}
/* Garantili Mobil SVG Simge Stilleri */
.theme-icon-wrapper svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--color-gold) !important;
    display: block !important;
}

.theme-toggle-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
}