/* ==========================================================================
   Dede Aksesuar — hand-written design-system layer.
   Loaded AFTER the compiled Tailwind utilities (see partials/head.ejs), so its
   component rules sit on top of Tailwind. Brand colours come from CSS variables
   injected per-request from the admin-editable palette; fallbacks below keep the
   stylesheet valid on its own.
   ========================================================================== */

:root {
  --brand-50: #f7f4ef;  --brand-50-rgb: 247 244 239;
  --brand-100: #ece4d8; --brand-100-rgb: 236 228 216;
  --brand-200: #d8c6ad; --brand-200-rgb: 216 198 173;
  --brand-300: #c2a67f; --brand-300-rgb: 194 166 127;
  --brand-400: #b08d5c; --brand-400-rgb: 176 141 92;
  --brand-500: #9a7444; --brand-500-rgb: 154 116 68;
  --brand-600: #835f37; --brand-600-rgb: 131 95 55;
  --brand-700: #6a4b2d; --brand-700-rgb: 106 75 45;
  --brand-800: #523a25; --brand-800-rgb: 82 58 37;
  --brand-900: #3d2c1d; --brand-900-rgb: 61 44 29;

  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #8a8580;
  --line: #e7e2da;
  --line-soft: #f0ece5;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --surface-3: #f3efe8;
  --wa: #25d366;
  --wa-dark: #1da851;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05), 0 1px 3px rgba(28, 25, 23, .06);
  --shadow: 0 4px 14px rgba(28, 25, 23, .08);
  --shadow-lg: 0 18px 40px rgba(28, 25, 23, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.ds-icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---- layout --------------------------------------------------------------- */
.ds-container { max-width: 84rem; margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .ds-container { padding-inline: 2rem; } }
.ds-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.ds-section-sm { padding-block: clamp(2rem, 4vw, 3.5rem); }

/* ---- typography ----------------------------------------------------------- */
.ds-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-600);
}
.ds-display { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.ds-display-lg { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.ds-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.ds-lead { font-size: 1.075rem; color: var(--ink-soft); }
.ds-muted { color: var(--ink-soft); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-head.left { text-align: left; margin-inline: 0; }

.rte-body { color: var(--ink-soft); }
.rte-body > * + * { margin-top: .85rem; }
.rte-body h2, .rte-body h3 { color: var(--ink); margin-top: 1.4rem; }
.rte-body ul { padding-left: 1.2rem; list-style: disc; }
.rte-body a { color: var(--brand-600); text-decoration: underline; }

/* ---- buttons -------------------------------------------------------------- */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1; padding: .72rem 1.15rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: transform .12s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.ds-btn:active { transform: translateY(1px); }
.ds-btn-primary { background: var(--brand-700); color: #fff; }
.ds-btn-primary:hover { background: var(--brand-800); }
.ds-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.ds-btn-secondary:hover { border-color: var(--brand-300); background: var(--surface-2); }
.ds-btn-ghost { background: transparent; color: var(--ink); }
.ds-btn-ghost:hover { background: var(--surface-3); }
.ds-btn-whatsapp { background: var(--wa); color: #fff; }
.ds-btn-whatsapp:hover { background: var(--wa-dark); }
.ds-btn-dark { background: var(--ink); color: #fff; }
.ds-btn-dark:hover { background: #000; }
.ds-btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.ds-btn-sm { padding: .5rem .8rem; font-size: .85rem; }
.ds-btn-block { display: flex; width: 100%; }

.ds-badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600;
  padding: .25rem .55rem; border-radius: 999px; line-height: 1;
}
.ds-badge-in { background: #e6f6ec; color: #1a7d43; }
.ds-badge-out { background: #fbe9e7; color: #c0392b; }
.ds-badge-order { background: #fdf3e0; color: #a86a12; }
.ds-badge-featured { background: var(--brand-100); color: var(--brand-800); }

/* ---- header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft);
}
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.site-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.site-brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 800; }
.site-brand-logo { height: 40px; width: auto; }
.site-nav { display: none; align-items: center; gap: .35rem; margin-left: .5rem; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav-item { position: relative; }
.site-nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .75rem; border-radius: 8px;
  font-weight: 600; font-size: .93rem; color: var(--ink-soft); transition: color .15s, background .15s;
}
.site-nav-link:hover, .site-nav-link.is-active { color: var(--ink); background: var(--surface-3); }
.mega { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.site-nav-item:hover .mega, .site-nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-link { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.mega-link:hover { background: var(--surface-3); }
.mega-link .count { font-size: .72rem; color: var(--ink-faint); background: var(--surface-3); border-radius: 999px; padding: .1rem .45rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-wa { display: none; }
@media (min-width: 1024px) { .header-wa { display: inline-flex; } }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
.header-search { display: none; position: relative; }
@media (min-width: 768px) { .header-search { display: block; } }
.header-search input { width: 210px; padding: .55rem .8rem .55rem 2.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .9rem; }
.header-search input:focus { outline: none; border-color: var(--brand-400); background: #fff; }
.header-search .ds-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

/* language switcher */
.lang-switcher { position: relative; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s var(--ease); }
.lang-switcher:hover .lang-menu, .lang-switcher:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; font-size: .88rem; font-weight: 500; }
.lang-item:hover { background: var(--surface-3); }
.lang-item.is-active { color: var(--brand-700); font-weight: 700; }
.lang-code { margin-left: auto; font-size: .7rem; text-transform: uppercase; color: var(--ink-faint); }

/* mobile drawer */
.drawer-toggle { display: inline-grid; }
@media (min-width: 1024px) { .drawer-toggle { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(28, 25, 23, .45); opacity: 0; transition: opacity .2s; }
.drawer[aria-hidden="false"] .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(88%, 360px); background: #fff; transform: translateX(100%); transition: transform .24s var(--ease); display: flex; flex-direction: column; padding: 1rem; overflow-y: auto; }
.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-link { display: block; padding: .8rem .6rem; border-radius: 10px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
.drawer-link:hover { background: var(--surface-3); }
.drawer-sub { padding-left: 1rem; }
.drawer-sub a { display: block; padding: .5rem .6rem; color: var(--ink-soft); font-size: .95rem; }

/* ---- hero ----------------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(180deg, var(--surface-2), #fff); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid.split { grid-template-columns: 1.1fr .9fr; } }
.hero-visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-200), var(--brand-500)); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---- product card --------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.product-card-media { position: relative; aspect-ratio: 1/1; background: var(--surface-3); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.product-card-quick {
  position: absolute; inset-inline: .6rem; bottom: .6rem; display: flex; gap: .4rem; opacity: 0; transform: translateY(6px);
  transition: .2s var(--ease);
}
@media (hover: hover) { .product-card:hover .product-card-quick { opacity: 1; transform: translateY(0); } }
.product-card-body { display: flex; flex-direction: column; gap: .55rem; padding: .85rem .9rem 1rem; flex: 1; }
.product-card-cat { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); }
.product-card-title { font-size: .98rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.product-card-title a:hover { color: var(--brand-700); }
.product-card-desc { font-size: .84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .3rem; }
.price { font-weight: 800; color: var(--ink); font-size: 1rem; }
.price-request { font-weight: 700; color: var(--brand-700); font-size: .82rem; }

/* swatches + size chips (cards + detail) */
.swatch-list { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.swatch { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 2px #fff; }
.swatch-more { font-size: .72rem; color: var(--ink-faint); font-weight: 600; }
.size-list { display: flex; gap: .3rem; flex-wrap: wrap; }
.size-chip { font-size: .72rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-3); border-radius: 6px; padding: .18rem .4rem; }

/* ---- catalogue ------------------------------------------------------------ */
.catalog-layout { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 260px 1fr; } }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.catalog-count { font-size: .9rem; color: var(--ink-soft); }
.catalog-count strong { color: var(--ink); }
.sort-select { padding: .55rem 2rem .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: .88rem; font-weight: 600; }

.filter-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.filter-head h2 { font-size: 1rem; }
.filter-group { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: .7rem; }
.facet { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; }
.facet input { accent-color: var(--brand-700); width: 16px; height: 16px; }
.facet .count { margin-left: auto; font-size: .75rem; color: var(--ink-faint); }
.facet-swatch { width: 16px; height: 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.facet-colors { display: flex; flex-wrap: wrap; gap: .5rem; }
.facet-color { position: relative; cursor: pointer; }
.facet-color input { position: absolute; opacity: 0; }
.facet-color .dot { width: 30px; height: 30px; border-radius: 999px; border: 2px solid transparent; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line); display: grid; place-items: center; transition: .15s; }
.facet-color input:checked + .dot { border-color: var(--brand-700); }
.facet-color input:checked + .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.facet-sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.facet-size input { position: absolute; opacity: 0; }
.facet-size span { display: inline-block; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.facet-size input:checked + span { border-color: var(--brand-700); background: var(--brand-50); color: var(--brand-800); }
.price-row { display: flex; align-items: center; gap: .5rem; }
.price-row input { width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }

.filter-drawer-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-drawer-toggle { display: none; } }
@media (max-width: 1023px) {
  .catalog-sidebar { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
  .catalog-sidebar[data-open="true"] { visibility: visible; }
  .catalog-sidebar .filter-scrim { position: absolute; inset: 0; background: rgba(28,25,23,.45); opacity: 0; transition: .2s; }
  .catalog-sidebar[data-open="true"] .filter-scrim { opacity: 1; }
  .catalog-sidebar .filter-panel { position: absolute; top: 0; left: 0; height: 100%; width: min(90%, 340px); border-radius: 0; transform: translateX(-100%); transition: transform .24s var(--ease); overflow-y: auto; }
  .catalog-sidebar[data-open="true"] .filter-panel { transform: translateX(0); }
}

/* ---- product detail ------------------------------------------------------- */
.pd-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumb { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--surface-3); }
.gallery-thumb.is-active { border-color: var(--brand-700); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin-top: .5rem; }
.pd-price .price { font-size: 1.5rem; }
.pd-block { margin-top: 1.5rem; }
.pd-block > .pd-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: .6rem; display: flex; gap: .5rem; align-items: baseline; }
.pd-block .pd-selected { color: var(--brand-700); text-transform: none; letter-spacing: 0; font-weight: 700; }

.option-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.option-color { cursor: pointer; }
.option-color input { position: absolute; opacity: 0; }
.option-color .oc-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 2px solid transparent; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--line); transition: .15s; }
.option-color input:checked + .oc-dot { border-color: var(--brand-700); }
.option-color input:focus-visible + .oc-dot { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.option-size { cursor: pointer; }
.option-size input { position: absolute; opacity: 0; }
.option-size span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .9rem; transition: .15s; }
.option-size input:checked + span { border-color: var(--brand-700); background: var(--brand-50); color: var(--brand-800); }
.option-size input:focus-visible + span { outline: 2px solid var(--brand-400); outline-offset: 2px; }

.pd-actions { display: grid; gap: .6rem; margin-top: 1.75rem; }
@media (min-width: 520px) { .pd-actions { grid-template-columns: 1fr 1fr; } }
.pd-actions .ds-btn-whatsapp { grid-column: 1 / -1; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .2rem; border-bottom: 1px solid var(--line-soft); }
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 500; }

.pd-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--ink-soft); margin-top: .75rem; }
.pd-meta b { color: var(--ink); font-weight: 600; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.trust-item .ds-icon { color: var(--brand-600); }

/* ---- stats / badges band -------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; padding: 1.5rem 1rem; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.stat-value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--brand-700); letter-spacing: -0.02em; }
.stat-label { font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; }

/* ---- category cards ------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: .18s var(--ease); overflow: hidden; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.category-card .cat-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.category-card h3 { font-size: 1.05rem; }
.category-card .cat-count { font-size: .8rem; color: var(--ink-faint); }
.category-card .cat-arrow { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--ink-faint); transition: .18s; }
.category-card:hover .cat-arrow { color: var(--brand-700); transform: translateX(3px); }

/* ---- contact CTA band ----------------------------------------------------- */
.cta-band { background: var(--brand-800); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: .5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.5rem; }
.cta-band .ds-btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .ds-btn-secondary:hover { background: rgba(255,255,255,.18); }

/* ---- map ------------------------------------------------------------------ */
.map-frame { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-cols { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact-cols { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-info-item .ds-icon { color: var(--brand-600); margin-top: .15rem; }
.contact-info-item .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.contact-info-item .value { font-weight: 600; }

/* ---- gallery block -------------------------------------------------------- */
.gallery-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gallery-block { grid-template-columns: repeat(4, 1fr); } }
.gallery-block img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.1rem; font-weight: 600; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-a { padding: 0 1.1rem; max-height: 0; overflow: hidden; transition: max-height .25s var(--ease), padding .25s; color: var(--ink-soft); }
.faq-item.open .faq-a { padding: 0 1.1rem 1.1rem; max-height: 600px; }
.faq-item.open .faq-q .ds-icon { transform: rotate(180deg); }
.faq-q .ds-icon { transition: transform .2s; }

/* ---- mobile sticky action bar --------------------------------------------- */
.mobile-action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: grid; grid-auto-flow: column;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(28,25,23,.1); padding: .5rem;
  gap: .4rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { .mobile-action-bar { display: none; } }
.mab-btn { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .5rem; border-radius: 10px; font-size: .72rem; font-weight: 600; color: var(--ink); }
.mab-btn.wa { color: var(--wa-dark); }
.mab-btn.call { color: var(--brand-700); }
.mab-btn.dir { color: var(--ink); }
.mab-btn:active { background: var(--surface-3); }
body.has-mab { padding-bottom: 72px; }
@media (min-width: 900px) { body.has-mab { padding-bottom: 0; } }

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 3rem; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; padding: .2rem 0; }
.footer-actions { display: flex; flex-direction: column; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.social-row { display: flex; gap: .5rem; margin-top: .75rem; }
.social-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.social-row a:hover { background: var(--brand-600); }

/* ---- breadcrumb ----------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--ink-faint); padding-block: 1rem; }
.breadcrumb a:hover { color: var(--brand-700); }

/* ---- flash ---------------------------------------------------------------- */
.flash-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 80; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; }
.flash { padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; gap: .5rem; align-items: center; }
.flash-success { background: #e6f6ec; color: #1a7d43; }
.flash-error { background: #fbe9e7; color: #c0392b; }

/* ---- forms (shared) ------------------------------------------------------- */
.ds-field { margin-bottom: 1rem; }
.ds-field-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.ds-field-hint { font-size: .75rem; color: var(--ink-faint); margin-top: .25rem; }
.ds-input, .ds-textarea, select.ds-input { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .92rem; background: #fff; }
.ds-input:focus, .ds-textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }
.ds-textarea { resize: vertical; min-height: 90px; }
.ds-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; padding: .3rem 0; }
.ds-check input { width: 16px; height: 16px; accent-color: var(--brand-700); }
.ds-image-field { display: flex; gap: .5rem; }
.ds-image-field .ds-input { flex: 1; }
.ds-image-preview { margin-top: .5rem; max-width: 120px; border-radius: 8px; border: 1px solid var(--line); }
.ds-upload-btn { cursor: pointer; }

/* ==========================================================================
   Admin shell
   ========================================================================== */
.admin-body { background: var(--surface-2); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-sidebar { background: var(--ink); color: rgba(255,255,255,.75); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (max-width: 900px) { .admin-sidebar { position: static; height: auto; } }
.admin-brand { color: #fff; font-weight: 800; font-size: 1.1rem; padding: .5rem .75rem 1.25rem; display: flex; align-items: center; gap: .5rem; }
.admin-nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); padding: 1rem .75rem .4rem; }
.admin-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.75); }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.is-active { background: var(--brand-700); color: #fff; }
.admin-nav a .badge { margin-left: auto; background: var(--wa); color: #fff; font-size: .7rem; border-radius: 999px; padding: .05rem .4rem; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-topbar h1 { font-size: 1.15rem; }
.admin-content { padding: 1.5rem; max-width: 1100px; width: 100%; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.admin-grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }
.admin-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 700px) { .admin-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
.admin-stat .n { font-size: 1.8rem; font-weight: 800; color: var(--brand-700); }
.admin-stat .l { font-size: .85rem; color: var(--ink-soft); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.admin-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.admin-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line); }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.repeater-row { display: grid; gap: .5rem; align-items: start; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: var(--surface-2); }
.repeater-row .row-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .repeater-row .row-grid.cols-2 { grid-template-columns: 1fr 1fr; } .repeater-row .row-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.repeater-remove { justify-self: end; }
.color-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.color-check { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .85rem; }
.color-check input { accent-color: var(--brand-700); }
.color-check .dot { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.perm-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .perm-grid { grid-template-columns: 1fr 1fr; } }
.perm-cat { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.perm-cat h4 { font-size: .8rem; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab-btn { padding: .6rem .9rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-btn.is-active { color: var(--brand-700); border-color: var(--brand-700); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.block-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; background: #fff; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); border-radius: var(--radius) var(--radius) 0 0; }
.block-head .block-type { font-weight: 700; font-size: .9rem; }
.block-body { padding: 1rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.empty-state .ds-icon { color: var(--line); margin-bottom: .5rem; }

[hidden] { display: none !important; }
.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; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Translation manager (/admin/translations)
   ========================================================================== */
.tr-langbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tr-lang { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; background: #fff; }
.tr-lang:hover { border-color: var(--brand-300); }
.tr-lang.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.tr-provider { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1.25rem; }
.tr-provider.is-ok { border-color: #bfe3cd; background: #f3fbf6; }
.tr-provider.is-ok > .ds-icon { color: #1a7d43; }
.tr-provider.is-off { border-color: #f0d3ce; background: #fdf6f5; }
.tr-provider.is-off > .ds-icon { color: #c0392b; }
.tr-provider strong { display: block; font-size: .9rem; }
.tr-provider span.ds-muted { font-size: .8rem; }
.tr-usage { margin-left: auto; text-align: right; font-size: .8rem; display: grid; gap: .1rem; }

.tr-stats { margin-bottom: 1.25rem; }
.tr-stats .admin-stat { padding: 1rem; }
.tr-stats .n { font-size: 1.5rem; }

.tr-search { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tr-search .ds-input { max-width: 320px; }

.tr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tr-title { font-size: 1.35rem; margin-top: .25rem; }

.tr-note { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .88rem; margin-bottom: 1.25rem; }
.tr-note > .ds-icon { flex: none; margin-top: .1rem; }
.tr-note form { margin-left: auto; }
.tr-note.is-draft { background: #fff8e6; border: 1px solid #f0dca8; color: #7a5b12; }
.tr-note.is-stale { background: #f2f6fd; border: 1px solid #ccdcf5; color: #23477e; }

.tr-auto .tr-auto-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tr-auto-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.tr-status { margin-top: .9rem; padding: .6rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 500; }
.tr-status.is-busy { background: var(--surface-3); color: var(--ink-soft); }
.tr-status.is-ok { background: #e6f6ec; color: #1a7d43; }
.tr-status.is-error { background: #fbe9e7; color: #c0392b; }

.tr-row { display: grid; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.tr-row:last-child { border-bottom: 0; }
@media (min-width: 900px) { .tr-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.tr-col { min-width: 0; }
.tr-source-text { padding: .6rem .75rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink-soft); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.tr-col textarea.ds-textarea { min-height: 76px; }
.tr-field-filled { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }

.tr-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; position: sticky; bottom: 0; background: linear-gradient(to top, var(--surface-2) 65%, transparent); padding: 1rem 0; }
