* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #0f91e3;
  --primary-dark: #0a6db0;
  --night: #1a2845;
  --night-deep: #0d1729;
  --accent: #ffb84d;
  --accent-hot: #ff4757;
  --soft: #f4f8fb;
  --text: #2b3346;
  --text-light: #6b7689;
  --white: #ffffff;
  --border: #e6ecf2;
  --success: #2ecc71;
}
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--white); line-height: 1.5; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.promo-bar { background: linear-gradient(90deg, var(--night-deep), var(--night), var(--night-deep)); color: white; padding: 10px 0; font-size: 14px; overflow: hidden; }
.promo-bar-track { display: flex; gap: 60px; animation: scroll-left 30s linear infinite; white-space: nowrap; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.promo-bar-track span { display: inline-flex; align-items: center; gap: 8px; }
.pulse { color: var(--accent); }

.hamburger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); border: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; }
.hamburger:hover { background: var(--primary); }
.hamburger:hover span { background: white; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s; }
.drawer-bg.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; left: -360px; bottom: 0; width: 320px; max-width: 85vw; background: white; z-index: 999; transition: left .3s ease; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,0.25); overflow-y: auto; }
.drawer.open { left: 0; }
.drawer-head { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 2; }
.drawer-head .logo { font-size: 20px; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: none; cursor: pointer; font-size: 16px; }
.drawer-search { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-search input { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 999px; font-size: 14px; background: var(--soft); }
.drawer-nav { flex: 1; padding: 12px 0; }
.drawer-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); padding: 16px 20px 8px; font-weight: 700; }
.drawer-link { display: flex; align-items: center; gap: 14px; padding: 13px 20px; font-size: 15px; color: var(--text); border-left: 3px solid transparent; transition: all .15s; cursor: pointer; }
.drawer-link:hover { background: var(--soft); border-left-color: var(--primary); color: var(--primary); }
.drawer-link .icon { font-size: 20px; width: 24px; text-align: center; }
.drawer-link.hot { color: var(--accent-hot); font-weight: 600; }
.drawer-link .badge-mini { margin-left: auto; background: var(--primary); color: white; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.drawer-footer { padding: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); background: var(--soft); }
.drawer-footer p { margin-bottom: 6px; }
.drawer-footer a { color: var(--primary); }

header { background: white; padding: 16px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 24px; font-weight: 800; color: var(--night); display: flex; align-items: center; gap: 8px; }
.logo svg { width: 32px; height: 32px; }
.search-box { flex: 1; max-width: 480px; position: relative; }
.search-box input { width: 100%; padding: 12px 16px 12px 44px; border: 2px solid var(--border); border-radius: 999px; font-size: 14px; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box::before { content: '🔍'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; position: relative; border: none; }
.icon-btn:hover { background: var(--primary); color: white; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-hot); color: white; border-radius: 999px; font-size: 11px; padding: 2px 6px; font-weight: 700; min-width: 20px; text-align: center; }

nav.main-nav { background: white; border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 77px; z-index: 99; }
.nav-list { display: flex; gap: 28px; list-style: none; justify-content: center; flex-wrap: wrap; }
.nav-list a { font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 0; position: relative; }
.nav-list a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .3s; }
.nav-list a:hover, .nav-list a.active { color: var(--primary); }
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list .hot { color: var(--accent-hot); }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--night); color: white; padding: 14px 20px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 1500; display: flex; align-items: center; gap: 12px; transform: translateX(400px); transition: transform .3s; }
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .3s; border: none; }
.btn-primary { background: var(--accent); color: var(--night); box-shadow: 0 8px 24px rgba(255,184,77,0.4); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-blue { background: var(--primary); color: white; }
.btn-blue:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline { background: white; color: var(--text); border: 2px solid var(--border); }

.hero { position: relative; background: linear-gradient(135deg, #0a4d7c 0%, #0f91e3 50%, #1a2845 100%); color: white; overflow: hidden; padding: 60px 0 80px; max-width: 100%; }
.hero::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,184,77,0.25), transparent 70%); top: -100px; right: -100px; border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,184,77,0.2); border: 1px solid var(--accent); color: var(--accent); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero h1 .gradient { background: linear-gradient(90deg, var(--accent), #ffd980); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 28px; max-width: 500px; }
.countdown { display: flex; gap: 12px; margin-bottom: 32px; }
.countdown-item { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); padding: 14px 18px; border-radius: 12px; text-align: center; min-width: 70px; }
.countdown-item .num { font-size: 28px; font-weight: 800; }
.countdown-item .label { font-size: 11px; opacity: 0.8; letter-spacing: 1px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card-stack { position: relative; height: 420px; }
.deal-card { position: absolute; background: white; color: var(--text); padding: 20px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); cursor: pointer; }
.deal-card-1 { width: 280px; top: 20px; right: 0; transform: rotate(4deg); }
.deal-card-2 { width: 280px; top: 130px; left: 0; transform: rotate(-4deg); z-index: 2; }
.deal-card-3 { width: 280px; top: 240px; right: 40px; transform: rotate(2deg); }
.deal-tag { display: inline-block; background: var(--accent-hot); color: white; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.deal-card h4 { font-size: 16px; margin-bottom: 6px; }
.deal-prices { display: flex; gap: 8px; align-items: baseline; }
.price-old { color: var(--text-light); text-decoration: line-through; font-size: 14px; }
.price-new { color: var(--accent-hot); font-weight: 800; font-size: 22px; }

.benefits { background: var(--soft); padding: 24px 0; border-bottom: 1px solid var(--border); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit { display: flex; gap: 12px; align-items: center; }
.benefit-icon { width: 44px; height: 44px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.benefit strong { display: block; font-size: 14px; }
.benefit span { font-size: 12px; color: var(--text-light); }

section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--night); margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all .3s; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.product-card.out-of-stock .img { opacity: 0.6; filter: grayscale(40%); }
.product-card.out-of-stock .add-cart { background: #bbb; pointer-events: none; }
.product-card .img { height: 240px; display: flex; align-items: center; justify-content: center; font-size: 80px; position: relative; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .4s; }
.product-card:hover .img img { transform: scale(1.05); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent-hot); color: white; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.product-fav { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 14px; }
.product-fav:hover, .product-fav.active { background: var(--accent-hot); color: white; }
.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-info .cat { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-info h3 { font-size: 16px; margin-bottom: 8px; color: var(--night); }
.product-prices { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.product-prices .prices { display: flex; flex-direction: column; }
.product-prices .price-old { font-size: 12px; }
.product-prices .price-new { font-size: 20px; line-height: 1.2; }
.add-cart { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; border: none; }
.add-cart:hover { background: var(--night); transform: scale(1.1); }

.cat-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 600px; }
.cat-card { border-radius: 20px; overflow: hidden; position: relative; cursor: pointer; transition: all .4s; }
.cat-card:hover { transform: scale(1.02); }
.cat-card.featured { grid-row: span 2; background: linear-gradient(135deg, #1a2845, #0f91e3); }
.cat-card.c2 { background: linear-gradient(135deg, #f5d4a8, #ff9a4d); }
.cat-card.c3 { background: linear-gradient(135deg, #b8d4e8, #5a9bd4); }
.cat-card.c4 { background: linear-gradient(135deg, #c5e0c0, #76b56b); }
.cat-card.c5 { background: linear-gradient(135deg, #e0c5e8, #a76dc4); }
.cat-content { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.cat-card .emoji { font-size: 64px; align-self: flex-end; }
.cat-card.featured .emoji { font-size: 120px; }
.cat-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cat-card.featured h3 { font-size: 32px; }
.cat-content p { font-size: 13px; opacity: 0.9; margin-bottom: 12px; }
.cat-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 999px; align-self: flex-start; }

.cat-hero { padding: 60px 0; color: white; position: relative; overflow: hidden; }
.cat-hero h1 { font-size: 48px; margin-bottom: 12px; }
.cat-hero p { font-size: 17px; opacity: 0.9; max-width: 600px; }
.cat-hero .emoji-bg { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font-size: 200px; opacity: 0.2; }
.breadcrumb { font-size: 13px; opacity: 0.8; margin-bottom: 16px; }
.breadcrumb-sep { margin: 0 8px; opacity: 0.5; }

.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }
.filters { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 20px; height: fit-content; position: sticky; top: 160px; }
.filters h4 { font-size: 18px; margin-bottom: 16px; color: var(--night); display: flex; justify-content: space-between; align-items: center; }
details.filter-acc { padding: 14px 0; border-bottom: 1px solid var(--border); }
details.filter-acc:last-of-type { border-bottom: none; }
details.filter-acc summary { font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 0; user-select: none; }
details.filter-acc summary::-webkit-details-marker { display: none; }
details.filter-acc summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--text-light); }
details.filter-acc[open] summary::after { content: '−'; }
details.filter-acc summary:hover { color: var(--primary); }
details.filter-acc .acc-body { padding-top: 12px; padding-left: 2px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.filter-option input { accent-color: var(--primary); }
.price-range { display: flex; gap: 8px; width: 100%; }
.price-range input { flex: 1 1 0; min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.clear-filters { font-size: 12px; color: var(--primary); background: none; border: none; cursor: pointer; }

.mobile-filter-bar { display: none; gap: 8px; margin-bottom: 16px; }
.mobile-filter-bar button { flex: 1; background: white; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); }
.mobile-filter-bar button:hover { border-color: var(--primary); color: var(--primary); }
.filter-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1099; opacity: 0; visibility: hidden; transition: opacity .25s; }
.filter-modal-bg.open { opacity: 1; visibility: visible; }
.filter-modal-handle { width: 40px; height: 4px; background: #ccc; border-radius: 4px; margin: 8px auto 0; display: none; }
.filter-modal-title { display: none; }
.filter-modal-close { display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: none; cursor: pointer; font-size: 18px; }

.cat-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.cat-toolbar .count { color: var(--text-light); font-size: 14px; }
.toolbar-controls { display: flex; gap: 12px; align-items: center; }
.sort-select { padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: white; cursor: pointer; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle button { background: white; border: none; padding: 10px 14px; cursor: pointer; font-size: 16px; }
.view-toggle button.active { background: var(--primary); color: white; }
.cat-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-products.list { grid-template-columns: 1fr; }
.cat-products.list .product-card { flex-direction: row; }
.cat-products.list .product-card .img { width: 240px; height: auto; flex-shrink: 0; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
.product-gallery { position: sticky; top: 160px; height: fit-content; }
.gallery-main { background: #fff; border: 1px solid var(--border); border-radius: 20px; height: 500px; display: flex; align-items: center; justify-content: center; font-size: 200px; margin-bottom: 16px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-thumb { background: var(--soft); border-radius: 12px; height: 90px; display: flex; align-items: center; justify-content: center; font-size: 40px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-info-detail h1 { font-size: 36px; margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--text-light); }
.product-price-big { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-price-big .now { font-size: 40px; font-weight: 800; color: var(--accent-hot); }
.product-price-big .was { font-size: 20px; color: var(--text-light); text-decoration: line-through; }
.product-price-big .save { background: var(--accent-hot); color: white; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.quantity-add { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; align-items: center; }
.qty-control { display: flex; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; }
.qty-control button { width: 44px; height: 48px; border: none; background: white; font-size: 18px; cursor: pointer; }
.qty-control input { width: 60px; border: none; text-align: center; font-size: 16px; font-weight: 700; }
.product-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; background: var(--soft); border-radius: 12px; margin-top: 24px; }
.pf { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pf-icon { font-size: 24px; }
.product-tabs { margin-top: 60px; }
.tabs-nav { display: flex; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tabs-nav button { background: none; border: none; padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--text-light); cursor: pointer; position: relative; }
.tabs-nav button.active { color: var(--primary); }
.tabs-nav button.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 12px 0; font-size: 14px; }
.specs-table td:first-child { color: var(--text-light); width: 200px; }

.config-page { background: linear-gradient(135deg, var(--night-deep), var(--night)); color: white; min-height: 600px; padding: 60px 0; }
.config-wrapper { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.config-visual { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: center; position: sticky; top: 160px; height: fit-content; min-height: 400px; flex-direction: column; }
.pillow-shape { background: linear-gradient(135deg, var(--primary), #5cb6f0); border-radius: 60px; box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset -20px -30px 40px rgba(0,0,0,0.15), inset 20px 20px 40px rgba(255,255,255,0.15); transition: all .5s; }
.config-steps-vert { display: flex; flex-direction: column; gap: 16px; }
.config-step-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 20px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-circle { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.config-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.config-opt { padding: 12px 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; text-align: center; cursor: pointer; font-size: 13px; transition: all .2s; color: white; }
.config-opt:hover { background: rgba(15,145,227,0.3); }
.config-opt.active { background: var(--primary); border-color: var(--primary); }
.config-summary-card { background: rgba(15,145,227,0.2); border: 1px solid var(--primary); padding: 20px; border-radius: 16px; margin-top: 16px; }
.config-summary-card .label { font-size: 13px; opacity: 0.8; }
.config-summary-card .total { font-size: 36px; font-weight: 800; color: var(--accent); margin: 8px 0; }

.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 40px 0; }
.cart-items { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 100px; height: 100px; background: var(--soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item h4 { font-size: 16px; margin-bottom: 4px; }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--accent-hot); text-align: right; }
.cart-remove { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: none; cursor: pointer; }
.cart-summary { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; height: fit-content; position: sticky; top: 160px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-size: 22px; font-weight: 800; border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .emoji { font-size: 80px; margin-bottom: 16px; }

.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form .full { grid-column: 1/-1; }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.checkout-form input, .checkout-form select, .checkout-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.pay-options { display: grid; gap: 12px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; }
.pay-opt.active { border-color: var(--primary); background: rgba(15,145,227,0.05); }
.pay-icon { font-size: 28px; margin-left: auto; }

.auth-wrap { max-width: 480px; margin: 60px auto; background: white; border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--soft); padding: 4px; border-radius: 12px; }
.auth-tab { flex: 1; padding: 12px; background: none; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.auth-tab.active { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.auth-form { display: grid; gap: 14px; }
.auth-form input { padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: white; border: 1px solid var(--border); padding: 24px; border-radius: 16px; display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--night)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; flex-shrink: 0; }
.map-placeholder { background: linear-gradient(135deg, #d4e8d4, #76b56b); height: 200px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }

.about-hero { background: linear-gradient(135deg, var(--night-deep), var(--primary)); color: white; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 48px; margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0; }
.stat { background: white; border: 1px solid var(--border); padding: 28px; border-radius: 16px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--primary); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.about-img { background: linear-gradient(135deg, var(--soft), #e8f1fa); border-radius: 20px; height: 360px; display: flex; align-items: center; justify-content: center; font-size: 120px; }

.testimonials { background: var(--soft); }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card { background: white; padding: 28px; border-radius: 16px; }
.test-stars { color: var(--accent); margin-bottom: 12px; }
.test-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.test-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--night)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }

.newsletter { background: linear-gradient(135deg, var(--primary), var(--night)); color: white; text-align: center; padding: 60px 0; }
.newsletter h2 { font-size: 32px; margin-bottom: 12px; }
.news-form { display: flex; max-width: 500px; margin: 0 auto; background: white; border-radius: 999px; padding: 6px; }
.news-form input { flex: 1; border: none; padding: 14px 20px; font-size: 15px; background: transparent; color: var(--text); }
.news-form button { background: var(--accent); color: var(--night); border: none; padding: 14px 28px; border-radius: 999px; font-weight: 700; cursor: pointer; }

footer { background: var(--night-deep); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: white; margin-bottom: 16px; font-size: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1200; padding: 20px; }
.modal-bg.show { display: flex; }
.modal { background: white; border-radius: 20px; max-width: 500px; width: 100%; padding: 32px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: none; cursor: pointer; font-size: 18px; }

.empty-cat { text-align: center; padding: 80px 20px; }
.empty-cat .icon { font-size: 80px; margin-bottom: 20px; opacity: 0.6; }

@media (max-width: 900px) {
  .hero-grid, .product-layout, .cat-layout, .config-wrapper, .cart-layout, .about-section, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .hero h1 { font-size: 32px; }
  .products-grid, .cat-products, .test-grid, .benefits-grid, .footer-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { height: auto; grid-template-rows: auto; grid-template-columns: repeat(2, 1fr); }
  .cat-card.featured { grid-row: span 1; }
  .cat-card { min-height: 160px; }
  .cat-content h3 { font-size: 18px; }
  .cat-card.featured h3 { font-size: 24px; }
  .cat-card .emoji { font-size: 48px; }
  .cat-card.featured .emoji { font-size: 80px; }
  section.config-page > .container[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; text-align: center; gap: 24px !important; }
  section.config-page h2 { font-size: 28px !important; hyphens: none; word-break: keep-all; }
  section.config-page h2 br { display: none; }
  .section-header h2 { font-size: 26px; }
  section { padding: 48px 0; }
  .search-box { display: none; }
  .filters, .product-gallery, .cart-summary, .config-visual { position: static; }
  .gallery-main { height: 320px; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .hide-on-mobile { display: none; }
  header { padding: 12px 0; }
  .header-inner { gap: 12px; }
  .logo { font-size: 20px; }
  .logo svg { width: 28px; height: 28px; }
  .promo-bar { font-size: 12px; padding: 8px 0; }
  .container { padding: 0 16px; }
  .cat-hero { padding: 40px 0; }
  .cat-hero h1 { font-size: 32px; }
  .cat-hero .emoji-bg { font-size: 140px; right: -20px; }
  .cat-toolbar { flex-direction: column; align-items: flex-start; }
  .product-info-detail h1 { font-size: 26px; }
  .product-price-big .now { font-size: 32px; }
  .config-page { padding: 40px 0; }
  .news-form { flex-direction: column; padding: 12px; border-radius: 16px; gap: 8px; }
  .news-form button { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .mobile-filter-bar { display: flex; }
  .filters { position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: -100% !important; z-index: 1100 !important; transition: bottom .3s ease; border-radius: 20px 20px 0 0; max-height: 85vh; overflow-y: auto; padding: 0 20px 20px; margin: 0; box-shadow: 0 -8px 32px rgba(0,0,0,0.2); background: white; width: auto; visibility: hidden; }
  .filters.open { bottom: 0 !important; visibility: visible; }
  .filters > h4 { display: none; }
  .filter-modal-handle, .filter-modal-title, .filter-modal-close { display: block; }
  .filter-modal-title { display: flex; justify-content: space-between; align-items: center; margin: 0 -20px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 18px; }
  .cat-layout { display: block; }
}

@media (max-width: 600px) {
  .products-grid, .cat-products, .benefits-grid, .footer-grid, .stats-grid, .checkout-form { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 140px; }
  .cat-content { padding: 18px; }
  .cat-content h3 { font-size: 17px; }
  .cat-card.featured h3 { font-size: 22px; }
  .cat-card .emoji { font-size: 36px; }
  .cat-card.featured .emoji { font-size: 56px; }
  .cat-link { font-size: 12px; padding: 6px 12px; }
  .hero h1 { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-card-stack { height: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 16px; }
  .deal-card { position: static !important; width: 90% !important; max-width: 320px; transform: none !important; }
  .test-grid { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
}
