/* =====================================================================
   Texus Brands storefront theme
   Every colour and font comes from the CSS variables printed by PHP in
   includes/theme.php, which reads the dashboard branding settings.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--primary);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.24rem; }

.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.narrow { width: min(820px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 0.6rem;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -14px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #1d1704; }
.btn-accent:hover { transform: translateY(-2px); color: #1d1704; box-shadow: 0 12px 26px -14px var(--accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.86rem; min-height: 38px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------- Header ---------------- */
.topbar {
  background: var(--primary); color: #fff; font-size: 0.8rem; letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: 0.9; }
.topbar select {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; padding: 2px 6px; font: inherit;
}
.topbar option { color: #16202e; }

.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--surface);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { font-family: var(--font-heading); font-size: 1.22rem; color: var(--primary); font-weight: 700; line-height: 1.05; }
.brand-tag { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--text); font-size: 0.94rem; font-weight: 600; padding: 0.4rem 0; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right 0.25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }

.has-drop { position: relative; }
.drop {
  position: absolute; top: 100%; left: -1rem; min-width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem; list-style: none;
  box-shadow: 0 24px 50px -28px rgba(12,22,40,0.5); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: 0.2s ease; display: block;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop li { display: block; }
.drop a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; }
.drop a:hover { background: var(--tint); }

.icon-row { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--primary);
  background: transparent; border: none; cursor: pointer; transition: 0.2s ease;
}
.icon-btn:hover { background: var(--tint); transform: translateY(-2px); color: var(--primary); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 999px;
  background: var(--accent); color: #1d1704; font-size: 0.68rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 4px;
}
.icon-badge.pop { animation: badgePop 0.4s ease; }
@keyframes badgePop { 0% { transform: scale(0.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

.tip { position: relative; }
.tip::after {
  content: attr(data-tip); position: absolute; top: 100%; left: 50%; translate: -50% 4px;
  background: var(--primary); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: 0.18s ease;
}
.tip:hover::after { opacity: 1; translate: -50% 8px; }

.hover-panel {
  position: absolute; top: 100%; right: 0; width: 320px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
  box-shadow: 0 28px 60px -30px rgba(12,22,40,0.55); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: 0.2s ease; z-index: 70; text-align: left;
}
.icon-wrap { position: relative; }
.icon-wrap:hover .hover-panel, .icon-wrap:focus-within .hover-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-line { display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.mini-line img { width: 46px; height: 46px; object-fit: contain; background: var(--tint); border-radius: 8px; }
.panel-links { list-style: none; margin: 0; padding: 0; }
.panel-links a { display: block; padding: 0.45rem 0.55rem; border-radius: 8px; font-size: 0.9rem; }
.panel-links a:hover { background: var(--tint); }

.burger { display: none; }

/* ---------------- Search ---------------- */
.search-shell { position: relative; flex: 1 1 260px; max-width: 340px; }
.search-shell input {
  width: 100%; padding: 0.62rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--tint); font: inherit; font-size: 0.9rem; min-height: 44px;
}
.search-shell input:focus { border-color: var(--primary); background: #fff; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 80;
  box-shadow: 0 24px 48px -26px rgba(12,22,40,0.5); display: none;
}
.suggest a { display: flex; gap: 0.6rem; align-items: center; padding: 0.6rem 0.8rem; font-size: 0.88rem; }
.suggest a:hover { background: var(--tint); }
.suggest img { width: 38px; height: 38px; object-fit: contain; background: var(--tint); border-radius: 6px; }

/* ---------------- Banner ---------------- */
.banner { position: relative; min-height: clamp(260px, 34vw, 460px); display: grid; align-items: center; overflow: hidden; }
.banner-home { min-height: clamp(440px, 58vw, 660px); }
.banner img.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,17,33,0.86) 6%, rgba(9,17,33,0.62) 48%, rgba(9,17,33,0.28) 100%);
}
.banner-body { position: relative; z-index: 2; padding: clamp(2.4rem, 5vw, 4.6rem) 0; color: #fff; max-width: 660px; }
.banner-body h1, .banner-body h2 { color: #fff; }
.banner-body p { color: rgba(255,255,255,0.9); font-size: 1.06rem; }
.banner-logo { width: clamp(104px, 12vw, 158px); height: auto; border-radius: 50%; margin-bottom: 1.4rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7); }
.crumbs { font-size: 0.8rem; color: rgba(255,255,255,0.82); margin-bottom: 0.8rem; }
.crumbs a { color: rgba(255,255,255,0.82); }
.crumbs a:hover { color: #fff; }

/* ---------------- Cards and grids ---------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(12,22,40,0.42); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 0.6rem; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.04rem; }
.price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.price s { color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-right: 0.4rem; }
.card-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; }

.badge {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.badge-sale { background: var(--accent); color: #1d1704; }
.badge-out { background: #6c7280; }
.badge-stack { top: 2.4rem; }
.wish-toggle { position: absolute; top: 0.55rem; right: 0.55rem; z-index: 3; background: rgba(255,255,255,0.92); }
.wish-toggle.on svg { fill: var(--accent); stroke: var(--accent); }

.cat-tile { position: relative; border-radius: 18px; overflow: hidden; min-height: 260px; display: grid; align-items: end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,17,33,0.9), rgba(9,17,33,0.05) 70%); }
.cat-tile-body { position: relative; z-index: 2; padding: 1.4rem; color: #fff; }
.cat-tile-body h3 { color: #fff; margin-bottom: 0.2rem; }
.cat-tile-body p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.85); }

.feature-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }
.feature-split img { border-radius: 18px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.trust-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.trust-item strong { display: block; color: var(--primary); }
.trust-item p { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--muted); }

.quote-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 1.3rem 1.4rem; }
.stars { color: var(--accent); letter-spacing: 0.12em; font-size: 0.95rem; }

.band { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.band img.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.band .wrap { position: relative; z-index: 2; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,0.88); }

.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 520px; }
.newsletter-form input { flex: 1 1 240px; }

/* ---------------- Forms ---------------- */
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--primary); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=date], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 0.72rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); font: inherit; font-size: 0.95rem; color: var(--text); min-height: 46px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.field { margin-bottom: 1rem; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; color: var(--text); }
.check input { width: auto; min-height: auto; margin-top: 0.25rem; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2rem); }
.notice { padding: 0.9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: 0.93rem; border: 1px solid; }
.notice-ok { background: color-mix(in srgb, var(--success) 10%, #fff); border-color: var(--success); color: #14532d; }
.notice-err { background: color-mix(in srgb, var(--error) 8%, #fff); border-color: var(--error); color: #7f1d1d; }
.notice-info { background: var(--tint); border-color: var(--line); color: var(--text); }

table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; }
.right { text-align: right; }

/* ---------------- Product detail ---------------- */
.pdp { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.gallery { max-width: 560px; margin-inline: auto; }
*, *::before, *::after { box-sizing: border-box; }
.gallery-main {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--tint);
  aspect-ratio: 1 / 1; cursor: zoom-in; border: 1px solid var(--line);
  max-width: 560px; margin-inline: auto; padding: clamp(0.9rem, 2.4vw, 1.8rem);
  display: grid; place-items: center;
}
.gallery-main img {
  position: absolute; inset: clamp(0.9rem, 2.4vw, 1.8rem);
  width: auto; height: auto; max-width: none; max-height: none;
  inline-size: calc(100% - 2 * clamp(0.9rem, 2.4vw, 1.8rem));
  block-size: calc(100% - 2 * clamp(0.9rem, 2.4vw, 1.8rem));
  object-fit: contain; object-position: center; display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-main.zoomed img { transform: scale(1.9); }
.thumbs {
  display: flex; gap: 0.6rem; margin-top: 0.85rem; max-width: 560px; margin-inline: auto;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.3rem; justify-content: center;
  -webkit-overflow-scrolling: touch;
}
.thumbs::-webkit-scrollbar { height: 5px; }
.thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.thumb {
  flex: 0 0 auto; width: 74px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  padding: 4px; background: var(--surface); cursor: pointer; aspect-ratio: 1; scroll-snap-align: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.thumb[aria-current="true"] { border-color: var(--accent); }

.lightbox { position: fixed; inset: 0; background: rgba(6,11,22,0.94); z-index: 200; display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; background: rgba(255,255,255,0.14); color: #fff; border: none; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-close { position: absolute; top: 3vh; right: 3vw; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: none; background: var(--tint); font-size: 1.1rem; cursor: pointer; color: var(--primary); }
.qty input { width: 62px; border: none; text-align: center; min-height: 46px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--primary); list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: '+'; font-size: 1.25rem; line-height: 1; }
.accordion details[open] summary::after { content: '\2013'; }
.accordion .acc-body { padding-bottom: 1.1rem; }

.stock-in { color: var(--success); font-weight: 600; }
.stock-out { color: var(--error); font-weight: 600; }

/* ---------------- Filters and pagination ---------------- */
.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.filters { position: sticky; top: 104px; }
.filters h3 { font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pager { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.pager a, .pager span { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--footer); color: rgba(255,255,255,0.78); margin-top: 0; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding: clamp(2.6rem, 5vw, 4rem) 0 2rem; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 1.1rem 0 1.6rem; font-size: 0.82rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.pay-logos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-chip { border: 1px solid rgba(255,255,255,0.28); border-radius: 6px; padding: 0.2rem 0.55rem; font-size: 0.72rem; letter-spacing: 0.06em; }
.social { display: flex; gap: 0.6rem; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.admin-link { opacity: 0.5; font-size: 0.78rem; }

/* ---------------- Floating controls ---------------- */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 0.6rem; justify-items: center; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45); border: none; cursor: pointer; }
.float-wa { background: #25D366; }
.float-top { background: var(--primary); color: #fff; opacity: 0; pointer-events: none; transition: 0.25s ease; }
.float-top.show { opacity: 1; pointer-events: auto; }
.float-btn svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.float-wa svg { fill: #fff; stroke: none; }

.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 95; width: min(720px, 94vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem;
  box-shadow: 0 26px 60px -28px rgba(12,22,40,0.5); display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-size: 0.88rem;
}
.cookie-bar.show { display: flex; }

.toast-host { position: fixed; top: 92px; right: 18px; z-index: 200; display: grid; gap: 0.6rem; }
.toast {
  background: var(--primary); color: #fff; padding: 0.85rem 1.15rem; border-radius: 12px; font-size: 0.9rem;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); animation: toastIn 0.28s ease;
}
.toast.err { background: var(--error); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 1; transform: none; }
/* Only hide for the entrance animation when scripting is available, so the
   page is never blank if JavaScript fails to load. */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------------- Rich text ---------------- */
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.2rem; }

/* ---------------- Mobile ---------------- */
@media (max-width: 1020px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem 4vw 1.6rem; display: none; box-shadow: 0 30px 50px -30px rgba(0,0,0,0.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-nav a { padding: 0.7rem 0.2rem; display: block; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 0.6rem; }
  .burger { display: inline-flex; margin-left: auto; }
  .search-shell { order: 5; flex-basis: 100%; max-width: none; }
  .header-inner { flex-wrap: wrap; padding-bottom: 0.7rem; }
  .hover-panel { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .banner::after { background: linear-gradient(to top, rgba(9,17,33,0.9) 10%, rgba(9,17,33,0.5)); }
  .float-stack { bottom: 12px; right: 12px; }
}

@media print {
  .site-header, .site-footer, .float-stack, .cookie-bar, .banner { display: none !important; }
}

/* =====================================================================
   Layout classes used by the page templates
   (grids, strips, split sections, product page, cart, account, tables)
   ===================================================================== */

/* --- Grids --- */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2-tight { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem 1rem; }
.field-wide { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-tight { display: flex; flex-direction: column; gap: 0.55rem; border: none; padding: 0; margin: 0; }
.pad { padding: clamp(1.1rem, 2.6vw, 1.7rem); }
.narrow-sm { width: min(540px, 92vw); margin-inline: auto; }
.row-between { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.section-tint { background: var(--tint); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; min-height: 52px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 0.85rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--primary); }
.link-arrow { font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-arrow::after { content: '\2192'; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.empty { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.pill { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 0.76rem; font-weight: 700; text-transform: capitalize; }

.section-head { max-width: 640px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head h2 { margin-bottom: 0.4rem; }
.section-head .lead { margin: 0; }

/* --- Trust strip --- */
.strip { background: var(--tint); border-block: 1px solid var(--line); padding: 1.1rem 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.6rem; }
.strip-item { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.88rem; }
.strip-item strong { color: var(--primary); font-size: 0.95rem; }
.strip-item span { color: var(--muted); }

/* --- Product cards --- */
.card-eyebrow { margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card-excerpt { margin: 0; font-size: 0.9rem; color: var(--muted); }
.card-body h3 a { color: var(--primary); }
.price-now { color: var(--primary); }
.price-was { color: var(--muted); font-weight: 400; font-size: 0.9rem; text-decoration: line-through; margin-left: 0.45rem; }
.badge-low { background: var(--accent); color: #1d1704; top: 0.7rem; left: auto; right: 0.7rem; }
.product-card .card-media { aspect-ratio: 1 / 1; }
.product-card .card-media img { object-fit: contain; object-position: center; padding: 0.9rem; }
.heart {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--primary);
}
.heart svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.heart:hover { border-color: var(--accent); color: var(--accent); }
.heart.on svg { fill: var(--accent); stroke: var(--accent); }
.heart-lg { width: 52px; height: 52px; }
.heart-lg svg { width: 24px; height: 24px; }

/* --- Category tiles (anchor > img + span) --- */
.cat-tile > span { position: relative; z-index: 2; padding: 1.4rem; color: #fff; display: block; }
.cat-tile > span strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; }
.cat-tile > span em { font-style: normal; font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* --- Split content sections --- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.split-media img { border-radius: 18px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-body h2 { margin-top: 0; }
.steps { margin: 0 0 1.4rem; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.6rem; }
.steps li { font-size: 0.96rem; }
.steps strong { color: var(--primary); }

/* --- Quotes and accordions --- */
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 1.2rem 1.3rem; }
.quote p { font-size: 0.94rem; }
.quote footer { font-size: 0.85rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--primary); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
.acc[open] summary::after { content: '\2013'; }
.acc > div { padding-bottom: 1.1rem; }
.tabs { border-top: 1px solid var(--line); }

/* --- Product detail page --- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.product-layout > div { min-width: 0; }
.product-info { max-width: 560px; }
.zoom-hint { position: absolute; bottom: 0.7rem; left: 0.7rem; z-index: 2; background: rgba(9,17,33,0.7); color: #fff; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; }
.price-lg { font-size: 1.7rem; }
.stock-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--success); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--error); }
.buy-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin: 1.2rem 0; }
.assurance { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
.assurance li::before { content: '\2713'; color: var(--success); font-weight: 700; margin-right: 0.5rem; }
.review { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.review p { margin: 0.3rem 0; font-size: 0.93rem; }
.crumbs-dark, .crumbs-dark a { color: var(--muted); }
.crumbs-dark a:hover { color: var(--primary); }

/* --- Shop filters and pagination --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.filter-bar .field { margin: 0; flex: 1 1 170px; }
.pager a.on, .pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Tables --- */
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.table th, table.table td { padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.table th { color: var(--primary); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; }
.cell-product { display: flex; gap: 0.7rem; align-items: center; }
.cell-product img { width: 58px; height: 58px; object-fit: contain; background: var(--tint); border-radius: 8px; }
.qty-input { width: 76px; min-height: 40px; text-align: center; }

/* --- Cart, checkout, order pages --- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.summary { position: sticky; top: 104px; }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; font-size: 0.93rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-weight: 800; color: var(--primary); font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.55rem; margin-top: 0.35rem; }
.radio { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; color: var(--text); }
.radio input { width: auto; min-height: auto; margin-top: 0.3rem; }
.coupon-form { display: flex; gap: 0.5rem; }
.coupon-form input { min-height: 42px; }
.bank-block { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.88rem; }
.bank-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; font-size: 0.9rem; }
.bank-list dt { color: var(--muted); }
.bank-list dd { margin: 0; font-weight: 600; }

/* --- Order tracking timeline --- */
.timeline { list-style: none; margin: 1.2rem 0 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.timeline li { position: relative; font-size: 0.92rem; }
.timeline li::before { content: ''; position: absolute; left: -1.75rem; top: 0.45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.timeline li.done::before { background: var(--success); }

/* --- Contact page --- */
.contact-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.93rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.map-frame { margin-top: 1.4rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* --- Account area --- */
.account-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 0.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem; }
.side-nav a { padding: 0.6rem 0.8rem; border-radius: 9px; font-size: 0.93rem; font-weight: 600; color: var(--text); }
.side-nav a:hover { background: var(--tint); }
.side-nav a.on { background: var(--primary); color: #fff; }

/* --- Search suggestions --- */
.suggest-row { display: flex; gap: 0.6rem; align-items: center; padding: 0.6rem 0.8rem; font-size: 0.88rem; }
.suggest-row:hover { background: var(--tint); }
.suggest-row img { width: 38px; height: 38px; object-fit: contain; background: var(--tint); border-radius: 6px; }

/* --- Maintenance --- */
.maintenance { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1.2rem; }

@media (max-width: 1024px) {
  .gallery, .gallery-main, .thumbs { max-width: 460px; }
}
@media (max-width: 900px) {
  .product-layout, .cart-layout, .account-layout { grid-template-columns: minmax(0, 1fr); }
  .summary, .filters { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .card-body { padding: 0.8rem 0.85rem 1rem; }
  .card-body h3 { font-size: 0.98rem; }
  .card-actions { flex-wrap: wrap; }
}

/* --- Product imagery: never crop, never oversize (v4) --- */
@media (max-width: 620px) {
  .gallery, .gallery-main, .thumbs { max-width: 320px; }
  .thumb { width: 62px; }
}

/* =====================================================================
   v10 premium layer: cart drawer, luxury forms, contact and footer icons,
   checkout redesign, shop grid sizing and banner positioning.
   ===================================================================== */

/* --- Brand mark: bigger logo, no tagline --- */
.brand img { width: 78px; height: 78px; }
.brand-name { font-size: 1.34rem; letter-spacing: 0.01em; }
.header-inner { min-height: 92px; }
.main-nav a { letter-spacing: 0.09em; font-size: 0.86rem; text-transform: uppercase; }
@media (max-width: 620px) { .brand img { width: 62px; height: 62px; } .brand-name { font-size: 1.12rem; } }

/* --- Home banner: model sits on the right, copy on the left --- */
.banner-home img.banner-img { object-position: 78% 22%; }
.banner-home::after {
  background: linear-gradient(95deg, rgba(9,17,33,0.94) 0%, rgba(9,17,33,0.78) 36%,
              rgba(9,17,33,0.32) 62%, rgba(9,17,33,0.08) 100%);
}
.banner-home .banner-body { max-width: 540px; }
.banner-logo { width: clamp(112px, 11vw, 150px); }
@media (max-width: 900px) {
  .banner-home img.banner-img { object-position: 72% 18%; }
  .banner-home { min-height: clamp(520px, 96vw, 640px); }
  .banner-home::after {
    background: linear-gradient(to top, rgba(9,17,33,0.95) 34%, rgba(9,17,33,0.55) 62%, rgba(9,17,33,0.18) 100%);
  }
  .banner-home .banner-body { padding-top: 44vw; max-width: none; }
}

/* --- Premium form styling (frontend) --- */
.form-luxe { display: grid; gap: 1.05rem; }
label { letter-spacing: 0.04em; text-transform: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=date], input[type=search], input[type=file], select, textarea {
  border-radius: 14px; padding: 0.95rem 1.05rem; min-height: 52px;
  background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--primary) 50%),
  linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field { margin-bottom: 0.2rem; }
.field label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.float-field { position: relative; }
.float-field input, .float-field textarea { padding-top: 1.5rem; padding-bottom: 0.55rem; }
.float-field label {
  position: absolute; left: 1.1rem; top: 1rem; margin: 0; pointer-events: none;
  font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--muted);
  transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}
.float-field input:focus + label, .float-field textarea:focus + label,
.float-field input:not(:placeholder-shown) + label, .float-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.72rem); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
}
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 0; }
legend { padding: 0 0.45rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.radio, .check { padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: 0.2s ease; }
.radio:hover, .check:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--tint); }
.radio:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.stack-tight .muted { padding-inline: 0.2rem; }
.btn { letter-spacing: 0.04em; }

/* --- Quality / promise cards --- */
.luxe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.4vw, 1.7rem); }
.luxe-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: 0.7rem;
  box-shadow: 0 30px 60px -46px rgba(12,22,40,0.5); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.luxe-card:hover { transform: translateY(-4px); box-shadow: 0 34px 66px -40px rgba(12,22,40,0.45); }
.luxe-ico {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}
.luxe-ico svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.luxe-card h3 { margin: 0; font-size: 1.1rem; }
.luxe-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* --- Contact and footer icon cards --- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.contact-card {
  display: flex; gap: 0.9rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.15rem;
  box-shadow: 0 24px 46px -40px rgba(12,22,40,0.5); transition: 0.22s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 32%, var(--line)); }
.contact-card .luxe-ico { width: 46px; height: 46px; border-radius: 14px; }
.contact-card .luxe-ico svg { width: 22px; height: 22px; }
.contact-card strong { display: block; font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.contact-card a, .contact-card span em { font-style: normal; font-size: 0.96rem; color: var(--text); font-weight: 600; display: block; }
.contact-card a:hover { color: var(--primary); }

.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.foot-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.foot-contact .fc-ico {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.07);
}
.foot-contact .fc-ico svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-contact .fc-wa svg { fill: var(--accent); stroke: none; }
.foot-contact strong { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0.72; }
.foot-contact a, .foot-contact em { font-style: normal; font-size: 0.9rem; display: block; }

/* --- Footer payment logos --- */
.pay-logos { align-items: center; gap: 0.45rem; }
.pay-logo { background: #fff; border-radius: 7px; padding: 0.3rem 0.5rem; display: inline-grid; place-items: center; line-height: 0; }
.pay-logo img { height: 18px; width: auto; display: block; }

/* --- PayFast checkout badge --- */
.payfast-option { display: flex; gap: 0.85rem; align-items: center; }
.payfast-logo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.6rem; line-height: 0; flex: none; }
.payfast-logo img { height: 22px; width: auto; }
.payfast-copy strong { display: block; font-size: 0.98rem; color: var(--primary); }
.payfast-copy span { font-size: 0.85rem; color: var(--muted); }

/* --- Shop layout: category sidebar and 5 column grid --- */
.shop-side { display: grid; gap: 1.2rem; }
.cat-filter { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.cat-filter a {
  display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.8rem;
  border-radius: 11px; font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.cat-filter a:hover { background: var(--tint); }
.cat-filter a.on { background: var(--primary); color: #fff; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.grid-5 .card-body h3 { font-size: 0.98rem; }
.grid-5.few { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: center; }
.grid-5.few > * { grid-column: 3; }
@media (max-width: 1180px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-5.few > * { grid-column: 2 / span 2; } }
@media (max-width: 900px)  { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-5.few > * { grid-column: 2; } }
@media (max-width: 700px)  { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-5.few > * { grid-column: 1 / span 2; max-width: 320px; margin-inline: auto; } }

/* --- Checkout: premium Shopify style --- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.co-block { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 2.6vw, 2rem); box-shadow: 0 30px 60px -50px rgba(12,22,40,0.55); }
.co-block + .co-block { margin-top: 1.1rem; }
.co-head { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1.2rem; }
.co-step { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex: none; }
.co-head h2 { margin: 0; font-size: 1.16rem; }
.co-head p { margin: 0.1rem 0 0; font-size: 0.84rem; color: var(--muted); }
.co-summary { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 2.6vw, 1.8rem); box-shadow: 0 34px 64px -48px rgba(12,22,40,0.55); }
.co-summary h2 { font-size: 1.1rem; }
.co-line { display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 62px; height: 62px; object-fit: contain; background: var(--tint); border-radius: 12px; flex: none; padding: 4px; }
.co-line span { font-size: 0.9rem; }
.co-secure { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }
.co-secure svg { width: 16px; height: 16px; stroke: var(--success); fill: none; stroke-width: 1.8; }
@media (max-width: 980px) { .checkout-grid { grid-template-columns: minmax(0, 1fr); } .co-summary { position: static; } }

/* --- Cart drawer --- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,14,26,0.55); z-index: 140; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(2px); }
.drawer-backdrop.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 150;
  background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -30px 0 70px -30px rgba(9,17,33,0.45); visibility: hidden;
}
.cart-drawer.open { transform: none; visibility: visible; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.cd-head h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 0.55rem; }
.cd-count { background: var(--accent); color: #1d1704; border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 0.76rem; font-weight: 800; padding: 0 6px; }
.cd-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--primary); }
.cd-close:hover { background: var(--tint); }
.cd-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.cd-body { flex: 1; overflow-y: auto; padding: 0.6rem 1.3rem 1.2rem; }
.cd-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: cdIn 0.3s ease; }
@keyframes cdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cd-item img { width: 78px; height: 78px; object-fit: contain; background: var(--tint); border-radius: 14px; padding: 5px; }
.cd-item h3 { margin: 0 0 0.2rem; font-size: 0.98rem; }
.cd-item .cd-price { font-size: 0.9rem; color: var(--muted); }
.cd-item .cd-total { font-weight: 700; color: var(--primary); }
.cd-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.55rem; }
.cd-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.cd-qty button { width: 34px; height: 36px; border: none; background: var(--tint); color: var(--primary); font-size: 1.05rem; cursor: pointer; }
.cd-qty button:hover { background: color-mix(in srgb, var(--primary) 12%, var(--tint)); }
.cd-qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 0.92rem; }
.cd-remove { background: none; border: none; color: var(--muted); font-size: 0.82rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cd-remove:hover { color: var(--error); }
.cd-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cd-foot { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem 1.4rem; display: grid; gap: 0.6rem; background: var(--surface); }
.cd-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cd-sub strong { font-size: 1.28rem; color: var(--primary); }
.cd-note { margin: 0; font-size: 0.78rem; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* --- Tick lists --- */
.ticks { list-style: none; margin: 1rem 0 1.3rem; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: 0.97rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.24rem; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 26%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 0.55rem; width: 8px; height: 4px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* =====================================================================
   v11 premium product gallery — luxury Shopify style
   Vertical thumbnail rail on desktop, swipeable slide track on mobile,
   pointer-follow zoom, generous white space, retina-ready images.
   ===================================================================== */
.pgal {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(0.7rem, 1.6vw, 1.15rem); align-items: start; max-width: 760px; margin-inline: auto;
}
.pgal-main { min-width: 0; }
.pgal-rail-wrap { min-width: 0; }
.pgal-rail {
  display: flex; flex-direction: column; gap: 0.6rem; max-height: 640px; overflow-y: auto;
  padding: 2px; scrollbar-width: thin;
}
.pgal-rail::-webkit-scrollbar { width: 4px; }
.pgal-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.pgal-thumb {
  position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 4; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.pgal-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.pgal-thumb:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(9, 17, 33, .45); }
.pgal-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pgal-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pgal-stage {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--tint);
  border: 1px solid var(--line); aspect-ratio: 4 / 5; touch-action: pan-y;
}
.pgal-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.pgal-slide {
  flex: 0 0 100%; margin: 0; height: 100%; display: grid; place-items: center;
  padding: clamp(0.9rem, 2.6vw, 2rem); cursor: zoom-in; opacity: .35; transition: opacity .45s ease;
}
.pgal-slide.is-active { opacity: 1; }
.pgal-slide picture { display: block; width: 100%; height: 100%; }
.pgal-slide img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.pgal-stage.is-zoomed .pgal-slide.is-active img { transform: scale(2); }
@media (hover: none) { .pgal-slide { cursor: pointer; } }

.pgal-flag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.pgal-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .88); border: 1px solid var(--line); color: var(--primary);
  display: grid; place-items: center; cursor: pointer; opacity: 0;
  transition: opacity .3s ease, background .3s ease, transform .3s ease;
  backdrop-filter: blur(6px);
}
.pgal-arrow svg { width: 20px; height: 20px; }
.pgal-prev { left: 0.7rem; } .pgal-next { right: 0.7rem; }
.pgal-stage:hover .pgal-arrow, .pgal-arrow:focus-visible { opacity: 1; }
.pgal-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pgal-count, .pgal-hint {
  position: absolute; bottom: 0.85rem; z-index: 3; font-size: 0.7rem; letter-spacing: 0.06em;
  background: rgba(9, 17, 33, .68); color: #fff; padding: 0.26rem 0.62rem; border-radius: 999px;
}
.pgal-count { right: 0.85rem; }
.pgal-hint { left: 0.85rem; opacity: 0; transition: opacity .3s ease; }
.pgal-stage:hover .pgal-hint { opacity: 1; }
.pgal-dots { display: none; gap: 0.4rem; justify-content: center; margin-top: 0.75rem; }
.pgal-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background .3s ease, width .3s ease; }
.pgal-dot.is-active { background: var(--accent); width: 20px; border-radius: 999px; }
.pgal-caption { margin: 0.75rem 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); min-height: 1.2em; letter-spacing: 0.02em; }

@media (max-width: 1024px) { .pgal { grid-template-columns: 78px minmax(0, 1fr); max-width: 620px; } }
@media (max-width: 760px) {
  .pgal { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 0.6rem; }
  .pgal-rail-wrap { order: 2; }
  .pgal-main { order: 1; }
  .pgal-rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .pgal-thumb { width: 66px; scroll-snap-align: start; }
  .pgal-arrow { display: none; }
  .pgal-dots { display: flex; }
  .pgal-hint { display: none; }
  .pgal-stage { aspect-ratio: 1 / 1; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgal-track, .pgal-slide, .pgal-slide img, .pgal-thumb { transition: none; }
}

/* --- v11 responsive polish: no overflow anywhere --- */
html, body { max-width: 100%; overflow-x: hidden; }
img, picture, video, table { max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 620px) {
  .btn, .a-btn { min-height: 44px; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

/* =====================================================================
   v12 — one form design system, typography consistency, shop grid
   Inputs written without a type attribute (<input name="name">) were not
   matched by the earlier selector lists, so Name / Phone / First name /
   Last name rendered as raw browser inputs. This block styles every text
   style control regardless of the type attribute.
   ===================================================================== */
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=hidden]):not([type=range]):not([type=color]),
select, textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
input[type=file] { padding: 0.7rem 0.9rem; }
textarea { min-height: 130px; resize: vertical; }
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):hover,
select:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):focus,
select:focus, textarea:focus {
  border-color: var(--primary); background: #fff; outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--surface) inset; -webkit-text-fill-color: var(--text); }
.radio input, .check input { width: auto; min-height: 0; padding: 0; box-shadow: none; }
.qty input, .search-shell input { min-height: 46px; }
.qty input { width: 62px; border: none; border-radius: 0; box-shadow: none; text-align: center; }
select { padding-right: 2.6rem; }
.topbar select { min-height: 38px; padding: 0.35rem 2rem 0.35rem 0.7rem; border-radius: 999px; font-size: 0.82rem; }
.newsletter-form input { flex: 1 1 240px; width: auto; }
@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
  select, textarea { font-size: 16px; }
}

/* Typography: one scale everywhere, including small print inside cards. */
p, li, td, th, label, input, select, textarea, button, .btn { font-family: var(--font-body); }
.contact-card, .contact-card *, .luxe-card p, .co-block p, .pgal-caption {
  font-family: var(--font-body);
}
.contact-card { align-items: center; }
.contact-card > span:last-child { display: grid; gap: 0.15rem; min-width: 0; }
.contact-card a, .contact-card span em {
  font-style: normal; font-size: 0.98rem; line-height: 1.45; font-weight: 600;
  color: var(--text); word-break: break-word;
}
.contact-card span em.muted { font-weight: 500; font-size: 0.88rem; color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Shop grid — Shopify / WooCommerce style, scales from one product upwards. */
.shop-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.shop-grid.is-few { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); }
.shop-grid .card-body h3 { font-size: 1.02rem; }
@media (max-width: 700px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .shop-grid { grid-template-columns: 1fr; } }

/* Safety net: if JavaScript never runs, reveal content stays visible. */
.js-reveal .reveal { opacity: 1; transform: none; }
.js-reveal.reveal-armed .reveal { opacity: 0; transform: translateY(22px); }
.js-reveal.reveal-armed .reveal.in { opacity: 1; transform: none; }

/* Select fields adopt the same floating-label shell as text inputs so no
   control on any form looks like a raw browser widget. */
.sel-field { position: relative; }
.sel-field select { padding-top: 1.55rem; padding-bottom: 0.5rem; background-position: calc(100% - 20px) 60%, calc(100% - 14px) 60%; }
.sel-field label {
  position: absolute; left: 1.1rem; top: 0.5rem; margin: 0; pointer-events: none;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}
.grid-2-tight > .sel-field, .grid-2-tight > .float-field { min-width: 0; }

/* Responsive QA: nothing overflows, nothing overlaps, tap targets stay large. */
html, body { max-width: 100%; overflow-x: hidden; }
.wrap, .narrow, .split, .shop-layout, .co-grid { min-width: 0; }
img, svg, video, iframe, table { max-width: 100%; }
.card-body h3, .co-line strong, .pgal-thumbs { min-width: 0; }
.btn, .a-btn, button, a.btn { min-height: 44px; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
}
@media (max-width: 560px) {
  .btn-block, .form-luxe .btn { width: 100%; }
  .pager a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  h2 { font-size: clamp(1.4rem, 6.4vw, 1.85rem); }
}

/* v14: shop page uses the same full product showcase as the home page */
.shop-showcases { display: grid; gap: 3.4rem; }
.shop-showcases .product-layout + .product-layout,
.shop-showcases > .product-layout:not(:first-child) { padding-top: 3.2rem; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.shop-showcases .product-info h2 a { color: inherit; text-decoration: none; }
.shop-showcases .product-info h2 a:hover { text-decoration: underline; }
@media (max-width: 900px) { .shop-showcases { gap: 2.4rem; } }
