/*
 * chi-tiet-san-pham.css
 * Page-specific styles for the Product Detail page (Chi Tiết Sản Phẩm)
 * Requires style.css to be loaded first.
 */

/* ──────────────────────────────────────────
   BREADCRUMB BAR
────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .35; }

/* ──────────────────────────────────────────
   PRODUCT HERO — 2-COLUMN LAYOUT
────────────────────────────────────────── */
.product-hero { padding: 44px 0 60px; }

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* ── Gallery (left column) ── */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
}

.gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d2133 0%, #111520 100%);
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main svg {
  width: 140px;
  height: 140px;
  stroke: rgba(255,255,255,.15);
  fill: none;
  stroke-width: .8;
}

.gallery-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gbadge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}

.gbadge-sale { background: var(--accent2); color: #fff; }
.gbadge-tag  { background: var(--accent);  color: #000; }

.gallery-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10,12,16,.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.gallery-zoom-hint svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.gallery-share {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gshare-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(10,12,16,.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}

.gshare-btn:hover { background: rgba(232,255,71,.15); }
.gshare-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  transition: stroke .2s, fill .2s;
}
.gshare-btn:hover svg { stroke: var(--accent); }
.gshare-btn.active svg { stroke: var(--accent2); fill: var(--accent2); }

.gallery-thumbs {
	flex-wrap: nowrap;
  display: flex;
  gap: 10px;                        /* must match the 30px assumed in thumb-item calc */
  overflow-x: auto;                 /* scroll when more than 4 thumbs */
  overflow-y: scroll;              /* never clip the -2px hover lift */
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;              /* room for the active border + hover lift */
}

.thumb-item {
  flex: 0 0 22%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d2133, #111520);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.15); }
.thumb-item.active { border-color: var(--accent); }
.thumb-item svg { width: 28px; height: 28px; stroke: rgba(255,255,255,.2); fill: none; stroke-width: 1.2; }
.thumb-item.active svg { stroke: rgba(255,255,255,.4); }

/* ── Info column (right) ── */
.product-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pinfo-top { display: flex; flex-direction: column; gap: 10px; }

.pinfo-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent3);
  background: rgba(41,214,181,.1);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(41,214,181,.2);
}

.availability-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent3);
}

.availability-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 0 3px rgba(41,214,181,.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(41,214,181,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(41,214,181,.05); }
}

.availability-dot.out-of-stock {
  color: var(--muted);
}

.availability-dot.out-of-stock::before {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

.product-title {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: .03em;
  line-height: 1.05;
}

.product-subtitle { font-size: 13px; color: var(--muted); }

.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stars-lg { display: flex; gap: 3px; }
.stars-lg .s { font-size: 17px; color: var(--accent); }
.stars-lg .s.half { opacity: .5; }
.stars-lg .s.off  { color: var(--surface2); }

.rating-score { font-family: var(--ff-head); font-size: 1.4rem; color: var(--accent); }
.rating-count { font-size: 13px; color: var(--muted); }
.sold-count {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

/* ── Price block ── */
.price-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.price-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 50%, rgba(232,255,71,.04), transparent);
  pointer-events: none;
}

.price-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-now  { font-family: var(--ff-head); font-size: 2.4rem; color: var(--accent); letter-spacing: .03em; }
.price-was  { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.price-save {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,92,53,.15);
  color: var(--accent2);
  padding: 3px 10px;
  border-radius: 99px;
}
.price-installment { font-size: 12px; color: var(--muted); }
.price-installment strong { color: var(--accent3); }

/* ── Product Options (colour / size chips) ── */
.option-group { display: flex; flex-direction: column; gap: 10px; }

.option-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.option-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.option-chip {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.option-chip:hover   { border-color: rgba(255,255,255,.2); color: var(--text); }
.option-chip.active  { background: rgba(232,255,71,.1); border-color: var(--accent); color: var(--accent); }
.option-chip.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ── Quantity + Purchase row ── */
.purchase-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
  font-size: 18px;
  color: var(--muted);
  user-select: none;
}
.qty-btn:hover { background: var(--surface); color: var(--accent); }

.qty-val {
  width: 50px;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 1.3rem;
  letter-spacing: .05em;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.purchase-row .btn-primary { flex: 1; min-width: 160px; }
.purchase-row .btn-outline  { flex: 1; min-width: 130px; }

.purchase-row .btn-ghost { 
	flex: 1; 
	font-size: 12px;
	background-color: var(--surface2);
	color: var(--text);
}

/* ── Perks grid ── */
.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.perk-icon svg { width: 16px; height: 16px; stroke: var(--accent3); fill: none; stroke-width: 1.8; }
.perk-text b    { font-size: 12px; display: block; }
.perk-text span { font-size: 11px; color: var(--muted); }

/* ── Mini specs table ── */
.specs-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  padding: 11px 16px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: rgba(255,255,255,.02); }

.spec-key { color: var(--muted); min-width: 120px; flex-shrink: 0; font-size: 12px; }
.spec-val { font-weight: 700; }
.spec-val .highlight,
.spec-val.highlight { color: var(--accent); }

/* ──────────────────────────────────────────
   TABS SECTION
────────────────────────────────────────── */
.tabs-section { padding: 0 0 64px; }

.tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
}
.tabs-header::-webkit-scrollbar { height: 3px; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tab-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-count {
  background: var(--surface2);
  color: var(--muted);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
}
.tab-btn.active .tab-count { background: rgba(232,255,71,.15); color: var(--accent); }

.tab-pane         { display: none; }
.tab-pane.active  { display: block; }

/* ── Description tab layout ── */
.desc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.desc-body h3 {
  font-family: var(--ff-head);
  font-size: 1.6rem;
  letter-spacing: .04em;
  margin: 28px 0 12px;
  color: var(--text);
}
.desc-body h3:first-child { margin-top: 0; }

.desc-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 14px;
}

.desc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.desc-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.desc-body ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.desc-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.desc-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d2133 0%, #111520 100%);
  border: 1px solid var(--border);
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.desc-img-placeholder svg  { width: 60px; height: 60px; stroke: rgba(255,255,255,.15); fill: none; stroke-width: .8; }
.desc-img-placeholder span { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.desc-img-placeholder img  { width: 100%; height: 100%; object-fit: cover; }

/* ── Full specs table ── */
.specs-full {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs-full .spec-group-title {
  background: var(--surface2);
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.specs-full .spec-row { padding: 12px 18px; }

/* ── Description sidebar cards ── */
.desc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-head svg { width: 15px; height: 15px; stroke: var(--accent3); fill: none; stroke-width: 2; }

.sidebar-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item { display: flex; align-items: center; gap: 12px; }
.cert-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cert-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.cert-text b    { font-size: 13px; display: block; }
.cert-text span { font-size: 11px; color: var(--muted); }

/* ── Video thumb ── */
.video-thumb {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d2133, #111520);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-thumb .thumb-icon { width: 48px; height: 48px; stroke: rgba(255,255,255,.15); fill: none; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.play-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232,255,71,.9);
  display: grid;
  place-items: center;
  transition: transform .2s, background .2s;
  z-index: 2;
}
.video-thumb:hover .play-btn { transform: scale(1.1); background: var(--accent); }
.play-btn svg { width: 20px; height: 20px; fill: #000; margin-left: 3px; }

/* ──────────────────────────────────────────
   REVIEWS TAB
────────────────────────────────────────── */
.reviews-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Summary panel */
.review-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.review-big-score { text-align: center; }
.big-score-num {
  font-family: var(--ff-head);
  font-size: 4.5rem;
  letter-spacing: .04em;
  color: var(--accent);
  line-height: 1;
}
.big-score-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0; }
.big-score-stars .s { font-size: 20px; color: var(--accent); }
.big-score-count { font-size: 12px; color: var(--muted); }

.star-bars { display: flex; flex-direction: column; gap: 7px; }
.star-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 6px;
  transition: background .2s;
}
.star-bar-row:hover { background: var(--surface2); }
.star-bar-lbl { color: var(--muted); min-width: 36px; display: flex; align-items: center; gap: 3px; }
.star-bar-lbl .s { color: var(--accent); font-size: 11px; }
.star-bar-track { flex: 1; height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.star-bar-fill  { height: 100%; background: var(--accent); border-radius: 99px; }
.star-bar-pct   { color: var(--muted); min-width: 32px; text-align: right; }

.review-write-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 9px;
  padding: 13px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background .2s;
}
.review-write-btn:hover { background: #d4eb30; }

/* Review list */
.review-list-col { display: flex; flex-direction: column; gap: 16px; }

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-filter-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.review-filter-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text); }
.review-filter-btn.active { background: rgba(232,255,71,.1); border-color: var(--accent); color: var(--accent); }

.review-sort {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-sort svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.review-card-container {
    position: relative;
    transition: max-height 0.4s ease;
    overflow: hidden;
}
/* Individual review card */
.review-card-container.collapsed {
	max-height: 450px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
	margin: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s;
	
}
.review-card:hover { border-color: rgba(232,255,71,.15); }

.review-header { display: flex; align-items: flex-start; gap: 14px; }

.reviewer-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: #000;
}

.reviewer-meta  { flex: 1; }
.reviewer-name  { font-weight: 800; font-size: 14px; }
.reviewer-date  { font-size: 11px; color: var(--muted); margin-top: 2px; }

.review-stars-sm { display: flex; gap: 2px; }
.review-stars-sm .s { font-size: 13px; color: var(--accent); }
.review-stars-sm .s.off { color: var(--surface2); }

.review-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--accent3);
}
.review-verified svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.review-title { font-weight: 800; font-size: 14px; }
.review-body  { font-size: 13px; color: var(--muted); line-height: 1.8; }

.review-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.review-tag  {
  font-size: 11px;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
}
.helpful-btn:hover { color: var(--accent); }
.helpful-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.helpful-count { font-weight: 800; }

/* Write review form */
.write-review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
}
.write-review-form.open { display: flex; }

.form-title { font-family: var(--ff-head); font-size: 1.4rem; letter-spacing: .04em; }

.form-row { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.star-picker { 
	display: flex; 
	background-color: #424141;
	width: fit-content;
	padding: 3px 10px;
	border-radius: 17px;
	gap: 6px; 
}
.star-pick {
  font-size: 26px;
  color: var(--surface2);
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.star-pick:hover,
.star-pick.lit { color: var(--accent); transform: scale(1.15); }

.form-input,
.form-textarea {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  resize: vertical;
  transition: border-color .2s;
}
.form-input:focus,
.form-textarea:focus  { border-color: var(--accent); }
.form-textarea        { min-height: 110px; }

.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ──────────────────────────────────────────
   RELATED PRODUCTS
────────────────────────────────────────── */
.related-section { padding: 0 0 80px; }

.related-section .container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.related-section .container .btn-outline {
	max-width: min(108px, 50%);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(232,255,71,.2); }

.related-card btn {
	max-width: 45%;
}

.related-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1d2133, #111520);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb svg { width: 52px; height: 52px; stroke: rgba(255,255,255,.18); fill: none; stroke-width: .9; }

.related-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.related-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent3);
}

.related-name {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rprice-sale { font-family: var(--ff-head); font-size: 1.2rem; color: var(--accent); }
.rprice-old  { font-size: 11px; color: var(--muted); text-decoration: line-through; }

.related-stars { display: flex; gap: 2px; }
.related-stars .s { font-size: 11px; color: var(--accent); }

.related-card .btn { margin: 0 16px 16px; }

/* ──────────────────────────────────────────
   STICKY BUY BAR (mobile)
────────────────────────────────────────── */
.sticky-buy {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(18,21,28,.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  gap: 12px;
  align-items: center;
}

.sticky-buy-price {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  color: var(--accent);
}

/* ──────────────────────────────────────────
   PAGE ANIMATION
────────────────────────────────────────── */
.fade-in { animation: fadeUp .5s ease both; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .gallery           { position: static; }
  .desc-layout       { grid-template-columns: 1fr; }
  .desc-sidebar      { position: static; }
  .reviews-layout    { grid-template-columns: 1fr; }
  .review-summary    { position: static; }
  .related-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-hero-grid { gap: 28px; }
  .form-grid         { grid-template-columns: 1fr; }
  .sticky-buy        { display: flex; }
  body               { padding-bottom: 80px; }
}

@media (max-width: 520px) {
  .related-grid { grid-template-columns: 1fr; }
  .perks-grid   { grid-template-columns: 1fr; }
}
