/* ========================================
   Maxtor Curtain — Liquid Glass Design
   Glassmorphism + Luxury Brand
======================================== */

:root {
    --primary: #8B7355;
    --primary-dark: #6B563F;
    --primary-light: #A68B6A;
    --accent: #C9A86C;
    --accent-light: #E8D5B5;
    --dark: #2C241B;
    --text: #3D3229;
    --text-light: #6B5E52;
    --bg: #E8E0D4;
    --bg-alt: rgba(255, 255, 255, 0.25);
    --white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.45);
    --border-soft: rgba(201, 168, 108, 0.25);
    --success: #4A7C59;
    --danger: #C45C5C;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-dark: rgba(44, 36, 27, 0.55);
    --glass-dark-strong: rgba(44, 36, 27, 0.75);
    --blur: blur(20px);
    --blur-sm: blur(12px);
    --shadow: 0 8px 32px rgba(44, 36, 27, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-lg: 0 16px 48px rgba(44, 36, 27, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 168, 108, 0.15);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-pill: 50px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(201, 168, 108, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(139, 115, 85, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232, 213, 181, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(166, 139, 106, 0.2) 0%, transparent 45%),
        linear-gradient(160deg, #EDE6DC 0%, #E0D5C5 40%, #D4C8B8 100%);
    background-attachment: fixed;
}

/* Floating orbs for liquid depth */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(201, 168, 108, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 18s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 22s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Glass utility */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.glass-strong {
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-lg);
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--glass-dark);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: var(--accent-light);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    margin-right: 20px;
}

.top-bar i {
    margin-right: 6px;
    color: var(--accent);
}

/* ========== HEADER — Liquid Glass ========== */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(44, 36, 27, 0.08);
    position: sticky;
    top: 0;
    z-index: 10050;
    width: 100%;
}
.main-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 6px 28px rgba(44, 36, 27, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.9), rgba(201, 168, 108, 0.95));
    backdrop-filter: blur(8px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo-sub {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
}

.main-nav > ul,
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.main-nav a.active::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    color: var(--dark);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

/* ========== BUTTONS — Glass pills ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.95), rgba(107, 86, 63, 0.98));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 115, 85, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 115, 85, 0.4);
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(139, 115, 85, 0.9);
    color: white;
    border-color: transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-accent {
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.95), rgba(184, 148, 79, 0.98));
    color: white;
    box-shadow: 0 4px 20px rgba(201, 168, 108, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 168, 108, 0.5);
}

.btn-block {
    width: 100%;
}

/* ========== HERO — Liquid glass ========== */
.hero {
    background: linear-gradient(135deg, rgba(44, 36, 27, 0.92) 0%, rgba(74, 60, 46, 0.88) 50%, rgba(107, 86, 63, 0.85) 100%);
    backdrop-filter: blur(4px);
    color: white;
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(201, 168, 108, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(237, 230, 220, 0.15), transparent);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 108, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 108, 0.5);
    color: var(--accent-light);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* ========== PRODUCT CARDS — Glass ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(201, 168, 108, 0.4);
    background: rgba(255, 255, 255, 0.65);
}

.product-image {
    height: 240px;
    background: linear-gradient(145deg, rgba(232, 223, 211, 0.8), rgba(212, 196, 176, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(255, 255, 255, 0.15));
}

.product-image i,
.product-image .product-img-placeholder {
    font-size: 64px;
    color: var(--primary);
    opacity: 0.35;
    position: relative;
    z-index: 1;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.product-image .product-img-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(201, 168, 108, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(201, 168, 108, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-badge.sale {
    background: rgba(196, 92, 92, 0.9);
}

.product-body {
    padding: 22px;
}

.product-category {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-title {
    font-size: 17px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.product-title a:hover {
    color: var(--primary);
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

.product-price .old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.product-price .sale {
    color: var(--danger);
}

/* ========== CATEGORIES — Glass orbs ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: var(--transition);
}

.category-card:hover {
    border-color: rgba(201, 168, 108, 0.5);
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(139, 115, 85, 0.1);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.9), rgba(201, 168, 108, 0.95));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.3);
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== FEATURES ========== */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.feature-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== ABOUT PREVIEW ========== */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    height: 400px;
    background: linear-gradient(145deg, rgba(166, 139, 106, 0.7), rgba(139, 115, 85, 0.85));
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.about-image i {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
}
.about-image img,
.about-image .about-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: inherit;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== CTA — Glass dark ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(44, 36, 27, 0.9), rgba(107, 86, 63, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 70px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201, 168, 108, 0.25);
    border-bottom: 1px solid rgba(201, 168, 108, 0.25);
}

.cta-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.main-footer {
    background: rgba(44, 36, 27, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201, 168, 108, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-logo .logo-name {
    color: white;
}

.footer-logo .logo-sub {
    color: var(--accent);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(201, 168, 108, 0.9);
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.contact-info i {
    color: var(--accent);
    margin-top: 3px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, rgba(44, 36, 27, 0.9), rgba(107, 86, 63, 0.85));
    backdrop-filter: blur(12px);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.page-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 8px;
}

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

.breadcrumb {
    margin-top: 12px;
    font-size: 13px;
}

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

/* ========== PRODUCTS PAGE ========== */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.sidebar {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.filter-list .count {
    background: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.product-gallery {
    background: linear-gradient(145deg, rgba(232, 223, 211, 0.7), rgba(212, 196, 176, 0.6));
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.product-gallery i {
    font-size: 120px;
    color: var(--primary);
    opacity: 0.3;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.detail-price .old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 10px;
}

.detail-price .sale {
    color: var(--danger);
}

.product-specs {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.product-specs .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(201, 168, 108, 0.15);
    font-size: 14px;
}

.product-specs .spec-row:last-child {
    border-bottom: none;
}

.product-specs .label {
    color: var(--text-light);
}

.order-form {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.order-form h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* ========== FORMS — Glass inputs ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    box-shadow: inset 0 1px 2px rgba(44, 36, 27, 0.04);
}

.form-control:focus {
    outline: none;
    border-color: rgba(201, 168, 108, 0.6);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(232, 245, 233, 0.85);
    color: #2E7D32;
    border: 1px solid rgba(165, 214, 167, 0.6);
}

.alert-error {
    background: rgba(255, 235, 238, 0.85);
    color: #C62828;
    border: 1px solid rgba(239, 154, 154, 0.6);
}

/* ========== CONTACT ========== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.contact-info-box,
.contact-form-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.contact-info-box h3 {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.info-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.info-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== ABOUT PAGE ========== */
.about-content-page {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

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

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

.value-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.65);
}

.value-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* Branch cards on frontend */
.branch-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: var(--shadow) !important;
}

.branch-card:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(201, 168, 108, 0.4) !important;
    transform: translateY(-4px);
}

/* ========== ADMIN — Liquid Glass ========== */
.admin-body {
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(201, 168, 108, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(139, 115, 85, 0.15) 0%, transparent 50%),
        linear-gradient(160deg, #E8E0D4 0%, #DDD4C6 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(44, 36, 27, 0.85);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(201, 168, 108, 0.15);
    z-index: 100;
}

.admin-sidebar .logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo-name {
    color: white;
}

.admin-nav {
    list-style: none;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 2px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-nav a.active {
    background: rgba(201, 168, 108, 0.2);
    border: 1px solid rgba(201, 168, 108, 0.3);
}

.admin-nav i {
    width: 20px;
    text-align: center;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 26px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-card h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 13px;
    color: var(--text-light);
}

.admin-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(201, 168, 108, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
}

.admin-card-header h2 {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.admin-card-body {
    padding: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(201, 168, 108, 0.12);
    font-size: 14px;
}

.table th {
    background: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    color: var(--text);
    backdrop-filter: blur(4px);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.35);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.badge-success { background: rgba(232, 245, 233, 0.9); color: #2E7D32; }
.badge-warning { background: rgba(255, 248, 225, 0.9); color: #F57F17; }
.badge-danger { background: rgba(255, 235, 238, 0.9); color: #C62828; }
.badge-info { background: rgba(227, 242, 253, 0.9); color: #1565C0; }

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-edit {
    background: rgba(227, 242, 253, 0.8);
    color: #1565C0;
}

.btn-edit:hover {
    background: #1565C0;
    color: white;
    border-color: transparent;
}

.btn-delete {
    background: rgba(255, 235, 238, 0.8);
    color: #C62828;
}

.btn-delete:hover {
    background: #C62828;
    color: white;
    border-color: transparent;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 70% 50% at 30% 30%, rgba(201, 168, 108, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 70%, rgba(139, 115, 85, 0.25) 0%, transparent 50%),
        linear-gradient(160deg, #2C241B 0%, #4A3C2E 50%, #6B563F 100%);
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-radius: 24px;
    padding: 44px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 30px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero h1 { font-size: 36px; }
    .about-preview,
    .product-detail,
    .contact-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .products-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .admin-sidebar {
        width: 220px;
    }
    .admin-main {
        margin-left: 220px;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: var(--shadow-lg);
        padding: 16px;
        border-radius: var(--radius);
        border: 1px solid rgba(255, 255, 255, 0.6);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

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

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.d-flex { display: flex; }
.gap-10 { gap: 10px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Fallback when backdrop-filter not supported */
@supports not (backdrop-filter: blur(1px)) {
    .main-header,
    .product-card,
    .category-card,
    .sidebar,
    .admin-card,
    .stat-card,
    .contact-info-box,
    .contact-form-box,
    .order-form,
    .login-box {
        background: rgba(255, 255, 255, 0.92);
    }
    .admin-sidebar,
    .main-footer,
    .hero,
    .page-header,
    .cta-section {
        background: #2C241B;
    }
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    z-index: 1;
}
.hero-slide {
    display: none;
    padding: 100px 0 90px;
    color: white;
    min-height: 480px;
    position: relative;
}
.hero-slide.active {
    display: block;
    animation: slideFade 0.6s ease;
}
@keyframes slideFade {
    from { opacity: 0.4; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero-slide h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-slide p {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
}
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}
.slider-dots button.active {
    background: #C9A86C;
    border-color: #C9A86C;
    width: 28px;
    border-radius: 10px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.slider-nav:hover {
    background: rgba(201,168,108,0.9);
    border-color: transparent;
}
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

/* ========== LIVE CHAT WIDGET ========== */
.chat-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B7355, #C9A86C);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(139,115,85,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.chat-widget-btn:hover { transform: scale(1.08); }
.chat-widget-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 16px 48px rgba(44,36,27,0.18);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-widget-panel.open { display: flex; }
.chat-widget-header {
    background: linear-gradient(135deg, #2C241B, #6B563F);
    color: white;
    padding: 16px 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-widget-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.chat-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: rgba(251,248,244,0.5);
}
.chat-widget-msg {
    max-width: 85%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-widget-msg.visitor {
    background: #8B7355;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-widget-msg.admin {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.chat-widget-footer {
    padding: 12px;
    border-top: 1px solid rgba(201,168,108,0.2);
    display: flex;
    gap: 8px;
}
.chat-widget-footer input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
}
.chat-widget-start {
    padding: 20px;
}
.chat-widget-start .form-control {
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .slider-nav { display: none; }
    .hero-slide h1 { font-size: 28px; }
    .hero-slide { min-height: 380px; padding: 70px 0; }
}

/* ========== ADMIN RESPONSIVE / MULTI-DEVICE ========== */
.admin-responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}
.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}
.admin-filter-bar .form-control {
    max-width: 200px;
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-mobile-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(44, 36, 27, 0.92);
    backdrop-filter: blur(16px);
    padding: 12px 16px;
    color: white;
    align-items: center;
    justify-content: space-between;
}
.admin-mobile-bar button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}

@media (max-width: 992px) {
    .admin-responsive-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .admin-mobile-bar {
        display: flex;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 160;
        width: 260px !important;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-sidebar-overlay.open {
        display: block;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 16px !important;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .admin-header h1 {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .table th, .table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .login-box {
        margin: 16px;
        padding: 28px 20px !important;
    }
    .hero-slide h1, .hero h1 {
        font-size: 24px !important;
    }
    .chat-widget-panel {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        bottom: 80px !important;
    }
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-layout, .product-detail, .about-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Touch-friendly */
@media (hover: none) {
    .btn, .btn-icon, .admin-nav a {
        min-height: 44px;
    }
}

/* ========== ADMIN RESPONSIVE / MULTI-DEVICE ========== */
.admin-responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}
.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}
.admin-filter-bar .form-control {
    max-width: 200px;
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-mobile-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(44, 36, 27, 0.92);
    backdrop-filter: blur(16px);
    padding: 12px 16px;
    color: white;
    align-items: center;
    justify-content: space-between;
}
.admin-mobile-bar button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}

@media (max-width: 992px) {
    .admin-responsive-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .admin-mobile-bar {
        display: flex;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 160;
        width: 260px !important;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-sidebar-overlay.open {
        display: block;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 16px !important;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .admin-header h1 {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .table th, .table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .login-box {
        margin: 16px;
        padding: 28px 20px !important;
    }
    .hero-slide h1, .hero h1 {
        font-size: 24px !important;
    }
    .chat-widget-panel {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        bottom: 80px !important;
    }
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-layout, .product-detail, .about-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (hover: none) {
    .btn, .btn-icon, .admin-nav a {
        min-height: 44px;
    }
}

/* Engagement */
.engage-bar {
  background: linear-gradient(90deg, rgba(139,115,85,0.12), rgba(201,168,108,0.2));
  border-bottom: 1px solid rgba(139,115,85,0.15);
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.engage-bar a { color: #6B563F; font-weight: 600; }
.engage-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0 28px;
}
.engage-recent-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: #2C241B;
  font-size: 13px;
  transition: transform .15s ease;
}
.engage-recent-card:hover { transform: translateY(-2px); }
.engage-recent-card img, .engage-recent-card .ph {
  width: 100%; height: 90px; object-fit: cover; border-radius: 10px;
  background: #e8e0d4; margin-bottom: 6px; display: block;
}
.engage-recent-card .pr { color: #8B7355; font-size: 12px; margin-top: 4px; }
#wishToggle {
  margin-top: 8px;
  background: transparent;
  border: 1px solid #8B7355;
  color: #8B7355;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
}


/* ===== Header nav compact ===== */
.header-inner { display:flex; align-items:center; gap:12px; padding:10px 0; flex-wrap:nowrap; }
.logo { flex-shrink:0; }
.logo img { max-height:40px; max-width:120px; }
.main-nav { flex:1; min-width:0; display:flex; justify-content:center; }
.main-nav .nav-list { display:flex; align-items:center; list-style:none; gap:2px; margin:0; padding:0; flex-wrap:nowrap; }
.main-nav .nav-list > li > a,
.main-nav .nav-more-btn {
  font-weight:500; font-size:13px; color:var(--text,#3D3229);
  padding:6px 11px; border-radius:999px; text-decoration:none;
  white-space:nowrap; border:none; background:transparent; cursor:pointer;
  font-family:inherit;
}
.main-nav .nav-list > li > a:hover,
.main-nav .nav-list > li > a.active,
.main-nav .nav-more-btn:hover {
  color:var(--dark,#2C241B); background:rgba(255,255,255,0.55);
}
.nav-more { position:relative; }
/* IMPORTANT: hide dropdown by default (override .main-nav ul {display:flex}) */
.main-nav .nav-dropdown {
  display: none !important;
  flex-direction: column !important;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: min(320px, 90vw);
  max-height: min(70vh, 420px);
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 5000;
  gap: 0 !important;
  overscroll-behavior: contain;
}
.main-nav .nav-dropdown::-webkit-scrollbar { width: 6px; }
.main-nav .nav-dropdown::-webkit-scrollbar-thumb { background: rgba(139,115,85,.35); border-radius: 6px; }
/* Products dropdown can grow left-aligned so it doesn't clip off screen */
.main-nav .nav-products > .nav-dropdown {
  left: 0;
  transform: none;
  min-width: 220px;
}
.main-nav .nav-more:hover > .nav-dropdown,
.main-nav .nav-more.open > .nav-dropdown {
  display: flex !important;
}
.main-nav .nav-dropdown li { width: 100%; }
.main-nav .nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--dark,#2C241B);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav .nav-dropdown a:hover { background: rgba(139,115,85,0.12); }
.header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.currency-switch {
  display:inline-flex; border-radius:999px; overflow:hidden;
  border:1px solid rgba(0,0,0,0.08); background:rgba(255,255,255,0.45); font-size:11px;
}
.currency-switch a {
  padding:5px 8px; text-decoration:none; color:#2C241B; font-weight:600;
}
.currency-switch a.on { background:#8B7355; color:#fff; }
.lang-btn {
  font-size:12px; padding:5px 10px; border-radius:999px;
  border:1px solid rgba(0,0,0,0.08); background:rgba(255,255,255,0.45);
  color:#2C241B; text-decoration:none; font-weight:500;
}
.btn-quote { white-space:nowrap; }
@media (max-width: 1100px) {
  .main-nav .nav-list > li > a, .main-nav .nav-more-btn { padding:6px 8px; font-size:12px; }
}
@media (max-width: 900px) {
  .main-nav { display:none; }
  .main-nav.active {
    display:block; position:absolute; left:12px; right:12px; top:70px;
    background:rgba(255,255,255,0.96); border-radius:16px; padding:12px;
    box-shadow:0 16px 40px rgba(0,0,0,0.12); z-index:100;
  }
  .main-nav.active .nav-list { flex-direction:column; align-items:stretch; }
  .main-nav .nav-dropdown {
    position: static !important;
    transform: none !important;
    display: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 8px;
  }
  .main-nav .nav-more.open > .nav-dropdown,
  .main-nav .nav-more:hover > .nav-dropdown {
    display: flex !important;
  }
  .mobile-toggle { display:inline-flex; align-items:center; justify-content:center; }
  .currency-switch { display:none; }
}


/* Admin sidebar collapse */
.admin-sidebar { position: relative; transition: width .25s ease, min-width .25s ease; }
.sidebar-toggle {
  position: absolute; top: 12px; right: 10px; z-index: 5;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7); cursor: pointer; color: #2C241B;
}
.admin-layout.sidebar-collapsed .admin-sidebar {
  width: 72px !important; min-width: 72px !important; overflow: hidden;
}
.admin-layout.sidebar-collapsed .admin-sidebar .logo-text,
.admin-layout.sidebar-collapsed .admin-sidebar .nav-label,
.admin-layout.sidebar-collapsed .admin-sidebar a span:not(.logo-icon),
.admin-layout.sidebar-collapsed .admin-sidebar .logo-name,
.admin-layout.sidebar-collapsed .admin-sidebar .logo-sub {
  display: none !important;
}
.admin-layout.sidebar-collapsed .admin-sidebar a {
  justify-content: center; padding-left: 0; padding-right: 0;
}
.admin-layout.sidebar-collapsed .admin-sidebar .logo { justify-content: center; }

/* Settings tabs UI */
.settings-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
  padding: 8px; background: rgba(255,255,255,0.45); border-radius: 14px;
}
.settings-tabs button {
  border: none; background: transparent; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer; color: #3D3229; font-family: inherit;
}
.settings-tabs button.active {
  background: #8B7355; color: #fff;
}
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}

/* live chat v2 */
.chat-widget-btn {
  position: fixed; left: 20px; bottom: 20px; z-index: 9997;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary,#8B7355), #6B563F);
  color: #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.chat-widget-panel {
  display: none; flex-direction: column;
  position: fixed; left: 20px; bottom: 86px; z-index: 9997;
  width: min(360px, calc(100vw - 28px)); height: 460px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  border-radius: 18px; border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.18); overflow: hidden;
}
.chat-widget-panel.open { display: flex !important; }
.chat-widget-header { display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px; background: linear-gradient(135deg, var(--primary,#8B7355), #6B563F); color:#fff; font-weight:600; }
.chat-widget-header button { background:transparent; border:0; color:#fff; font-size:22px; cursor:pointer; line-height:1; }
.chat-widget-body { flex:1; overflow-y:auto; padding:12px; background:#f7f5f2; }
.chat-widget-msg { max-width:85%; padding:8px 12px; border-radius:12px; margin-bottom:8px; font-size:13px; line-height:1.45; word-break:break-word; }
.chat-widget-msg.visitor { margin-left:auto; background:var(--primary,#8B7355); color:#fff; border-bottom-right-radius:4px; }
.chat-widget-msg.admin { margin-right:auto; background:#fff; border:1px solid rgba(0,0,0,.06); border-bottom-left-radius:4px; }
.chat-widget-footer { display:flex; gap:8px; padding:10px; border-top:1px solid rgba(0,0,0,.06); background:#fff; }
.chat-widget-footer input { flex:1; border:1px solid rgba(0,0,0,.1); border-radius:10px; padding:8px 10px; }
.chat-widget-start { padding:16px; }
#chatActiveBox { display:none; flex-direction:column; flex:1; min-height:0; }
body:has(#aiVisitorFab) .chat-widget-btn { bottom: 90px; }
body:has(#aiVisitorFab) .chat-widget-panel { bottom: 156px; }

.nav-products > a { display:inline-flex; align-items:center; gap:4px; }
.nav-products:hover > .nav-dropdown,
.nav-products:focus-within > .nav-dropdown { display:flex !important; }

/* admin-ui-v3 */
.admin-body {
  background: #f3efe8 !important;
  font-family: 'Poppins', system-ui, sans-serif;
}
.admin-sidebar {
  width: 248px !important;
  background: #2a231c !important;
  backdrop-filter: none !important;
  padding: 12px 0 24px !important;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}
.admin-sidebar .logo {
  padding: 8px 16px 16px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.admin-sidebar .logo-text { margin-left: 8px; }
.sidebar-meta {
  margin: 0 14px 10px;
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}
.sidebar-meta.accent { color: #d4b47a; }
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 20px;
  list-style: none;
}
.admin-nav .nav-section {
  margin: 14px 10px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.admin-nav a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 13px !important;
  text-decoration: none;
  border: 1px solid transparent !important;
}
.admin-nav a i { width: 18px; text-align: center; opacity: 0.9; font-size: 13px; }
.admin-nav a:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.admin-nav a.active {
  background: rgba(201,168,108,0.18) !important;
  color: #f5e6c8 !important;
  border-color: rgba(201,168,108,0.28) !important;
}
.admin-nav a.nav-logout { margin-top: 12px; color: #f0a0a0 !important; }
.admin-main {
  margin-left: 248px !important;
  padding: 24px 28px 40px !important;
  max-width: 100%;
}
.admin-header {
  margin-bottom: 20px !important;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-header h1 {
  font-size: 22px !important;
  font-weight: 600;
  color: #2c241b;
  letter-spacing: -0.02em;
}
.admin-card {
  background: #fff !important;
  border: 1px solid rgba(44,36,27,0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(44,36,27,0.04) !important;
  backdrop-filter: none !important;
  margin-bottom: 16px;
}
.admin-card-header {
  padding: 14px 18px !important;
  background: #faf8f5 !important;
  border-bottom: 1px solid rgba(44,36,27,0.06) !important;
}
.admin-card-header h2 { font-size: 15px !important; font-weight: 600; color: #2c241b; }
.admin-card-body { padding: 16px 18px !important; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
  background: #f7f4ef !important;
  font-size: 12px !important;
  font-weight: 600;
  color: #6b5e52 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 11px 14px !important;
  border-bottom: 1px solid rgba(44,36,27,0.08) !important;
}
.table td {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  color: #2c241b;
  border-bottom: 1px solid rgba(44,36,27,0.05) !important;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none !important; }
.table tr:hover td { background: #faf8f5; }
.stat-card {
  background: #fff !important;
  border: 1px solid rgba(44,36,27,0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(44,36,27,0.04) !important;
  backdrop-filter: none !important;
}
.badge { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.form-control {
  border-radius: 10px !important;
  border: 1px solid rgba(44,36,27,0.12) !important;
  padding: 9px 12px !important;
  font-size: 13.5px;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: #8B7355 !important;
  box-shadow: 0 0 0 3px rgba(139,115,85,0.15);
}
.btn { border-radius: 10px !important; font-weight: 500; font-size: 13px; }
.btn-primary { background: #8B7355 !important; border-color: #8B7355 !important; }
.btn-outline { background: #fff !important; border: 1px solid rgba(44,36,27,0.15) !important; color: #2c241b !important; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.alert-success { background: #eaf7ee; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-error { background: #fdecea; color: #b71c1c; border: 1px solid #ffcdd2; }
.price-cell { display: flex; flex-direction: column; gap: 2px; }
.price-old { text-decoration: line-through; color: #999; font-size: 12px; }
.price-now { font-weight: 600; color: #2c241b; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sidebar-toggle {
  position: absolute !important; top: 10px; right: 10px;
  width: 34px !important; height: 34px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.admin-layout.sidebar-collapsed .admin-main { margin-left: 72px !important; }
@media (max-width: 900px) {
  .admin-main { margin-left: 0 !important; padding: 16px !important; }
}

/* admin-products-price */
.price-stack { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:2px !important; }
.price-stack .was, .price-old { display:block !important; font-size:11px !important; color:#9a9086 !important; text-decoration:line-through !important; }
.price-stack .now, .price-stack .only, .price-now { display:block !important; font-size:13.5px !important; font-weight:600 !important; color:#2c241b !important; }
.btn-icon {
  width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; border:1px solid rgba(44,36,27,0.08); background:#f7f4ef; color:#5c534a;
}
.btn-icon.btn-edit { background:#eef3ff; color:#3b5bdb; border-color:#d6e0ff; }
.btn-icon.btn-delete { background:#ffefef; color:#c92a2a; border-color:#ffd6d6; }
.btn-icon:hover { filter:brightness(0.97); }
.action-btns { display:flex; gap:6px; }


/* Maxtor logo */
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.site-logo-img {
  display:block;
  height:52px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  object-position:left center;
}
.main-header .logo .site-logo-img {
  height:52px;
  max-width:240px;
}
.admin-logo-img {
  height:40px !important;
  max-width:150px !important;
  background:#fff;
  border-radius:8px;
  padding:4px 8px;
}
.footer-logo .site-logo-img, .footer-logo img {
  height:48px;
  max-width:200px;
  object-fit:contain;
  background:#fff;
  border-radius:8px;
  padding:6px 10px;
}
@media (max-width: 768px) {
  .site-logo-img, .main-header .logo .site-logo-img {
    height:40px;
    max-width:160px;
  }
}


/* ui-upgrade-2026 */
.product-card{
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(44,36,27,.12);
}
.main-header{
  backdrop-filter: blur(12px);
}
.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border: none;
  box-shadow: 0 6px 18px rgba(139,115,85,.28);
}
.page-header{
  background: linear-gradient(135deg, rgba(44,36,27,.92), rgba(139,115,85,.85));
  color: #fff;
}
.page-header h1,.page-header p,.page-header a{ color: #fff !important; }


/* Member card logo */
.member-card-visual .member-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  padding: 4px;
}
.member-card-visual .chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* menu-click-fix */
.main-header { z-index: 10050; }
.mobile-toggle { z-index: 10051; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 992px) {
  .main-nav.active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 10040;
    background: rgba(255,255,255,0.98);
    max-height: 80vh;
    overflow-y: auto;
  }
}
body.nav-open { overflow: hidden; }


/* nav dropdown scroll fix */
.site-header, .header-inner, .header-main, .main-header {
  overflow: visible !important;
}
.main-nav { overflow: visible !important; z-index: 400; }
.main-nav .nav-list { overflow: visible !important; }
.main-nav .nav-products { position: relative; z-index: 410; }
@media (max-width: 900px) {
  .main-nav.active .nav-list {
    max-height: calc(100vh - 70px);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav .nav-dropdown {
    max-height: 50vh !important;
    overflow-y: auto !important;
  }
}
