/* ===== Design tokens ===== */
:root {
  --brand: #d90c1f;
  --brand-dark: #aa0818;
  --brand-soft: #ffecef;
  --navy: #0d1018;
  --navy-soft: #1b2130;
  --ink: #181d2a;
  --ink-soft: #5a6675;
  --line: #e7ebf0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --shopee: #ee4d2d;
  --ok: #1ea672;
  --danger: #e23b3b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 45, 0.07);
  --shadow-md: 0 12px 30px rgba(15, 27, 45, 0.1);
  --shadow-lg: 0 24px 50px rgba(15, 27, 45, 0.16);
  --maxw: 1200px;
  --space: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space);
}

.section { padding-block: clamp(40px, 7vw, 80px); }
.section-tight { padding-top: 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 clamp(24px, 4vw, 40px);
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-head p { color: var(--ink-soft); margin: 0; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }

.logo-image {
  height: 42px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.logo-text { display: block; }
.logo-text small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: rgba(255, 255, 255, 0.7); }

/* Right-side group: cart + mobile menu toggle */
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Left-aligned segmented tab control that echoes the brand colour */
.main-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.main-tabs a {
  position: relative;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.main-tabs a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.main-tabs a.active {
  background: linear-gradient(135deg, var(--brand), #ff9a4d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.32);
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.2rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cart-link:hover { background: #ffe2cc; border-color: var(--brand); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: none;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid #fff;
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(255, 106, 0, 0.28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(255, 106, 0, 0.38); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15,27,45,0.92), rgba(15,27,45,0.78)), var(--navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 120px); max-width: 640px; }
.eyebrow {
  display: inline-block;
  background: rgba(255, 106, 0, 0.18);
  color: #ffb37a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); margin: 0 0 28px; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ===== Brand grid (home) ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.brand-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.brand-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); color: var(--brand-dark); }
.brand-chip .b-ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

/* ===== Catalog controls ===== */
.catalog-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.result-count { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }

.brand-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.brand-filters button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.brand-filters button:hover { border-color: var(--brand); color: var(--brand-dark); }
.brand-filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.search-box { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box::before { content: "\1F50D"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: 0.6; font-size: 0.9rem; }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  background: #fff;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 0.3s;
}
.product-card:hover .product-thumb img { transform: scale(1.01); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-part { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.product-body h3 { margin: 0; font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; }
.product-price { color: var(--ink); font-weight: 800; font-size: 1.2rem; margin: 4px 0 0; }
.stock-pill { align-self: flex-start; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.stock-pill.low { background: #fff0e8; color: var(--brand-dark); }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { padding: 10px 14px; font-size: 0.85rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 0.9rem; padding-top: 22px; }
.breadcrumb a:hover { color: var(--brand); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); padding-block: clamp(24px, 4vw, 40px); align-items: start; }

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg,#fafbfc,#eef1f5);
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 28px;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); color: var(--ink);
  border: 1px solid var(--line); width: 44px; height: 44px;
  display: grid; place-items: center; cursor: pointer;
  font-size: 18px; border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s;
}
.gallery-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-btn.left { left: 14px; }
.gallery-btn.right { right: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs img {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: var(--radius-sm); border: 2px solid var(--line);
  cursor: pointer; transition: border-color 0.2s, transform 0.15s; background:#fff;
  padding: 6px;
}
.thumbs img:hover { transform: translateY(-2px); }
.thumbs img.active { border-color: var(--brand); }

.details .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.details .brand-line .product-tag { position: static; }
.details .sku { color: var(--ink-soft); font-size: 0.85rem; }
.details h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.details .detail-price { font-size: 1.9rem; font-weight: 800; margin: 0 0 6px; }
.stock-line { font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; }
.stock-line.in { color: var(--ok); }
.stock-line.low { color: var(--brand-dark); }
.details .desc { color: var(--ink-soft); margin: 0 0 22px; white-space: pre-line; }

.specs { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 0.92rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs th { color: var(--ink-soft); font-weight: 500; width: 40%; }
.specs td { font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 42px; height: 42px; border: none; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty-stepper button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.qty-stepper input { width: 46px; text-align: center; border: none; font-size: 1rem; font-weight: 600; font-family: inherit; }
.qty-stepper input:focus { outline: none; }

.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.buy-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 12px; }
.shop-links { display: grid; gap: 12px; max-width: 440px; }
.shop-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px; font-weight: 600; color: #fff;
  transition: transform 0.15s, box-shadow 0.2s;
}
.shop-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shop-btn .shop-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.2); font-size: 1rem; }
.shop-btn .shop-arrow { margin-left: auto; font-size: 1.1rem; opacity: 0.85; }
.shop-btn.shopee { background: linear-gradient(135deg, var(--shopee), #ff7337); }
.shop-btn.tiktok { background: linear-gradient(135deg, #25f4ee 0%, #010101 45%, #fe2c55 100%); }
.shop-btn.disabled { background: #ececed; color: #9a9aa6; pointer-events: none; }

/* ===== Cart page ===== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: start; padding-block: clamp(24px, 4vw, 40px); }
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; align-items: center;
}
.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.cart-item .ci-name { font-weight: 600; }
.cart-item .ci-brand { font-size: 0.8rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cart-item .ci-price { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
.cart-item .ci-right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.ci-subtotal { font-weight: 800; }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; font-family: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.summary {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  position: sticky; top: 90px;
}
.summary h3 { margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-soft); }
.summary-row.total { color: var(--ink); font-weight: 800; font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.summary .btn { margin-top: 16px; }
.muted-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: start; padding-block: clamp(24px, 4vw, 40px); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.form-card h3 { margin: 0 0 18px; font-size: 1.15rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; background: #fff; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.qr-payment-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fafbff;
}
.qr-payment-card img {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
  image-rendering: pixelated;
}

.payment-amount-highlight {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffd7a8;
  background: #fff2e2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.payment-amount-highlight span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--danger);
}

.pay-methods { display: grid; gap: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pay-option:hover { border-color: var(--brand); }
.pay-option.selected { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-option .pay-ico { font-size: 1.3rem; }
.pay-option .pay-text strong { display: block; }
.pay-option .pay-text span { font-size: 0.82rem; color: var(--ink-soft); }

.card-fields { margin-top: 14px; }
.checkout-summary .summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; margin-bottom: 10px; }
.checkout-summary .summary-item span:first-child { color: var(--ink-soft); }

/* ===== Order confirmation ===== */
.confirm { text-align: center; max-width: 560px; margin: 0 auto; padding-block: clamp(40px, 8vw, 90px); }
.confirm .check { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.6rem; }
.confirm h1 { margin: 0 0 10px; }
.confirm p { color: var(--ink-soft); }
.order-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; text-align: left; }

/* ===== Info / about page ===== */
.page-hero { background: linear-gradient(180deg, #fff, var(--bg)); text-align: center; padding-block: clamp(48px, 8vw, 90px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0 0 14px; }
.page-hero p { color: var(--ink-soft); max-width: 58ch; margin: 0 auto; font-size: 1.1rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 3vw, 26px); }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); font-size: 1.5rem; margin-bottom: 14px; }
.info-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.info-card p { margin: 0; color: var(--ink-soft); }
.about-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 22%, #fff3ec 0%, transparent 42%), linear-gradient(180deg, #fff, var(--bg));
}
.about-hero .container { max-width: 860px; }
.about-hero .eyebrow { margin-bottom: 14px; }
.about-hero .hero-actions { justify-content: center; margin-top: 20px; }
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.about-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.about-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(16px, 3vw, 26px); }
.about-story { max-width: 78ch; margin: 0 auto; }
.about-story p { margin-bottom: 14px; color: var(--ink-soft); }
.about-story .signature { color: var(--ink); font-weight: 700; }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-list li { color: var(--ink-soft); }
.about-callout { margin-top: 14px; background: #fff6f0; border: 1px solid #ffd8bf; border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.about-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.78); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding-block: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.empty-state .btn { margin-top: 16px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-weight: 500; font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-inner { height: 68px; gap: 10px; }
  .logo { gap: 8px; font-size: 1rem; }
  .logo-image {
    width: auto;
    max-width: 108px;
    height: 34px;
  }
  .logo-text small { font-size: 0.55rem; letter-spacing: 0.09em; }
  .menu-toggle { display: block; }
  .main-tabs {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border: none; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 12px var(--space); box-shadow: var(--shadow-md); display: none;
  }
  .main-tabs.open { display: flex; }
  .main-tabs a { text-align: center; padding: 12px 18px; }
  .product-thumb img { padding: 14px; }
  .gallery-main img { padding: 16px; }
  .thumbs img { padding: 4px; }
  .field-grid { grid-template-columns: 1fr; }
  .qr-payment-card { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-highlights { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item .ci-right { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
}

@media (max-width: 420px) {
  .logo { font-size: 0.92rem; }
  .logo-image { width: auto; max-width: 96px; height: 30px; }
  .logo-text small { font-size: 0.5rem; }
}
