/* ═══════════════════════════════════════════════════════════════
   style2.css — MARKYN Thailand · Product Store
   Rebuilt: Logo fix · Full Mobile Responsive · All breakpoints
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-dark:  #a8862e;
  --gold-pale:  #fdf8ee;
  --gold-light: #f5e9c4;
  --dark:       #0d0d0d;
  --dark2:      #1a1a1a;
  --dark3:      #2a2a2a;
  --mid:        #444;
  --muted:      #888;
  --muted2:     #bbb;
  --light:      #f4f4f4;
  --light2:     #fafafa;
  --white:      #ffffff;
  --border:     #e8e8e8;
  --border2:    #d0d0d0;
  --green:      #16a34a;
  --red:        #dc2626;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --font-body:  'IBM Plex Sans Thai', sans-serif;
  --font-cond:  'Barlow Condensed', sans-serif;
  --font-display: 'Bebas Neue', cursive;
  --topbar-h:   36px;
  --header-h:   64px;
  --catnav-h:   48px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark2);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: calc(var(--topbar-h) + var(--header-h) + var(--catnav-h));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }
@media (max-width: 480px) { .container { padding: 0 12px; } }

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--topbar-h);
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 8px;
  letter-spacing: .01em;
}
.topbar a { color: var(--gold); }
.topbar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar span:last-child  { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 540px) {
  .topbar { font-size: 11px; padding: 0 12px; }
  .topbar span:first-child { display: none; }
  .topbar span:last-child  { margin: auto; }
}

/* ══════════════════════════════════════════
   HEADER  — Logo + Nav กึ่งกลาง + Cart ขวา
══════════════════════════════════════════ */
header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0; z-index: 190;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Logo ── */
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-icon { display: flex; align-items: center; }
.logo-icon img {
  height: 42px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
}

/* ── Header Nav (กึ่งกลาง) ── */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hnav-link {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.hnav-link:hover { background: var(--gold-pale); color: var(--gold-dark); }
.hnav-link.active { color: var(--gold); background: var(--gold-pale); }

/* ── Header Actions (ขวา) ── */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-breadcrumb-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  max-width: 200px;
  overflow: hidden;
}
.header-breadcrumb-mini a { color: var(--muted); transition: color .2s; }
.header-breadcrumb-mini a:hover { color: var(--gold); }
.header-breadcrumb-mini .bc-current {
  color: var(--dark2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Cart button ── */
.cart-btn-header {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: background .2s;
  white-space: nowrap;
}
.cart-btn-header:hover { background: var(--gold-dark); }
.cart-count-badge {
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Responsive header */
@media (max-width: 900px) {
  .header-breadcrumb-mini { display: none; }
  .hnav-link { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .logo-icon img { height: 34px !important; }
  .header-nav { gap: 2px; }
  .hnav-link { padding: 5px 8px; font-size: 12px; }
  .cart-btn-header { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .logo-icon img { height: 28px !important; }
  .hnav-link { display: none; }
  .hnav-link:nth-child(2) { display: flex; } /* แสดงแค่ "สินค้า" */
  .cart-btn-header { padding: 7px 10px; font-size: 12px; }
}

/* ══════════════════════════════════════════
   CATEGORY NAV
══════════════════════════════════════════ */
.cat-nav {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h));
  left: 0; right: 0; z-index: 180;
  height: var(--catnav-h);
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}
.cat-nav-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.cat-nav-item:hover { color: var(--dark); }
.cat-nav-item.active { color: var(--gold); border-bottom-color: var(--gold); }
.cat-nav-icon { font-size: 16px; }

@media (max-width: 768px) {
  :root { --catnav-h: 44px; }
  .cat-nav-inner { padding: 0 8px; }
  .cat-nav-item { padding: 0 10px; font-size: 12px; gap: 4px; }
  .cat-nav-icon { font-size: 14px; }
}

/* ══════════════════════════════════════════
   CATEGORY PAGE
══════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 20px;
}
.page-eyebrow {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--dark);
  line-height: 1;
  letter-spacing: .02em;
}
.page-count { font-size: 13px; color: var(--muted); margin-top: 6px; }

.sort-bar { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 13px; color: var(--muted); }
.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark2);
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--gold); }

@media (max-width: 600px) {
  .page-title { font-size: 30px; }
  .page-header { padding: 20px 0 16px; }
  .sort-bar { width: 100%; }
  .sort-select { flex: 1; }
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 48px;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 360px)  {
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-card-link { display: flex; flex-direction: column; flex: 1; }

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--light);
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-sold-out {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.card-cat  { font-size: 10px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-name { font-size: 13px; font-weight: 700; color: var(--dark2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sku  { font-size: 11px; color: var(--muted); }
.card-rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.card-stars  { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.card-sold   { font-size: 11px; color: var(--muted); }
.card-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.card-price { font-size: 16px; font-weight: 800; color: var(--gold-dark); }
.card-old   { font-size: 12px; color: var(--muted2); text-decoration: line-through; }

.card-add-btn {
  margin: 0 10px 10px;
  padding: 9px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.card-add-btn:hover { background: var(--gold-dark); }
.card-add-btn--disabled { background: var(--muted2); cursor: not-allowed; }

@media (max-width: 480px) {
  .product-card-body { padding: 10px; }
  .card-name { font-size: 12px; }
  .card-price { font-size: 14px; }
  .card-add-btn { margin: 0 8px 8px; font-size: 12px; padding: 8px; }
}

/* Empty state */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Img placeholder */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--light);
  color: var(--muted);
  font-size: 13px; font-weight: 700;
}

/* ══════════════════════════════════════════
   DETAIL PAGE — Product Hero
══════════════════════════════════════════ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 0 40px;
  align-items: start;
}
@media (max-width: 1024px) { .product-hero { gap: 28px; } }
@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 0 24px;
  }
}

/* ── Gallery ── */
.gallery { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + var(--catnav-h) + 16px); }

.gallery-slider-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.gallery-slide { flex: 0 0 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

.badge-new, .badge-sale {
  position: absolute; top: 14px;
  font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 4px;
  z-index: 5; letter-spacing: .04em;
}
.badge-new  { left: 14px; background: var(--dark); color: var(--white); }
.badge-sale { right: 14px; background: var(--gold); color: var(--white); }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: background .2s, transform .2s;
}
.gallery-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.slide-counter {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}

.gallery-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 12px 0 8px;
}
.gdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted2);
  border: none; padding: 0;
  transition: background .2s, transform .2s;
}
.gdot.active { background: var(--gold); transform: scale(1.3); }

.gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.thumb {
  width: 60px; height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden; cursor: pointer;
  background: var(--light);
  transition: border-color .2s;
  flex-shrink: 0;
}
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

@media (max-width: 768px) {
  .gallery { position: static; }
  .gallery-thumbs .thumb { width: 52px; height: 52px; }
}
@media (max-width: 480px) {
  .gallery-slide img { padding: 12px; }
  .gallery-thumbs .thumb { width: 46px; height: 46px; }
  .gallery-arrow { width: 30px; height: 30px; font-size: 16px; }
}

/* ── Product Info ── */
.product-info { display: flex; flex-direction: column; gap: 0; }

.product-sku {
  font-size: 12px; color: var(--gold);
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--font-cond);
  font-size: 32px; font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 6px;
}
.product-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.rating-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.stars { display: flex; gap: 2px; }
.star  { width: 16px; height: 16px; fill: var(--gold); }
.rating-num { font-size: 14px; font-weight: 700; color: var(--gold); }
.sold-num   { font-size: 12px; color: var(--muted); }

/* Price block */
.price-block { margin-bottom: 20px; }
.price-original { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-bottom: 4px; }
.price-current  { font-size: 38px; font-weight: 800; color: var(--dark); line-height: 1; font-family: var(--font-cond); }
.price-save {
  display: inline-block; margin-top: 6px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--gold-light);
}

/* Qty */
.qty-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border2); border-radius: 8px; overflow: hidden; }
.qty-btn {
  width: 36px; height: 36px;
  background: var(--light2); border: none;
  font-size: 18px; font-weight: 700; color: var(--dark2);
  transition: background .15s;
}
.qty-btn:hover { background: var(--light); }
.qty-num { width: 44px; text-align: center; font-size: 15px; font-weight: 700; }
.stock-note { font-size: 12px; color: var(--green); }

/* CTA */
.cta-row { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-primary {
  flex: 2;
  padding: 14px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--dark3); transform: translateY(-1px); }
.btn-secondary {
  flex: 1;
  padding: 14px 16px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-secondary:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* Trust grid */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--light2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-item { text-align: center; }
.trust-icon { font-size: 22px; margin-bottom: 6px; }
.trust-label { font-size: 11px; color: var(--mid); line-height: 1.4; font-weight: 600; }

@media (max-width: 768px) {
  .product-title  { font-size: 26px; }
  .price-current  { font-size: 32px; }
  .trust-grid     { grid-template-columns: repeat(2, 1fr); }
  .cta-row        { flex-direction: column; }
  .btn-primary, .btn-secondary { flex: none; width: 100%; }
}
@media (max-width: 480px) {
  .product-title  { font-size: 22px; }
  .price-current  { font-size: 28px; }
}

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.tabs-section { margin-bottom: 40px; }
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 18px;
  background: none; border: none;
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.tab-btn.active { color: var(--dark); border-bottom-color: var(--gold); }
.tab-btn:hover  { color: var(--dark); }

.tab-panel { display: none; padding: 28px 0; }
.tab-panel.active { display: block; }

/* Spec */
.spec-title {
  font-family: var(--font-display);
  font-size: 24px; color: var(--dark);
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.spec-group { margin-bottom: 24px; }
.spec-group-title {
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-light);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child  { font-weight: 600; }
.spec-table tr:last-child td { border-bottom: none; }

@media (max-width: 480px) {
  .tab-btn    { font-size: 13px; padding: 10px 12px; }
  .spec-table td { font-size: 12px; padding: 8px 10px; }
  .spec-table td:first-child { width: 45%; }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .feature-grid { grid-template-columns: 1fr; gap: 10px; } }

.feature-card {
  padding: 20px;
  background: var(--light2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 14px;
}
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.feature-text p  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Included list */
.included-list { display: flex; flex-direction: column; gap: 8px; }
.included-item {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  display: flex; align-items: center;
}
.included-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Reviews */
.review-summary {
  display: flex; gap: 40px;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.review-big { text-align: center; min-width: 100px; }
.review-big .num { font-family: var(--font-display); font-size: 56px; color: var(--dark); line-height: 1; }
.review-big .out { font-size: 12px; color: var(--muted); margin-top: 4px; }
.review-bars { flex: 1; min-width: 200px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-row .label    { font-size: 13px; font-weight: 700; width: 12px; }
.bar-row .bar-count { font-size: 13px; color: var(--muted); width: 24px; }
.bar-track { flex: 1; height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; }
.bar-fill  { height: 100%; background: var(--gold); border-radius: 4px; }

.review-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.reviewer-name { font-size: 14px; font-weight: 700; }
.review-date   { font-size: 12px; color: var(--muted); white-space: nowrap; }
.review-tag    { font-size: 11px; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.review-text   { font-size: 13px; color: var(--dark2); line-height: 1.6; }

/* Warranty tab */
#tab-warranty .spec-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
#tab-warranty .spec-table td { padding: 12px 16px; }

@media (max-width: 480px) {
  .review-summary { gap: 20px; }
  .review-big .num { font-size: 42px; }
  /* warranty boxes — stack on mobile */
  #tab-warranty [style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ══════════════════════════════════════════
   RELATED PRODUCTS
══════════════════════════════════════════ */
.related-section {
  background: var(--light2);
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}
.eyebrow {
  font-family: var(--font-cond);
  font-size: 12px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.related-section h2 {
  font-family: var(--font-display);
  font-size: 32px; color: var(--dark);
  letter-spacing: .03em;
}
.related-view-all {
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s;
}
.related-view-all:hover { color: var(--gold-dark); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px)  { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card-link  { display: block; }
.related-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--light);
  overflow: hidden;
}
.related-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.related-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.related-body { padding: 10px 12px 12px; }
.related-cat  { font-size: 10px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.related-sku  { font-size: 11px; color: var(--muted); margin: 2px 0; }
.related-name { font-size: 13px; font-weight: 700; color: var(--dark2); line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-price-row { display: flex; align-items: baseline; gap: 6px; }
.related-price { font-size: 15px; font-weight: 800; color: var(--gold-dark); }
.related-old   { font-size: 11px; color: var(--muted2); text-decoration: line-through; }

/* ══════════════════════════════════════════
   BOTTOM GALLERY SLIDER
══════════════════════════════════════════ */
.bottom-gallery-section {
  background: var(--dark);
  padding-bottom: 32px;
}
.bottom-gallery-header {
  padding: 36px 0 20px;
}
.bottom-gallery-title {
  font-family: var(--font-display);
  font-size: 36px; color: var(--white);
  letter-spacing: .05em;
}
.bottom-gallery-wrap { 
  position: relative; 
  overflow: hidden;
  /* แก้ iOS Safari bug — การ์ดหายเมื่อ scroll */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
}

.bottom-gallery-track {
  display: flex;
  gap: 14px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* เพิ่ม 2 บรรทัดนี้ */
  will-change: scroll-position;
  -webkit-transform: translateZ(0);
}

.bg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .2s;
}
.bg-arrow:hover { background: rgba(255,255,255,.28); }
.bg-prev { left: 12px; }
.bg-next { right: 12px; }

.bottom-gallery-track {
  display: flex;
  gap: 14px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bottom-gallery-track::-webkit-scrollbar { display: none; }

.bg-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 200px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color .2s, transform .2s;
  /* เพิ่ม 2 บรรทัดนี้ */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}
.bg-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.bg-card-img {
  aspect-ratio: 1 / 1;
  background: #222; position: relative; overflow: hidden;
}
.bg-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.bg-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.bg-card-body   { padding: 10px 12px 14px; }
.bg-card-sku    { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 2px; }
.bg-card-name   { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bg-card-price  { display: flex; align-items: baseline; gap: 6px; }
.bg-price-now   { font-size: 16px; font-weight: 800; color: var(--gold); }
.bg-price-old   { font-size: 11px; color: rgba(255,255,255,.35); text-decoration: line-through; }

.bg-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.bg-dot  {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; padding: 0;
  transition: background .2s, transform .2s;
}
.bg-dot.active { background: var(--gold); transform: scale(1.3); }

@media (max-width: 900px) {
  .bg-card { flex: 0 0 calc(50% - 14px); }
}
@media (max-width: 480px) {
  .bg-card { flex: 0 0 calc(70% - 14px); min-width: 160px; }
  .bottom-gallery-track { gap: 10px; padding: 0 12px 16px; }
  .bg-arrow { display: none; }
  .bottom-gallery-title { font-size: 28px; }
}

/* ══════════════════════════════════════════
   STICKY BUY BAR (mobile only)
══════════════════════════════════════════ */
.sticky-buy {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--white);
  border-top: 2px solid var(--gold);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  align-items: center;
  gap: 12px;
}
.sticky-price { font-size: 20px; font-weight: 800; color: var(--dark); font-family: var(--font-cond); }
.sticky-old   { font-size: 12px; color: var(--muted2); text-decoration: line-through; }
.sticky-actions { display: flex; gap: 8px; flex: 1; }

@media (max-width: 768px) {
  .sticky-buy { display: flex; }
  body { padding-bottom: 80px; }
}
@media (max-width: 380px) {
  .sticky-price { font-size: 17px; }
  .sticky-buy   { padding: 8px 12px; }
}

/* ══════════════════════════════════════════
   CART MODAL — Premium Redesign
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.58);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Box ── */
.cart-modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%; max-width: 480px;
  max-height: 92vh;
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cartSlideIn .28s cubic-bezier(.22,1,.36,1);
}
@keyframes cartSlideIn {
  from { opacity:0; transform: translateY(18px) scale(.97); }
  to   { opacity:1; transform: translateY(0)   scale(1);   }
}

/* ── Header ── */
.cart-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.cart-header-left { display: flex; align-items: center; gap: 10px; }
.cart-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-pale); border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.modal-title    { font-size: 16px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.modal-subtitle { font-size: 11px; color: var(--muted); margin-top: 1px; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--light); border: none;
  font-size: 12px; font-weight: 800; color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s; cursor: pointer; flex-shrink: 0;
}
.modal-close:hover { background: #fee2e2; color: var(--red); }

/* ── Items Wrap ── */
.cart-items-wrap {
  flex: 1; overflow-y: auto;
  padding: 6px 20px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.cart-items-wrap::-webkit-scrollbar { width: 4px; }
.cart-items-wrap::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── Each Cart Item ── */
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cart-item:last-of-type { border-bottom: none; }

/* Thumbnail */
.cart-item-thumb {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--light);
  object-fit: contain; padding: 5px;
}
.cart-item-thumb--empty {
  display: flex; align-items: center;
  justify-content: center;
  color: var(--muted2); font-size: 20px;
}

/* Info column */
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 12.5px; font-weight: 700; color: var(--dark2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px; line-height: 1.35;
}
.cart-item-sku {
  font-size: 11px; color: var(--muted);
  margin-bottom: 7px; line-height: 1.3;
}

/* qty + price row */
.cart-item-row2 { display: flex; align-items: center; gap: 8px; }
.ci-qty-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border2);
  border-radius: 7px; overflow: hidden;
  background: var(--white);
}
.ci-btn {
  width: 28px; height: 27px; border: none;
  background: var(--light2);
  font-size: 16px; font-weight: 700; color: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.ci-btn:hover { background: var(--gold-light); color: var(--gold-dark); }
.ci-qty {
  width: 32px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--dark);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 27px;
}
.ci-subtotal {
  font-size: 13px; font-weight: 800;
  color: var(--gold-dark);
  margin-left: auto; white-space: nowrap;
}
/* 🗑 Delete button */
.ci-remove {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; flex-shrink: 0;
  color: var(--muted); transition: all .2s ease;
}
.ci-remove:hover {
  background: #fef2f2; border-color: #fca5a5;
  color: var(--red); transform: scale(1.08);
}

/* Shipping note */
.cart-shipping-note {
  font-size: 11px; color: var(--green); font-weight: 600;
  text-align: center; padding: 10px 0 2px; letter-spacing: .01em;
}

/* Empty state */
.cart-empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.cart-empty-icon { font-size: 36px; margin-bottom: 10px; }

/* ── Summary Section ── */
.cart-summary-section {
  padding: 13px 20px;
  background: var(--light2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border2);
}
.cart-total-label { font-size: 14px; font-weight: 700; color: var(--dark); }
.cart-total-val   { font-size: 22px; font-weight: 800; color: var(--gold-dark); font-family: var(--font-cond); letter-spacing: .02em; }

/* ── Footer Buttons ── */
.cart-footer {
  padding: 12px 20px 16px;
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.btn-checkout {
  width: 100%; padding: 14px 20px;
  background: var(--dark); color: var(--white);
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; letter-spacing: .03em;
  transition: background .22s, transform .15s, box-shadow .22s;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-checkout:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168,134,46,.35);
}
.btn-checkout:active { transform: translateY(0); }
.btn-continue {
  width: 100%; padding: 11px;
  background: none; color: var(--muted);
  border: 1.5px solid var(--border2); border-radius: 12px;
  font-size: 13px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-continue:hover { color: var(--dark); border-color: var(--dark2); }

/* ══════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════ */

/* Shared modal header */
.checkout-modal-box, .success-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%; max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--white); z-index: 5; flex-shrink: 0;
}

/* ── Checkout item row (co-item-row) ── */
.co-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.co-item-row:last-child { border-bottom: none; }
.co-item-img {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 8px; object-fit: contain;
  background: var(--light); border: 1px solid var(--border); padding: 4px;
}
.co-item-info { flex: 1; min-width: 0; }
.co-item-name {
  font-size: 12px; font-weight: 700; color: var(--dark2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-item-qty { font-size: 11px; color: var(--muted); margin-top: 2px; }
.co-item-sub { font-size: 13px; font-weight: 800; color: var(--gold-dark); white-space: nowrap; }


@media (max-width: 540px) {
  .cart-modal-box, .checkout-modal-box {
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
  }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .cart-items-wrap { max-height: 45vh; }
  .cart-item-thumb { width: 50px; height: 50px; }
  .ci-btn { width: 26px; height: 26px; font-size: 15px; }
  .ci-qty { width: 28px; font-size: 12px; }
  .cart-total-val { font-size: 20px; }
}
@media (max-width: 380px) {
  .cart-item-name { font-size: 12px; }
  .ci-subtotal { font-size: 12px; }
  .btn-checkout { font-size: 13px; padding: 12px; }
}

/* ══════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════ */
.checkout-body    { padding: 16px 24px 24px; flex: 1; overflow-y: auto; }
.co-section       { margin-bottom: 20px; }
.co-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.co-items-list    { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.co-summary { background: var(--light2); border-radius: 8px; padding: 12px 14px; }
.co-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.co-row:last-child { margin-bottom: 0; }
.co-total { font-size: 16px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.co-total-val { color: var(--gold-dark); }

.co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.co-input {
  padding: 10px 13px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.co-input:focus { border-color: var(--gold); }
.co-full { grid-column: 1 / -1; }

.co-pay-grid { display: flex; gap: 10px; }
.co-pay-label { flex: 1; cursor: pointer; }
.co-pay-label input { display: none; }
.co-pay-card {
  border: 2px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.co-pay-label input:checked + .co-pay-card {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.co-pay-icon { font-size: 24px; margin-bottom: 4px; }
.co-pay-name { font-size: 13px; font-weight: 700; }
.co-pay-desc { font-size: 11px; color: var(--muted); }

.btn-confirm-order {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 800;
  margin-top: 8px;
  transition: background .2s, transform .15s;
}
.btn-confirm-order:hover { background: var(--gold-dark); transform: translateY(-1px); }

@media (max-width: 540px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-pay-grid { flex-direction: column; }
}

/* ══════════════════════════════════════════
   PAYMENT STEP MODAL
══════════════════════════════════════════ */
.ps-summary-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--light2);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  flex-wrap: wrap; gap: 6px;
}
.ps-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.ps-qr-wrap { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-qr-box  { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.ps-qr-img  { width: 130px; height: 130px; border: 1px solid var(--border); border-radius: 8px; }
.ps-qr-placeholder { width: 130px; height: 130px; background: var(--light); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; text-align: center; color: var(--muted); }
.ps-qr-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.ps-bank-info { flex: 1; min-width: 200px; }
.ps-bank-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ps-bank-card { background: var(--light2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.ps-bank-row  { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); gap: 8px; }
.ps-bank-row:last-child { border-bottom: none; }
.ps-bank-label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.ps-bank-val   { font-size: 12px; font-weight: 700; text-align: right; }
.ps-acct { cursor: pointer; color: var(--gold-dark); display: flex; flex-direction: column; align-items: flex-end; }
.ps-copy-hint { font-size: 10px; color: var(--muted); font-weight: 400; }
.ps-bank-note { font-size: 12px; color: var(--mid); margin-top: 8px; line-height: 1.5; }

.ps-slip-section { margin-top: 16px; }
.ps-slip-drop {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.ps-slip-drop:hover, .ps-slip-drop.drag-over { border-color: var(--gold); background: var(--gold-pale); }
.ps-slip-icon { font-size: 28px; margin-bottom: 8px; }
.ps-slip-hint { font-size: 14px; font-weight: 600; color: var(--mid); }
.slip-img-preview { max-width: 100%; max-height: 200px; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.slip-status { font-size: 13px; margin-top: 8px; }

.ps-cod-box { text-align: center; padding: 24px; }
.ps-cod-box h3 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.ps-cod-box p  { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.ps-cod-total  { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

@media (max-width: 540px) {
  .ps-qr-wrap { flex-direction: column; align-items: center; }
  .ps-bank-info { width: 100%; }
}

/* ══════════════════════════════════════════
   SUCCESS MODAL
══════════════════════════════════════════ */
.success-box { text-align: center; padding: 40px 32px; border-radius: var(--radius-lg); }
.success-icon   { font-size: 64px; margin-bottom: 16px; }
.success-title  { font-family: var(--font-display); font-size: 36px; color: var(--dark); margin-bottom: 8px; }
.success-order-id { font-size: 15px; color: var(--gold-dark); font-weight: 700; margin-bottom: 12px; }
.success-msg    { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* TOAST removed */
.cart-toast, .cart-toast.show { display: none !important; }

/* ══════════════════════════════════════════
   PRINT — hide nav/modals
══════════════════════════════════════════ */
@media print {
  .topbar, header, .cat-nav, .sticky-buy,
  .scroll-top, .cart-toast,
  .modal-overlay { display: none !important; }
  body { padding-top: 0; }
}

/* Warranty boxes — stack on small screens */
.warranty-grid-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 480px) {
  .warranty-grid-boxes { grid-template-columns: 1fr; gap: 12px; }
}


/* =========================================================
   PREMIUM CHECKOUT FORM
========================================================= */

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.field{
  display:flex;
  flex-direction:column;
}

.field.span2{
  grid-column:span 2;
}

/* Section */
.co-section{
  background:linear-gradient(180deg,#ffffff 0%,#fcfcfc 100%);
  border:1px solid rgba(0,0,0,.06);
  border-radius:24px;
  padding:28px;
  margin-bottom:24px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.05),
    0 2px 10px rgba(0,0,0,.03);
  backdrop-filter:blur(10px);
  transition:.3s ease;
}

.co-section:hover{
  transform:translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0,0,0,.08),
    0 4px 14px rgba(0,0,0,.05);
}

/* Title */
.co-section-title{
  font-size:22px;
  font-weight:700;
  color:#111;
  margin-bottom:22px;
  letter-spacing:.3px;
  position:relative;
  padding-left:16px;
}

.co-section-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:5px;
  height:24px;
  border-radius:20px;
  background:linear-gradient(180deg,#d4af37,#f4d06f);
}

/* Label */
.field label{
  font-size:14px;
  font-weight:600;
  color:#333;
  margin-bottom:8px;
  letter-spacing:.2px;
}

.req{
  color:#d62828;
}

/* Input */
.fi{
  width:100%;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:0 18px;
  font-size:15px;
  color:#111;
  transition:all .25s ease;
  outline:none;
  box-shadow:0 2px 6px rgba(0,0,0,.03);
}

/* Select */
select.fi{
  appearance:none;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 9 11 12 8'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  padding-right:44px;
}

/* Focus */
.fi:focus{
  border-color:#d4af37;
  box-shadow:
    0 0 0 4px rgba(212,175,55,.14),
    0 8px 18px rgba(212,175,55,.10);
  transform:translateY(-1px);
}

/* Placeholder */
.fi::placeholder{
  color:#9a9a9a;
}

/* Hover */
.fi:hover{
  border-color:rgba(212,175,55,.5);
}

/* Mobile */
@media(max-width:768px){

  .form-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .field.span2{
    grid-column:span 1;
  }

  .co-section{
    padding:22px 18px;
    border-radius:22px;
  }

  .co-section-title{
    font-size:20px;
    margin-bottom:18px;
  }

  .fi{
    height:52px;
    font-size:15px;
    border-radius:14px;
  }

}