:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f8fafc;
  --brand: #c99a35;
  --brand-dark: #9e741e;
  --success: #067647;
  --danger: #b42318;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #080d14;
  --card: #111827;
  --text: #f8fafc;
  --muted: #98a2b3;
  --line: #253044;
  --soft: #0d131c;
  --brand: #d6ad51;
  --brand-dark: #e4c36f;
  --success: #47cd89;
  --danger: #f97066;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.product-site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.product-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.product-brand span,
.product-brand strong,
.product-brand small {
  display: block;
}

.product-brand strong {
  font-size: 15px;
}

.product-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.back-store {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  font-size: 12px;
  font-weight: 750;
}

.product-page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 42px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.breadcrumb strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.seo-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .06);
}

.seo-product-gallery {
  min-width: 0;
}

.seo-main-image {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 19px;
  background: var(--soft);
}

.seo-main-image img {
  width: 100%;
  max-width: 620px;
  max-height: 480px;
  object-fit: contain;
}

.seo-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 11px;
  padding-bottom: 4px;
}

.seo-thumb {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  padding: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
}

.seo-thumb.active {
  border-color: var(--brand);
}

.seo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seo-product-info {
  min-width: 0;
  padding: 12px 4px;
}

.seo-product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-product-kicker span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.seo-product-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.13;
  letter-spacing: -.03em;
}

.seo-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0;
}

.seo-price-row strong {
  font-size: 28px;
}

.seo-price-row del {
  color: var(--muted);
  font-size: 15px;
}

.seo-stock {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 850;
}

.seo-stock.in {
  background: rgba(6, 118, 71, .10);
  color: var(--success);
}

.seo-stock.out {
  background: rgba(180, 35, 24, .10);
  color: var(--danger);
}

.seo-color-block,
.seo-description {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.seo-color-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.seo-color-head strong {
  font-size: 12px;
}

.seo-color-head span {
  color: var(--muted);
  font-size: 11px;
}

.seo-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-color {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
  font-size: 10px;
  font-weight: 750;
}

.seo-color.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(201, 154, 53, .13);
}

.seo-color.sold-out {
  opacity: .45;
}

.seo-color i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 50%;
  background: var(--color);
}

.seo-color small {
  color: var(--muted);
  font-size: 9px;
}

.seo-description h2 {
  margin: 0 0 8px;
  font-size: 14px;
}

.seo-description p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: normal;
}

.seo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.seo-buy,
.seo-secondary {
  min-height: 47px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
}

.seo-buy {
  background: #111827;
  color: #fff;
}

html[data-theme="dark"] .seo-buy {
  background: #f8fafc;
  color: #111827;
}

.seo-buy.disabled {
  pointer-events: none;
  opacity: .45;
}

.seo-secondary {
  border: 1px solid var(--line);
  background: var(--soft);
}

.seo-facts {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.seo-facts div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.seo-facts dt {
  color: var(--muted);
}

.seo-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 750;
}

.product-page-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 860px) {
  .seo-product-card {
    grid-template-columns: 1fr;
  }

  .seo-main-image {
    min-height: 360px;
  }
}

@media (max-width: 580px) {
  .product-site-header {
    padding: 14px;
  }

  .product-brand span {
    display: none;
  }

  .product-page-shell {
    padding: 5px 14px 28px;
  }

  .seo-product-card {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .seo-main-image {
    min-height: 285px;
    padding: 12px;
  }

  .seo-main-image img {
    max-height: 280px;
  }

  .seo-product-info {
    padding: 8px 3px;
  }

  .seo-actions {
    grid-template-columns: 1fr;
  }
}

/* Full product variants */
.seo-variant-block{margin:24px 0}.seo-variant-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.seo-variant-head span{color:var(--muted);font-size:13px}.seo-variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.seo-variant{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:inherit;text-decoration:none;transition:.18s ease}.seo-variant:hover{transform:translateY(-1px);border-color:#c99a35}.seo-variant.active{border-color:#c99a35;box-shadow:0 0 0 2px rgba(201,154,53,.13)}.seo-variant.sold-out{opacity:.52}.seo-variant-main{display:flex;align-items:center;gap:9px;min-width:0}.seo-variant-main i{width:16px;height:16px;flex:0 0 16px;border-radius:50%;background:var(--color);box-shadow:0 0 0 1px rgba(0,0,0,.16)}.seo-variant-main strong{font-size:13px;line-height:1.35}.seo-variant-meta{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap}.seo-variant-meta b{font-size:13px}.seo-variant-meta small{font-size:11px;color:var(--muted);margin-top:2px}html[data-theme="dark"] .seo-variant{background:#111827}.seo-facts>div{min-width:0}@media(max-width:720px){.seo-variants{grid-template-columns:1fr}.seo-variant-head{align-items:flex-start;flex-direction:column}.seo-variant{padding:12px}}


/* Computer specs — shown before "Məhsul haqqında" */
.seo-computer-specs{
  margin-top:22px;
  padding-top:19px;
  border-top:1px solid var(--line)
}
.seo-computer-specs h2{
  margin:0 0 10px;
  font-size:14px
}
.seo-computer-spec-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0;
  padding:0
}
.seo-computer-spec-grid>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft)
}
.seo-computer-spec-grid dt{
  margin:0 0 4px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em
}
.seo-computer-spec-grid dd{
  margin:0;
  color:var(--text);
  font-size:11px;
  font-weight:750;
  line-height:1.45;
  overflow-wrap:anywhere
}
@media(max-width:580px){
  .seo-computer-spec-grid{grid-template-columns:1fr}
}





/* Product page layout stabilization */
.seo-product-info,
.seo-product-info *{
  min-width:0;
}
.seo-product-info h1,
.seo-variant strong,
.seo-facts dd,
.seo-computer-spec-grid dd{
  overflow-wrap:anywhere;
  word-break:normal;
}
.seo-price-row{
  flex-wrap:wrap;
}
.seo-variants{
  min-width:0;
}
.seo-variant{
  min-width:0;
}
.seo-variant-main,
.seo-variant-meta{
  min-width:0;
}
.seo-variant-main strong{
  white-space:normal;
}

/* Full-width "Məhsul haqqında" area.
   It is intentionally outside the narrow right-hand product column. */
.seo-description-full{
  margin-top:20px;
  padding:24px 26px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--card);
  box-shadow:0 14px 42px rgba(15,23,42,.05);
}
.seo-description-full .seo-description-kicker{
  display:block;
  margin-bottom:6px;
  color:var(--brand-dark);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.seo-description-full h2{
  margin:0 0 14px;
  font-size:20px;
  letter-spacing:-.02em;
}
.seo-description-full p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.82;
  white-space:normal;
  column-count:2;
  column-gap:34px;
  column-rule:1px solid var(--line);
  overflow-wrap:anywhere;
}
@media(max-width:900px){
  .seo-product-card{
    grid-template-columns:1fr;
  }
  .seo-main-image{
    min-height:360px;
  }
}
@media(max-width:700px){
  .seo-description-full{
    padding:18px;
  }
  .seo-description-full p{
    column-count:1;
    column-gap:0;
    column-rule:0;
  }
}
@media(max-width:560px){
  .product-site-header{
    padding:14px 14px;
  }
  .product-page-shell{
    padding:6px 12px 28px;
  }
  .seo-product-card{
    padding:14px;
    gap:16px;
    border-radius:18px;
  }
  .seo-main-image{
    min-height:260px;
    padding:12px;
  }
  .seo-product-info{
    padding:2px 0;
  }
  .seo-product-info h1{
    font-size:25px;
  }
}


/* Restock notification — standalone product page */
.seo-stock-alert-trigger{
  border:1px solid #d6a52f;
  background:#fff8e7;
  color:#825b00;
  cursor:pointer;
}

.seo-stock-alert-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
  margin-top:13px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--soft);
}

.seo-stock-alert-form.hidden{
  display:none;
}

.seo-stock-alert-head{
  grid-column:1 / -1;
}

.seo-stock-alert-head strong{
  display:block;
  font-size:13px;
}

.seo-stock-alert-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.55;
}

.seo-stock-alert-form label{
  display:grid;
  gap:5px;
  color:var(--text);
  font-size:10px;
  font-weight:800;
}

.seo-stock-alert-form label small{
  color:var(--muted);
  font-weight:500;
}

.seo-stock-alert-form input{
  width:100%;
  height:42px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--text);
  outline:none;
}

.seo-stock-alert-form input:focus{
  border-color:var(--brand);
}

.seo-stock-alert-form>.seo-buy,
.seo-stock-alert-message{
  grid-column:1 / -1;
}

.seo-stock-alert-message{
  margin:0;
  padding:9px 10px;
  border-radius:9px;
  font-size:10px;
  line-height:1.5;
}

.seo-stock-alert-message.success{
  background:#ecfdf3;
  color:#027a48;
}

.seo-stock-alert-message.error{
  background:#fef3f2;
  color:#b42318;
}

.seo-stock-alert-honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

@media(max-width:650px){
  .seo-stock-alert-form{
    grid-template-columns:1fr;
  }

  .seo-stock-alert-head,
  .seo-stock-alert-form>.seo-buy,
  .seo-stock-alert-message{
    grid-column:1;
  }
}


/* Product page wishlist */
.seo-wishlist-form{
  display:contents;
}

.seo-wishlist-btn{
  cursor:pointer;
  font:inherit;
}

.seo-wishlist-btn.active{
  border-color:#fecdd3;
  background:#fff1f2;
  color:#be123c;
}


/* Product comparison */
.seo-compare-btn{
  cursor:pointer;
}
.seo-compare-btn.active{
  border-color:#c99a35;
  background:rgba(201,154,53,.12);
}
.seo-compare-open{
  border-color:#c99a35 !important;
  color:#a77b22 !important;
}
html[data-theme="dark"] .seo-compare-btn.active{
  background:rgba(201,154,53,.18);
  color:#fff;
}


/* =========================================================
   Premium badges — standalone product page
   ========================================================= */

.seo-premium-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin:2px 0 12px;
}

.seo-premium-badge{
  min-height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.seo-premium-badge-sale{
  background:#d92d20;
  color:#fff;
  border-color:#f04438;
}

.seo-premium-badge-out{
  background:#1d2939;
  color:#fff;
  border-color:#344054;
}

.seo-premium-badge-low{
  background:#fffaeb;
  color:#b54708;
  border-color:#fedf89;
}

.seo-premium-badge-new{
  background:#ecfdf3;
  color:#027a48;
  border-color:#abefc6;
}

.seo-premium-badge-top{
  background:#eef4ff;
  color:#3538cd;
  border-color:#c7d7fe;
}

.seo-premium-badge-warranty{
  background:#ecfdf3;
  color:#067647;
  border-color:#a6f4c5;
}

.seo-premium-badge-premium,
.seo-premium-badge-featured{
  background:linear-gradient(135deg,#a87516,#e6bd58);
  color:#fff;
  border-color:#edcf7a;
}

.seo-premium-badge-custom{
  background:#f2f4f7;
  color:#344054;
  border-color:#d0d5dd;
}

html[data-theme="dark"] .seo-premium-badge-low{
  background:rgba(181,71,8,.18);
  color:#fec84b;
  border-color:rgba(254,200,75,.30);
}

html[data-theme="dark"] .seo-premium-badge-new,
html[data-theme="dark"] .seo-premium-badge-warranty{
  background:rgba(6,118,71,.19);
  color:#6ce9a6;
  border-color:rgba(108,233,166,.27);
}

html[data-theme="dark"] .seo-premium-badge-top{
  background:rgba(53,56,205,.22);
  color:#bdb4fe;
  border-color:rgba(189,180,254,.25);
}

html[data-theme="dark"] .seo-premium-badge-custom{
  background:#182230;
  color:#e4e7ec;
  border-color:#344054;
}


/* Visual-only color indicators */
.seo-visual-swatches{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:20px;
  margin:10px 0 2px;
  pointer-events:none;
  user-select:none;
}

.seo-visual-swatch{
  position:relative;
  width:15px;
  height:15px;
  flex:0 0 15px;
  display:block;
  border:1.5px solid rgba(16,24,40,.18);
  border-radius:50%;
  background:var(--swatch-color,#111111);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.8),
    0 1px 3px rgba(15,23,42,.08);
}

.seo-visual-swatch.out{
  opacity:.32;
}

.seo-visual-swatch.out::after{
  content:"";
  position:absolute;
  left:1px;
  right:1px;
  top:50%;
  height:1px;
  background:currentColor;
  transform:rotate(-45deg);
}

.seo-visual-swatches small{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

html[data-theme="dark"] .seo-visual-swatch{
  border-color:rgba(255,255,255,.24);
  box-shadow:
    0 0 0 1px rgba(17,24,39,.9),
    0 1px 3px rgba(0,0,0,.25);
}

/* Color-only selector */
.seo-color-only-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:20px 0 10px;
}
.seo-color-only-head strong{
  font-size:13px;
}
.seo-color-only-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.seo-visual-swatches.selectable{
  margin-top:0;
  padding-bottom:3px;
}
.seo-visual-swatches.selectable .seo-visual-swatch{
  width:25px;
  height:25px;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.seo-visual-swatches.selectable .seo-visual-swatch:hover{
  transform:translateY(-1px) scale(1.06);
}
.seo-visual-swatches.selectable .seo-visual-swatch.active{
  border-color:#c99a35;
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 5px rgba(201,154,53,.70);
}
.seo-visual-swatches.selectable .seo-visual-swatch.out{
  pointer-events:none;
}
html[data-theme="dark"] .seo-visual-swatches.selectable .seo-visual-swatch.active{
  box-shadow:
    0 0 0 3px #111827,
    0 0 0 5px rgba(214,173,81,.72);
}

/* Unified old + new product color selector */
.seo-visual-swatches.selectable{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.seo-visual-swatches.selectable .seo-visual-swatch{
  width:26px;
  height:26px;
  flex:0 0 26px;
}
