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

:root {
  --purple: #E41C1A;
  --purple-dark: #b81614;
  --purple-light: #fff0f0;
  --accent: #ff6347;
  --text: #1c1c1c;
  --text-muted: #888;
  --border: #e5e7eb;
  --bg: #f4f4f4;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.09);
  --radius: 12px;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ══ HEADER ══ */
.header { background: var(--purple); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header__inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 90px; display: grid; grid-template-columns: 1fr minmax(300px, 700px) 1fr; align-items: center; gap: 20px; }
.logo { color: #E0DC16; font-size: 5rem; font-weight: 800; text-decoration: none; white-space: nowrap; letter-spacing: -1px; line-height: 1; font-family: 'Arial Rounded MT Bold', 'Arial Rounded MT', 'Nunito', sans-serif; }

.search-bar { display: flex; background: #fff; border-radius: 10px; overflow: hidden; width: 100%; max-width: 700px; margin: 0 auto; height: 48px; }
.search-bar input { flex: 1; border: none; outline: none; padding: 0 18px; font-size: 1rem; }
.search-btn { background: #fff; border: none; padding: 0 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.search-btn:hover { opacity: .7; }
.search-btn svg { fill: none; stroke: #e62e04; stroke-width: 2.2; stroke-linecap: round; }

.header-actions { display: flex; gap: 12px; justify-content: flex-end; }
.icon-btn { background: rgba(255,255,255,.15); border: none; border-radius: 10px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.25); }
.icon-btn svg { fill: #fff; width: 26px; height: 26px; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ══ CATEGORIES ══ */
.categories { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 60px; z-index: 99; }
.categories__inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.categories__inner::-webkit-scrollbar { display: none; }
.cat-btn { border: none; background: none; padding: 14px 16px; font-size: .9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.cat-btn:hover { color: var(--purple); }
.cat-btn.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 700; }

/* ══ TOOLBAR ══ */
.toolbar { max-width: 1400px; margin: 0 auto; padding: 12px 16px; }
.toolbar__inner { display: flex; align-items: center; justify-content: space-between; }
.results-count { font-size: .875rem; color: var(--text-muted); }
.sort-group { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-muted); }
.sort-group select { border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: .875rem; cursor: pointer; outline: none; background: var(--white); }

/* ══ CARPET LAYOUT ══ */
.page-layout { display: flex; align-items: flex-start; width: 100%; }
.carpet-left, .carpet-right { width: 260px; min-width: 260px; height: 640px; background: url('images/carpet.png') no-repeat center / cover; border-radius: 10px; margin-top: 24px; flex-shrink: 0; }
.carpet-left { margin-left: 24px; }
.carpet-right { margin-right: 24px; }

/* ══ PROMO BANNER ══ */
.promo-banner { background: var(--purple); color: #E0DC16; font-weight: 700; font-size: 1rem; text-align: center; padding: 8px 16px; border-radius: 6px; margin-bottom: 12px; letter-spacing: 0.3px; }
.promo-photo-wrap { margin-bottom: 16px; }
.promo-photo { width: 100%; border-radius: 14px; display: block; }
.carpet-right { margin-left: auto; }

/* ══ PRODUCT GRID ══ */
.main { flex: 1; padding: 0 16px 40px; }
.product-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }
.product-grid .card { width: 210px; }
.no-results { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-muted); }

/* ══ CARD ══ */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; position: relative; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.card-img-wrap { position: relative; padding-top: 130%; overflow: hidden; background: #f8f4ff; }
.card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.card-badge--new { background: var(--purple); left: auto; right: 8px; }
.card-fav { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.85); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.card:hover .card-fav { opacity: 1; }
.card-fav svg { fill: #ccc; transition: fill .15s; }
.card-fav.active svg, .card-fav:hover svg { fill: var(--accent); }
.card-fav.active { opacity: 1; }
.card-body { padding: 10px 10px 12px; }
.card-brand { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.card-title { font-size: .85rem; font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.stars { color: #f5a623; font-size: .85rem; letter-spacing: 1px; }
.card-reviews { font-size: .72rem; color: var(--text-muted); }
.card-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price { font-size: 1.05rem; font-weight: 700; }
.card-old-price { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }

/* ══ DISCOUNT BADGE on cards ══ */
.card-discount-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.card-badge--new { background: var(--purple); }

/* ══ BREADCRUMB ══ */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb-inner { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--purple); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ══ PRODUCT PAGE — 3 columns like WB ══ */
.product-page { max-width: 1300px; margin: 0 auto; padding: 20px 16px 32px; display: flex; gap: 16px; align-items: flex-start; }

/* Gallery */
.gallery { display: flex; gap: 10px; flex: 0 0 580px; }
.gallery-thumbs-col { display: flex; flex-direction: column; gap: 8px; width: 90px; flex-shrink: 0; }
.gallery-thumbs-col .thumb { width: 90px; height: 120px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s, opacity .15s; opacity: .7; background: #f0f0f0; }
.gallery-thumbs-col .thumb:hover { opacity: 1; }
.gallery-thumbs-col .thumb.active { border-color: var(--purple); opacity: 1; }

.gallery-main-wrap { flex: 1; position: relative; }
.gallery-main { border-radius: 8px; overflow: hidden; background: #f8f8f8; aspect-ratio: 3/4; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .12s; }
.gallery-main img.fade { opacity: 0; }

.gallery-sale-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; letter-spacing: .5px; z-index: 3; }

.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 1px 6px rgba(0,0,0,.15); transition: background .15s; line-height: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow--prev { left: 6px; }
.gallery-arrow--next { right: 6px; }

.gallery-similar-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.9); border: none; border-radius: 6px; padding: 5px 10px; font-size: .78rem; cursor: pointer; display: flex; align-items: center; gap: 4px; color: #444; z-index: 3; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: background .15s; }
.gallery-similar-btn svg { fill: #444; }
.gallery-similar-btn:hover { background: #fff; }

.gallery-dots { display: none; justify-content: center; gap: 6px; padding-top: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .15s; }
.dot.active { background: var(--purple); }

/* COL 2: center — title, rating, sizes */
.product-center { flex: 1; min-width: 0; padding-top: 4px; }
.prod-brand { font-size: .8rem; color: var(--purple); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; cursor: pointer; display: inline-block; }
.prod-brand:hover { text-decoration: underline; }
.prod-title { font-size: 1.1rem; font-weight: 400; line-height: 1.55; margin-bottom: 10px; color: #1c1c1c; }
.prod-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.prod-reviews-link { font-size: .82rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px dashed var(--text-muted); }
.prod-reviews-link:hover { color: var(--purple); border-bottom-color: var(--purple); }

/* Sizes */
.prod-sizes-block { margin-bottom: 0; }
.sizes-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sizes-label-text { font-size: .88rem; color: var(--text-muted); }
.sizes-label-text strong { color: var(--text); }
.size-guide-btn { background: none; border: none; color: var(--purple); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.size-guide-btn:hover { color: var(--purple-dark); }
.sizes-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { border: 1.5px solid var(--border); background: none; border-radius: 6px; padding: 7px 14px; font-size: .85rem; cursor: pointer; transition: border-color .15s, background .15s; min-width: 44px; text-align: center; }
.size-btn:hover { border-color: var(--purple); }
.size-btn.active { border-color: var(--purple); background: var(--purple-light); color: var(--purple); font-weight: 700; }

/* COL 3: price panel */
.product-price-panel { flex: 0 0 268px; position: sticky; top: 76px; background: #fff; border-radius: 10px; border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 0; }

.panel-promo { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: #e62e04; background: #fff0ed; border-radius: 6px; padding: 5px 10px; margin-bottom: 12px; }
.panel-promo svg { fill: #e62e04; flex-shrink: 0; }

.panel-prices { margin-bottom: 8px; }
.panel-price-wallet-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.panel-fire { font-size: 1rem; }
.panel-wallet-price { font-size: 1.7rem; font-weight: 700; color: #1c1c1c; line-height: 1; }
.panel-price-row2 { display: flex; align-items: center; gap: 8px; }
.panel-regular-price { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.panel-old-price { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }

.panel-bonus { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #3c76d2; margin-bottom: 14px; }
.panel-bonus-icon { font-size: .9rem; }

.panel-cart-wrap { margin-bottom: 8px; }
.btn-wb-cart { width: 100%; background: var(--purple); color: #fff; border: none; border-radius: 8px; height: 50px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-wb-cart:hover { background: var(--purple-dark); }

.cart-stepper { display: flex; align-items: center; border-radius: 8px; overflow: hidden; height: 50px; background: var(--purple); }
.stepper-btn { flex: 0 0 50px; height: 100%; background: none; border: none; color: #fff; font-size: 1.6rem; font-weight: 300; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.stepper-btn:hover { background: rgba(255,255,255,.15); }
.stepper-num { flex: 1; text-align: center; color: #fff; font-size: 1.05rem; font-weight: 600; }

.btn-buy-now { width: 100%; background: var(--purple-light); border: none; color: var(--purple); border-radius: 8px; height: 44px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s; margin-bottom: 12px; }
.btn-buy-now:hover { background: #f0d8ff; }

.panel-delivery { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.panel-delivery-icon { fill: var(--purple); flex-shrink: 0; }

.panel-divider { height: 1px; background: var(--border); margin: 10px 0; }

.panel-specs-mini { font-size: .8rem; color: var(--text); margin-bottom: 8px; }
.panel-spec-row { display: flex; gap: 6px; padding: 4px 0; border-bottom: 1px dotted var(--border); }
.panel-spec-key { color: var(--text-muted); flex: 0 0 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-spec-val { color: var(--text); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel-specs-link { background: none; border: none; color: var(--text); font-size: .82rem; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px; margin-bottom: 0; }
.panel-specs-link svg { fill: var(--text-muted); }
.panel-specs-link:hover { color: var(--purple); }
.panel-specs-link:hover svg { fill: var(--purple); }

.panel-return { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.panel-return svg { fill: #20aa6e; flex-shrink: 0; }

.panel-seller { display: flex; align-items: center; gap: 10px; }
.panel-seller-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--purple); }
.panel-seller-name { font-size: .82rem; font-weight: 600; color: var(--text); }
.panel-seller-sub { font-size: .75rem; color: var(--purple); cursor: pointer; }
.panel-seller-sub:hover { text-decoration: underline; }

.btn-wb-fav { width: 100%; background: none; border: none; border-radius: 8px; height: 40px; font-size: .85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--text-muted); transition: color .15s; padding: 0; }
.btn-wb-fav svg { fill: #ccc; transition: fill .15s; }
.btn-wb-fav:hover { color: var(--purple); }
.btn-wb-fav:hover svg { fill: var(--purple); }
.btn-wb-fav.active { color: var(--accent); }
.btn-wb-fav.active svg { fill: var(--accent); }

.btn-primary { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: 14px 28px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-primary:hover { background: var(--purple-dark); }

/* ══ INLINE DESC + SPECS ══ */
.prod-desc-block { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.prod-desc-heading { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.prod-desc-text { font-size: .9rem; line-height: 1.75; color: #374151; max-height: 80px; overflow: hidden; transition: max-height .3s ease; }
.prod-desc-text.expanded { max-height: 600px; }
.prod-desc-toggle { background: none; border: none; color: var(--purple); font-size: .85rem; cursor: pointer; padding: 8px 0 0; font-weight: 500; display: block; }
.prod-desc-toggle:hover { text-decoration: underline; }
.prod-specs-block { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.specs-table-inline { width: 100%; border-collapse: collapse; font-size: .85rem; }
.specs-table-inline tr:nth-child(odd) { background: var(--bg); }
.specs-table-inline td { padding: 8px 10px; }
.specs-table-inline td:first-child { color: var(--text-muted); width: 50%; }
.specs-table-inline td:last-child { font-weight: 500; }

/* ══ SPECS SIDE PANEL ══ */
.spec-panel-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }
.spec-panel-overlay.open { display: block; }
.spec-panel { position: fixed; top: 0; right: -520px; width: 480px; max-width: 100vw; height: 100vh; background: #fff; z-index: 201; display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1); box-shadow: -4px 0 24px rgba(0,0,0,.12); }
.spec-panel.open { right: 0; }
.spec-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.spec-panel-body { flex: 1; overflow-y: auto; padding: 20px; }
.spec-section-title { font-size: .88rem; font-weight: 700; color: var(--text); margin: 18px 0 8px; }
.spec-section-title:first-child { margin-top: 0; }
.spec-row { display: flex; align-items: baseline; gap: 6px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.spec-row-key { color: var(--text-muted); flex: 0 0 45%; }
.spec-row-dots { flex: 1; border-bottom: 1px dotted #ccc; margin: 0 4px; min-width: 10px; height: 1em; }
.spec-row-val { color: var(--text); font-weight: 500; flex: 0 0 45%; text-align: right; }
.spec-panel-desc { font-size: .88rem; line-height: 1.7; color: #374151; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.spec-panel-footer { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; background: #fff; }
.spec-panel-price-col { flex: 1; }
.spec-panel-price { display: block; font-size: 1.2rem; font-weight: 700; color: var(--purple); }
.spec-panel-date { display: block; font-size: .75rem; color: var(--text-muted); }
.spec-panel-buy { flex: 0 0 130px; height: 42px; font-size: .85rem; border-radius: 8px; margin-bottom: 0; }
.spec-panel-cart { flex: 0 0 130px; height: 42px; font-size: .85rem; }

/* ══ SIMILAR PRODUCTS ══ */
.similar-section { background: var(--white); border-top: 1px solid var(--border); padding: 32px 0 48px; }
.similar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.similar-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

/* ══ MODALS ══ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; }
.modal-overlay.open { display: block; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .95rem; }

.size-guide-modal, .city-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 16px; z-index: 301; box-shadow: 0 8px 40px rgba(0,0,0,.18); min-width: 300px; max-width: 90vw; }
.size-guide-modal.open, .city-modal.open { display: block; }
.size-guide-body { padding: 20px; font-size: .9rem; }
.size-guide-table { width: 100%; border-collapse: collapse; }
.size-guide-table th, .size-guide-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: center; }
.size-guide-table th { background: var(--purple-light); color: var(--purple); font-weight: 600; }
.city-list { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.city-option { background: none; border: none; text-align: left; padding: 10px 14px; font-size: .9rem; border-radius: 8px; cursor: pointer; transition: background .12s; }
.city-option:hover, .city-option.active { background: var(--purple-light); color: var(--purple); font-weight: 600; }

/* ══ MOBILE BUY BAR ══ */
.mobile-buy-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px; z-index: 150; align-items: center; gap: 12px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); transform: translateY(100%); transition: transform .3s ease; }
.mbb-info { flex: 1; min-width: 0; }
.mbb-price { display: block; font-size: 1.1rem; font-weight: 800; }
.mbb-title { display: block; font-size: .75rem; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mbb-btn { flex-shrink: 0; width: 140px; height: 44px; border-radius: 8px; white-space: nowrap; font-size: .9rem; }

/* ══ TABS ══ */
.tabs-section { max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }
.tabs-bar { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab-btn { background: none; border: none; padding: 14px 24px; font-size: .95rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.tab-btn:hover { color: var(--purple); }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
#tab-desc p { font-size: 1rem; line-height: 1.8; color: #374151; max-width: 720px; }

.specs-table { width: 100%; max-width: 600px; border-collapse: collapse; font-size: .9rem; }
.specs-table tr:nth-child(odd) { background: var(--bg); }
.spec-key { padding: 10px 16px; color: var(--text-muted); width: 200px; }
.spec-val { padding: 10px 16px; font-weight: 500; }

/* Reviews */
.reviews-summary { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 28px; flex-wrap: wrap; }
.rev-num { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.rev-stars { font-size: 1.3rem; margin: 6px 0 4px; }
.rev-total { font-size: .85rem; color: var(--text-muted); }
.rev-bars { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.rev-bar-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); }
.rev-bar-bg { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rev-bar-fill { height: 100%; background: #f5a623; border-radius: 4px; }

.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-name { font-weight: 600; font-size: .9rem; }
.review-date { font-size: .8rem; color: var(--text-muted); margin-left: auto; }
.review-text { font-size: .9rem; color: #374151; line-height: 1.6; }

/* ══ CART SIDEBAR ══ */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }
.cart-overlay.open { display: block; }
.cart-sidebar { position: fixed; top: 0; right: -420px; width: 400px; max-width: 100vw; height: 100vh; background: var(--white); z-index: 201; display: flex; flex-direction: column; transition: right .28s cubic-bezier(.4,0,.2,1); box-shadow: -4px 0 24px rgba(0,0,0,.12); }
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 1.1rem; font-weight: 700; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); padding: 4px; }
.close-btn:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: .85rem; font-weight: 500; margin-bottom: 2px; }
.cart-item-size { font-size: .75rem; color: var(--text-muted); margin-bottom: 2px; }
.cart-item-price { font-size: .9rem; font-weight: 700; color: var(--purple); margin-bottom: 4px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: var(--border); border: none; border-radius: 4px; width: 24px; height: 24px; cursor: pointer; font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.qty-btn:hover { background: #d1d5db; }
.qty-num { font-size: .875rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-del { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; padding: 2px; flex-shrink: 0; }
.cart-item-del:hover { color: var(--accent); }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-total { font-size: 1.05rem; margin-bottom: 12px; }
.full-width { width: 100%; }

/* ══ TOAST ══ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1a1a1a; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: .875rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 500; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .product-price-panel { flex: 0 0 240px; }
  .gallery { flex: 0 0 400px; }
}
@media (max-width: 900px) {
  .product-page { flex-wrap: wrap; padding: 12px; gap: 12px; }
  .gallery { flex: 0 0 100%; order: 1; }
  .product-center { flex: 1 1 100%; order: 2; }
  .product-price-panel { flex: 0 0 100%; position: static; order: 3; }
  .gallery-thumbs-col { display: none; }
  .gallery-dots { display: flex; }
  .mobile-buy-bar { display: flex; }
  body { padding-bottom: 68px; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .similar-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .prod-title { font-size: 1rem; }
  .tab-btn { padding: 12px 12px; font-size: .85rem; }
  .reviews-summary { gap: 20px; }
}
