/* Premium Rolex-inspired Styles */
:root {
    --primary: #006039;
    --primary-dark: #004d2c;
    --secondary: #C4A484;
    --secondary-light: #e6d5c3;
    --accent: #1A1A1A;
    --light: #F8F8F8;
    --dark: #0A0A0A;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --nav-offset: 96px;
}

/* Brand utility helpers */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-dark { background-color: var(--dark); }
.bg-light { background-color: var(--light); }
.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-primary:hover { background-color: var(--primary); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--accent);
    background-color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.home-ui {
    background: radial-gradient(circle at 10% 10%, rgba(196, 164, 132, 0.18), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(0, 96, 57, 0.12), transparent 40%),
    #ffffff;
}

body.page-glass {
    background: radial-gradient(circle at 5% 10%, rgba(196, 164, 132, 0.18), transparent 35%),
    radial-gradient(circle at 95% 5%, rgba(0, 96, 57, 0.12), transparent 40%),
    #ffffff;
}

.page-glass .bg-white {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.page-glass .shadow-sm {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-glass .breadcrumb {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    backdrop-filter: blur(12px);
}

.page-glass .breadcrumb a,
.page-glass .breadcrumb span {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.glass-alert {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
}

body.has-mobile-tabs {
    padding-bottom: 5rem;
}

body > footer {
    margin-top: auto;
}

.page-offset {
    padding-top: var(--nav-offset);
}

.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(6px);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 95vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.35s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.drawer:hover {
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
}

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

.drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-open {
    overflow: hidden;
}

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

.drawer-eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray);
}

.drawer-title {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.drawer-close {
    border: 1px solid var(--gray-light);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.drawer-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

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

.drawer-summary {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.drawer-actions {
    display: grid;
    gap: 0.75rem;
}

.drawer-empty {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--gray-light);
    border-radius: 12px;
    background: var(--light);
}

.drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.drawer-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.drawer-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.drawer-item-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.drawer-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    overflow: hidden;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-weight: 600;
}

.qty-control input {
    width: 36px;
    text-align: center;
    border: none;
    font-size: 0.85rem;
    background: transparent;
}

.account-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.account-name {
    font-weight: 700;
    word-break: break-word;
}

.account-email {
    font-size: 0.85rem;
    color: var(--gray);
    word-break: break-word;
}

.account-links {
    display: grid;
    gap: 0.5rem;
}

.account-link {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    word-break: break-word;
}

.drawer-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.drawer-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
}

.drawer-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.account-form {
    display: grid;
    gap: 1rem;
}

.account-form.hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-input {
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
}

.account-message {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
}

.notification {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1100;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--accent);
}

.notification.success {
    border-color: rgba(16, 185, 129, 0.4);
    color: #065f46;
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: #991b1b;
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 0.8fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-price,
.cart-total {
    font-weight: 600;
}

.cart-qty {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .cart-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cart-price,
    .cart-total,
    .cart-qty,
    .cart-remove-col {
        justify-self: start;
    }
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 96, 57, 0.2);
}

.btn-glass {
    box-shadow: 0 14px 30px rgba(0, 96, 57, 0.25);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Premium Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.shadow {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-light);
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.5rem 0.25rem;
    z-index: 950;
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: var(--gray);
    text-decoration: none;
}

.mobile-tab svg {
    color: var(--accent);
}

.mobile-tab-badge {
    position: absolute;
    top: 0.2rem;
    right: 1.3rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    font-size: 0.6rem;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .mobile-tabs {
        display: grid;
    }

    body {
        padding-bottom: 70px;
    }
}

.navbar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.nav-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 96, 57, 0.15);
}

.nav-search-icon {
    color: var(--gray);
    display: inline-flex;
    align-items: center;
}

.nav-search-input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    background: transparent;
    width: 200px;
}

.nav-search-button {
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.lang-option {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: var(--primary);
    background: rgba(0, 96, 57, 0.08);
}

.lang-option.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(0, 96, 57, 0.25);
}

.nav-search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    display: none;
    z-index: 1001;
}

.nav-search-suggestions.active {
    display: block;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--accent);
}

.nav-search-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray);
    margin: 0.5rem 0.75rem 0.25rem;
}

.nav-search-item:hover {
    background: var(--light);
}

.nav-search-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-search-item-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-search-item-price {
    font-size: 0.75rem;
    color: var(--gray);
}

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s;
}

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

/* Hero Section */
.hero {
    height: min(82vh, 740px);
    min-height: clamp(480px, 68vh, 740px);
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.2)),
    url('/public/assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-offset) + 2rem) 0 3rem;
    box-sizing: border-box;
}

.hero.hero-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 96, 57, 0.35), rgba(10, 10, 10, 0.08), rgba(196, 164, 132, 0.3));
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
}

.hero.hero-glass::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -120px;
    top: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    filter: blur(4px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-panel {
    max-width: min(440px, 100%);
    padding: clamp(1.1rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.8rem);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    margin-bottom: 0.9rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    margin-bottom: clamp(1.2rem, 2.2vw, 2rem);
    max-width: 420px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
    color: var(--gray-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-metric-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Cards */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border-color: rgba(0, 96, 57, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.skeleton-card {
    border: 1px solid var(--gray-light);
    background: #fff;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-gallery .gallery-main {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
}

.product-gallery .gallery-main img {
    transition: transform 0.4s ease;
}

.product-gallery .gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-thumbs img {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.viewer-3d {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
}

.viewer-canvas {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), rgba(240, 240, 240, 0.9));
}

.product-video {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.image-skeleton {
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.image-skeleton.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(243, 244, 246, 0) 0%, rgba(229, 231, 235, 0.9) 50%, rgba(243, 244, 246, 0) 100%);
    animation: shimmer 1.4s infinite;
}

.skeleton-block {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-text {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-card {
    border-radius: 16px;
    overflow: hidden;
}

.skeleton-placeholder {
    display: none;
}

.skeleton-content {
    transition: opacity 0.2s ease;
}

body.is-loading .skeleton-placeholder {
    display: block;
}

body.is-loading .skeleton-content {
    opacity: 0;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 96, 57, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 96, 57, 0.18);
}

/* 3D Viewer */
.viewer-3d {
    width: 100%;
    height: 500px;
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.viewer-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-placeholder {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    padding: 2rem;
    display: grid;
    gap: 1rem;
    width: min(360px, 100%);
}

.viewer-placeholder .skeleton-block {
    height: 180px;
}

.viewer-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.viewer-controls .btn-secondary,
.viewer-controls .btn-view-ar,
.viewer-controls .btn-view-3d {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border: 1px solid rgba(0, 96, 57, 0.2);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.viewer-controls .btn-secondary:hover,
.viewer-controls .btn-view-ar:hover,
.viewer-controls .btn-view-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.collection-filter {
    position: sticky;
    top: 110px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* AI Chat Assistant */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%), var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 16px 35px rgba(0, 96, 57, 0.25);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 96, 57, 0.3);
}

.ai-chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    display: none;
}

.ai-chat-container.active {
    display: flex;
    flex-direction: column;
}

.ai-chat-header {
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(120deg, rgba(0, 96, 57, 0.95), rgba(0, 77, 44, 0.9));
}

.ai-chat-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
}

.ai-chat-input input {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
}

.ai-chat-input button {
    border-radius: 999px;
    font-weight: 600;
}

.ai-chat-messages {
    scroll-behavior: smooth;
}

.ai-chat-action {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ai-chat-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-bubble {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-width: 80%;
    word-break: break-word;
}

.card-brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-brand-pill.is-active {
    background: rgba(0, 96, 57, 0.9);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 96, 57, 0.22);
    transform: translateY(-1px);
}

.ai-chat-input input {
    font-size: 0.9rem;
}

.ai-chat-input button {
    font-size: 0.85rem;
}

.ai-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0.35rem 0 0;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 96, 57, 0.18);
}

.ai-link-btn:hover {
    background: var(--primary-dark);
}

.footer-glass {
    background: linear-gradient(120deg, rgba(0, 96, 57, 0.95), rgba(10, 10, 10, 0.95));
    position: relative;
    overflow: hidden;
}

.footer-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 55%);
    pointer-events: none;
}

.footer-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(14px);
}

.footer-glass .text-gray-400 {
    color: rgba(255, 255, 255, 0.7);
}

.footer-glass a {
    transition: color 0.2s ease;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: var(--light);
}

.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--gray-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 2rem 0;
    overflow-y: auto;
}

.dashboard-content {
    margin-left: 280px;
    padding: 2rem;
    width: calc(100% - 280px);
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: thin;
}

.dashboard-tab-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(248, 250, 252, 0.9);
    color: #374151;
    transition: all 0.2s ease;
}

.dashboard-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: rgba(0, 96, 57, 0.2);
}

.dashboard-panel {
    display: none;
    overflow-x: hidden;
}

.dashboard-panel.active {
    display: block;
}

.dashboard-panel > .glass-card,
.dashboard-panel > .bg-white {
    margin-bottom: 1.5rem;
}

.dashboard-panel > .glass-card:last-child,
.dashboard-panel > .bg-white:last-child {
    margin-bottom: 0;
}

.dashboard-row {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.range-slider {
    position: relative;
    padding-top: 0.75rem;
    --range-start: 0%;
    --range-end: 100%;
}

.range-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--range-start);
    right: calc(100% - var(--range-end));
    background: linear-gradient(90deg, rgba(196, 164, 132, 0.9), rgba(0, 96, 57, 0.9));
    box-shadow: 0 0 16px rgba(196, 164, 132, 0.4);
}

.range-slider input[type="range"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 96, 57, 0.8);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 96, 57, 0.8);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.range-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: auto;
        min-height: 560px;
    }

    .hero-panel {
        max-width: 100%;
        padding: 2rem 1.75rem;
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 480px;
        padding-top: calc(var(--nav-offset) + 1rem);
    }

    .page-glass .pt-24 {
        padding-top: 5.5rem;
    }

    .page-glass .pb-20 {
        padding-bottom: 4.5rem;
    }

    .page-glass .glass-card {
        padding: 1.25rem;
    }

    .hero-panel {
        padding: 1.3rem 1rem;
        border-radius: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.6rem;
    }

    .product-image {
        height: 220px;
    }

    .viewer-3d {
        height: 320px;
    }

    .thumbnails img {
        width: 64px;
        height: 64px;
    }

    .ai-assistant {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }

    .ai-chat-container {
        position: fixed;
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        top: 5rem;
        width: auto;
        height: auto;
        border-radius: 16px;
    }

    .ai-toggle {
        width: 52px;
        height: 52px;
    }

    .ai-bubble {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
    }

    .dashboard-content {
        margin-left: 0;
        width: 100%;
    }

    input,
    select,
    textarea,
    .form-input,
    .ai-chat-input input {
        font-size: 16px;
    }
}
