/* ============================================================
   TEQHAN — Design tokens
   Matched to the TEQHAN shield mark: navy, americana red, gold,
   and white. Shared visual language with teqhaninternational.com.
   ============================================================ */
:root {
  --ink:        #14213D;
  --ink-soft:   #2A3A5C;
  --ink-deep:   #0B0F19;
  --porcelain:  #F7F5F1;
  --paper:      #FFFFFF;
  --red:        #9E1B32;
  --red-soft:   #F3DADE;
  --brass:      #C08A2E;
  --brass-soft: #ECDCB8;
  --slate:      #5C6470;
  --line:       #E4E0D8;
  --success:    #3F7A5E;
  --danger:     #B4432F;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(20,33,61,0.06), 0 8px 24px rgba(20,33,61,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Route-line signature (shared with corporate site) ---------- */
.route-line {
  position: relative;
  height: 2px;
  background: var(--line);
  margin: 0;
}
.route-line .waypoints {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 6px;
}
.route-line .waypoints span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px var(--porcelain);
}
.route-line .waypoints span:nth-child(2n) { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.logo img { height: 40px; width: auto; display: block; }
.logo .mark { color: var(--red); }
.q-red { color: var(--red); }
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); border-color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px;
}
.cart-badge {
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 1px 7px; font-weight: 700;
}
.corp-strip {
  background: var(--ink); color: var(--brass-soft);
  font-size: 12.5px; text-align: center; padding: 6px 0;
}
.corp-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #a3762f; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--porcelain) 100%);
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--brass); font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-size: 44px; max-width: 700px; }
.hero p.lead { font-size: 17px; color: var(--slate); max-width: 560px; margin: 16px 0 28px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px; margin: 28px 0 48px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 1 / 1; background: #EFEBE3; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand-tag { font-size: 11.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.card .title { font-size: 14.5px; font-weight: 600; line-height: 1.35; flex: 1; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price { font-weight: 700; font-size: 16px; }
.price-compare { text-decoration: line-through; color: var(--slate); font-size: 13px; }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 4px; }
.section-head h2 { font-size: 26px; }
.section-head a { font-size: 13.5px; font-weight: 600; color: var(--brass); text-decoration: none; }

/* ---------- Category chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink-soft); background: #fff;
}
.chip.active, .chip:hover { border-color: var(--ink); color: var(--ink); background: var(--brass-soft); }

/* ---------- Product detail ---------- */
.product-view { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 64px; }
.product-view .thumb-main { background: #EFEBE3; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.product-view .thumb-main img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: 30px; margin-bottom: 6px; }
.product-price { font-size: 26px; font-weight: 700; margin: 14px 0; }
.stock-pill { display:inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.stock-pill.in { background: #E4EFE8; color: var(--success); }
.stock-pill.out { background: #F5E4E0; color: var(--danger); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.qty-row input { width: 64px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-size: 15px; }
.product-desc { color: var(--ink-soft); margin-top: 24px; line-height: 1.7; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.cart-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-row { display: flex; align-items: center; gap: 14px; }
.cart-item-row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); background: #EFEBE3; }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14.5px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.notice-box { background: var(--brass-soft); border: 1px solid var(--brass); border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: #6b4d1d; margin-bottom: 20px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; background: #fff;
}
.form-field textarea { resize: vertical; min-height: 90px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: #C7CEDD; padding: 48px 0 28px; margin-top: 64px; }
footer.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
footer.site-footer a { color: #C7CEDD; text-decoration: none; font-size: 14px; display: block; margin-bottom: 8px; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .bottom { border-top: 1px solid #2A3A5C; padding-top: 20px; font-size: 12.5px; color: #8792A8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #E4EFE8; color: var(--success); }
.alert-error { background: #F5E4E0; color: var(--danger); }

/* ---------- Promo top bar ---------- */
.promo-bar {
  background: var(--ink-deep); color: #fff; font-size: 12.5px; text-align: center;
  padding: 7px 0; letter-spacing: .01em;
}
.promo-bar .wrap { display:flex; justify-content:center; gap:28px; flex-wrap:wrap; }
.promo-bar strong { color: var(--brass-soft); font-weight: 700; }

/* ---------- Category tiles (mega row) ---------- */
.cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px;
  margin: 26px 0 8px;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass); }
.cat-tile .icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brass-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brass);
}
.cat-tile .icon svg { width: 24px; height: 24px; }
.cat-tile span.label { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }

/* ---------- Hero (shop layout) ---------- */
.hero-shop {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff; padding: 0; overflow: hidden; position: relative;
}
.hero-shop .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; min-height: 380px; gap: 40px; }
.hero-shop .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--brass-soft); font-weight: 700; margin-bottom: 16px; }
.hero-shop h1 { font-size: 40px; color: #fff; max-width: 560px; }
.hero-shop p.lead { font-size: 16px; color: #C7CEDD; max-width: 480px; margin: 16px 0 28px; }
.hero-shop .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shop .btn-primary { background: var(--brass); }
.hero-shop .btn-primary:hover { background: #a3762f; }
.hero-shop .hero-art {
  display: flex; align-items: center; justify-content: center;
}
.hero-art .shield-badge {
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
}
.hero-art .shield-badge img { width: 130px; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }

/* ---------- Trust badge strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 40px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--porcelain); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color: var(--ink); flex-shrink:0; }
.trust-item .icon svg { width: 19px; height: 19px; }
.trust-item .txt strong { display:block; font-size: 13.5px; }
.trust-item .txt span { font-size: 12px; color: var(--slate); }

/* ---------- Category product rows ---------- */
.cat-row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 4px; }
.cat-row-head h2 { font-size: 22px; }
.cat-row-head a { font-size: 13px; font-weight: 600; color: var(--brass); text-decoration: none; }
.scroll-row { display: flex; gap: 18px; overflow-x: auto; padding: 18px 2px 10px; scroll-snap-type: x mandatory; }
.scroll-row .card { min-width: 210px; scroll-snap-align: start; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ---------- Distributor spotlight ---------- */
.spotlight {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px;
  padding: 34px; margin: 48px 0;
}
.spotlight h3 { font-size: 22px; margin-bottom: 10px; }
.spotlight p { color: var(--slate); margin-bottom: 16px; }
.spotlight ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.spotlight ul li { background: var(--brass-soft); color: #6b4d1d; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.spotlight .art { display:flex; align-items:center; justify-content:center; }
.spotlight .art .badge-circle {
  width: 170px; height: 170px; border-radius: 50%; background: var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.spotlight .art img { width: 96px; }

/* ---------- Empty state ---------- */
.empty-state { text-align:center; padding: 60px 20px; color: var(--slate); background: #fff; border: 1px dashed var(--line); border-radius: 10px; margin: 24px 0 48px; }
.empty-state strong { display:block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 36px; text-align: center; margin: 56px 0 8px;
}
.newsletter h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.newsletter p { color: #C7CEDD; font-size: 14px; margin-bottom: 20px; }
.newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter input[type=email] { flex:1; padding: 12px 14px; border-radius: var(--radius); border: none; font-size: 14px; }
.newsletter button { background: var(--brass); color:#fff; border:none; padding: 12px 20px; border-radius: var(--radius); font-weight:700; cursor:pointer; font-size:14px; }
.newsletter button:hover { background: #a3762f; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-shop .wrap { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; padding-bottom: 40px; }
  .hero-art { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .product-view { grid-template-columns: 1fr; }
  footer.site-footer .cols { grid-template-columns: 1fr; }
}
