/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --ft-red:      #be3e1d;
  --ft-red-dark: #982f16;
  --ft-ink:      #20242a;
  --ft-muted:    #626b76;
  --ft-line:     #dfe5eb;
  --ft-soft:     #f4f6f8;
  --ft-panel:    #ffffff;
  --ft-charcoal: #2f3032;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ft-ink);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1; margin-bottom: 14px; }
h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 10px; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.top-strip {
  background: var(--ft-charcoal);
  color: #fff;
  font-size: 0.85rem;
}
.top-strip-inner {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  padding: 8px 0;
}
.top-strip a { color: #fff; font-weight: 700; }

.brand-row {
  border-top: 3px solid var(--ft-red);
  border-bottom: 1px solid var(--ft-line);
  background: #fff;
}
.brand-row-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0;
}
.brand span { color: var(--ft-red); }
.brand small { color: var(--ft-ink); font-size: 0.9rem; font-weight: 700; }

.main-nav {
  display: flex;
  gap: 20px;
  color: var(--ft-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.main-nav a:hover { color: var(--ft-red); }

/* Cart icon badge */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ft-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 5px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.header-cta,
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.16s ease;
}
.header-cta, .btn-primary {
  background: var(--ft-red);
  color: #fff;
  border-color: var(--ft-red);
}
.header-cta:hover, .btn-primary:hover {
  background: var(--ft-red-dark);
  border-color: var(--ft-red-dark);
}
.btn-secondary {
  background: #fff;
  color: var(--ft-ink);
  border-color: #bcc6d0;
}
.btn-secondary:hover {
  border-color: var(--ft-red);
  color: var(--ft-red);
}
.btn-outline {
  background: transparent;
  color: var(--ft-red);
  border-color: var(--ft-red);
}
.btn-outline:hover { background: var(--ft-red); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--ft-red);
}
.btn-sm { min-height: 34px; padding: 7px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 80px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.88) 52%, rgba(244,246,248,0.7) 100%),
    repeating-linear-gradient(45deg, #eef2f5 0, #eef2f5 9px, #f9fbfc 9px, #f9fbfc 18px);
}
.hero::after {
  position: absolute;
  right: -220px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border: 80px solid rgba(190,62,29,0.08);
  border-radius: 50%;
  content: "";
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,0.85fr);
  gap: 52px;
  align-items: center;
}
.kicker {
  margin: 0 0 10px;
  color: var(--ft-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-lede {
  color: #48515b;
  font-size: 1.08rem;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.proof-row span {
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  padding: 7px 12px;
  color: #3d4650;
  font-size: 0.84rem;
  font-weight: 700;
}
.hero-visual {
  position: relative;
  border: 1px solid var(--ft-line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(36,42,49,0.12);
}
.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
}
.visual-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 270px;
  border-left: 4px solid var(--ft-red);
  border-radius: 6px;
  background: rgba(255,255,255,0.94);
  padding: 12px 14px;
  box-shadow: 0 16px 34px rgba(32,36,42,0.16);
}
.visual-note strong, .visual-note span { display: block; }
.visual-note span { margin-top: 3px; color: var(--ft-muted); font-size: 0.88rem; }

/* ── Section ───────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-soft { background: var(--ft-soft); }
.section-dark { background: #25282c; color: #fff; }
.section-charcoal { background: var(--ft-charcoal); color: #fff; }

.section-heading { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section-heading p:not(.kicker) { color: var(--ft-muted); }

.split-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

/* ── Trust band ────────────────────────────────────────────────────────────── */
.trust-band { background: var(--ft-charcoal); color: #fff; padding: 26px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
.trust-grid div { border-left: 3px solid var(--ft-red); padding-left: 14px; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid span { margin-top: 3px; color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--ft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(32,36,42,0.05);
}

/* Hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px;
}
.hub-card:hover { border-color: rgba(190,62,29,0.44); transform: translateY(-3px); }
.hub-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(190,62,29,0.1);
  color: var(--ft-red);
  font-size: 0.86rem;
  font-weight: 800;
}
.hub-card h3 { margin-top: 18px; }
.hub-card p { color: var(--ft-muted); font-size: 0.94rem; }
.hub-link { margin-top: auto; color: var(--ft-red); font-weight: 800; font-size: 0.9rem; }

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  text-align: center;
  transition: 0.16s ease;
}
.category-card:hover { border-color: var(--ft-red); transform: translateY(-2px); }
.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.category-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.category-card small { color: var(--ft-muted); font-size: 0.8rem; }

/* ── Product downloads ──────────────────────────────────────────────────────── */
.product-downloads { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.product-downloads-heading { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.product-downloads-list { display: flex; flex-direction: column; gap: 8px; }
.product-download-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 7px;
  background: #f9f9f9; text-decoration: none; color: var(--ft-ink);
  transition: background 0.15s, border-color 0.15s;
}
.product-download-item:hover { background: #eef2f7; border-color: #b0b8c1; }
.product-download-icon { font-size: 1.25rem; flex-shrink: 0; }
.product-download-label { flex: 1; font-size: 0.9rem; font-weight: 500; }
.product-download-size { font-size: 0.78rem; color: var(--ft-muted); white-space: nowrap; }

/* ── You may also like ──────────────────────────────────────────────────────── */
.upsell-section { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--border); }
.upsell-heading { font-size: 1.25rem; margin-bottom: 20px; }
.upsell-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.upsell-card { min-width: 0; }
@media (max-width: 900px) {
  .upsell-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .upsell-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  /* Hide scrollbar but keep scrolling */
  .upsell-row::-webkit-scrollbar { height: 4px; }
  .upsell-row::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
  .upsell-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
}
@media (max-width: 480px) {
  .upsell-card { flex: 0 0 180px; }
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: 0.16s ease;
}
.product-card:hover { border-color: rgba(190,62,29,0.4); transform: translateY(-2px); }
.product-card-img {
  width: 100%;
  height: 180px;
  background: var(--ft-soft);
  object-fit: contain;
  padding: 12px;
}
.product-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--ft-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c1;
  font-size: 2.5rem;
}
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.product-card-cat {
  color: var(--ft-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.product-card-name { margin-top: 8px; font-size: 0.98rem; font-weight: 700; }
.product-card-desc { color: var(--ft-muted); font-size: 0.88rem; margin-top: 4px; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.product-card-price { color: var(--ft-red); font-weight: 800; font-size: 1.05rem; }

/* ── Shop page ─────────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 32px;
  align-items: start;
}
.shop-sidebar {}
.sidebar-title { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ft-muted); margin-bottom: 12px; }
.sidebar-cats { list-style: none; margin: 0; padding: 0; }
.sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ft-line);
  font-size: 0.92rem;
  color: var(--ft-ink);
  font-weight: 600;
}
.sidebar-cats li a:hover, .sidebar-cats li a.active { color: var(--ft-red); }
.sidebar-cats li a .count { color: var(--ft-muted); font-size: 0.8rem; font-weight: 400; }

.shop-search {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.shop-search input {
  flex: 1;
}
.shop-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--ft-muted);
}
.shop-sort select { font-size: 0.88rem; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--ft-line);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ft-ink);
  transition: 0.14s ease;
}
.pagination a:hover { border-color: var(--ft-red); color: var(--ft-red); }
.pagination .current { background: var(--ft-red); border-color: var(--ft-red); color: #fff; }

/* ── Product detail ────────────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,0.8fr);
  gap: 48px;
  align-items: start;
}
.product-gallery {}
.gallery-main {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: var(--ft-soft);
  border: 1px solid var(--ft-line);
  border-radius: 8px;
  padding: 16px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--ft-soft);
  border: 2px solid var(--ft-line);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  transition: 0.14s ease;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--ft-red); }

.product-info {}
.product-breadcrumb { font-size: 0.84rem; color: var(--ft-muted); margin-bottom: 14px; }
.product-breadcrumb a:hover { color: var(--ft-red); }
.product-sku { font-size: 0.8rem; color: var(--ft-muted); margin-bottom: 8px; }
.product-price { font-size: 1.8rem; font-weight: 800; color: var(--ft-red); margin: 14px 0; }
.product-price-note { font-size: 0.82rem; color: var(--ft-muted); font-weight: 400; }
.product-stock { font-size: 0.88rem; margin-bottom: 16px; }
.stock-in  { color: #16a34a; font-weight: 700; }
.stock-out { color: #dc2626; font-weight: 700; }
.product-variants { margin-bottom: 16px; }
.variant-label { font-size: 0.86rem; font-weight: 800; margin-bottom: 8px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.qty-input { width: 70px; text-align: center; }
.product-desc { margin-top: 24px; color: var(--ft-muted); font-size: 0.95rem; line-height: 1.65; }
.product-meta { margin-top: 20px; border-top: 1px solid var(--ft-line); padding-top: 16px; font-size: 0.85rem; color: var(--ft-muted); }
.product-meta span { color: var(--ft-ink); font-weight: 600; }

/* ── Cart drawer ───────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,36,42,0.46);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  z-index: 901;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  box-shadow: -8px 0 40px rgba(32,36,42,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ft-line);
}
.cart-drawer-header h3 { margin: 0; font-size: 1.05rem; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ft-muted);
  padding: 0 4px;
  line-height: 1;
}
.cart-close:hover { color: var(--ft-red); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--ft-muted); }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ft-line);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--ft-soft);
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
}
.cart-item-body { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 700; }
.cart-item-variant { font-size: 0.8rem; color: var(--ft-muted); }
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.cart-item-price { font-weight: 800; color: var(--ft-red); font-size: 0.95rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--ft-line);
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: var(--ft-red); color: var(--ft-red); }
.cart-item-remove { color: var(--ft-muted); font-size: 0.78rem; cursor: pointer; background: none; border: none; padding: 0; }
.cart-item-remove:hover { color: var(--ft-red); }
.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--ft-line);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.cart-vat-note { font-size: 0.78rem; color: var(--ft-muted); margin-bottom: 12px; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
label {
  font-size: 0.86rem;
  font-weight: 700;
}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ft-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.14s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ft-red);
}
textarea { resize: vertical; }
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 10px 14px;
  color: #b91c1c;
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 10px 14px;
  color: #166534;
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.form-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: var(--ft-soft);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  padding: 36px;
  box-shadow: 0 16px 50px rgba(32,36,42,0.09);
}
.auth-card h2 { margin-bottom: 6px; }
.auth-card p.subtitle { color: var(--ft-muted); margin-bottom: 24px; font-size: 0.94rem; }
.auth-links { margin-top: 18px; text-align: center; font-size: 0.88rem; color: var(--ft-muted); }
.auth-links a { color: var(--ft-red); font-weight: 700; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; width: 100%; }
.pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 42px;
  border: none;
  background: none;
  cursor: pointer;
  color: #9aa3ad;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pw-toggle:hover { color: var(--ft-ink); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }

/* ── Cart / Checkout page ──────────────────────────────────────────────────── */
.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 32px;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.82rem; text-transform: uppercase; color: var(--ft-muted); padding: 8px 0; border-bottom: 2px solid var(--ft-line); }
.cart-table td { padding: 14px 0; border-bottom: 1px solid var(--ft-line); vertical-align: middle; }
.order-summary {
  background: var(--ft-soft);
  border: 1px solid var(--ft-line);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 20px;
}
.order-summary h3 { font-size: 1rem; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 10px; }
.summary-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--ft-line); padding-top: 10px; margin-top: 6px; }

/* ── Account ───────────────────────────────────────────────────────────────── */
.account-grid {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0;
}
.account-nav { border: 1px solid var(--ft-line); border-radius: 8px; overflow: hidden; }
.account-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 1px solid var(--ft-line);
  color: var(--ft-ink);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover, .account-nav a.active { background: var(--ft-soft); color: var(--ft-red); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--ft-charcoal);
  color: #fff;
  padding: 0;
}
.admin-brand {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ft-red);
}
.admin-brand small { display: block; color: rgba(255,255,255,0.6); font-size: 0.76rem; font-weight: 400; margin-top: 2px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  border-left: 3px solid transparent;
  transition: 0.14s ease;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-left-color: var(--ft-red);
}
.admin-content { padding: 32px 36px; background: var(--ft-soft); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-header h1 { margin: 0; font-size: 1.5rem; }
.admin-page-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 22px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 8px;
  padding: 20px 22px;
}
.stat-card .stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ft-muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--ft-ink); }
.stat-card .stat-sub { font-size: 0.82rem; color: var(--ft-muted); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ft-line); border-radius: 8px; overflow: hidden; }
.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ft-muted);
  background: var(--ft-soft);
  border-bottom: 1px solid var(--ft-line);
}
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--ft-line); font-size: 0.9rem; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfc; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green   { background: #dcfce7; color: #166534; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-yellow  { background: #fef9c3; color: #854d0e; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: #f3f4f6; color: #4b5563; }

/* ── Tools section ─────────────────────────────────────────────────────────── */
.tools-section {
  background: #25282c;
  color: #fff;
}
.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}
.tools-panel {
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  padding: 34px;
}
.tools-panel p:not(.kicker) { color: rgba(255,255,255,0.75); }
.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.tool-list a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  padding: 18px 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  gap: 10px;
}
.tool-list a::after {
  content: '→';
  font-size: 1.1rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.tool-list a:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.tool-list a:hover::after { opacity: 1; }
.tool-list a.tool-disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}
.btn-ghost {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ── Docs section ──────────────────────────────────────────────────────────── */
.docs-section { background: var(--ft-soft); }
.docs-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,0.8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.docs-intro { color: var(--ft-muted); font-size: 1rem; margin: 0; align-self: end; }
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.docs-card {
  background: #fff;
  border: 1px solid var(--ft-line);
  border-radius: 10px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(32,36,42,0.06);
  transition: box-shadow 0.18s, transform 0.18s;
}
.docs-card:hover {
  box-shadow: 0 8px 28px rgba(32,36,42,0.12);
  transform: translateY(-2px);
}
.docs-card-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ft-soft);
  border: 1px solid var(--ft-line);
  color: var(--ft-red);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.docs-card h3 { margin: 16px 0 8px; font-size: 1rem; }
.docs-card p { color: var(--ft-muted); font-size: 0.88rem; margin: 0; flex: 1; }
.docs-card-action {
  border-color: rgba(190,62,29,0.22);
  background: #fff;
  box-shadow: 0 2px 12px rgba(190,62,29,0.08);
}

/* ── Contact section ───────────────────────────────────────────────────────── */
.contact-cta {
  background: linear-gradient(135deg, var(--ft-red), var(--ft-red-dark));
  color: #fff;
  padding: 72px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(300px,0.65fr);
  gap: 40px;
  align-items: center;
}
.contact-cta .kicker { color: rgba(255,255,255,0.8); }
.contact-cta p { color: rgba(255,255,255,0.82); }
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  color: var(--ft-ink);
  box-shadow: 0 24px 60px rgba(32,36,42,0.2);
}
.contact-card .form-group { margin-bottom: 12px; }
.btn-contact-alt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.55);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: transparent;
  transition: background 0.18s, border-color 0.18s;
}
.btn-contact-alt:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-wa { border-color: #25d366; }
.btn-wa:hover { background: #25d366; border-color: #25d366; }
.btn-chat { border-color: rgba(255,255,255,0.55); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1f2226;
  color: #fff;
  padding: 28px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-grid strong, .footer-grid span { display: block; }
.footer-grid span { margin-top: 3px; color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 700;
}
.footer-grid nav a:hover { color: #fff; }

/* ── Floating WhatsApp button ──────────────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  padding: 0 18px 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(31,157,85,0.35);
  transition: background 0.16s ease, transform 0.16s ease;
}
.floating-whatsapp:hover {
  background: #187c43;
  transform: translateY(-2px);
}
@media (max-width: 680px) {
  .floating-whatsapp { left: 12px; bottom: 12px; }
}

/* ── Toast notification ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ft-charcoal);
  color: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(32,36,42,0.22);
  animation: toast-in 0.22s ease, toast-out 0.22s ease 2.5s forwards;
}
@keyframes toast-in  { from { opacity:0; transform:translateY(12px); } }
@keyframes toast-out { to   { opacity:0; transform:translateY(12px); } }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  color: var(--ft-muted);
  padding: 12px 0;
}
.breadcrumb a:hover { color: var(--ft-red); }
.breadcrumb-sep { color: var(--ft-line); }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-muted  { color: var(--ft-muted); }
.text-red    { color: var(--ft-red); }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 1rem; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .brand-row-inner, .top-strip-inner { flex-direction: column; gap: 10px; padding: 14px 0; }
  .main-nav { flex-wrap: wrap; }
  .hero-grid, .contact-grid, .product-detail-grid, .tools-grid, .docs-heading { grid-template-columns: 1fr; }
  .docs-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-grid, .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cart-page-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tool-list, .docs-card-grid, .docs-heading { grid-template-columns: 1fr; }
  .tool-list a { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); min-height: 64px; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-cols-2 { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}
@media (max-width: 420px) {
  .hub-grid, .product-grid, .category-grid { grid-template-columns: 1fr; }
}
