/* زن روز — UI حرفه‌ای الهام از خانومی */
:root {
    --primary: #e91e8c;
    --primary-dark: #c4177a;
    --primary-light: #fdf2f8;
    --secondary: #212121;
    --text: #424750;
    --text-light: #81858b;
    --border: #e0e0e6;
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --white: #ffffff;
    --footer: #1f1f1f;
    --success: #00a049;
    --danger: #d32f2f;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --font: 'Kalameh', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    direction: rtl;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

h1, h2, h3, h4, .logo, .section-title, .product-title, .price-sale,
.price-sale-lg, .nav-mega-col-title, .flash-sale-title, .report-card-value {
    font-family: var(--font);
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.site-main { min-height: 60vh; padding: 20px 0 40px; }

/* Icons */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 0;
}
.icon-svg svg { width: 100%; height: 100%; display: block; }

/* Top bar — نوار تبلیغاتی ملایم */
.top-bar {
    background: #e8f4fc;
    color: #1a4a6b;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); }

.search-box-wrap { position: relative; flex: 1; max-width: 560px; }

.search-box { position: relative; }

.search-box input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-family: inherit;
    font-size: 13px;
    background: var(--bg-soft);
    color: var(--text);
    transition: border-color .15s, background .15s;
}

.search-box input:focus {
    outline: none;
    border-color: #c8c8d0;
    background: var(--white);
}

.search-box button {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.search-box button .icon-svg { width: 20px; height: 20px; }
.search-box button:hover { color: var(--primary); }

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

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text);
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color .15s;
}
.header-action:hover { color: var(--primary); }

.header-action .icon {
    position: relative;
    display: flex;
    color: var(--secondary);
}
.header-action .icon .icon-svg { width: 22px; height: 22px; }
.header-action:hover .icon { color: var(--primary); }
.header-action .label { color: var(--text-light); font-weight: 500; }
.header-action:hover .label { color: var(--primary); }

.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Main nav + mega menu (سبک خانومی) */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 90;
}
.main-nav-inner {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 48px;
}
.nav-mega-wrap { position: relative; flex-shrink: 0; }
.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 16px;
    border: none;
    background: var(--bg-soft);
    color: var(--secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background .15s, color .15s;
}
.nav-mega-wrap.is-open .nav-mega-trigger,
.nav-mega-trigger:hover {
    background: var(--primary);
    color: #fff;
}
.nav-mega-trigger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 16px;
}
.nav-mega-trigger-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.nav-mega-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-right: 2px;
    opacity: .7;
}
.nav-mega-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(960px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 24px;
    z-index: 95;
}
.nav-mega-panel[hidden] { display: none !important; }
.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.nav-mega-col-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.nav-mega-col-title:hover { color: var(--primary); }
.nav-mega-list { margin: 0 0 10px; }
.nav-mega-list li { margin-bottom: 6px; }
.nav-mega-list a {
    font-size: 13px;
    color: var(--text);
    display: block;
    padding: 3px 0;
    transition: color .15s;
}
.nav-mega-list a:hover { color: var(--primary); }
.nav-mega-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.nav-mega-promo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-mega-promo-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    min-height: 88px;
    justify-content: center;
}
.nav-mega-promo-card strong { font-size: 14px; }
.nav-mega-promo-card span { font-size: 12px; opacity: .9; }
.nav-mega-promo-alt { background: var(--secondary); }
.nav-mega-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 80;
}
.nav-mega-backdrop[hidden] { display: none !important; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav-links a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.nav-links a.nav-link-sale {
    color: var(--primary);
    font-weight: 700;
}

.shop-heading { margin-bottom: 16px; }
.shop-heading h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--secondary);
}
.shop-heading-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-light);
}
.subcat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.subcat-chip {
    display: inline-flex;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, color .15s, background .15s;
}
.subcat-chip:hover,
.subcat-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Hero */
.hero-slider {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--bg-soft);
    min-height: 340px;
}

.hero-slide {
    display: none;
    padding: 56px 48px;
    min-height: 340px;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}
.hero-slide.active { display: flex; }

.hero-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--secondary);
}
.hero-content p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 22px;
    max-width: 420px;
}
.hero-content-on-image h2,
.hero-content-on-image p { color: #fff; }
.hero-content-on-image p { opacity: .9; }

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
}
.hero-dot.active { background: #fff; width: 22px; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-white {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Sections */
.section { margin: 40px 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.section-link {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}
.section-link:hover { color: var(--primary); }

/* Trust strip */
.trust-strip {
    background: var(--bg-soft);
    border-radius: var(--radius);
    margin: 0 0 28px;
    overflow: hidden;
}
.trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.trust-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    border-left: 1px solid var(--border);
}
.trust-strip-item:last-child { border-left: none; }
.trust-strip-item .icon-svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Category circles — مثل خانومی */
.category-circles {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 88px;
    text-align: center;
}
.category-circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    transition: border-color .15s, box-shadow .15s;
    overflow: hidden;
}
.category-circle-photo {
    padding: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
}
.category-circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-circle-icon .icon-svg { width: 28px; height: 28px; color: var(--primary); }
.category-circle-sale { background: var(--primary-light); border-color: #f9c2df; }
.category-circle:hover .category-circle-icon {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.category-circle-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
}

.brands-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    transition: border-color .15s, color .15s, background .15s;
}
.brand-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Flash sale panel */
.flash-sale-panel {
    background: var(--primary);
    border-radius: 12px;
    padding: 20px;
}
.flash-sale-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
}
.flash-sale-label {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 2px;
}
.flash-sale-title { font-size: 18px; font-weight: 700; }
.flash-sale-foot { text-align: center; margin-top: 16px; }
.product-grid-flash .product-card {
    border: none;
    box-shadow: none;
}

.countdown {
    display: flex;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.countdown span {
    background: rgba(255,255,255,.18);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    min-width: 40px;
    text-align: center;
}

/* Product grid & cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    transition: border-color .15s, box-shadow .15s;
}
.product-card:hover {
    border-color: #d0d0d8;
    box-shadow: var(--shadow-md);
}

.product-card-link { display: block; color: inherit; }

.product-card-image {
    aspect-ratio: 1;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
}

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

.product-brand {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.45;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}
.price-sale {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}
.price-original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.out-of-stock {
    color: var(--danger);
    font-size: 11px;
    font-weight: 600;
    width: 100%;
}

.product-card-cart {
    position: absolute;
    bottom: 12px;
    left: 12px;
    opacity: 0;
    transition: opacity .15s;
}
.product-card:hover .product-card-cart { opacity: 1; }

.btn-add-cart {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    padding: 0;
}
.btn-add-cart .icon-svg { width: 16px; height: 16px; }
.btn-add-cart:hover { background: var(--primary-dark); }

.btn-compare-card {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0;
    transition: opacity .15s, color .15s;
}
.product-card:hover .btn-compare-card { opacity: 1; }
.btn-compare-card:hover { color: var(--primary); border-color: var(--primary); }
.btn-compare-card .icon-svg { width: 14px; height: 14px; }

/* Banners */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 28px 0;
}
.banner-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    background: var(--bg-soft);
}
.banner-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform .3s ease;
}
.banner-item:hover img { transform: scale(1.02); }
.banner-item-title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* SEO block */
.seo-block {
    margin: 40px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}
.seo-block h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 10px;
}
.seo-block p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 2;
    margin: 0;
}

/* Footer — تیره مثل خانومی */
.site-footer {
    background: var(--footer);
    color: #b0b0b0;
    margin-top: 48px;
    padding: 48px 0 100px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.footer-logo span { color: #fff; }
.footer-about {
    font-size: 13px;
    line-height: 1.8;
    color: #888;
    margin: 0;
    max-width: 260px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.footer-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}
.footer-links li { margin-bottom: 10px; font-size: 13px; }
.footer-links a { color: #999; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 200;
    padding: 6px 0 env(safe-area-inset-bottom);
}
.mobile-nav ul {
    display: flex;
    justify-content: space-around;
}
.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    gap: 3px;
    color: var(--text-light);
    padding: 6px 12px;
    font-weight: 500;
}
.mobile-nav a .icon-svg { width: 22px; height: 22px; }
.mobile-nav a.active,
.mobile-nav a:hover { color: var(--primary); }

/* Alerts & forms */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 0 0 16px;
    font-size: 13px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

.form-group { margin-bottom: 16px; }
.form-group label,
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Cart & checkout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.cart-item {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.cart-summary {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.summary-total {
    font-size: 17px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

/* Product detail — گالری | اطلاعات | باکس خرید چسبان */
.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(240px, 1fr) 300px;
    gap: 28px;
    align-items: start;
    margin-bottom: 32px;
}

.product-gallery-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.product-gallery-thumbs-v {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    flex-shrink: 0;
}

.product-gallery-main {
    flex: 1;
    background: var(--bg-soft);
    border-radius: var(--radius);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: zoom-in;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumb {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: white;
    flex-shrink: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-zoom-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    padding: 0;
}
.gallery-zoom-btn .icon-svg { width: 18px; height: 18px; }

.product-info { padding-top: 4px; }

.product-brand-link {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.product-brand-link:hover { color: var(--primary); }

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--secondary);
    line-height: 1.45;
}

.product-rating { margin-bottom: 12px; font-size: 13px; }
.product-rating .stars { color: #f59e0b; letter-spacing: 1px; }
.rating-count { color: var(--text-light); font-size: 12px; margin-right: 6px; }

.product-short-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px;
    line-height: 1.8;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}
.variant-btn {
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
}
.variant-btn input { display: none; }
.variant-btn span {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
}
.variant-btn.active,
.variant-btn:has(input:checked) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.product-description {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.product-description h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--secondary);
}
.product-description-body {
    font-size: 13px;
    color: var(--text);
    line-height: 2;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 0;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}
.trust-item .icon-svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Sticky buy box */
.product-buy-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow);
}

.product-price-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.price-sale-lg {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 13px;
}
.qty-input {
    width: 72px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    text-align: center;
}

.stock-ok {
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 12px;
}
.out-of-stock-lg {
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 12px;
}

.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.action-link .icon-svg { width: 16px; height: 16px; }
.action-link:hover { color: var(--primary); }

.stock-alert-box,
.stock-alert-form { margin-top: 8px; }
.stock-alert-box h4 { margin: 0 0 8px; font-size: 13px; }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumb a:hover { color: var(--primary); }

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.blog-card:hover { border-color: #d0d0d8; }
.blog-card-body { padding: 16px; }
.blog-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--secondary);
}
.blog-card-body p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* Reviews */
.review-card {
    background: var(--bg-soft);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}
.stars-sm { color: #f59e0b; }
.review-form-section {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Search suggest */
.search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.search-suggest a:hover { background: var(--bg-soft); }
.search-suggest img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Compare */
.compare-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
    font-size: 13px;
    vertical-align: top;
}
.compare-table th:first-child,
.compare-table td:first-child {
    text-align: right;
    font-weight: 600;
    background: var(--bg-soft);
    width: 120px;
}
.compare-table th img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 8px;
}
.compare-remove { float: left; color: var(--danger); font-size: 18px; }

/* Order tracking */
.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
}
.tracking-step {
    text-align: center;
    flex: 1;
    font-size: 12px;
}
.tracking-step .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 8px;
}
.tracking-step.done .dot { background: var(--success); }
.tracking-step.current .dot { background: var(--primary); }

/* Shop filters */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.filters-panel {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.filters-panel h3 { font-size: 14px; margin: 0 0 16px; }

/* Static pages */
.static-page {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}
.static-page h1 { font-size: 22px; margin-bottom: 20px; }
.static-page-content {
    line-height: 2;
    font-size: 14px;
    color: var(--text);
}
.static-page-content h3 { margin: 20px 0 8px; font-size: 16px; }
.static-page-content ul { margin: 12px 24px 12px 0; }

/* Admin */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #1a1a2e;
    color: white;
    padding: 24px 0;
}
.admin-sidebar .logo {
    color: white;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}
.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(233,30,140,.2);
    color: white;
}
.admin-content { padding: 24px; background: #f5f5f7; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .label { font-size: 13px; color: var(--text-light); }
.admin-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    border-collapse: collapse;
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.admin-table th { background: #f5f5f7; font-weight: 600; }

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.report-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.report-card-label { font-size: 12px; color: #888; margin-bottom: 8px; }
.report-card-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 28px;
    overflow-x: auto;
}
.sales-bar {
    flex: 1;
    min-width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.sales-bar-fill {
    width: 100%;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}
.sales-bar span { font-size: 9px; color: #999; margin-top: 4px; }
.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.report-toolbar-label { font-size: 13px; color: #666; }
.table-actions { white-space: nowrap; }
.table-actions .sep { color: #ccc; margin: 0 6px; }

/* Responsive */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
    .product-buy-box {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 992px) {
    .nav-mega-panel {
        position: fixed;
        top: auto;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        grid-template-columns: 1fr;
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
    .nav-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-mega-promo { flex-direction: row; }
    .nav-mega-promo-card { flex: 1; min-height: 72px; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .search-box-wrap { order: 3; max-width: 100%; width: 100%; }
    .header-actions .label { display: none; }
    .header-action { padding: 6px; }
    .mobile-nav { display: block; }
    .site-footer { padding-bottom: 88px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-gallery-wrap { flex-direction: column-reverse; }
    .product-gallery-thumbs-v {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
    .product-buy-box { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .hero-slide { padding: 32px 20px; min-height: 220px; }
    .hero-content h2 { font-size: 20px; }
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .trust-strip-item:nth-child(2) { border-left: none; }
    .trust-strip-item { border-bottom: 1px solid var(--border); }
    .product-card-cart,
    .btn-compare-card { opacity: 1; }
    .category-circles { justify-content: flex-start; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .main-nav-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-mega-trigger {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    .nav-mega-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { padding: 0 8px 4px; }
    .nav-links a { padding: 10px 10px; font-size: 12px; }
}
