/* ===== ROOT & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #FF9900;
    --primary-dark: #e47911;
    --primary-light: #fff3cd;
    --secondary: #007185;
    --accent: #FF9900;
    --success: #067D62;
    --danger: #CC0C39;
    --warning: #FF9900;
    --dark: #131921;
    --dark2: #232f3e;
    --dark3: #37475A;
    --gray-50: #F7F8F8;
    --gray-100: #EAEDED;
    --gray-200: #D5D9D9;
    --gray-300: #B2BEBD;
    --gray-400: #8D9D9C;
    --gray-500: #687878;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;
    --gray-900: #0D1117;
    --white: #FFFFFF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.16);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: 0.2s ease;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-900); background: var(--gray-100); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.page-wrapper { min-height: calc(100vh - 340px); background: var(--gray-100); }

/* ===== HEADER TOP ===== */
.main-header { background: var(--dark); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--dark); padding: 8px 0; }
.header-top-inner { display: flex; align-items: center; gap: 12px; max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; color: white; font-size: 22px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.logo-icon { font-size: 26px; }
.logo-text span { color: var(--primary); }

/* Search */
.header-search { flex: 1; min-width: 0; padding: 0 8px; }
.search-wrap { display: flex; align-items: stretch; border-radius: var(--radius-sm); overflow: visible; position: relative; height: 40px; }
.search-cat-select { background: #D5D9D9; border-radius: var(--radius-sm) 0 0 var(--radius-sm); flex-shrink: 0; }
.search-cat-select select { height: 40px; border: none; background: transparent; padding: 0 8px; font-size: 12px; color: var(--dark); cursor: pointer; outline: none; max-width: 110px; }
.search-wrap input[type="text"] {
    flex: 1; border: none; outline: none; padding: 0 12px;
    font-size: 15px; color: var(--dark); background: white; min-width: 0;
}
.search-submit-btn { background: var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 14px; font-size: 20px; color: var(--dark); flex-shrink: 0; transition: background var(--transition); }
.search-submit-btn:hover { background: var(--primary-dark); }

/* Search Dropdown */
.search-dropdown { display: none; position: absolute; top: calc(100% + 2px); left: 0; right: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 9999; border: 1px solid var(--gray-200); overflow: hidden; }
.search-dropdown.open { display: block; }
.sd-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.sd-item:hover { background: var(--gray-50); }
.sd-icon { font-size: 22px; flex-shrink: 0; }
.sd-info { flex: 1; min-width: 0; }
.sd-name { display: block; font-size: 14px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-cat { display: block; font-size: 11px; color: var(--gray-500); }
.sd-price { font-size: 14px; font-weight: 700; color: var(--danger); flex-shrink: 0; }
.sd-all { display: block; padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--secondary); background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.sd-all:hover { background: var(--gray-100); text-decoration: underline; }
.sd-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--gray-500); }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-topbar-links { display: flex; flex-direction: column; color: #ccc; font-size: 11px; gap: 2px; padding: 0 8px; }
.header-topbar-links a { color: #ccc; font-size: 11px; }
.header-topbar-links a:hover { color: var(--primary); }
.hdr-btn { display: flex; flex-direction: column; padding: 4px 10px; color: white; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); border: 1px solid transparent; }
.hdr-btn:hover { border-color: white; }
.hdr-btn-top { font-size: 11px; color: #ccc; }
.hdr-btn-main { font-size: 14px; font-weight: 700; color: white; }
.hdr-account { position: relative; }
.hdr-cart { display: flex; align-items: center; gap: 4px; padding: 4px 10px; color: white; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all var(--transition); }
.hdr-cart:hover { border-color: white; }
.hdr-cart-icon { font-size: 26px; }
.hdr-cart-count { background: var(--primary); color: var(--dark); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: -12px; margin-left: -8px; }
.hdr-cart-label { font-size: 14px; font-weight: 700; }

/* Nav Bar */
.header-nav { background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.1); }
.header-nav-inner { display: flex; align-items: center; gap: 0; max-width: 1400px; margin: 0 auto; padding: 0 16px; overflow-x: auto; }
.header-nav-inner::-webkit-scrollbar { display: none; }
.nav-link { padding: 9px 12px; font-size: 13px; font-weight: 500; color: #e8eaed; white-space: nowrap; border-radius: var(--radius-sm); transition: all var(--transition); border: 1px solid transparent; }
.nav-link:hover, .nav-link.active { color: white; border-color: white; }
.sale-link { color: var(--primary) !important; }
.sale-link:hover { color: white !important; background: var(--primary); border-color: var(--primary); }
.hamburger { padding: 9px 12px; font-size: 13px; font-weight: 700; color: white; border-radius: var(--radius-sm); border: 1px solid transparent; white-space: nowrap; transition: all var(--transition); }
.hamburger:hover { border-color: white; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; z-index: 1001; border: 1px solid var(--gray-200); }
.nav-dropdown .dropdown-menu.dropdown-right { left: auto; right: 0; }
.nav-dropdown .dropdown-menu a { display: block; padding: 9px 14px; border-radius: var(--radius-sm); color: var(--gray-700); font-size: 14px; }
.nav-dropdown .dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 6px 0; }

/* Flash */
.flash-container { position: fixed; top: 100px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; min-width: 300px; box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; }
.flash-success { background: #DFF0D8; color: #3C763D; border-left: 4px solid #3C763D; }
.flash-danger  { background: #F2DEDE; color: #A94442; border-left: 4px solid #A94442; }
.flash-warning { background: #FCF8E3; color: #8A6D3B; border-left: 4px solid #8A6D3B; }
.flash-info    { background: #D9EDF7; color: #31708F; border-left: 4px solid #31708F; }
.flash button  { background: none; color: inherit; font-size: 16px; opacity: 0.6; }
@keyframes slideIn { from { transform: translateX(100px); opacity:0 } to { transform: translateX(0); opacity:1 } }

/* Mobile Nav */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1998; }
.mobile-nav { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--dark2); z-index: 1999; padding: 20px 16px; overflow-y: auto; transition: left 0.3s ease; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav.open { left: 0; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-close { align-self: flex-end; font-size: 22px; color: white; margin-bottom: 12px; }
.mobile-nav a { padding: 11px 14px; border-radius: var(--radius-sm); color: #e8eaed; font-weight: 500; display: block; font-size: 14px; }
.mobile-nav a:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-nav hr { border-color: rgba(255,255,255,.15); margin: 8px 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: all var(--transition); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--dark); border-color: var(--primary-dark); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--dark); }
.btn-secondary { background: white; color: var(--dark); border-color: var(--gray-300); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }
.btn-success { background: var(--success); color: white; }
.btn-danger  { background: var(--danger);  color: white; }
.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-tag { display: inline-block; background: var(--primary-light); color: #8a5700; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 10px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-sub { color: var(--gray-500); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); margin: 16px 0; }
.slide { display: none; position: relative; min-height: 420px; background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); color: white; align-items: center; }
.slide.active { display: flex; }
.slide-content { padding: 60px; max-width: 520px; z-index: 2; }
.slide-badge { display: inline-block; background: var(--primary); color: var(--dark); padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.slide-content h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.slide-content p { font-size: 17px; opacity: 0.85; margin-bottom: 24px; }
.slide-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; display: flex; align-items: center; justify-content: center; font-size: 180px; opacity: 0.12; }
.slider-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--transition); }
.slider-dot.active { background: white; width: 24px; border-radius: 4px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); z-index: 10; }
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* ===== CATEGORY GRID ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; }
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-icon { font-size: 32px; }
.category-name { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.category-thumb-wrap { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gray-100); transition: border-color var(--transition); flex-shrink: 0; }
.category-card:hover .category-thumb-wrap { border-color: var(--primary); }
.category-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); position: relative; border: 1px solid var(--gray-200); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--gray-100); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px; background: linear-gradient(135deg, #f0f2f2, #e3e6e6); }
.badge-sale { position: absolute; top: 8px; left: 8px; background: var(--danger); color: white; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-featured { position: absolute; top: 8px; left: 8px; background: var(--primary); color: var(--dark); padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.wishlist-btn { position: absolute; top: 8px; right: 8px; background: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: var(--shadow); transition: all var(--transition); z-index: 2; }
.wishlist-btn:hover, .wishlist-btn.active { background: #FFE4E4; transform: scale(1.1); }
.product-body { padding: 14px; }
.product-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--secondary); margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
.product-name a:hover { color: var(--secondary); text-decoration: underline; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.stars { color: #FF9900; letter-spacing: 1px; }
.product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.price-current { font-size: 18px; font-weight: 800; color: var(--danger); }
.price-original { font-size: 13px; color: var(--gray-400); text-decoration: line-through; }
.price-save { font-size: 12px; color: var(--success); font-weight: 600; }
.product-actions { display: flex; gap: 6px; }
.product-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 28px 20px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num { width: 48px; height: 48px; background: var(--primary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 14px; }
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.step-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--gray-200); }
.testimonial-card::before { content: '"'; position: absolute; top: 12px; left: 18px; font-size: 56px; color: var(--primary-light); font-family: serif; line-height: 1; }
.testimonial-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; font-style: italic; padding-top: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #ff6d00); display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 700; font-size: 15px; }
.testimonial-name { font-weight: 700; color: var(--dark); font-size: 13px; }
.testimonial-role { font-size: 11px; color: var(--gray-500); }

/* ===== PRODUCTS PAGE ===== */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.filter-sidebar { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 100px; border: 1px solid var(--gray-200); }
.filter-sidebar h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--dark); padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--gray-100); padding-bottom: 16px; }
.filter-group:last-child { border: none; margin: 0; padding: 0; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.filter-option input { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-option label { font-size: 13px; color: var(--gray-600); cursor: pointer; flex: 1; }

/* Price Range Slider */
.price-slider-wrap { padding: 8px 4px; }
.price-slider-display { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--dark); }
.price-slider-track { position: relative; height: 4px; background: var(--gray-200); border-radius: 4px; margin: 16px 4px; }
.price-slider-fill { position: absolute; height: 100%; background: var(--primary); border-radius: 4px; }
.price-slider-wrap input[type="range"] {
    position: absolute; width: 100%; height: 4px; appearance: none; background: transparent;
    pointer-events: none; top: -10px; left: 0;
}
.price-slider-wrap input[type="range"]::-webkit-slider-thumb {
    appearance: none; width: 18px; height: 18px; border-radius: 50%; background: white;
    border: 2px solid var(--primary); cursor: pointer; pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.price-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: white;
    border: 2px solid var(--primary); cursor: pointer; pointer-events: all;
}
.price-inputs-row { display: flex; gap: 8px; margin-top: 12px; }
.price-inputs-row input { flex: 1; padding: 6px 8px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 12px; text-align: center; }

.products-main { }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; background: white; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); flex-wrap: wrap; gap: 10px; border: 1px solid var(--gray-200); }
.result-count { font-size: 13px; color: var(--gray-600); }
.sort-select { padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; background: white; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery { }
.gallery-main { aspect-ratio: 1; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 120px; border: 1px solid var(--gray-200); }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-info h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.product-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.product-sku { font-size: 12px; color: var(--gray-400); }
.product-detail .price-current { font-size: 28px; }
.product-detail .product-price { margin-bottom: 16px; }
.product-desc { color: var(--gray-600); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.options-group { margin-bottom: 18px; }
.options-label { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 8px; display: block; }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.color-swatch.active, .color-swatch:hover { border-color: var(--primary); transform: scale(1.15); }
.size-options { display: flex; gap: 6px; flex-wrap: wrap; }
.size-btn { padding: 6px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: all var(--transition); background: white; }
.size-btn.active, .size-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--gray-100); color: var(--dark); transition: all var(--transition); }
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-input { width: 50px; height: 38px; text-align: center; border: none; border-left: 1px solid var(--gray-300); border-right: 1px solid var(--gray-300); font-size: 15px; font-weight: 700; }
.product-cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.product-cta .btn { flex: 1; min-width: 140px; justify-content: center; }
.product-cta .btn-primary { background: var(--primary); color: var(--dark); }
.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.feature-item { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--gray-50); border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.feature-icon { font-size: 20px; }
.feature-text { font-size: 12px; font-weight: 500; color: var(--gray-700); }

/* ===== CUSTOMIZER ===== */
.customizer-section { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 24px 0; }
.customizer-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.customizer-layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.customizer-preview { position: sticky; top: 100px; }
.canvas-wrap { position: relative; background: var(--gray-100); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-md); }
.canvas-wrap canvas { width: 100%; height: 100%; }
.canvas-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.preview-product-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 180px; opacity: 0.06; }
.preview-actions { display: flex; gap: 8px; margin-top: 10px; }
.preview-actions .btn { flex: 1; justify-content: center; }
.tool-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 18px; }
.tool-tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition); margin-bottom: -2px; }
.tool-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }
.tool-group { margin-bottom: 18px; }
.tool-group label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.tool-group input[type="text"], .tool-group textarea, .tool-group select { width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: border-color var(--transition); }
.tool-group input:focus, .tool-group textarea:focus, .tool-group select:focus { border-color: var(--primary); }
.tool-group textarea { min-height: 72px; resize: vertical; }
.font-size-row { display: flex; align-items: center; gap: 8px; }
.font-size-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.font-size-row span { font-size: 12px; font-weight: 600; color: var(--gray-600); min-width: 32px; }
.color-picker-row { display: flex; align-items: center; gap: 8px; }
.color-picker-row input[type="color"] { width: 40px; height: 34px; padding: 2px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); cursor: pointer; }
.color-presets { display: flex; gap: 5px; flex-wrap: wrap; }
.color-preset { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.color-preset:hover { transform: scale(1.2); border-color: var(--gray-400); }
.upload-zone { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--gray-50); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone input { display: none; }
.upload-zone .upload-icon { font-size: 36px; margin-bottom: 6px; }
.upload-zone p { font-size: 13px; color: var(--gray-600); }
.upload-zone span { font-size: 11px; color: var(--gray-400); }
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.template-card { aspect-ratio: 1; background: var(--gray-100); border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: all var(--transition); }
.template-card:hover, .template-card.active { border-color: var(--primary); background: var(--primary-light); }
.text-align-row { display: flex; gap: 5px; }
.align-btn { flex: 1; padding: 7px; background: var(--gray-100); border-radius: var(--radius-sm); font-size: 14px; transition: all var(--transition); }
.align-btn.active, .align-btn:hover { background: var(--primary-light); color: var(--primary); }
.layer-controls { display: flex; gap: 6px; }
.layer-controls .btn { flex: 1; justify-content: center; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--gray-200); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--gray-100); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cart-item-custom { font-size: 11px; color: var(--gray-500); margin-bottom: 6px; line-height: 1.5; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--danger); }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.remove-btn { color: var(--danger); font-size: 14px; padding: 5px; border-radius: 50%; transition: background var(--transition); }
.remove-btn:hover { background: #FFEBEE; }
.cart-summary { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 100px; border: 1px solid var(--gray-200); }
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--dark); border-bottom: 1px solid var(--gray-200); padding-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.summary-row:last-of-type { border: none; }
.summary-total { font-size: 17px; font-weight: 800; color: var(--danger); }
.coupon-form { display: flex; gap: 6px; margin: 14px 0; }
.coupon-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; }
.coupon-form button { padding: 9px 14px; background: var(--dark2); color: white; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-form { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.checkout-form h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; color: var(--dark); padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-700); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.payment-option.active, .payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option input { accent-color: var(--primary); }
.payment-option-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.order-review { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 100px; border: 1px solid var(--gray-200); }
.order-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.order-item:last-of-type { border-bottom: none; }
.order-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; overflow: hidden; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.order-item-custom { font-size: 10px; color: var(--gray-400); margin-bottom: 3px; }
.order-item-price { font-size: 12px; font-weight: 700; color: var(--danger); }

/* ===== AUTH ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-100); padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius); padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 6px; text-align: center; }
.auth-sub { text-align: center; font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }
.auth-link { text-align: center; font-size: 13px; color: var(--gray-600); margin-top: 16px; }
.auth-link a { color: var(--secondary); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.divider span { font-size: 11px; color: var(--gray-400); }

/* ===== ACCOUNT ===== */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.account-sidebar { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.account-sidebar .user-info { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); margin-bottom: 12px; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #ff6d00); display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 800; font-size: 24px; margin: 0 auto 10px; }
.account-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.account-email { font-size: 12px; color: var(--gray-500); }
.account-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 13px; font-weight: 500; margin-bottom: 2px; transition: all var(--transition); }
.account-nav a:hover, .account-nav a.active { background: var(--primary-light); color: #8a5700; }
.account-main { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.order-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; transition: border-color var(--transition); }
.order-card:hover { border-color: var(--primary); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.order-num { font-weight: 700; color: var(--dark); font-size: 14px; }
.order-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending    { background: #FFF8E1; color: #F57F17; }
.status-processing { background: #E3F2FD; color: #1565C0; }
.status-shipped    { background: #E8EAF6; color: #283593; }
.status-delivered  { background: #E8F5E9; color: #2E7D32; }
.status-cancelled  { background: #FFEBEE; color: #C62828; }

/* ===== REVIEW ===== */
.reviews-section { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 24px; border: 1px solid var(--gray-200); }
.review-card { border-bottom: 1px solid var(--gray-100); padding: 16px 0; }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #ff6d00); display: flex; align-items: center; justify-content: center; color: var(--dark); font-weight: 700; font-size: 14px; }
.review-meta h4 { font-size: 13px; font-weight: 700; color: var(--dark); }
.review-meta span { font-size: 11px; color: var(--gray-400); }
.review-rating { color: #FF9900; font-size: 15px; letter-spacing: 1px; }
.review-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.review-body { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: white; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--gray-600); transition: all var(--transition); border: 1px solid var(--gray-200); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--dark); border-color: var(--primary-dark); }

/* ===== PROMO ===== */
.promo-strip { background: linear-gradient(135deg, var(--dark2), var(--dark3)); color: white; padding: 20px 0; text-align: center; }
.promo-strip h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.promo-strip p { font-size: 15px; opacity: 0.85; margin-bottom: 14px; }
.offer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.offer-card { background: white; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); transition: transform var(--transition); }
.offer-card:hover { transform: translateY(-3px); }
.offer-icon { font-size: 40px; margin-bottom: 10px; }
.offer-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.offer-card p { font-size: 12px; color: var(--gray-600); }
.offer-badge { display: inline-block; background: var(--primary-light); color: #8a5700; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 8px; }

/* ===== TOAST ===== */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: white; box-shadow: var(--shadow-md); animation: toastIn 0.3s ease; min-width: 240px; display: flex; align-items: center; gap: 8px; }
.toast-success { background: var(--success); }
.toast-danger  { background: var(--danger); }
.toast-info    { background: var(--secondary); }
.toast-warning { background: #e47911; }
@keyframes toastIn { from { transform: translateX(80px); opacity:0 } to { transform: translateX(0); opacity:1 } }

/* ===== TRUST BAR ===== */
.trust-bar { background: white; padding: 20px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 28px; }
.trust-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--dark); }
.trust-text span { font-size: 11px; color: var(--gray-500); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: var(--radius); }
.empty-icon { font-size: 64px; margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 20px; font-size: 14px; }

/* ===== CONFIRMATION ===== */
.confirm-card { max-width: 580px; margin: 0 auto; background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); text-align: center; border: 1px solid var(--gray-200); }
.confirm-icon { font-size: 64px; margin-bottom: 14px; }
.confirm-card h1 { font-size: 28px; font-weight: 800; color: var(--success); margin-bottom: 10px; }
.confirm-card p { color: var(--gray-600); margin-bottom: 20px; font-size: 14px; }
.confirm-details { background: var(--gray-50); border-radius: var(--radius); padding: 16px; text-align: left; margin-bottom: 20px; border: 1px solid var(--gray-200); }
.confirm-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
.confirm-row:last-child { border: none; }
.confirm-row strong { color: var(--dark); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); color: white; padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-brand .logo { color: white; font-size: 18px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: white; border-right: 3px solid var(--primary); }
.admin-nav .nav-divider { padding: 8px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); margin-top: 6px; }
.admin-content { padding: 28px; background: var(--gray-100); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 800; color: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.stat-card .stat-icon  { font-size: 28px; margin-bottom: 10px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--dark); }
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); }
.stat-card .stat-change { font-size: 11px; font-weight: 600; margin-top: 3px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.admin-table thead { background: var(--gray-100); }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.8px; }
.admin-table td { padding: 12px 16px; font-size: 13px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab-btn { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition); margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-primary { background: var(--primary-light); color: #8a5700; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-danger  { background: #FFEBEE; color: #C62828; }
.badge-warning { background: #FFF8E1; color: #F57F17; }
.badge-info    { background: #E3F2FD; color: #1565C0; }

/* ===== FOOTER ===== */
.main-footer { background: var(--dark); color: #ccc; margin-top: 0; }
.footer-top { padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 32px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #aaa; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all var(--transition); }
.social-links a:hover { background: var(--primary); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: #aaa; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-newsletter p { font-size: 13px; color: #aaa; margin-bottom: 12px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border: none; font-size: 13px; background: rgba(255,255,255,0.1); color: white; outline: none; }
.newsletter-form input::placeholder { color: #888; }
.newsletter-form button { padding: 10px 14px; background: var(--primary); color: var(--dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.newsletter-form button:hover { background: var(--primary-dark); }
.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.payment-icons span { background: rgba(255,255,255,0.15); color: #ccc; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: #888; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.font-bold { font-weight: 700; }
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== PHOTO ZONES ===== */
.zp-wrap { display:flex; flex-direction:column; }
.zp-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.zp-title { font-size:12px; font-weight:700; color:#37474F; letter-spacing:.2px; }
.zp-badge { font-size:10px; font-weight:700; color:#1565C0; }
.zp-badge.all-done { color:#2E7D32; display:flex; align-items:center; gap:3px; }
.zp-bar { width:100%; height:3px; background:#E8F0F7; border-radius:3px; margin-bottom:12px; overflow:hidden; }
.zp-fill { height:100%; background:linear-gradient(90deg,#1565C0,#64B5F6); border-radius:3px; transition:width .4s ease; }
.zp-fill.full { background:linear-gradient(90deg,#2E7D32,#66BB6A); }
.zp-list { display:flex; flex-direction:column; gap:8px; }
.zp-card { background:#fff; border:1px solid #E4EBF3; border-radius:10px; padding:10px 12px; cursor:pointer; transition:border-color .15s,background .15s; }
.zp-card:hover { border-color:#90CAF9; background:#FAFCFF; }
.zp-card.done { border-color:#C8E6C9; }
.zp-card-hdr { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:2px; }
.zp-card-name { font-size:12px; font-weight:700; color:#1a2233; }
.zp-card-cnt { font-size:10px; color:#90A4AE; font-weight:500; flex-shrink:0; margin-left:6px; }
.zp-card-st { font-size:11px; color:#90A4AE; margin-bottom:0; }
.zp-card.done .zp-card-st { color:#388E3C; }
.zp-card-body { display:flex; align-items:center; gap:6px; margin-top:6px; }
.zp-card-thumb { width:28px; height:28px; min-width:28px; border-radius:4px; overflow:hidden; background:#EEF3F8; flex-shrink:0; }
.zp-card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.zp-card-acts { margin-left:auto; display:flex; gap:3px; flex-shrink:0; }
.zp-ic { width:22px; height:22px; border:none; border-radius:5px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.zp-ic-rep { background:#EEF5FF; color:#1565C0; }
.zp-ic-rep:hover { background:#1976D2; color:#fff; }
.zp-ic-del { background:#FFF0F0; color:#C62828; }
.zp-ic-del:hover { background:#C62828; color:#fff; }
.zp-drop { border:2px dashed #C5D5E3; border-radius:10px; padding:26px 14px; text-align:center; cursor:pointer; background:#FAFCFF; transition:border-color .16s,background .16s; }
.zp-drop:hover,.zp-drop.dov { border-color:#1976D2; background:#EEF5FF; }
.zp-drop svg { opacity:.28; margin-bottom:7px; display:block; margin-left:auto; margin-right:auto; }
.zp-drop p { font-size:13px; font-weight:600; color:#546E7A; margin-bottom:3px; }
.zp-drop small { font-size:10px; color:#aaa; }
.zp-extra { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; margin-top:10px; padding:9px; border-radius:8px; border:1.5px dashed #B0BEC5; background:none; font-size:11px; font-weight:600; color:#607D8B; cursor:pointer; transition:border-color .14s,color .14s; }
.zp-extra:hover { border-color:#90CAF9; color:#1565C0; }
.zu-opacity { margin-top:12px; padding-top:10px; border-top:1px solid #E8EEF4; }
.zu-op-lbl { font-size:10px; font-weight:700; color:#90A4AE; text-transform:uppercase; letter-spacing:.4px; margin-bottom:5px; display:block; }

/* Mobile filter button — hidden on desktop */
.mob-filter-btn { display: none !important; }

/* Mobile close button inside sidebar — hidden on desktop */
.mob-close-btn { display: none; }

/* Mobile drawer bar wrap — hidden on desktop */
.mob-drawer-bar-wrap { display: none; }
.mob-drawer-bar {
    width: 40px; height: 4px; background: #D5D9D9; border-radius: 4px;
    margin: 0 auto 10px;
}

/* Mobile filter overlay */
.mob-filter-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 1199;
}
.mob-filter-overlay.open { display: block; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
    /* Layout collapses to single column */
    .products-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .customizer-layout { grid-template-columns: 1fr; }
    .customizer-preview { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .header-topbar-links { display: none; }
    .pc-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .pc-footer-brand { grid-column: 1/-1; }

    /* ── Filter sidebar: hidden on tablet/mobile, opens as bottom sheet ── */
    .filter-sidebar {
        display: none !important;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
        background: white; border-radius: 18px 18px 0 0;
        padding: 0 16px 24px; max-height: 75vh; overflow-y: auto;
        box-shadow: 0 -8px 32px rgba(0,0,0,.25);
    }
    .filter-sidebar.mob-open { display: block !important; }

    /* ── Show filter button & drawer UI on tablet/mobile ── */
    .mob-filter-btn {
        display: inline-flex !important; align-items: center; gap: 5px;
        padding: 6px 14px; background: white; border: 1.5px solid #D5D9D9;
        border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
        color: #131921; white-space: nowrap;
    }
    .mob-filter-btn:hover { border-color: #FF9900; color: #FF9900; }
    .mob-drawer-bar-wrap { display: block; padding-top: 12px; }
    .mob-close-btn {
        display: inline-flex !important; align-items: center; justify-content: center;
        width: 28px; height: 28px; border-radius: 50%;
        background: #f0f0f0; border: none; font-size: 14px;
        cursor: pointer; color: #333;
    }
    .mob-close-btn:hover { background: #e0e0e0; }
}

/* ===== RESPONSIVE — MOBILE APP STYLE ===== */
/* Bottom nav hidden by default on desktop */
.pc-bottom-nav { display: none; }

@media (max-width: 700px) {
    /* Space for fixed bottom nav */
    body { padding-bottom: 60px !important; }

    /* ── Header: logo + cart row, search full-width row below ── */
    .pc-header-row { flex-wrap: wrap; padding: 6px 10px; gap: 5px; }
    .pc-logo { font-size: 18px; flex: 1; }
    .pc-search { order: 3; width: 100%; flex-basis: 100%; padding: 0; }
    .pc-header-right { flex-shrink: 0; }
    .pc-hdr-top { display: none !important; }
    .pc-hdr-main { font-size: 12px !important; }
    .pc-cart-label { display: none; }
    .pc-nav { display: none; }
    .pc-search-cat { display: none; }

    /* ── Bottom Nav ── */
    .pc-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: #131921; border-top: 1px solid #37475A;
        z-index: 1500; height: 58px;
    }
    .pc-bn-item {
        flex: 1; display: flex; flex-direction: column; align-items: center;
        justify-content: center; color: #aaa; gap: 2px;
        padding: 5px 2px; background: none; border: none; cursor: pointer;
        text-decoration: none; font-size: 10px; transition: color .15s;
    }
    .pc-bn-icon { font-size: 21px; line-height: 1; display: block; }
    .pc-bn-item.active, .pc-bn-item:hover { color: #FF9900; }
    .pc-bn-badge {
        position: absolute; top: -3px; right: -7px;
        background: #FF9900; color: #131921; border-radius: 50%;
        width: 14px; height: 14px; font-size: 9px; font-weight: 900;
        display: flex; align-items: center; justify-content: center;
    }

    /* ── Flash toasts above bottom nav ── */
    .flash-container { right: 8px; left: 8px; top: auto; bottom: 66px; }
    .flash { min-width: unset; }

    /* ── Hero slider ── */
    .hero-slider { margin: 8px 0; border-radius: 6px; }
    .slide { min-height: 175px; }
    .slide-content { padding: 20px 16px; }
    .slide-content h1 { font-size: 20px; line-height: 1.2; }
    .slide-content p { font-size: 12px; margin-bottom: 14px; }
    .slide-bg { display: none; }
    .slide-badge { font-size: 10px; padding: 3px 9px; margin-bottom: 8px; }
    .slider-arrow { width: 30px; height: 30px; font-size: 13px; }

    /* ── Section ── */
    .section { padding: 20px 0; }
    .section-title { font-size: 18px; }
    .section-sub { font-size: 13px; }
    .section-header { margin-bottom: 16px; }

    /* ── Category grid → horizontal scroll ── */
    .category-grid {
        display: flex; overflow-x: auto; gap: 10px;
        padding-bottom: 6px; scroll-snap-type: x mandatory;
    }
    .category-grid::-webkit-scrollbar { display: none; }
    .category-card {
        flex-shrink: 0; width: 78px; scroll-snap-align: start;
        padding: 14px 8px;
    }
    .category-icon { font-size: 26px; }
    .category-name { font-size: 11px; }

    /* ── Product grid — 2 columns ── */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-body { padding: 10px; }
    .product-name { font-size: 13px; }
    .product-cat { font-size: 10px; }
    .price-current { font-size: 15px; }
    .price-original { font-size: 12px; }
    .product-rating { font-size: 11px; }
    .product-actions .btn { font-size: 11px; padding: 6px 6px; }
    .product-placeholder { font-size: 52px; }

    /* ── Bottom sheet sits above bottom nav on mobile ── */
    .filter-sidebar { bottom: 58px !important; }

    .products-layout { display: block; }
    .products-toolbar { flex-wrap: wrap; gap: 6px; }

    /* ── Product detail ── */
    .product-detail { grid-template-columns: 1fr; gap: 16px; }
    .product-info h1 { font-size: 18px; }
    .product-cta .btn { font-size: 13px; }
    .product-features { grid-template-columns: 1fr 1fr; }

    /* ── Customizer ── */
    .customizer-layout { grid-template-columns: 1fr; gap: 16px; }
    .customizer-preview { position: static; }
    .customizer-section { padding: 16px; }

    /* ── Cart ── */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 76px 1fr; gap: 10px; }
    .cart-item-img { width: 76px; height: 76px; font-size: 30px; }
    .cart-item-actions { grid-column: 1/-1; justify-content: flex-end; }

    /* ── Checkout / Forms ── */
    .checkout-layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    /* ── Auth ── */
    .auth-card { padding: 20px 14px; }

    /* ── Account ── */
    .account-layout { grid-template-columns: 1fr; }

    /* ── Steps ── */
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .step-card { padding: 18px 12px; }

    /* ── Testimonials ── */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* ── Admin ── */
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { height: auto; position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* ── Footer ── */
    .pc-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .pc-footer-brand { grid-column: 1/-1; }
    .pc-footer-bottom-inner { flex-direction: column; text-align: center; gap: 4px; }
    .pc-footer-logo { font-size: 17px; }
}

@media (max-width: 420px) {
    .steps-grid { grid-template-columns: 1fr; }
    .pc-footer-grid { grid-template-columns: 1fr; }
    .product-features { grid-template-columns: 1fr; }
}

/* Desktop: always hide bottom nav */
@media (min-width: 701px) {
    .pc-bottom-nav { display: none !important; }
}

/* ══════════════════════════════════════════════
   PRODUCT IMAGE ZOOM
═══════════════════════════════════════════════ */
.product-gallery { position: relative; }

/* Lens: follows cursor on the main image */
#zoomLens {
    display: none;
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: rgba(255, 190, 0, 0.12);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* Zoom result pane: appears to the right of the gallery column */
#zoomResult {
    display: none;
    position: absolute;
    left: calc(100% + 14px);
    top: 0;
    width: 400px;
    height: 400px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background-repeat: no-repeat;
    background-color: white;
    box-shadow: var(--shadow-md);
    z-index: 200;
    overflow: hidden;
    cursor: crosshair;
}

/* Hide zoom on small screens where there's no room to the right */
@media (max-width: 1100px) {
    #zoomResult { display: none !important; }
    #zoomLens   { display: none !important; }
}

/* ══════════════════════════════════════════════
   RECENTLY VIEWED
═══════════════════════════════════════════════ */
.rv-section {
    margin-top: 48px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--gray-200);
}
.rv-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}
.rv-clear-btn {
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.rv-clear-btn:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }

/* track + arrows wrapper */
.rv-track-wrap { position: relative; }
.rv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    background: white;
    box-shadow: var(--shadow);
    font-size: 22px;
    line-height: 1;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.rv-arrow:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); }
.rv-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.rv-arrow-left  { left: -18px; }
.rv-arrow-right { right: -18px; }
.rv-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.rv-track::-webkit-scrollbar { display: none; }

/* card */
.rv-card {
    flex: 0 0 175px;
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.rv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.rv-img-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--gray-50);
}
.rv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.rv-card:hover .rv-img-wrap img { transform: scale(1.06); }
.rv-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}
.rv-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}
.rv-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rv-cat  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); }
.rv-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.35;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-price { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.rv-price-cur  { font-size: 14px; font-weight: 800; color: var(--primary); }
.rv-price-orig { font-size: 11px; color: var(--gray-400); text-decoration: line-through; }

@media (max-width: 700px) {
    .rv-arrow { display: none; }
    .rv-card  { flex: 0 0 145px; }
    .rv-img-wrap { height: 115px; }
    .rv-name { font-size: 12px; }
    .rv-price-cur { font-size: 13px; }
}
