/* ENABILIFY frontend — every color, font and size comes from Admin → Appearance. */

:root {
  --text: var(--color-text);
  --heading: var(--color-heading);
  --link: var(--color-accent);
  --bg: var(--color-background);
  --surface: var(--color-surface);
  --border: var(--color-border);
  --muted: var(--color-text-gray);
  --on-primary: var(--color-secondary);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  color-scheme: light;
}

html.dark {
  --text: #d6e2e7;
  --heading: #f2f7f9;
  --link: color-mix(in srgb, var(--color-accent) 35%, #ffffff);
  --bg: #0a151a;
  --surface: #0f1f27;
  --surface-rgb: 15, 31, 39;
  --border: #1e3541;
  --muted: #92a8b1;
  color-scheme: dark;
}

html.dark .btn-primary,
html.dark .page-link.is-current,
html.dark .chip.is-active { background: color-mix(in srgb, var(--color-primary) 45%, #ffffff); border-color: transparent; color: #06141a; }
html.dark .btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 35%, #ffffff); }
html.dark .btn-outline { color: var(--heading); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--heading);
  letter-spacing: var(--heading-tracking);
  line-height: 1.12;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: calc(clamp(2.1rem, 4.6vw, 3.6rem) * var(--heading-scale)); }
h2 { font-size: calc(clamp(1.65rem, 3.2vw, 2.6rem) * var(--heading-scale)); }
h3 { font-size: calc(1.15rem * var(--heading-scale)); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(var(--color-accent-rgb), .45); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--color-accent-rgb), .18); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--color-primary); color: var(--on-primary); padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-font); font-weight: 700; line-height: 1.1;
  border: 1.5px solid transparent; border-radius: var(--btn-radius);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--color-primary); color: var(--on-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 86%, #000); border-color: color-mix(in srgb, var(--color-primary) 86%, #000); }
.btn-outline { background: transparent; color: var(--heading); border-color: color-mix(in srgb, var(--heading) 35%, transparent); }
.btn-outline:hover { border-color: var(--heading); background: rgba(var(--color-primary-rgb), .06); }
.btn-light { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .88); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.hover-on .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--color-primary-rgb), .18); }
.btn:active { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row.align-center { justify-content: center; }

/* ---------- Announcement ---------- */
.announcement { background: var(--color-primary); color: var(--on-primary); text-align: center; font-size: .9rem; font-weight: 600; padding: .55rem var(--gutter); }
.announcement p { margin: 0; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 60; transition: background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); border-bottom: 1px solid transparent; }
.header-sticky .site-header { position: sticky; top: 0; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; max-width: var(--container); min-height: var(--header-h); margin-inline: auto; padding: .6rem var(--gutter); }
.header-solid .site-header { background: var(--surface); }
.header-glass .site-header,
.header-transparent .site-header.is-scrolled {
  background: rgba(var(--surface-rgb), var(--header-alpha));
  -webkit-backdrop-filter: saturate(160%) blur(var(--header-blur));
  backdrop-filter: saturate(160%) blur(var(--header-blur));
}
.header-transparent .site-header { background: transparent; }
.header-bordered .site-header { border-bottom-color: var(--border); }
.header-transparent.header-bordered .site-header:not(.is-scrolled) { border-bottom-color: transparent; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(15, 35, 45, .07); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { width: var(--header-logo-width); height: var(--header-logo-height); max-width: 58vw; object-fit: contain; object-position: left center; }

.site-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-center .site-nav { margin-inline: auto; }
.site-nav a:not(.btn) {
  position: relative; padding: .6rem .85rem; border-radius: 10px;
  font-weight: 600; font-size: .97rem; color: var(--heading);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:not(.btn):hover { background: rgba(var(--color-accent-rgb), .08); color: var(--link); }
.site-nav a.is-active { color: var(--link); }
.site-nav a.is-active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px; background: currentColor; }
.nav-cta { margin-left: .5rem; }

.header-tools { display: flex; align-items: center; gap: .4rem; }
.nav-center .header-tools { margin-left: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--heading); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--link); color: var(--link); }
.icon-btn .icon { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: block; }
.nav-open .nav-toggle .when-closed { display: none; }

/* ---------- Flash messages ---------- */
.flash { max-width: min(760px, calc(100% - 2rem)); margin: 1.25rem auto 0; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid; font-weight: 600; background: var(--surface); }
.flash-success { border-color: var(--color-success); color: color-mix(in srgb, var(--color-success) 75%, var(--heading)); }
.flash-error { border-color: var(--color-danger); color: color-mix(in srgb, var(--color-danger) 80%, var(--heading)); }

/* ---------- Hero ---------- */
.hero { padding: clamp(1rem, 3vw, 2rem) var(--gutter) 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: min(var(--container), 1200px); margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--hero-bg, var(--surface));
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}
/* Faint meridian lines: a nod to global accounts and cross-border work. */
.hero-card::before {
  content: ""; position: absolute; z-index: -1; width: 680px; height: 680px; right: -260px; top: -300px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(var(--color-primary-rgb), .07) 38px 39px);
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%);
  mask: radial-gradient(circle, #000 35%, transparent 70%);
}
.hero-card::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -240px; bottom: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), .10), transparent 65%);
}
html.dark .hero-card { background: var(--surface); }
.hero-center .hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-left .hero-copy { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.4rem;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: var(--color-primary); color: var(--on-primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-lead { max-width: 690px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.75; color: var(--muted); }
.hero-center .hero-lead { margin-inline: auto; }
.hero-has-image .hero-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-has-image.hero-center .hero-copy { text-align: left; margin: 0; }
.hero-has-image.hero-center .hero-lead { margin-inline: 0; }
.hero-has-image.hero-center .btn-row { justify-content: flex-start; }
.hero-visual img { width: 100%; max-height: 420px; object-fit: contain; border-radius: var(--radius); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section + .section { padding-top: calc(var(--section-space) * .6); }
.section-tight { padding-block: clamp(1.5rem, 4vw, 3rem) var(--section-space); }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head.align-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .5rem; }
.section-head .lead { color: var(--muted); font-size: 1.06rem; margin: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 .75rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(var(--color-accent-rgb), .09); color: var(--link);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.section .btn-row { justify-content: center; }
.section-head.align-left + * + .btn-row { justify-content: flex-start; }

.page-hero { max-width: 860px; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.page-hero-compact { padding-top: clamp(2.5rem, 6vw, 4rem); }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-inline: auto; }
.card-surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:focus-within { border-color: var(--link); }
.hover-on .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(var(--color-accent-rgb), .45); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .5s var(--ease); }
.hover-on .product-card:hover .product-media img { transform: scale(1.05); }
.badge-sale { position: absolute; top: .75rem; left: .75rem; z-index: 1; padding: .3rem .65rem; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: .72rem; font-weight: 800; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem 1.1rem 1.2rem; }
.product-cat { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; color: var(--link); }
.product-title { margin: 0; font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a::after { content: ""; position: absolute; inset: 0; }
.product-title a:hover { color: var(--link); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: auto 0 0; padding-top: .9rem; }
.price-now { font-size: 1.2rem; font-weight: 800; color: var(--link); letter-spacing: -.01em; }
.price del { color: var(--muted); font-size: .9rem; }
.price-large .price-now { font-size: 2rem; }

/* ---------- Pagination & chips ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.5rem; }
.page-link { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 600; transition: border-color .2s var(--ease), color .2s var(--ease); }
.page-link:hover { border-color: var(--link); color: var(--link); }
.page-link.is-current { background: var(--color-primary); border-color: var(--color-primary); color: var(--on-primary); }
.page-gap { color: var(--muted); padding: 0 .2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--link); color: var(--link); }
.chip.is-active { background: var(--color-primary); color: var(--on-primary); border-color: var(--color-primary); }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), .12); }
label { display: grid; gap: .4rem; font-weight: 600; font-size: .93rem; color: var(--heading); }
.optional { font-weight: 500; color: var(--muted); font-size: .82rem; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 240px auto; gap: .75rem; margin-bottom: 1rem; padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.input-icon input { padding-left: 2.7rem; }
.empty-state, .empty-note { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.empty-state .btn { margin-top: .5rem; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(1.5rem, 4vw, 3rem); }
.gallery { min-width: 0; }
.gallery-stage { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: clamp(.75rem, 2vw, 1.5rem); transition: opacity .2s var(--ease); }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding: .2rem; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; padding: .3rem; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .2s var(--ease); }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--link); }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: contain; }
.product-summary { position: sticky; top: calc(var(--header-h) + 1.25rem); padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.header-static .product-summary { top: 1.25rem; }
.product-summary h1 { font-size: calc(clamp(1.6rem, 3vw, 2.4rem) * var(--heading-scale)); margin-bottom: .75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--link); font-weight: 600; }
.product-lead { color: var(--muted); }
.summary-actions { display: grid; gap: .65rem; margin-top: 1.5rem; }
.trust-line { display: flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .9rem; font-weight: 600; color: var(--muted); }
.trust-line .icon { color: var(--color-success); }
.details-title { font-size: calc(1.6rem * var(--heading-scale)); }

/* ---------- Rich content (admin HTML) ---------- */
.rich-content { overflow-wrap: anywhere; }
.rich-content.card-surface { padding: clamp(1.25rem, 4vw, 2.5rem); }
.rich-content > :first-child { margin-top: 0; }
.rich-content h2 { font-size: calc(1.6rem * var(--heading-scale)); margin-top: 1.6em; }
.rich-content h3 { font-size: calc(1.25rem * var(--heading-scale)); margin-top: 1.4em; }
.rich-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rich-content img { height: auto; border-radius: 14px; margin: 1.25rem 0; }
.rich-content ul, .rich-content ol { padding-left: 1.3rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.25rem 0; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; }
.rich-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--link); background: rgba(var(--color-accent-rgb), .06); border-radius: 0 12px 12px 0; }
.rich-content iframe, .rich-content video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.rich-content pre { overflow-x: auto; padding: 1rem; background: rgba(var(--color-primary-rgb), .06); border-radius: 12px; }

/* ---------- Features & CTA ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 12px; background: rgba(var(--color-accent-rgb), .1); color: var(--link); }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; }
.section-cta { padding-inline: var(--gutter); }
.cta-band {
  max-width: min(var(--container), 1180px); margin-inline: auto; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .14), transparent 45%), var(--cta-bg, var(--color-primary));
  color: rgba(255, 255, 255, .85);
}
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin-inline: auto; }
.cta-eyebrow { font-weight: 700; color: #fff; opacity: .8; margin-bottom: .6rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.post-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hover-on .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-media { display: block; aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.2rem 1.25rem 1.35rem; }
.post-meta { margin: 0 0 .45rem; font-size: .82rem; font-weight: 700; color: var(--link); }
.post-title { margin-bottom: .5rem; font-size: 1.12rem; line-height: 1.35; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-title a:hover { color: var(--link); }
.post-body p:last-child { color: var(--muted); margin: 0; font-size: .95rem; }
.article { max-width: 820px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 1rem; }
.article-header { text-align: center; margin-bottom: 2rem; }
.article-byline { color: var(--muted); }
.article-cover { margin: 0 0 2rem; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: #fff; }
.article-cover img { width: 100%; height: auto; }
.article-body { font-size: 1.06rem; line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin: 0; padding: .8rem 1rem; border-radius: 12px; background: rgba(var(--color-accent-rgb), .08); color: var(--heading); }
.contact-aside { padding: clamp(1.25rem, 3vw, 2rem); }
.contact-aside h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.contact-methods { display: grid; gap: .65rem; margin-top: 1.25rem; }
.contact-method { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.contact-method:hover { border-color: var(--link); }
.hover-on .contact-method:hover { transform: translateX(3px); }
.m-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: #fff; background: var(--color-primary); }
.m-icon .icon { width: 21px; height: 21px; }
.m-whatsapp .m-icon { background: #25d366; }
.m-telegram .m-icon { background: #229ed9; }
.m-text { display: grid; min-width: 0; line-height: 1.35; }
.m-text strong { color: var(--heading); }
.m-text span { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-turnstile { min-height: 65px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-space); color: var(--footer-text); }
.footer-solid .site-footer { background: var(--footer-bg); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--container); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}
/* Glass footer: a frosted panel floating over a soft color field. */
.footer-glass .site-footer {
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--color-accent-rgb), .55), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .16), transparent 38%),
    radial-gradient(circle at 60% 10%, rgba(var(--footer-bg-rgb), .9), transparent 55%),
    color-mix(in srgb, var(--footer-bg) 70%, #000);
}
.footer-glass .footer-inner {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: rgba(var(--footer-bg-rgb), var(--footer-alpha));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .25);
}
.footer-col { min-width: 0; }
.footer-col p { color: color-mix(in srgb, var(--footer-text) 74%, transparent); font-size: .95rem; }
.footer-name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.35rem; color: var(--footer-text) !important; margin-bottom: .6rem; letter-spacing: var(--heading-tracking); }
.footer-logo { width: var(--footer-logo-width); height: var(--footer-logo-height); max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 1rem; }
.footer-title { font-size: 1rem; color: var(--footer-text); margin-bottom: 1rem; letter-spacing: 0; }
.footer-title label { color: inherit; font: inherit; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: color-mix(in srgb, var(--footer-text) 78%, transparent); transition: color .2s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--footer-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: color-mix(in srgb, var(--footer-text) 78%, transparent); }
.footer-contact .icon { margin-top: .2rem; width: 18px; height: 18px; opacity: .8; }
.newsletter-row { display: flex; gap: .5rem; }
.newsletter-row input { min-width: 0; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: var(--footer-text); }
.newsletter-row input::placeholder { color: color-mix(in srgb, var(--footer-text) 60%, transparent); }
.newsletter-row input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.copyright { background: var(--copyright-bg); color: rgba(255, 255, 255, .72); text-align: center; font-size: .9rem; padding: 1rem var(--gutter); }
.copyright p { margin: 0; }

/* ---------- Floating chat ---------- */
.floating-contact { position: fixed; bottom: 20px; z-index: 90; display: grid; gap: 12px; }
.floating-right { right: 20px; justify-items: end; }
.floating-left { left: 20px; justify-items: start; }
.float-btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transition: transform .2s var(--ease); }
.float-btn .icon { width: 28px; height: 28px; }
.float-whatsapp { background: #25d366; }
.float-telegram { background: #229ed9; }
.float-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: float-pulse 2.4s ease-out infinite; }
.float-btn:hover { transform: scale(1.07); }
.float-label {
  position: absolute; top: 50%; white-space: nowrap; padding: .5rem .85rem; border-radius: 999px;
  background: var(--surface); color: var(--heading); font-size: .85rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .2s var(--ease), visibility .2s var(--ease);
}
.floating-right .float-label { right: calc(100% + 12px); }
.floating-left .float-label { left: calc(100% + 12px); }
.float-btn:hover .float-label, .float-btn:focus-visible .float-label { opacity: 1; visibility: visible; }
@keyframes float-pulse { 0% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-summary { position: static; }
  .hero-has-image .hero-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand-logo { width: var(--header-logo-mobile-width); height: var(--header-logo-mobile-height); }
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + .5rem);
    display: none; flex-direction: column; align-items: stretch; gap: .15rem; margin: 0; padding: .6rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px);
    box-shadow: 0 24px 60px rgba(15, 35, 45, .18);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 1rem; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: rgba(var(--color-accent-rgb), .08); }
  .nav-cta { margin: .4rem 0 0; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(var(--mobile-product-columns), minmax(0, 1fr)); gap: .75rem; }
  .product-body { padding: .8rem .85rem .95rem; }
  .product-title { font-size: .93rem; }
  .product-cat { font-size: .72rem; }
  .price-now { font-size: 1.02rem; }
  .price del { font-size: .8rem; }
  .product-media img { padding: .6rem; }
  .hover-on .product-card:hover { transform: none; }
}
@media (max-width: 620px) {
  .post-grid, .footer-inner, .form-row { grid-template-columns: 1fr; }
  .hero-card { border-radius: var(--radius); }
  .btn-row .btn { flex: 1 1 100%; }
  .newsletter-row { flex-direction: column; }
  .floating-right { right: 14px; }
  .floating-left { left: 14px; }
  .float-btn { width: 52px; height: 52px; }
  .float-label { display: none; }
  .gallery-thumbs img { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.hover-off .btn:hover, .hover-off .product-card:hover, .hover-off .post-card:hover { transform: none; }

@media print {
  .site-header, .site-footer, .copyright, .floating-contact, .announcement { display: none !important; }
}
