/* EU303 Hub — shared stylesheet
   Brand values sourced directly from tentusaja303.com computed CSS (2026-09-17) — see CONTENT-SOP.md §16 */

:root {
  --primary: #FFC929;
  --primary-light: #FFED4A;
  --btn-grad-start: #FFDF7A;
  --btn-grad-end: #F5A623;
  --btn-border-start: #CD973D;
  --btn-border-end: #F4D8A4;
  --dark-bg: #292421;
  --dark-bg-alt: #241E20;
  --page-bg: #FFFFFF;
  --body-text: #505050;
  --muted-text: #8a8a8a;
  --border-color: #e5e0d8;
  --card-bg: #f7f5f1;
  --success: #2e7d32;
  --font-main: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--body-text);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav — structure follows tab66.online's real header (verified 2026-09-19:
   dark utility strip -> logo+search+account row -> quick-category-link row), not a generic
   dark casino nav. Colors stay EU303's own (§16); tab66 uses its own colors, not ours. ---------- */
.utility-bar {
  background: var(--dark-bg-alt);
  font-size: 12px;
}
.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}
.utility-links { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.utility-links a { color: #b9b3ac; padding: 0 10px; border-left: 1px solid #4a443f; }
.utility-links a:first-child { border-left: none; padding-left: 0; }
.utility-links a:hover { color: var(--primary); }

.site-header {
  background: var(--dark-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img { height: 38px; width: auto; }

.site-search { position: relative; flex: 1; display: flex; }
.site-search input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 4px 0 0 4px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.2;
  font-family: var(--font-main);
}
.site-search button {
  background: var(--primary);
  border: none;
  border-radius: 0 4px 4px 0;
  width: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.site-search button svg { width: 20px; height: 20px; }
.search-hint {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 42px;
  margin-top: 4px;
  background: var(--dark-bg-alt);
  color: #e7e2db;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 10;
}
.search-hint.is-visible { display: block; }

.cart-link {
  color: #d8d3cd;
  width: 48px;
  height: 48px;
  border: 1px solid #55504c;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-link:hover { color: var(--primary); border-color: var(--primary); }
.cart-link::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.5 12h11l2-8H6.5'/%3E%3Ccircle cx='9.5' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.5 12h11l2-8H6.5'/%3E%3Ccircle cx='9.5' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quicklinks-row { border-top: 1px solid rgba(255,255,255,.08); }
.quicklinks-row .container { max-width: var(--max-width); }

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 9px 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d8d3cd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--primary); }

.nav-home {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.1); color: #fff;
}
.nav-home svg { width: 15px; height: 15px; }
.nav-home:hover { background: var(--primary); color: var(--dark-bg); }

/* Button shape/UI follows tab66.online's Shopee-style PDP CTAs (verified 2026-09-17: near-square
   4px radius, tinted-outline secondary + solid primary, each prefixed with a bag/cart icon) —
   colors stay EU303's own brand values from §16, only the shape/icon pattern is borrowed. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--btn-icon) center / contain no-repeat;
  mask: var(--btn-icon) center / contain no-repeat;
}

.btn-primary {
  --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.5 12h11l2-8H6.5'/%3E%3Ccircle cx='9.5' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E");
  background: radial-gradient(50% 100% at 50% 0%, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  border-image: linear-gradient(0deg, var(--btn-border-start), var(--btn-border-end)) 1;
  color: #241a00;
}

.btn-ghost {
  --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7L6 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  background: transparent;
  color: #fff;
  border-color: #55504c;
}

.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-lg::before { width: 18px; height: 18px; }
.btn-block { width: 100%; }

.buy-box .btn-ghost, .shop-btns .btn-ghost { background: #fff7e0; color: #8a6d00; border-color: #f0dca0; }

/* ---------- Product page (Shopee-style: gallery + buy-box) ---------- */
.product-page {
  background: #fff;
  padding: 22px 0 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 36px;
  align-items: start;
}

/* --- Gallery (left column) --- */
.gallery-main {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: opacity .2s ease; }
.gallery-main img.is-fading { opacity: 0; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumbs a {
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-thumbs a.is-current { border-color: var(--primary); }
.gallery-thumbs img { aspect-ratio: 1/1; object-fit: cover; }

/* Real share links (WhatsApp/Telegram share intents + copy-link) — no fabricated
   favourite/like counts, unlike the Shopee "Favourite (379)" pattern this is modelled on;
   see §11.6 on not inventing social proof. */
.gallery-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--muted-text);
}
.gallery-share .share-icons { display: flex; gap: 8px; }
.gallery-share a, .gallery-share button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  color: var(--body-text);
  font-family: inherit;
}
.gallery-share a:hover, .gallery-share button:hover { border-color: var(--primary); color: #8a6d00; }
.gallery-share svg { width: 15px; height: 15px; }
.copy-link-msg { font-size: 12px; color: #2e7d32; }

/* --- Buy box (right column) --- */
.buy-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff;
}

h1 { font-size: 25px; line-height: 1.3; margin: 0 0 10px; color: var(--dark-bg); }
.buy-box p.lead { color: var(--body-text); font-size: 14px; margin: 0 0 14px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7e0;
  border: 1px solid #f0dca0;
  color: #8a6d00;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.buy-box-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-text);
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 14px 0;
}
.buy-box-meta b { color: var(--dark-bg); }

/* Heavier, full-width "price bar" treatment — matches the visual weight Shopee/tab66 give
   their price block. No countdown timer and no fake was/now strike-through price: EU303 has
   one real, ongoing promo, not a time-limited discount, so a fabricated urgency clock (tab66's
   "SHOCKING SALE ENDS IN 01:24:00") would be a manufactured claim, not a UI pattern to copy. */
.promo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--card-bg);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.promo-badge .promo-pct { font-size: 28px; font-weight: 800; color: #d98200; line-height: 1; }
.promo-badge .promo-tag {
  background: var(--primary); color: #241a00; font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 3px 8px; text-transform: uppercase;
}
.promo-badge .promo-label { font-size: 13px; color: var(--body-text); }

.variant-group { margin-bottom: 16px; }
.variant-label { font-size: 12px; color: var(--muted-text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--body-text);
  background: #fff;
}
.pill.is-active { border-color: var(--primary); color: #8a6d00; background: #fff7e0; font-weight: 700; }
button.pill { font-family: inherit; -webkit-appearance: none; appearance: none; cursor: pointer; }
button.pill:hover { border-color: var(--primary); }

/* --- Deposit quantity stepper --- */
.deposit-stepper { margin-bottom: 18px; }
.stepper-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.qty-btn {
  background: var(--card-bg);
  border: none;
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-bg);
  cursor: pointer;
}
.qty-btn:hover { background: #eee6d8; }
.qty-value {
  width: 120px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 34px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-bg);
}
.stepper-hint { display: block; font-size: 11px; color: var(--muted-text); margin-top: 6px; }

.hero-cta { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

.buy-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--muted-text);
}
.buy-guarantee::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  background-color: var(--muted-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.4-3 8.2-7 9.5-4-1.3-7-5.1-7-9.5V6l7-3z'/%3E%3Cpath d='M9 12l2.2 2.2L15.4 10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.4-3 8.2-7 9.5-4-1.3-7-5.1-7-9.5V6l7-3z'/%3E%3Cpath d='M9 12l2.2 2.2L15.4 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.buy-guarantee b { color: var(--dark-bg); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--body-text);
  padding: 10px 0;
  text-align: center;
}
.trust-bar strong { color: var(--dark-bg); }

/* ---------- Sections ---------- */
section.block { padding: 40px 0; }
section.block.alt { background: var(--card-bg); }

h2 { font-size: 22px; color: var(--dark-bg); margin: 0 0 16px; }
h3 { font-size: 17px; color: var(--dark-bg); margin: 22px 0 8px; }
.card-body h2 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.card-body > p:first-child, .card-body > .pull-quote:first-child + p { margin-top: 0; }
p { margin: 0 0 14px; }

section.block ul, section.block ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
section.block ul li, section.block ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}
section.block ul { list-style: none; padding-left: 0; }
section.block ul li {
  position: relative;
  padding-left: 22px;
}
section.block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
section.block ol { list-style: none; counter-reset: step; }
section.block ol li {
  counter-increment: step;
  position: relative;
  padding-left: 28px;
}
section.block ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #fff7e0;
  color: #8a6d00;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- About box ---------- */
/* ---------- Shopee-style "card" sections (verified against tab66.online's real
   PRODUCT SPECIFICATIONS / PRODUCT DESCRIPTION / shop-card DOM, 2026-09-18) ---------- */
.card-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.sec-h {
  background: #fafafa;
  color: var(--muted-text);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 14px 20px;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
}
.card-body { padding: 22px 24px; }

.pull-quote {
  background: #fff7ee;
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--dark-bg);
}

.shop-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
.shop-who { display: flex; gap: 16px; align-items: center; }
.shop-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  overflow: hidden;
  flex-shrink: 0;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-name { font-size: 16px; font-weight: 700; color: var(--dark-bg); margin: 0 0 4px; }
.shop-tagline { font-size: 12px; color: var(--muted-text); margin: 0 0 10px; }
.shop-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-btns .btn { padding: 8px 14px; font-size: 12px; }
.shop-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; padding-top: 4px; }
.shop-kpi div b { display: block; color: var(--dark-bg); font-size: 15px; }
.shop-kpi div span { font-size: 11px; color: var(--muted-text); }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.category-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.category-card img { aspect-ratio: 1/1; object-fit: cover; }
.category-card .cc-body { padding: 12px 14px; }

/* Category cover photos are wide banners with the subject clustered off-center
   (right two-thirds); default center-crop cut through it, so each gets its own
   horizontal focal point for the square card/thumbnail crop. */
img[src*="hero-slot.jpg"] { object-position: 66% center; }
img[src*="hero-live-casino.jpg"] { object-position: 68% center; }
img[src*="hero-sportsbook.jpg"] { object-position: 37% center; }
img[src*="hero-tembak-ikan.jpg"] { object-position: 65% center; }
img[src*="hero-esports.jpg"] { object-position: 58% center; }
img[src*="hero-sabung-ayam.jpg"] { object-position: 68% center; }
.category-card .cc-body .cc-title { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.category-card .cc-body p { font-size: 13px; margin: 0; color: var(--muted-text); }

/* ---------- Spec table ---------- */
table.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 14px; }
table.spec-table th, table.spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
table.spec-table th { width: 38%; color: var(--muted-text); font-weight: 600; }

.quick-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.quick-stats .qs { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 10px 16px; font-size: 13px; }
.quick-stats .qs b { color: var(--dark-bg); font-size: 16px; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
}
.faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-bg);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 16px 16px; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--dark-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cfc9c2; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark-bg);
  color: #cfc9c2;
  padding: 34px 0 20px;
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.footer-grid h4 { color: #fff; font-size: 13px; margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--primary); }
.footer-logo { display: inline-block; margin-bottom: 10px; }
.footer-logo img { display: block; height: 34px; width: auto; }
.footer-providers-h { margin-top: 16px !important; }
.footer-providers { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-providers .provider-chip { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; padding: 3px 6px; height: 26px; }
.footer-providers .provider-chip img { display: block; height: 20px; width: auto; max-width: 84px; object-fit: contain; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 12px; color: #9c968f; }
.footer-legal p { margin: 0 0 8px; }

.breadcrumb { font-size: 13px; color: var(--muted-text); padding: 14px 0; }
.breadcrumb a { color: var(--body-text); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(6, 1fr); }
  .shop-card { grid-template-columns: 1fr; }
  .shop-kpi { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  /* tab66.online's own mobile view (verified against a real device screenshot, 2026-09-20)
     drops its utility bar entirely on mobile — straight from one logo+search+cart row to the
     breadcrumb — rather than keeping half of it. Its gallery stays a padded, rounded card (not
     edge-to-edge) and its CTA buttons stay inline in the flow (no fixed bottom bar); that's a
     real Shopee-app pattern, not one tab66 itself uses, so it isn't adopted here either. */
  .utility-bar { display: none; }
  .header-row { flex-wrap: wrap; padding: 12px 20px; }
  .site-search { order: 3; max-width: none; width: 100%; }
  .nav-links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 9px 0; }
  .nav-links li { flex-shrink: 0; }
  h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .buy-box-meta { gap: 12px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Contact widget (real WhatsApp/Telegram links only — no simulated
   "live agent" persona, since this hub has no live support staff of its own) ---------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 999; font-family: var(--font-main); }
.chat-fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--btn-border-start);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--dark-bg); padding: 0;
}
.chat-fab:hover { background: var(--primary-light); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: 300px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
  background: var(--dark-bg); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700;
}
.chat-panel-close {
  background: none; border: none; color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.chat-panel-body { padding: 16px; }
.chat-panel-body p { font-size: 13px; color: var(--body-text); margin: 0 0 14px; }
.chat-link {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600;
  color: var(--dark-bg);
}
.chat-link:last-child { margin-bottom: 0; }
.chat-link:hover { border-color: var(--primary); background: #fff7e0; }
.chat-link svg { width: 20px; height: 20px; flex-shrink: 0; }
