﻿/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --surface-2: #f4f0e8;
  --border: #e8e1d5;
  --border-strong: #d6ccbb;
  --text: #1b1b1b;
  --text-2: #4a4f4e;
  --muted: #6b7271;
  /* Deep teal: links, prices, active states */
  --primary: #0f3d3e;
  --primary-hover: #16585a;
  --primary-soft: #e4eeec;
  --on-primary: #ffffff;
  /* Gold: main buttons (with dark text) and highlights */
  --gold: #c9a24d;
  --gold-light: #e7cd8c;
  --primary-grad: linear-gradient(135deg, #e7cd8c 0%, #c9a24d 55%, #a9832f 100%);
  --on-gold: #1b1b1b;
  --brand: #0f3d3e;
  --brand-2: #16585a;
  --label: #8a6a1f;
  --accent: #c9a24d;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --danger: #c0392b;
  --danger-soft: #fbeae8;
  --warn: #b7791f;
  --warn-soft: #fbf1df;
  --ok: #1f8a4c;
  --ok-soft: #e4f4ea;
  --info: #2b6cb0;
  --info-soft: #e5eef9;
  --whatsapp: #1fa855;
  --whatsapp-hover: #178a45;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, .06);
  --shadow: 0 12px 32px -14px rgba(17, 24, 39, .18);
  --shadow-lg: 0 24px 60px -12px rgba(17, 24, 39, .28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 64px;
  --container: 1920px;
  --gutter: clamp(16px, 3.2vw, 56px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1f20;
  --bg-alt: #0e2627;
  --surface: #112a2b;
  --surface-2: #16393a;
  --border: #1f4646;
  --border-strong: #2c5a5a;
  --text: #f3efe6;
  --text-2: #cfdad8;
  --muted: #9db3b0;
  --primary: #d9b865;
  --primary-hover: #e7cd8c;
  --primary-soft: rgba(217, 184, 101, .13);
  --on-primary: #1b1b1b;
  --gold: #d9b865;
  --gold-light: #f0dca4;
  --primary-grad: linear-gradient(135deg, #f0dca4 0%, #d9b865 55%, #b0923f 100%);
  --on-gold: #1b1b1b;
  --brand: #071718;
  --brand-2: #0f3d3e;
  --label: #d9b865;
  --accent: #e7cd8c;
  --danger: #ef6b5d;
  --danger-soft: #3a1f1c;
  --warn: #e0a548;
  --warn-soft: #3a2f1a;
  --ok: #4cc583;
  --ok-soft: #1a3324;
  --info: #6aa6e8;
  --info-soft: #1b2a3c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 162, 77, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(15, 61, 62, .05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(217, 184, 101, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(22, 88, 90, .25), transparent 60%),
    var(--bg);
}
h1, h2, h3,
.brand-text strong, .pc-title, .package-price, .stat-value, .modal-head h2, .drawer-head h2,
.pane-head h1, .testimonial p, .pd-info h2 { font-family: var(--font-display); }
h3 { font-weight: 600; letter-spacing: 0; }
.pane-head h1 { font-weight: 700; }
.accent-word {
  font-style: italic;
  background: linear-gradient(120deg, #f3dc9c, #c9a24d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 1.25rem; }
.row-gap { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.eyebrow svg { width: 15px; height: 15px; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   Buttons & inputs
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
  background: var(--surface-2); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary-grad); color: var(--on-gold); box-shadow: 0 8px 20px -8px rgba(169, 131, 47, .55); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 26px -8px rgba(169, 131, 47, .65); }
[data-theme="dark"] .btn-primary { box-shadow: 0 8px 20px -8px rgba(217, 184, 101, .4); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost.danger, .danger { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; }
.btn-lg { min-height: 48px; padding: .7rem 1.35rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.danger:hover { background: var(--danger-soft); }

.badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.badge.is-zero { display: none; }

.select, .field input, .field select, .field textarea, .search-field input {
  width: 100%; min-height: 42px; padding: .55rem .75rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.select { width: auto; padding-right: 2rem; cursor: pointer; }
.field textarea { resize: vertical; min-height: 84px; }
.select:focus, .field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }

.search-field { position: relative; display: block; flex: 1; min-width: 0; }
.search-field svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 2.4rem; }

.form { display: flex; flex-direction: column; gap: .9rem; }
.form h3 { margin-bottom: .2rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field > span { font-size: .72rem; font-weight: 700; color: var(--label); text-transform: uppercase; letter-spacing: .06em; }
.form-row { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.input-with-btn { display: flex; gap: .4rem; }
.input-with-btn input { flex: 1; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; color: var(--text); flex: 1; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--gold-light); box-shadow: 0 6px 16px -6px rgba(15, 61, 62, .55); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: none; gap: .25rem; }
.main-nav a { padding: .5rem .8rem; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-light { display: block; }
[data-theme="dark"] .theme-icon-dark { display: none; }
.hide-sm { display: none !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 2rem 0 2.5rem; }
.hero .eyebrow { background: rgba(201, 162, 77, .14); color: var(--label); padding: .35rem .75rem; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: .8rem; }
[data-theme="dark"] .hero .eyebrow { background: var(--primary-soft); color: var(--primary); }
.hero h1 { font-weight: 700; letter-spacing: -.02em; }
.hero h1 { margin-bottom: .8rem; }
.lead { font-size: 1.08rem; color: var(--text-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; }
.hero-actions .btn { flex: 1 1 auto; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 2.75rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center > div { max-width: 760px; }
.about-text { white-space: pre-line; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.card-head h3 { margin: 0; }

/* =========================================================
   Shop
   ========================================================= */
.shop-toolbar { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
.chip-row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .count { opacity: .7; margin-left: .25rem; font-size: .8rem; }
.toolbar-controls { display: flex; gap: .5rem; }
.toolbar-controls .select { flex-shrink: 0; max-width: 46%; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pc-media-wrap { position: relative; }
.pc-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: .35rem; }
.pc-save {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #1c1a17; box-shadow: var(--shadow-sm);
}
.pc-save.active svg { fill: #e0435d; stroke: #e0435d; }
.pc-body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem; flex: 1; }
.pc-cat { font-size: .7rem; color: var(--label); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pc-title { font-size: 1.12rem; font-weight: 600; margin: 0; line-height: 1.3; }
.price strong { color: var(--primary); }
.product-card { box-shadow: var(--shadow-sm); }
.product-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.pc-title button { all: unset; cursor: pointer; }
.pc-title button:hover { color: var(--primary); }
.pc-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .82rem; color: var(--muted); }
.pc-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.pc-meta svg { width: 14px; height: 14px; }
.stars { color: #e3a008; letter-spacing: 1px; }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.price strong { font-size: 1.2rem; }
.price s { color: var(--muted); font-size: .88rem; }
.price .save { color: var(--ok); font-size: .8rem; font-weight: 600; }
.price { flex-wrap: wrap; row-gap: .15rem; }
.price strong, .price s, .price .save { white-space: nowrap; }
.price .save { padding: .1rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.price-note { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.pc-links { display: flex; justify-content: space-between; margin-top: .25rem; }
.pc-links button { background: none; border: 0; padding: .25rem 0; color: var(--text-2); font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.pc-links button:hover { color: var(--primary); }
.pc-links button.active { color: var(--primary); font-weight: 600; }
.pc-links svg { width: 15px; height: 15px; }

.tag { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-neutral { background: var(--surface-2); color: var(--text-2); }
.pc-tags .tag { box-shadow: var(--shadow-sm); }
.pc-tags .tag-neutral { background: rgba(255, 255, 255, .92); color: #1c1a17; }

.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto .75rem; color: var(--border-strong); }
.empty h3 { color: var(--text); }

/* Skeletons shown until real data arrives */
.sk { display: block; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
.sk-line { height: 1em; margin: .35em 0; width: 100%; }
.sk-xl { height: 1.1em; width: 90%; }
.sk-lg { width: 70%; height: 1.1em; }
.sk-md { width: 60%; }
.sk-card { border-radius: var(--radius); aspect-ratio: 3 / 4; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
body.is-loading [data-bind="company_name"]:empty,
body.is-loading [data-bind="company_tagline"]:empty,
body.is-loading [data-bind="monogram"]:empty { display: inline-block; min-width: 8ch; min-height: 1em; border-radius: 4px; background: var(--surface-2); animation: sk 1.3s ease infinite; background-image: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; }
body.is-loading .brand-mark:empty { min-width: 40px; }

/* =========================================================
   About
   ========================================================= */
.packages { padding: 1.25rem; }
.packages-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.packages-head p { margin: 0; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; gap: 4px; align-self: flex-start; max-width: 100%; overflow-x: auto; }
.segmented button { border: 0; background: transparent; padding: .5rem .9rem; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.package-grid { display: grid; gap: 1.25rem; }
.package-price { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.package-price small { font-size: .85rem; font-weight: 500; color: var(--muted); display: block; margin-top: .2rem; }
.package-note { background: var(--warn-soft); color: var(--text); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: .9rem; margin: 1rem 0; }
.package-actions { display: flex; flex-direction: column; gap: .5rem; }
.include-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.include-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.include-list svg { color: var(--ok); margin-top: 2px; }
.include-list strong { display: block; font-size: .95rem; }
.include-list span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   Contact & footer
   ========================================================= */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list li > svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.contact-list div { display: flex; flex-direction: column; min-width: 0; word-break: break-word; }


/* =========================================================
   Floating elements
   ========================================================= */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a, .bottom-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 60px; background: none; border: 0; color: var(--text-2); font-size: .7rem; font-weight: 500; cursor: pointer;
}
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bottom-nav .badge { top: 6px; right: calc(50% - 20px); }
body.admin-mode .bottom-nav, body.admin-mode .fab-stack, body.admin-mode .compare-bar { display: none !important; }
/* In the admin panel the header only offers theme, "View store" and "Sign out" */
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: inline-flex !important; }
body.admin-mode .main-nav,
body.admin-mode .header-actions [data-action="open-cart"],
body.admin-mode .header-actions [data-action="open-wishlist"],
body.admin-mode .header-actions [data-action="account"],
body.admin-mode .header-actions [data-action="open-menu"],
body.admin-mode .header-actions [data-action="staff-login"] { display: none !important; }
@media (max-width: 419px) { .hide-xs { display: none; } }

/* Floating contact stack: call, WhatsApp, help assistant */
.fab-stack {
  position: fixed; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(17, 24, 39, .45);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
  animation: fab-in .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.fab:hover { transform: scale(1.1); text-decoration: none; box-shadow: 0 14px 30px -8px rgba(17, 24, 39, .5); }
.fab:active { transform: scale(.95); }
.fab svg { width: 24px; height: 24px; }
.fab-call { background: linear-gradient(145deg, #38bdf8, #0284c7); animation-delay: .1s; }
.fab-call svg { animation: ring 3.2s ease-in-out 2s infinite; transform-origin: 50% 50%; }
.fab-wa { background: linear-gradient(145deg, #4ade80, #16a34a); animation-delay: .2s; }
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e;
  animation: pulse-ring 2.4s ease-out 1s infinite; pointer-events: none;
}
.fab-assistant { width: 60px; height: 60px; background: #fff; animation-delay: .3s; overflow: visible; }
.fab-assistant img { width: 100%; height: 100%; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.fab-assistant .online-dot { position: absolute; right: 2px; bottom: 4px; width: 14px; height: 14px; border: 2.5px solid #fff; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: online 2s infinite; }

/* Hover labels (desktop) */
.fab-label {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  background: var(--text); color: var(--bg); font-size: .8rem; font-weight: 600; white-space: nowrap;
  padding: .35rem .65rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: translate(0, -50%); }

/* Greeting bubble and help panel */
.assistant { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.assistant-bubble {
  position: absolute; right: 70px; bottom: 8px; width: 210px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px 14px 4px 14px; padding: .7rem 1.8rem .7rem .85rem;
  font-size: .86rem; box-shadow: var(--shadow-lg); animation: bubble-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.assistant-bubble-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.assistant-panel {
  position: absolute; right: 0; bottom: 72px; width: min(340px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform-origin: bottom right; animation: panel-in .28s cubic-bezier(.34, 1.4, .64, 1) both;
}
.assistant-head { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.assistant-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.assistant-head div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.assistant-head strong { font-size: .95rem; }
.assistant-head span { font-size: .75rem; opacity: .95; display: flex; align-items: center; gap: .35rem; }
.assistant-head .icon-btn { color: #fff; }
.assistant-head .icon-btn:hover { background: rgba(255, 255, 255, .18); }
.assistant-body { padding: .75rem; display: grid; gap: .45rem; max-height: min(60vh, 460px); overflow-y: auto; }
.assistant-option {
  display: flex; gap: .7rem; align-items: center; text-align: left; width: 100%;
  padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s, transform .15s;
  animation: option-in .35s ease both;
}
.assistant-option:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(-2px); text-decoration: none; }
.assistant-option > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.assistant-option.wa > svg { background: rgba(34, 197, 94, .12); color: #16a34a; }
.assistant-option span { display: flex; flex-direction: column; }
.assistant-option small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.assistant-body > :nth-child(2) { animation-delay: .04s; }
.assistant-body > :nth-child(3) { animation-delay: .08s; }
.assistant-body > :nth-child(4) { animation-delay: .12s; }
.assistant-body > :nth-child(5) { animation-delay: .16s; }
.assistant-body > :nth-child(6) { animation-delay: .2s; }
.assistant-pin { border: 1px dashed var(--border-strong); border-radius: 12px; padding: .65rem .75rem; display: grid; gap: .45rem; animation: option-in .35s ease both; }
.assistant-pin > span { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.assistant-pin > span svg { width: 16px; height: 16px; color: var(--primary); }
.assistant-pin input { flex: 1; min-width: 0; min-height: 36px; padding: .4rem .6rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }

@keyframes fab-in { from { opacity: 0; transform: translateY(18px) scale(.6); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 94% { transform: rotate(10deg); } 96% { transform: rotate(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes online { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes bubble-in { from { opacity: 0; transform: translateX(10px) scale(.9); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes option-in { from { opacity: 0; transform: translateY(6px); } }

.compare-bar {
  position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 58;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: .6rem 0;
}
.compare-inner { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: space-between; }
.compare-thumbs { display: flex; gap: .4rem; }
.compare-thumbs img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
body.has-compare .fab-stack { bottom: calc(138px + env(safe-area-inset-bottom)); }

.toasts { position: fixed; top: calc(var(--header-h) + 10px); right: 12px; left: 12px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: .6rem; align-items: flex-start; max-width: 420px;
  background: var(--text); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .2s ease;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.success svg { color: var(--ok); }
[data-theme="dark"] .toast.success svg { color: #1f8a4c; }
.toast.hide { opacity: 0; transform: translateY(-6px); transition: all .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   Drawers & modals
   ========================================================= */
.drawer, .modal { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open, .modal.open { display: block; }
.drawer::before, .modal::before { content: ""; position: absolute; inset: 0; background: rgba(15, 14, 12, .5); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slide-in .2s ease;
}
.drawer-left { right: auto; left: 0; width: min(320px, 88%); animation-name: slide-in-left; }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 1.15rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem; }
.drawer-foot { border-top: 1px solid var(--border); padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.menu-links { display: flex; flex-direction: column; padding: .5rem; }
.menu-links a, .menu-links button { display: flex; align-items: center; gap: .75rem; padding: .85rem .75rem; border-radius: var(--radius-sm); color: var(--text); background: none; border: 0; font-size: 1rem; text-align: left; cursor: pointer; }
.menu-links a:hover, .menu-links button:hover { background: var(--surface-2); text-decoration: none; }

.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.line-item h4 { font-size: .93rem; margin: 0 0 .15rem; }
.line-item .muted { font-size: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); margin-top: .4rem; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.05rem; color: var(--text); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: .9rem; }
.line-total { text-align: right; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }

.totals { margin: 0 0 1rem; display: grid; gap: .35rem; }
.totals div { display: flex; justify-content: space-between; font-size: .93rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .total { font-size: 1.1rem; padding-top: .5rem; border-top: 1px solid var(--border); margin-top: .25rem; }
.totals .total dt { color: var(--text); font-weight: 700; }

.modal { overflow-y: auto; padding: 0; }
.modal-dialog {
  position: relative; margin: 0 auto; width: 100%; min-height: 100%;
  background: var(--surface); animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h2 { font-size: 1.2rem; margin: 0; }
.modal-body { padding: 1.1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; padding-top: .25rem; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--surface); box-shadow: var(--shadow-sm); }
.modal-dialog.center { text-align: center; }
.success-icon { width: 64px; height: 64px; margin: .5rem auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.success-icon svg { width: 32px; height: 32px; }
.modal-dialog.center .btn-block { margin-top: .5rem; }

.tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 1.1rem; }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: .8rem; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.order-summary { background: var(--surface-2); border-radius: var(--radius-sm); padding: .9rem; font-size: .9rem; text-align: left; }
.order-summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.order-summary .row.total { border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .5rem; font-weight: 700; font-size: 1rem; }
.quote-product { display: flex; gap: .75rem; align-items: center; padding: .75rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.quote-product img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.account-card { display: flex; gap: .75rem; align-items: center; }
.account-card div { display: flex; flex-direction: column; min-width: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-orders { display: grid; gap: .5rem; margin-bottom: 1rem; max-height: 320px; overflow-y: auto; }
.my-order { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; font-size: .88rem; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }

/* Product detail */
.product-detail { display: grid; }
.pd-info { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.pd-info h2 { margin: 0; padding-right: 2.5rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pd-actions .btn:first-child { grid-column: 1 / -1; }

/* Compare */
.compare-table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table th { color: var(--muted); font-weight: 600; width: 140px; position: sticky; left: 0; background: var(--surface); }
.compare-table img { width: 100%; max-width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* Upload */
.upload { display: flex; flex-direction: column; gap: .6rem; padding: .75rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.upload img { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); }
.upload-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.upload input[name="imageUrl"] { width: 100%; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }

/* =========================================================
   Admin
   ========================================================= */
.admin { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.admin-sidebar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.admin-user { display: none; }
.admin-nav { display: flex; overflow-x: auto; gap: .25rem; padding: .5rem var(--gutter); scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav button {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  padding: .55rem .8rem; border-radius: var(--radius-sm); border: 0; background: none;
  color: var(--text-2); font-weight: 500; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav button.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.pill { min-width: 20px; padding: 0 6px; height: 20px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pill.warn { background: var(--warn); color: #fff; }
.pill:empty, .pill.is-zero { display: none; }
.admin-sidebar-foot { display: none; }
.admin-main { flex: 1; min-width: 0; padding: 1.25rem var(--gutter) 3rem; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pane-head h1 { font-size: 1.6rem; margin-bottom: .15rem; }
.pane-head p { margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kpi-label { font-size: .8rem; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: .35rem; }
.kpi-label svg { width: 15px; height: 15px; }
.kpi-value { font-size: 1.35rem; font-weight: 800; overflow-wrap: anywhere; }
.kpi-value.warn { color: var(--warn); }
.kpi-value.ok { color: var(--ok); }
.kpi-value.info { color: var(--info); }
.kpi-value.danger { color: var(--danger); }
.grid-2 { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid-2 > .card + .card { margin-top: 0; }
.chart-box { position: relative; height: 260px; }
.empty-note { text-align: center; margin: .5rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.filters .search-field { flex: 1 1 240px; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .6rem .7rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .empty-row td { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.cell-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.cell-main img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cell-main div { display: flex; flex-direction: column; min-width: 0; }
.cell-main strong { font-weight: 600; }
.cell-sub { font-size: .8rem; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.actions { display: flex; gap: .25rem; justify-content: flex-end; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: .25rem; }
.stepper button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; color: var(--text); }
.stepper button:hover { border-color: var(--primary); color: var(--primary); }
.stepper span { min-width: 32px; text-align: center; font-weight: 700; }
.stepper .qty-low { color: var(--warn); }
.stepper .qty-out { color: var(--danger); }
.select.status { min-height: 34px; padding: .3rem 1.6rem .3rem .6rem; font-size: .85rem; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.stock-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.stock-row:last-child { border-bottom: 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.top-row:last-child { border-bottom: 0; }
.rank { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.narrow { max-width: 520px; }

.invoice-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.invoice-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.invoice-grid > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem; font-size: .9rem; }
.invoice-grid h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .35rem; }
.invoice-totals { margin-left: auto; max-width: 320px; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

#printArea { display: none; }

/* Stacked "card" tables on phones */
@media (max-width: 719px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .4rem .75rem; margin-bottom: .6rem; background: var(--surface); }
  .table.stack td { border: 0; padding: .4rem 0; display: flex; justify-content: space-between; align-items: center; gap: .75rem; text-align: right; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: left; flex-shrink: 0; }
  .table.stack td.td-main { display: block; text-align: left; border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin-bottom: .2rem; }
  .table.stack td.td-main::before { display: none; }
  .table.stack td.td-actions { justify-content: flex-end; }
  .table.stack td.td-actions::before { display: none; }
  .table.stack .empty-row td { display: block; text-align: center; }
  .table.stack .empty-row td::before { display: none; }
  .table.stack .clip { max-width: 60vw; }
  .table.stack tr:last-child td { border-bottom: 0; }
  .table.stack tr td.td-main { border-bottom: 1px solid var(--border); }
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .form-row-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-actions .btn { flex: 0 0 auto; }
  .modal { padding: 4vh 16px; }
  .modal-dialog { max-width: 600px; min-height: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
  .modal-sm { max-width: 440px; }
  .modal-lg { max-width: 860px; }
  .modal-xl { max-width: 1100px; }
  .kpi-grid.kpi-sm { grid-template-columns: repeat(4, 1fr); }
  .invoice-grid { grid-template-columns: 1fr 1fr; }
  .toasts { left: auto; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .hide-sm { display: inline-flex !important; }
  .hide-sm[hidden] { display: none !important; }
  .show-sm { display: none !important; }
  .main-nav { display: flex; }
  .brand { flex: 0 1 auto; }
  .header-actions { margin-left: auto; }
  .bottom-nav { display: none; }
  .fab-stack { bottom: 24px; right: 24px; }
  .compare-bar { bottom: 0; }
  body.has-compare .fab-stack { bottom: 96px; }
  /* Search and sort on top, categories wrap onto their own row: no scrollbar */
  .shop-toolbar { flex-direction: column-reverse; }
  .chip-row { flex-wrap: wrap; overflow: visible; }
  .toolbar-controls { width: 100%; max-width: 640px; }
  .packages { padding: 1.75rem; }
  .packages-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .package-grid { grid-template-columns: 1fr 1.3fr; gap: 2rem; }
  .package-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .section { padding: 4rem 0; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .pd-info { padding: 1.75rem; }
}

@media (min-width: 1024px) {
  .hero { padding: 3.5rem 0 4rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .admin { flex-direction: row; }
  .admin-sidebar {
    width: 250px; flex-shrink: 0; height: calc(100vh - var(--header-h));
    border-bottom: 0; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; padding: 1rem .75rem;
  }
  .admin-user { display: flex; align-items: center; gap: .7rem; padding: .25rem .5rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
  .admin-user div { display: flex; flex-direction: column; min-width: 0; }
  .admin-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .admin-nav { flex-direction: column; overflow: visible; padding: 0; flex: 1; }
  .admin-nav button { width: 100%; padding: .65rem .75rem; }
  .admin-nav .pill { margin-left: auto; }
  .admin-sidebar-foot { display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--border); padding-top: .75rem; }
  .admin-sidebar-foot .btn { justify-content: flex-start; }
  .admin-main { padding: 1.75rem 2rem 3rem; }
  .kpi-grid { grid-template-columns: repeat(6, 1fr); }
  .kpi-grid.kpi-sm, #reportKpis { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Product gallery with hover magnifier
   ========================================================= */
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pd-media { display: flex; flex-direction: column; gap: .6rem; padding: .75rem; }
.zoom-box { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1 / 1; }
.zoom-box img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.zoom-lens {
  position: absolute; inset: 0; background-repeat: no-repeat; background-size: 250%;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.zoom-box.zooming .zoom-lens { opacity: 1; }
.zoom-box.zooming img { opacity: 0; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; background: rgba(17, 24, 39, .7); color: #fff; padding: .25rem .55rem; border-radius: 999px; pointer-events: none; }
.zoom-box.zooming .zoom-hint { display: none; }
@media (hover: none) { .hover-only { display: none; } }
@media (hover: hover) { .touch-only { display: none; } }
.thumbs { display: flex; gap: .5rem; }
.thumbs button { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; flex-shrink: 0; }
.thumbs button.active { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.related { border-top: 1px solid var(--border); padding: 1rem 1.25rem 1.25rem; grid-column: 1 / -1; }
.related h3 { margin-bottom: .75rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.related-card { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0; overflow: hidden; cursor: pointer; color: var(--text); }
.related-card:hover { border-color: var(--primary); }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.related-card div { padding: .5rem .6rem .65rem; display: flex; flex-direction: column; gap: .15rem; }
.related-card strong { font-size: .85rem; line-height: 1.3; }
.related-card span { font-size: .85rem; color: var(--primary); font-weight: 700; }

/* Delivery check */
.delivery-check { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.delivery-check > span { font-size: .72rem; font-weight: 700; color: var(--label); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: .35rem; }
.delivery-check input { flex: 1; min-height: 40px; padding: .5rem .7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.delivery-result { margin: 0; font-size: .88rem; padding: .55rem .75rem; border-radius: var(--radius-sm); display: flex; gap: .45rem; align-items: flex-start; }
.delivery-result.ok { background: var(--ok-soft); color: var(--ok); }
.delivery-result.no { background: var(--danger-soft); color: var(--danger); }
.delivery-result svg { width: 16px; height: 16px; margin-top: 2px; }

/* =========================================================
   Customer orders & tickets
   ========================================================= */
.account-actions { display: grid; gap: .5rem; margin-top: 1.25rem; }
.mo-order { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; background: var(--surface); }
.mo-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: .75rem; }
.mo-head strong { font-family: ui-monospace, Consolas, monospace; }
.mo-items { display: grid; gap: .5rem; margin: .5rem 0 .75rem; }
.mo-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .65rem; align-items: center; font-size: .9rem; }
.mo-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.mo-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: .75rem; }
.mo-tickets { margin-top: .75rem; display: grid; gap: .4rem; }
.mo-ticket { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .85rem; border: 0; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
.mo-ticket:hover { background: var(--primary-soft); }

.steps { display: flex; align-items: center; gap: 0; margin: .25rem 0 .5rem; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .7rem; color: var(--muted); position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); z-index: 1; display: grid; place-items: center; }
.step.done { color: var(--text); font-weight: 600; }
.step.done .dot { background: var(--primary); border-color: var(--primary); }
.step.done::before { background: var(--primary); }
.step .dot svg { width: 12px; height: 12px; color: var(--on-primary); }

.thread { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; max-height: 46vh; overflow-y: auto; padding-right: .25rem; }
.bubble { max-width: 88%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; word-break: break-word; }
.bubble .meta { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .2rem; white-space: normal; }
.bubble.customer { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.staff { align-self: flex-end; background: var(--primary-soft); border-bottom-right-radius: 4px; }
.ticket-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; font-size: .88rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: .75rem; }
.ticket-meta span { color: var(--muted); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* =========================================================
   Admin additions
   ========================================================= */
.notice { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding: .85rem 1rem; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-bottom: 1rem; font-size: .92rem; }
.notice > svg { color: var(--warn); width: 22px; height: 22px; }
.notice > div { flex: 1; min-width: 200px; }
.image-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.slot { position: relative; aspect-ratio: 1; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: .75rem; text-align: center; padding: 0; }
.slot:hover { border-color: var(--primary); color: var(--primary); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .slot-tag { position: absolute; left: 6px; top: 6px; background: var(--primary); color: var(--on-primary); font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; z-index: 1; }
.slot .slot-remove { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(17, 24, 39, .75); color: #fff; cursor: pointer; z-index: 2; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.slot span.add { display: flex; flex-direction: column; align-items: center; gap: .25rem; }

@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(4, 1fr); }
  .zoom-box { aspect-ratio: 4 / 4.2; }
}

/* =========================================================
   Professional polish
   ========================================================= */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 1px 0 var(--border), 0 6px 24px -18px rgba(17, 24, 39, .35); border-bottom: 0; }
body.admin-mode .header-inner { max-width: none; padding: 0 1.25rem; }
body.admin-mode .brand { flex: 1; }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.25rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }

/* KPI cards with coloured icon chips */
.kpi { position: relative; padding: 1.1rem 1.15rem; gap: .5rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kpi-label { font-size: .8rem; font-weight: 600; gap: .55rem; }
.kpi-label svg { width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.kpi:nth-child(6n+2) .kpi-label svg { color: #2563eb; background: rgba(37, 99, 235, .1); }
.kpi:nth-child(6n+3) .kpi-label svg { color: #059669; background: rgba(5, 150, 105, .1); }
.kpi:nth-child(6n+4) .kpi-label svg { color: #7c3aed; background: rgba(124, 58, 237, .1); }
.kpi:nth-child(6n+5) .kpi-label svg { color: #dc2626; background: rgba(220, 38, 38, .1); }
.kpi:nth-child(6n+6) .kpi-label svg { color: #0891b2; background: rgba(8, 145, 178, .1); }
.kpi-value { font-size: 1.55rem; letter-spacing: -.01em; }

/* Admin shell */
.admin-main { background: transparent; }
.admin-main .card { padding: 1.25rem 1.35rem; }
.admin-nav button { font-weight: 500; transition: background-color .15s, color .15s; }
.admin-nav button.active { background: var(--primary-soft); color: var(--primary); }
.table th { background: var(--surface-2); }
.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child { border-top-right-radius: 8px; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }

@media (min-width: 1024px) {
  .admin-sidebar { width: 264px; background: var(--surface); }
  .admin-nav button.active { box-shadow: inset 3px 0 0 var(--primary); }
  .admin-main { padding: 2rem 2.5rem 3rem; }
}
@media (min-width: 1600px) {
  .hero { padding: 4.5rem 0 5rem; }
}

/* =========================================================
   Announcement bar
   ========================================================= */
.announce { background: var(--brand); color: #f3efe6; font-size: .85rem; }
[data-theme="dark"] .announce { background: linear-gradient(90deg, #1b241f, #141a17); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; text-align: center; position: relative; }
.announce-inner > svg { width: 16px; height: 16px; color: var(--gold-light); flex-shrink: 0; }
.announce-link { background: none; border: 0; color: var(--gold-light); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; padding: 0; }
.announce-link svg { width: 14px; height: 14px; transition: transform .2s; }
.announce-link:hover svg { transform: translateX(3px); }
.announce-x { position: absolute; right: var(--gutter); background: none; border: 0; color: #9ca3af; cursor: pointer; display: grid; place-items: center; padding: 4px; }
.announce-x svg { width: 16px; height: 16px; }
.announce-x:hover { color: #fff; }
@media (max-width: 639px) { .announce-link { display: none; } .announce-inner { justify-content: flex-start; padding-right: 2.5rem; text-align: left; } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, transform .15s;
}
.slider-arrow:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.06); }

/* =========================================================
   Reviews slider
   ========================================================= */
.reviews { margin-top: 2.5rem; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 88%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem .1rem 1rem; }
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow-sm); position: relative;
}
.review-card::before { content: "“"; position: absolute; top: -.2rem; right: 1rem; font-family: var(--font-display); font-size: 5rem; color: var(--primary); opacity: .15; line-height: 1; }
.review-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text); flex: 1; }
.review-card figcaption { display: flex; align-items: center; gap: .7rem; }
.review-card figcaption span:last-child { display: flex; flex-direction: column; }
.review-card small { color: var(--muted); font-size: .8rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { display: grid; gap: 2rem; }
.faq-intro .row-gap { margin-top: 1rem; }
.faq-list { display: grid; gap: .65rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); transition: transform .25s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding: 0 1.15rem 1.1rem; color: var(--text-2); animation: faq-open .3s ease; }
.faq-answer p { margin: 0; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* Policies */
.policy-body h3 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
.policy-body h3:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: var(--text-2); }
.policy-body ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Back to top */
.back-to-top {
  position: fixed; left: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 54;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); animation: fab-in .35s ease both;
  transition: transform .2s, color .2s, border-color .2s;
}
.back-to-top:hover { transform: translateY(-3px); color: var(--primary); border-color: var(--primary); }
body.admin-mode .back-to-top { display: none !important; }

@media (min-width: 640px) {
  .review-track { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (min-width: 768px) {
  .back-to-top { bottom: 24px; left: 24px; }
}
@media (min-width: 1024px) {
  .review-track { grid-auto-columns: calc((100% - 2rem) / 3); }
  .faq-wrap { grid-template-columns: minmax(260px, 1fr) 2fr; gap: 3rem; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* =========================================================
   Design studio: blueprint drawing that sketches itself, then fills with colour
   ========================================================= */
.studio { display: grid; gap: 2rem; align-items: center; }
.studio-copy h2 { margin-bottom: .6rem; }
.studio-copy > .muted { max-width: 46ch; margin-bottom: 1.5rem; }
.studio-copy > .btn { margin-top: 1.5rem; }
.studio-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.studio-tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: .6rem; text-align: left;
  padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.studio-tabs button svg { width: 20px; height: 20px; color: var(--label); flex-shrink: 0; transition: transform .3s; }
.studio-tabs button:hover { border-color: var(--gold); transform: translateY(-2px); }
.studio-tabs button.active { border-color: var(--brand); color: var(--text); box-shadow: var(--shadow-sm); }
.studio-tabs button.active svg { color: var(--primary); transform: scale(1.12); }
/* Progress line under the active tab while the scenes move on by themselves */
.studio-tabs b { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary-grad); }
.studio[data-auto] .studio-tabs .active b { animation: scene-progress 6.5s linear forwards; }
.studio.paused .studio-tabs .active b { animation-play-state: paused; }

.studio-stage {
  --sk-line: #e7cd8c;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background-color: #0f3d3e;
  background-image:
    linear-gradient(rgba(231, 205, 140, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 205, 140, .09) 1px, transparent 1px),
    linear-gradient(rgba(231, 205, 140, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 205, 140, .04) 1px, transparent 1px),
    radial-gradient(120% 90% at 80% 0%, #16585a, #0b2c2d);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px, 100% 100%;
  box-shadow: var(--shadow-lg);
}
.studio-stage::after { /* soft scanning light that sweeps across while drawing */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(231, 205, 140, .14) 50%, transparent 60%);
  transform: translateX(-100%);
}
.studio-stage.play::after { animation: scan 1.8s ease-in-out .1s both; }
.scene { position: absolute; left: 4%; top: 13%; width: 92%; height: 84%; opacity: 0; transition: opacity .4s; overflow: visible; }
.scene.active { opacity: 1; }
.studio-defs { position: absolute; width: 0; height: 0; }

.scene .shape { stroke: var(--sk-line); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scene .knob { stroke-width: 2.6; }
.scene .floor { stroke-width: 1; opacity: .5; }
.scene .f-wood { fill: url(#pWood); }
.scene .f-teal { fill: url(#gTeal); }
.scene .f-stone { fill: url(#gStone); }
.scene .f-steel { fill: url(#gSteel); }
.scene .f-dark { fill: #142021; }
.scene .f-glass { fill: url(#gGlass); }
.scene .f-gold { fill: #e2c27a; }
.scene .shadow { fill: #000; opacity: .45; }
.scene .cavity { fill: #0a2324; }
.scene .inside line { stroke: #b9c3c4; stroke-width: 1.4; }
.scene .glow-cone { fill: url(#gCone); }
.scene .backlight { fill: #ffd98a; opacity: .55; }
.scene .shine { fill: url(#gShine); }
.scene .steam path { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; opacity: 0; }
.scene .door, .scene .screen-on { transform-box: fill-box; }
.scene .door { transform-origin: left center; }
.scene .screen-on { transform-origin: center; }
.scene .dim path { stroke: #fff; stroke-width: 1; fill: none; opacity: .7; }
.scene .dim text { fill: #fff; font: 600 11px/1 var(--font); text-anchor: middle; letter-spacing: .04em; }

.scene.play .shape { animation: sketch 1.3s ease-out both, colour-in .8s ease 1.9s both; }
.scene.play .g2 .shape { animation-delay: .45s, 2.1s; }
.scene.play .g3 .shape { animation-delay: .9s, 2.3s; }
.scene.play .dim { animation: fade-up .6s ease 2.6s both; }
.scene.play .inside, .scene.play .deco, .scene.play .shadow { animation: appear .8s ease 2.1s both; }
/* Bringing the room to life once it is coloured in */
.scene.play .light { animation: light-on 1.2s ease 3.2s both; }
.scene.play .door { animation: door-swing 3s ease-in-out 3.3s both; }
.scene.play .screen-on { animation: tv-on .9s ease 3.2s both; }
.scene.play .shine { animation: shine 1.6s ease-in-out 3.4s both; }
.scene.play .steam path { animation: steam 2s ease-in-out 3.3s infinite; }
.scene.play .steam path:nth-child(2) { animation-delay: 3.9s; }
.scene.play .steam path:nth-child(3) { animation-delay: 4.5s; }

.studio-status {
  position: absolute; left: 1rem; top: 1rem; z-index: 1; display: grid;
  padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(11, 31, 32, .65); border: 1px solid rgba(231, 205, 140, .35); color: #f3e6c4;
  backdrop-filter: blur(6px);
}
.studio-status > span { grid-area: 1 / 1; display: flex; align-items: center; gap: .35rem; }
.studio-status svg { width: 14px; height: 14px; color: #7fe0b0; }
.studio-status .s-draw { opacity: 0; }
.studio-stage.play .s-draw { animation: status-out 2.6s linear both; }
.studio-stage.play .s-done { animation: fade-up .5s ease 2.6s both; }

@keyframes sketch { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes colour-in { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes status-out { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scan { to { transform: translateX(100%); } }
@keyframes scene-progress { to { width: 100%; } }
@keyframes appear { from { opacity: 0; } }
@keyframes light-on { 0% { opacity: 0; } 15% { opacity: .55; } 25% { opacity: .1; } 40% { opacity: .7; } 50% { opacity: .3; } }
@keyframes door-swing { 0%, 100% { transform: none; } 30%, 72% { transform: scaleX(.18) skewY(-7deg); } }
@keyframes tv-on { 0% { opacity: 0; transform: scale(1, .02); } 40% { opacity: 1; transform: scale(1, .02); } 100% { opacity: 1; transform: none; } }
@keyframes shine { from { transform: translateX(0); } to { transform: translateX(95px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .75; } 100% { opacity: 0; transform: translateY(-14px); } }

/* Compact section */
#design.section { padding: 2.75rem 0; }
.studio-copy h2 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
.studio-copy > .muted { margin-bottom: 1.1rem; }
.studio-copy > .btn { margin-top: 1.1rem; }
.studio-tabs button { padding: .7rem .9rem; }
.studio-stage { aspect-ratio: 16 / 10; width: 100%; max-width: 620px; justify-self: center; }

@media (max-width: 559px) {
  .studio-tabs button { padding: .75rem .7rem; font-size: .84rem; gap: .45rem; }
  .studio-stage { aspect-ratio: 4 / 3; }
  .scene { top: 16%; height: 81%; }
  .studio-status { left: .75rem; top: .75rem; font-size: .72rem; }
}
@media (min-width: 1024px) {
  .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .studio-tabs { max-width: 440px; }
  .studio-stage { justify-self: end; }
}

/* =========================================================
   Ideas bento gallery
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 1 / 1; box-shadow: var(--shadow-sm); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bento figure:hover img { transform: scale(1.06); }
.bento figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)); pointer-events: none; }
.bento figcaption { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.bento figcaption strong { font-family: var(--font-display); font-size: 1.15rem; }
.bento figcaption span { font-size: .8rem; opacity: .85; }
.bento-big { grid-column: span 2; }
.bento-wide { grid-column: span 2; aspect-ratio: 2 / 1 !important; }

/* =========================================================
   Homepage — deep teal + gold
   ========================================================= */
.eyebrow { color: var(--label); }
.section-white { background: var(--surface); }
[data-theme="dark"] .section-white { background: var(--bg-alt); }
.section-head h2 { letter-spacing: -.015em; }

.btn-light-outline { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-light-outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff; }

/* ----- Full-width photo hero ----- */
.hero-full { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: stretch; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; will-change: transform, opacity; }
/* 18 s loop, 6 s per photo. Photo 1 starts already visible so the page never opens on a blank background. */
.hero-bg-1 { opacity: 1; animation: hero-slide-zoom 18s linear -1.1s infinite both; }
.hero-bg-2 { animation: hero-slide-pan 18s linear 4.9s infinite both; }
.hero-bg-3 { animation: hero-slide-wipe 18s linear 10.9s infinite both; }
@keyframes hero-slide-zoom { /* slow zoom in */
  0% { opacity: 0; transform: scale(1); }
  6%, 33% { opacity: 1; }
  40%, 100% { opacity: 0; transform: scale(1.14); }
}
@keyframes hero-slide-pan { /* camera pans from right to left */
  0% { opacity: 0; transform: scale(1.12) translateX(4%); }
  6%, 33% { opacity: 1; }
  40%, 100% { opacity: 0; transform: scale(1.12) translateX(-4%); }
}
@keyframes hero-slide-wipe { /* wipes in from the right, then eases back out of a close-up */
  0% { opacity: 1; clip-path: inset(0 0 0 100%); transform: scale(1.18); }
  9% { clip-path: inset(0 0 0 0); }
  33% { opacity: 1; }
  40%, 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: scale(1.03); }
}
/* Small progress bars showing which photo is on screen */
.hero-dots { position: absolute; right: clamp(16px, 4vw, 48px); top: 1.25rem; z-index: 1; display: flex; gap: 6px; }
.hero-dots span { position: relative; width: 28px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--gold-light); transform: scaleX(0); transform-origin: left; animation: hero-dot 18s linear infinite both; }
.hero-dots span:nth-child(1)::after { animation-delay: -1.1s; }
.hero-dots span:nth-child(2)::after { animation-delay: 4.9s; }
.hero-dots span:nth-child(3)::after { animation-delay: 10.9s; }
@keyframes hero-dot { 0% { transform: scaleX(0); } 36% { transform: scaleX(1); opacity: 1; } 38%, 100% { transform: scaleX(1); opacity: 0; } }
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 34, 35, .92) 0%, rgba(10, 45, 46, .78) 42%, rgba(10, 45, 46, .25) 100%),
    linear-gradient(0deg, rgba(8, 30, 31, .65) 0%, transparent 40%);
}
.hero-full-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 1.75rem; width: 100%; }
.hero-full-copy { max-width: 720px; }
.hero-full-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-full-copy > :nth-child(2) { animation-delay: .08s; }
.hero-full-copy > :nth-child(3) { animation-delay: .16s; }
.hero-full-copy > :nth-child(4) { animation-delay: .24s; }
.hero-full-copy > :nth-child(5) { animation-delay: .32s; }
.hero-full .eyebrow { color: var(--gold-light); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: .35rem .8rem; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: .82rem; }
.hero-full h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 1rem 0; }
.hero-full .lead { color: rgba(255, 255, 255, .86); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 56ch; }
.hero-full .hero-actions { margin: 1.75rem 0 1rem; }
.hero-full .sk { background: rgba(255, 255, 255, .14); }
.hero-wa { display: inline-flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .92rem; }
.hero-wa svg { color: #4ade80; }
.hero-wa:hover { color: #fff; }
.hero-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; border-radius: var(--radius);
  overflow: hidden; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); animation: rise .8s .4s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-strip div { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: 1rem 1.1rem; background: rgba(8, 34, 35, .55); }
.hero-strip svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(201, 162, 77, .18); color: var(--gold-light); }
.hero-strip dt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.15; }
.hero-strip dd { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 767px) {
  .hero-full::before { background: linear-gradient(180deg, rgba(8, 34, 35, .78) 0%, rgba(8, 34, 35, .9) 100%); }
  .hero-full { min-height: 0; }
  .hero-full-inner { padding-top: 2.5rem; }
  .hero-strip div { padding: .8rem .75rem; column-gap: .55rem; }
  .hero-strip svg { width: 30px; height: 30px; padding: 6px; }
  .hero-strip dt { font-size: 1rem; white-space: nowrap; }
}

/* ----- Product cards ----- */
.pc-cat { color: var(--label); }
.product-card:hover { border-color: var(--gold); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ----- Why choose us: full-bleed teal band ----- */
.band-why { background: radial-gradient(900px 400px at 85% 0%, rgba(201, 162, 77, .16), transparent 60%), linear-gradient(160deg, var(--brand) 0%, #0b3132 100%); color: #e9efed; padding: 3.5rem 0; }
.band-why-inner { display: grid; gap: 2.5rem; align-items: start; }
.why-intro .eyebrow { color: var(--gold-light); }
.why-intro h2 { color: #fff; }
.why-intro .about-text { color: rgba(233, 239, 237, .82); margin: 0; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-grid li { padding: 1.35rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .25s, background-color .25s, border-color .25s; }
.why-grid li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .08); border-color: rgba(201, 162, 77, .5); }
.why-grid svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-grad); color: var(--on-gold); margin-bottom: .9rem; }
.why-grid h3 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.why-grid p { margin: 0; font-size: .9rem; color: rgba(233, 239, 237, .75); }

/* ----- Packages + how it works ----- */
#about .section-head { align-items: center; }
.packages { padding: 1.5rem; border-color: var(--border); box-shadow: var(--shadow); }
.package-price { font-family: var(--font-display); color: var(--primary); }
.package-note { background: #fbf3df; border-left: 3px solid var(--gold); }
[data-theme="dark"] .package-note { background: rgba(217, 184, 101, .1); }
.include-list svg { color: var(--gold); }
.segmented { background: var(--surface); border: 1px solid var(--border); }
.segmented button.active { background: var(--brand); color: #fff; box-shadow: none; }
[data-theme="dark"] .segmented button.active { background: var(--gold); color: var(--on-gold); }
.how-row { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.how-row li { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.how-row li > span { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--brand); color: var(--gold-light); }
.how-row div { display: flex; flex-direction: column; }
.how-row strong { font-size: .95rem; }
.how-row small { color: var(--muted); font-size: .8rem; }

/* ----- Gallery ----- */
.bento figure { border-radius: var(--radius); }

/* ----- Reviews ----- */
.review-card::before { color: var(--gold); opacity: .3; }
.review-card .stars { color: var(--gold); }

/* ----- Footer: deep teal ----- */
.site-footer { background: var(--brand); color: rgba(233, 239, 237, .78); padding: 3rem 0 calc(1.25rem + 64px); margin-top: 0; font-size: .9rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-mark { background: var(--primary-grad); color: var(--on-gold); box-shadow: none; }
.site-footer .brand-text small { color: rgba(233, 239, 237, .65); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand p { margin: .9rem 0 0; max-width: 44ch; color: rgba(233, 239, 237, .7); }
.footer-col { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer-col h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin-bottom: .35rem; }
.footer-col a, .footer-col .link-btn { color: rgba(233, 239, 237, .82); font-weight: 500; text-align: left; }
.footer-col a:hover, .footer-col .link-btn:hover { color: var(--gold-light); text-decoration: none; }
.footer-bottom { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.25rem; color: rgba(233, 239, 237, .6); font-size: .85rem; }
.footer-bottom strong { color: rgba(233, 239, 237, .85); }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom .link-btn { color: rgba(233, 239, 237, .65); font-weight: 500; }
.footer-bottom .link-btn:hover { color: var(--gold-light); }

/* ----- Staff / Admin login: easy to find ----- */
.btn-staff { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(15, 61, 62, .25); }
.btn-staff svg { color: var(--gold-light); }
.btn-staff:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; transform: translateY(-1px); }
[data-theme="dark"] .btn-staff { border-color: var(--gold); }
.footer-staff {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: rgba(201, 162, 77, .12); color: var(--gold-light); font: inherit; font-weight: 600; font-size: .85rem;
  transition: background-color .2s, color .2s;
}
.footer-staff svg { width: 16px; height: 16px; }
.footer-staff:hover { background: var(--primary-grad); color: var(--on-gold); }
.footer-bottom nav { align-items: center; }
.main-nav a { white-space: nowrap; }
@media (min-width: 768px) {
  .footer-bottom { padding-right: 84px; } /* keep clear of the floating call / WhatsApp buttons */
}
@media (min-width: 768px) and (max-width: 1099px) {
  .btn-staff { padding: .35rem .55rem; }
  .btn-staff span { display: none; } /* icon only on tablets, the title still says what it is */
}
.menu-links .menu-staff { margin-top: .75rem; padding: .9rem; background: var(--brand); color: #fff; border-radius: var(--radius); }
.menu-links .menu-staff:hover { background: var(--brand-2); }
.menu-staff svg { color: var(--gold-light); flex-shrink: 0; }
.menu-staff span { display: flex; flex-direction: column; }
.menu-staff small { font-size: .75rem; opacity: .75; font-weight: 400; }
.staff-hero { display: flex; align-items: center; gap: .85rem; padding: .9rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.staff-hero div { display: flex; flex-direction: column; gap: .15rem; }
.staff-hero small { opacity: .8; font-size: .82rem; }
.staff-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-grad); color: var(--on-gold); flex-shrink: 0; }

@media (min-width: 640px) {
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .how-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .site-footer { padding-bottom: 1.5rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(180px, 18vw, 290px)); }
  .bento figure { aspect-ratio: auto !important; }
  .bento-big { grid-column: span 2; grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
  .band-why { padding: 5rem 0; }
}
@media (min-width: 1024px) {
  .hero-full-inner { padding-top: 5rem; padding-bottom: 2.25rem; }
  .band-why-inner { grid-template-columns: minmax(280px, .9fr) 2fr; gap: 4rem; }
  .how-row { grid-template-columns: repeat(4, 1fr); }
}

/* Phones: smaller buttons, no hover labels */
@media (max-width: 767px) {
  .fab { width: 46px; height: 46px; }
  .fab svg { width: 21px; height: 21px; }
  .fab-wa svg { width: 25px; height: 25px; }
  .fab-assistant { width: 52px; height: 52px; }
  .fab-label { display: none; }
  .fab-stack { gap: 10px; }
}

/* =========================================================
   Shop filter bar
   ========================================================= */
.shop-toolbar {
  flex-direction: column-reverse; gap: .85rem; padding: .85rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.toolbar-controls { width: 100%; max-width: none; }
.toolbar-controls .search-field input,
.toolbar-controls .select { min-height: 46px; border-radius: 999px; background: var(--surface); }
.toolbar-controls .search-field input { padding-left: 2.6rem; }
.toolbar-controls .search-field svg { left: 1rem; }
.toolbar-controls .select { padding-left: 1.1rem; font-weight: 500; }
.chip-row { gap: .4rem; }
.chip { border-color: transparent; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 61, 62, .08); font-size: .85rem; padding: .45rem .95rem; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(15, 61, 62, .25); }
.chip .count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .3em; margin-left: .35rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); opacity: 1; font-size: .72rem; font-weight: 600; }
.chip.active .count { background: var(--gold); color: var(--on-gold); }
@media (max-width: 767px) {
  /* Show every category: wrap onto several lines instead of a hidden side-scroll */
  .chip-row { flex-wrap: wrap; overflow: visible; gap: .35rem; }
  .chip { font-size: .8rem; padding: .38rem .75rem; }
}
@media (max-width: 559px) {
  .toolbar-controls { flex-wrap: wrap; }
  .toolbar-controls .search-field { flex: 1 1 100%; }
  .toolbar-controls .select { flex: 1 1 100%; max-width: none; }
}
@media (min-width: 768px) {
  .shop-toolbar { padding: 1rem 1.1rem; }
  .toolbar-controls .select { max-width: 240px; }
}

/* =========================================================
   Product detail: suggestions visible without scrolling
   ========================================================= */
@media (min-width: 900px) {
  #productModal .modal-dialog { max-width: 1120px; }
  .product-detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "media info" "related info"; grid-template-rows: auto 1fr; align-items: start; }
  .pd-media { grid-area: media; padding: 1.25rem 1.25rem .5rem; }
  .pd-info { grid-area: info; border-left: 1px solid var(--border); min-height: 100%; }
  .zoom-box { aspect-ratio: 4 / 3; }
  .thumbs button { width: 56px; height: 56px; }
  .related { grid-area: related; grid-column: auto; border-top: 0; padding: .25rem 1.25rem 1.25rem; }
  .related h3 { font-size: 1rem; margin-bottom: .6rem; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .related-card { display: flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: 12px; }
  .related-card img { width: 58px; height: 58px; aspect-ratio: 1; border-radius: 8px; flex-shrink: 0; }
  .related-card div { padding: 0; min-width: 0; }
  .related-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }
  .pd-info { gap: .65rem; }
  .spec-table th, .spec-table td { padding: .35rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Print (invoice / spec sheet)
   ========================================================= */
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block !important; color: #000; font-family: Arial, sans-serif; }
  #printArea table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  #printArea th, #printArea td { border-bottom: 1px solid #ccc; padding: 6px; text-align: left; font-size: 12px; }
  #printArea img { max-width: 280px; }
  #printArea h1 { font-size: 20px; }
}
