:root {
  --ink: #12131a;
  --muted: #6f7180;
  --surface: #ffffff;
  --canvas: #f7f5f2;
  --canvas-2: #eeece8;
  --line: #dedbd5;
  --primary: #7c3aed;
  --primary-fill: #7c3aed;
  --primary-2: #a78bfa;
  --primary-rgb: 124, 58, 237;
  --primary-contrast: #ffffff;
  --accent: #d6b36a;
  --accent-fill: #d6b36a;
  --accent-dark: #8a6728;
  --accent-rgb: 214, 179, 106;
  --accent-contrast: #2b2416;
  --success: #138a5b;
  --danger: #c63f55;
  --warning: #b56a14;
  --shadow: 0 18px 60px rgba(18, 19, 26, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --muted: #a7a7ad;
  --surface: #171719;
  --canvas: #0b0b0d;
  --canvas-2: #222225;
  --line: #36363b;
  --primary: #a78bfa;
  --primary-fill: #a78bfa;
  --primary-2: #c4b5fd;
  --primary-rgb: 167, 139, 250;
  --primary-contrast: #111217;
  --accent: #e2bd70;
  --accent-fill: #e2bd70;
  --accent-dark: #f0ce88;
  --accent-rgb: 226, 189, 112;
  --accent-contrast: #2b2416;
  --success: #45d397;
  --danger: #ff7189;
  --warning: #f5ad54;
  --shadow: 0 18px 60px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: color .2s ease, background-color .2s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--primary-rgb), .18), transparent 32rem),
    radial-gradient(circle at 95% 25%, rgba(var(--accent-rgb), .16), transparent 28rem),
    var(--canvas);
}
html body.has-site-background {
  position: relative;
  isolation: isolate;
  background: transparent;
}
html:root body.has-site-background::before {
  z-index: -2;
  background-color: var(--canvas);
  background-image: var(--site-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html body.has-site-background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--canvas);
  opacity: var(--site-background-overlay, .32);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .75rem .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.16); }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: .4rem; font-weight: 700; font-size: .9rem; }
label small, .muted { color: var(--muted); font-weight: 500; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.site-main { min-height: 65vh; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.demo-bar { background: var(--primary-fill); color: var(--primary-contrast); text-align: center; padding: .5rem 1rem; font-size: .82rem; letter-spacing: .02em; }
.demo-bar a { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 219, 213, .75);
  background: rgba(247, 245, 242, .9);
  backdrop-filter: blur(18px);
}
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, var(--primary-fill), var(--accent-fill), var(--primary-fill));
  color: var(--primary-contrast);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.25);
}
.brand-mark::after { content: "✦"; }
.brand-mark-custom { overflow: hidden; padding: 0; background: transparent; box-shadow: none; }
.brand-mark-custom::after { content: none; }
.brand-mark-custom img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; font-weight: 700; font-size: .92rem; }
.site-nav a { color: #363743; }
.site-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .55rem .72rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: .8rem; cursor: pointer; box-shadow: 0 4px 14px rgba(18,19,26,.06); transition: transform .2s, border-color .2s, background .2s; }
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--primary-2); }
.theme-toggle [data-theme-icon] { display: grid; place-items: center; width: 20px; height: 20px; font-size: 1rem; line-height: 1; }
.cart-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cart-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--primary-fill);
  color: var(--primary-contrast);
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .28); }
.button-dark { background: var(--ink); color: var(--canvas); }
.button-accent { background: var(--accent-fill); color: var(--accent-contrast); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-small { min-height: 38px; padding: .55rem .8rem; font-size: .84rem; }
.button-block { width: 100%; }
.button-danger { background: var(--danger); color: #fff; }
.button-success { background: var(--success); color: #fff; }

.hero { padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .76rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .display { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; line-height: 1.03; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); margin: 1rem 0 1.4rem; max-width: 10ch; }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); margin-bottom: 1rem; }
h3 { line-height: 1.25; }
.hero-lead { max-width: 58ch; font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.trust-line { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.7rem; color: #565866; font-size: .84rem; }
.trust-line span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: .35rem; }
.hero-visual { position: relative; min-height: 570px; }
.hero-orbit { position: absolute; inset: 3% 6% 8% 4%; border: 1px solid rgba(var(--primary-rgb),.28); border-radius: 50%; transform: rotate(-12deg); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 10px rgba(var(--accent-rgb),.14); }
.hero-orbit::before { width: 13px; height: 13px; top: 8%; left: 22%; }
.hero-orbit::after { width: 9px; height: 9px; bottom: 14%; right: 11%; background: var(--primary-fill); box-shadow: 0 0 0 10px rgba(var(--primary-rgb),.14); }
.hero-card {
  position: absolute;
  width: min(88%, 500px);
  right: 0;
  top: 4%;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 32px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  backdrop-filter: blur(16px);
}
.hero-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 23px; background: linear-gradient(135deg, rgba(var(--primary-rgb),.16), var(--surface)); }
.floating-note { position: absolute; left: 0; bottom: 15%; width: 220px; padding: 1rem 1.1rem; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow); transform: rotate(-4deg); }
.floating-note strong { display: block; font-size: 1.05rem; }
.floating-note small { color: #c8c9d0; }

.section { padding: 5rem 0; }
.section-compact { padding: 3rem 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: #b9bac3; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading > div { max-width: 680px; }
.section-heading h2 { margin-bottom: .65rem; }
.section-heading p { color: var(--muted); margin-bottom: 0; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-card { position: relative; min-height: 190px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); overflow: hidden; transition: transform .2s, border-color .2s; }
.category-card:hover { transform: translateY(-4px); border-color: var(--primary-2); }
.category-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -35px; bottom: -35px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb),.24), transparent 68%); }
.category-index { color: var(--primary); font-family: Georgia, serif; font-style: italic; }
.category-card h3 { margin: 2rem 0 .5rem; }
.category-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 8px 30px rgba(18,19,26,.05); }
.product-media { display: block; position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: rgba(var(--primary-rgb),.10); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge { position: absolute; top: .8rem; left: .8rem; padding: .38rem .62rem; background: rgba(18,19,26,.86); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; backdrop-filter: blur(8px); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem; }
.product-body h3 { margin: .15rem 0 .45rem; font-size: 1.05rem; }
.product-body p { color: var(--muted); font-size: .86rem; flex: 1; }
.product-price { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .9rem; }
.product-price strong { font-size: 1.15rem; }
.stock { color: var(--success); font-size: .74rem; font-weight: 800; }
.product-card form { margin-top: .85rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); overflow: hidden; }
.service-card-body { padding: 1.6rem; }
.service-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--canvas-2); }
.service-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-fill); color: var(--primary-contrast); font-family: Georgia, serif; font-style: italic; }
.service-card h3 { margin: 2rem 0 .65rem; }
.service-card p { color: #b9bac3; }
.service-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--accent); font-weight: 800; }
.booking-service-card { overflow: hidden; }
.booking-service-image { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: rgba(var(--primary-rgb),.10); }
.booking-service-card .service-meta { flex-wrap: wrap; }

.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; }
.gallery-card { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card figcaption { position: absolute; inset: auto 1rem 1rem; padding: 1rem; border-radius: 16px; background: rgba(18,19,26,.74); color: #fff; backdrop-filter: blur(12px); }
.gallery-card figcaption strong, .gallery-card figcaption small { display: block; }
.gallery-card figcaption small { color: #d6d6dc; }

.split-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.care-art { position: relative; min-height: 450px; border-radius: 36px; background: linear-gradient(145deg, rgba(var(--primary-rgb),.34), #101117); overflow: hidden; box-shadow: var(--shadow); }
.care-art::before { content: ""; position: absolute; width: 320px; height: 320px; border: 36px solid var(--accent-fill); border-radius: 50%; left: 50%; top: 50%; transform: translate(-55%,-50%); box-shadow: 0 0 0 22px rgba(var(--accent-rgb),.14); }
.care-art::after { content: "✦"; position: absolute; left: 50%; top: 50%; color: #fff; font-size: 5rem; transform: translate(-50%,-50%); }
.care-art.care-art-image::before,
.care-art.care-art-image::after { display: none; }
.care-art.care-art-image img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; display: block; }
.feature-list { display: grid; gap: .8rem; margin: 1.6rem 0; }
.feature-item { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start; }
.feature-item span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--primary-rgb),.14); color: var(--primary); font-weight: 900; }
.feature-item strong, .feature-item small { display: block; }
.feature-item small { color: var(--muted); }

.page-hero { padding: 3.5rem 0 2.2rem; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 14ch; }
.filter-bar { display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip { padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .83rem; font-weight: 750; }
.chip[data-active="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0 5rem; }
.product-detail-media { border-radius: 30px; overflow: hidden; background: rgba(var(--primary-rgb),.10); box-shadow: var(--shadow); }
.product-detail-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-price { font-size: 2rem; font-weight: 900; margin: 1rem 0; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.4rem 0; }
.detail-list div { padding: .9rem; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.detail-list small, .detail-list strong { display: block; }
.detail-list small { color: var(--muted); }
.buy-box { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; margin-top: 1.2rem; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 1.4rem; align-items: start; padding-bottom: 5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: 0 10px 35px rgba(18,19,26,.05); }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-body { padding: 1.25rem; }
.cart-line { display: grid; grid-template-columns: 92px 1fr 88px 120px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; background: #eee; }
.summary { position: sticky; top: 100px; padding: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.summary-total { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 900; }
.summary-total strong { color: var(--primary); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1rem; }
.secret-clear { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.secret-clear input { width: 17px; min-height: 17px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.payment-choices { display: grid; gap: .75rem; margin: 0; padding: 0; border: 0; }
.payment-choices legend { margin-bottom: .65rem; font-weight: 850; }
.payment-choices .choice { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.payment-choices .choice span, .payment-choices .choice small { display: block; }
.choice { position: relative; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.16); }
.integration-choice { display: flex; align-items: flex-start; min-height: 64px; }
.integration-choice > span { display: grid; gap: .28rem; min-width: 0; }
.integration-choice > span > strong,
.integration-choice > span > small { display: block; line-height: 1.35; }
.integration-choice > span > small { margin: 0; color: var(--muted); font-weight: 500; }
.shipping-form { display: grid; grid-template-columns: 1fr auto; gap: .7rem; }
.shipping-results { display: grid; gap: .6rem; margin-top: .8rem; }
.shipping-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.shipping-option input { width: 18px; min-height: 18px; }
.shipping-option span, .shipping-option small { display: block; }

.auth-shell { width: min(calc(100% - 2rem), 520px); margin: 4rem auto 6rem; }
.auth-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.8rem; }
.auth-form { display: grid; gap: 1rem; }
.auth-form > fieldset { display: grid; gap: 1rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.auth-form > fieldset legend { padding: 0 .45rem; font-weight: 850; }
.auth-form > fieldset > p { margin: 0; }
.register-contact-grid { display: grid; gap: 1rem; }
.register-field-title { display: flex; align-items: baseline; gap: .3rem; min-height: 1.25rem; white-space: nowrap; }
.register-field-title small { font-size: .78rem; }
.checkbox-line { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; }
.checkbox-line input { width: 18px; min-height: 18px; margin-top: .15rem; }
.auth-meta { text-align: center; color: var(--muted); margin-top: 1rem; }
.pix-payment { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(320px, 1.25fr); gap: 2rem; align-items: center; max-width: 920px; margin: 0 auto 5rem; }
.pix-qr { display: grid; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.pix-qr img { width: min(100%, 360px); height: auto; }
.pix-details { display: grid; gap: .9rem; }
.pix-details textarea { min-height: 96px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.pix-timer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas-2); }
.pix-timer strong { color: var(--primary); font-size: 2rem; font-variant-numeric: tabular-nums; }

.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; padding-bottom: 5rem; }
.account-nav { padding: .8rem; align-self: start; }
.account-nav a { display: block; padding: .8rem .9rem; border-radius: 10px; font-weight: 750; }
.account-nav a:hover { background: var(--canvas-2); }
.account-logout { margin-top: .55rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.account-logout-button { width: 100%; justify-content: flex-start; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.account-logout-button:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); box-shadow: none; }
.account-history-item { display: flex; align-items: center; gap: .75rem; min-width: 190px; }
.account-history-item > span:last-child { display: grid; gap: .2rem; }
.account-history-item small { display: block; max-width: 220px; color: var(--muted); font-weight: 500; white-space: normal; }
.account-history-thumb { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; background: var(--canvas-2); }
.account-history-placeholder { display: grid; place-items: center; color: var(--primary); background: rgba(var(--primary-rgb),.10); font-size: 1.1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small { color: var(--muted); }
.stat-card strong { font-size: 1.5rem; margin-top: .35rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; background: #eee; font-size: .72rem; font-weight: 800; }
.status-paid, .status-processing, .status-shipped, .status-completed, .status-confirmed, .status-active, .status-approved { background: #dff7ec; color: #08754a; }
.status-pending, .status-pending_payment, .status-draft { background: #fff1d9; color: #995807; }
.status-cancelled, .status-refunded, .status-rejected { background: #fde5e9; color: #a6293d; }
.status-no_show { background: #ece9f2; color: #594d6c; }
.table-scroll { width: 100%; overflow-x: auto; }
.appointment-actions { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 190px; }
.appointment-actions form { margin: 0; }
.appointment-note { display: block; max-width: 280px; margin-top: .2rem; color: var(--muted); white-space: normal; }

.flash-stack { position: fixed; top: 95px; right: 1rem; z-index: 80; display: grid; gap: .6rem; width: min(92vw, 420px); }
.flash { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.flash-success { border-color: #9ed9c0; }
.flash-error { border-color: #efacb7; }
.flash-warning { border-color: #e9c88f; }
.flash button { border: 0; background: transparent; cursor: pointer; }
.form-error { color: var(--danger); font-weight: 700; }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: .9rem 0 .3rem; background: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .8fr); align-items: start; gap: 1rem; }
.site-footer .brand { gap: .5rem; font-size: .96rem; }
.site-footer .brand-mark { width: 32px; height: 32px; }
.footer-grid h3 { margin: 0 0 .2rem; font-size: .94rem; }
.footer-description { max-width: 38ch; margin: .3rem 0 0; font-size: .84rem; line-height: 1.35; }
.footer-links { display: grid; gap: .14rem; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.footer-grid > div:nth-child(2) .footer-links { grid-template-columns: repeat(2,max-content); column-gap: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: .42rem; padding-top: .38rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; line-height: 1.25; }
.footer-legal-block { display: grid; gap: .16rem; text-align: right; }
.footer-legal-link { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; transition: color .2s ease,text-decoration-color .2s ease; }
.footer-legal-link:hover, .footer-legal-link:focus-visible { color: var(--primary); text-decoration-color: currentColor; }
.system-license { color: var(--text); font-weight: 700; }

/* Página de cuidados */
.care-hero { padding: 4.6rem 0 3.4rem; border-bottom: 1px solid var(--line); }
.care-hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 3rem; align-items: end; }
.care-hero h1 { max-width: 12ch; margin: .7rem 0 1rem; font-size: clamp(3.4rem,7vw,6.8rem); }
.care-hero .button { margin-top: .8rem; }
.care-quick-note { display: grid; gap: .7rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.76); box-shadow: var(--shadow); }
.care-quick-note p { margin: 0; color: var(--muted); }
.care-note-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-fill); color: var(--primary-contrast); font-size: 1.3rem; }
.care-content { padding-top: 3.4rem; }
.care-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.care-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.76); box-shadow: 0 12px 34px rgba(18,19,26,.05); }
.care-card-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.care-card-heading > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: rgba(var(--primary-rgb),.13); color: var(--primary); font-size: .78rem; font-weight: 900; }
.care-card-heading h2 { margin: 0; font-size: clamp(1.45rem,2.5vw,2.05rem); }
.care-card-negative .care-card-heading > span,
.care-feature-warning .eyebrow { color: var(--danger); }
.care-card-negative .care-card-heading > span { background: color-mix(in srgb,var(--danger) 12%,transparent); }
.care-card-positive .care-card-heading > span { background: color-mix(in srgb,var(--success) 13%,transparent); color: var(--success); }
.care-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; }
.care-list li { position: relative; padding-left: 1.35rem; color: var(--muted); }
.care-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary-fill); }
.care-card-negative .care-list li::before,
.care-feature-warning .care-list li::before { background: var(--danger); }
.care-card-positive .care-list li::before { background: var(--success); }
.care-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.care-feature { padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--accent-rgb),.08); }
.care-feature-warning { background: color-mix(in srgb,var(--danger) 6%,transparent); }
.care-feature h2 { margin: .65rem 0 .85rem; }
.care-feature p { color: var(--muted); }
.care-feature p:last-child { margin-bottom: 0; }
.care-followup { display: grid; grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr); gap: 2rem; margin-top: 1rem; padding: clamp(1.5rem,4vw,2.5rem); border-radius: var(--radius); background: var(--ink); color: var(--canvas); }
.care-followup h2 { margin: .65rem 0 0; }
.care-followup p { color: color-mix(in srgb,var(--canvas) 78%,transparent); }
.care-followup p:last-child { margin-bottom: 0; }
.care-sources { margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.54); }
.care-sources summary { cursor: pointer; font-weight: 850; }
.care-source-links { display: grid; gap: .55rem; margin-top: .8rem; }
.care-source-links a { color: var(--primary); font-weight: 750; }

/* Políticas, termos, trocas e cancelamentos */
.legal-hero { padding: 4.6rem 0 3.4rem; border-bottom: 1px solid var(--line); }
.legal-hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 3rem; align-items: end; }
.legal-hero h1 { max-width: 13ch; margin: .7rem 0 1rem; font-size: clamp(3.2rem,6.5vw,6.4rem); }
.legal-update-card { display: grid; gap: .55rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.76); box-shadow: var(--shadow); }
.legal-update-card span { color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.legal-update-card strong { font-size: 1.2rem; }
.legal-update-card p { margin: 0; color: var(--muted); }
.legal-section { padding-top: 3.4rem; }
.legal-layout { display: grid; grid-template-columns: minmax(230px,.32fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.legal-summary { position: sticky; top: 92px; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.68); }
.legal-summary strong { display: block; margin-bottom: .75rem; }
.legal-summary nav { display: grid; gap: .24rem; }
.legal-summary a { padding: .48rem .58rem; border-radius: 9px; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.legal-summary a:hover, .legal-summary a:focus-visible { background: rgba(var(--primary-rgb),.11); color: var(--primary); }
.legal-document { min-width: 0; }
.legal-document > section { scroll-margin-top: 96px; padding: clamp(1.4rem,3vw,2.1rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: 0 12px 34px rgba(18,19,26,.04); }
.legal-document > section + section { margin-top: 1rem; }
.legal-document h2 { margin: 0 0 1rem; font-size: clamp(1.65rem,3vw,2.35rem); }
.legal-document h3 { margin: 1.45rem 0 .55rem; font-family: inherit; font-size: 1.06rem; letter-spacing: -.01em; }
.legal-document p { color: var(--muted); }
.legal-document p:last-child { margin-bottom: 0; }
.legal-document ul { display: grid; gap: .45rem; margin: .7rem 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.legal-document strong { color: var(--text); }
.legal-closing { border-color: rgba(var(--primary-rgb),.32) !important; background: rgba(var(--primary-rgb),.08) !important; }

/* Admin */
.admin-body { background: #f3f4f7; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #15151b; color: #fff; padding: 1rem; overflow-y: auto; }
.admin-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.admin-sidebar .brand { padding: .5rem .5rem 1.2rem; }
.admin-menu-toggle { display: none; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .55rem .75rem; border: 1px solid #34353d; border-radius: 11px; background: #1c1c23; color: #fff; font: inherit; font-size: .82rem; font-weight: 850; cursor: pointer; }
.admin-menu-toggle:hover { border-color: var(--primary-2); }
.admin-label { color: #777986; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; margin: 1rem .6rem .4rem; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem; color: #c9cad1; border-radius: 10px; font-size: .9rem; font-weight: 700; }
.admin-nav a:hover, .admin-nav a[data-active="true"] { background: var(--primary-fill); color: var(--primary-contrast); }
.admin-nav a::before { content: "·"; color: var(--primary-2); font-size: 1.4rem; line-height: 0; }
.admin-user { margin-top: auto; padding: .8rem; border-top: 1px solid #2d2e35; color: #c9cad1; }
.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 40; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.6rem; background: rgba(255,255,255,.9); border-bottom: 1px solid #dedfe5; backdrop-filter: blur(16px); }
.admin-topbar strong { font-size: 1.1rem; }
.admin-content { width: min(calc(100% - 2rem), 1500px); margin-inline: auto; padding: 1.35rem 0 3rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.admin-heading h1 { font-family: inherit; font-size: 1.8rem; margin: 0 0 .25rem; letter-spacing: -.03em; }
.admin-heading p { color: var(--muted); margin: 0; }
.admin-card { border: 1px solid #dedfe5; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(18,19,26,.04); }
.admin-card + .admin-card { margin-top: 1rem; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid #e4e5e9; }
.admin-card-body { padding: 1.2rem; }
.content-settings-card { margin-bottom: 1rem; }
.content-block-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.content-block-grid .admin-card + .admin-card { margin-top: 0; }
.content-block-group-heading { grid-column: 1 / -1; padding: 1rem 0 .15rem; }
.content-block-group-heading h2 { margin: .45rem 0 .35rem; font-family: inherit; font-size: 1.45rem; letter-spacing: -.025em; }
.content-block-group-heading p { margin: 0; color: var(--muted); }
.content-image-preview { width: min(100%,420px); aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--canvas-2); }
.content-social-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); gap: 1.25rem; }
.form-grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-admin-layout { grid-template-columns: minmax(0,1.45fr) minmax(360px,.8fr); align-items: start; }
.admin-path-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.admin-path-field span { padding: 0 .1rem 0 .9rem; color: var(--muted); font-weight: 800; }
.admin-path-field input { border: 0; border-radius: 0; box-shadow: none; }
.theme-color-editor { display: grid; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.theme-color-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.theme-color-preview span { display: grid; place-items: center; min-height: 54px; padding: .7rem; border-radius: 12px; font-size: .78rem; font-weight: 900; text-align: center; }
.appearance-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.appearance-setting-block { display: grid; align-content: start; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.appearance-setting-wide { grid-column: 1 / -1; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); align-items: start; }
.appearance-setting-wide > .settings-image-preview,
.appearance-setting-wide > .settings-empty-preview { grid-row: span 5; }
.appearance-setting-block p { margin: .3rem 0 0; }
.settings-image-preview { width: 100%; max-height: 300px; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.settings-background-preview { min-height: 220px; }
.settings-icon-preview,
.settings-default-brand { width: 76px; height: 76px; }
.settings-icon-preview { object-fit: cover; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.settings-favicon-preview { padding: .55rem; object-fit: contain; }
.settings-empty-preview,
.settings-empty-icon { display: grid; place-items: center; min-height: 92px; padding: 1rem; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; background: var(--surface); }
.settings-empty-preview { min-height: 220px; }
.checkbox-line-danger { color: var(--danger); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .8rem; }
.admin-stat { padding: 1rem; border: 1px solid #dedfe5; border-radius: 14px; background: #fff; }
.admin-stat small { color: var(--muted); }
.admin-stat strong { display: block; font-size: 1.6rem; margin-top: .35rem; }
.admin-filter-card { margin-bottom: 1rem; }
.admin-filters { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(220px, 1fr) auto auto; align-items: end; gap: .8rem; }
.admin-filters label { display: grid; gap: .4rem; margin: 0; }
.admin-filters label > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.admin-filters select { width: 100%; }
.month-section + .month-section { margin-top: 1rem; }
.month-section-header > div:first-child { display: grid; gap: .3rem; }
.month-section-header > div:first-child > strong { font-size: 1.08rem; }
.month-section-header small { color: var(--muted); }
.month-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.month-summary span { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .65rem; border: 1px solid #dedfe5; border-radius: 999px; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.month-summary strong { color: var(--ink); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.admin-grid > .admin-card { margin-top: 0; }
.admin-products-sections { display: flex; flex-direction: column; }
.admin-products-sections > #categorias { order: 1; }
.admin-products-sections > .admin-products-layout { order: 2; margin-top: 1rem; }
.admin-products-layout { grid-template-columns: 1.3fr .7fr; }
.admin-categories-layout { grid-template-columns: 1.35fr .65fr; }
.admin-services-layout { grid-template-columns: 1.2fr .8fr; align-items: start; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.low-stock { border-left: 4px solid var(--warning); }
.admin-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.admin-product { position: relative; border: 1px solid #dedfe5; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.admin-product img { width: 100%; aspect-ratio: 1.4 / 1; object-fit: cover; background: #eee; }
.admin-product-placeholder { min-height: 110px; display: grid; place-items: center; padding: 0 !important; background: rgba(var(--primary-rgb),.12); color: var(--primary); font-size: 2rem; }
.admin-product div { padding: .7rem; }
.admin-product strong, .admin-product small { display: block; }
.admin-product small { color: var(--muted); }
.service-thumb { display: grid; place-items: center; width: 72px; height: 56px; border-radius: 10px; object-fit: cover; background: rgba(var(--primary-rgb),.12); color: var(--primary); font-size: 1.25rem; }
.service-thumb-placeholder { border: 1px solid var(--line); }
.service-image-preview { display: block; width: min(100%, 320px); aspect-ratio: 16 / 9; margin: .55rem 0 .7rem; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; background: rgba(var(--primary-rgb),.12); }
.pos-layout { display: grid; grid-template-columns: 1fr 390px; gap: 1rem; }
.pos-cart { min-height: 220px; display: grid; align-content: start; gap: .5rem; }
.pos-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem; background: #f7f7f9; border-radius: 10px; }
.pos-line span, .pos-line small { display: block; }
.pos-line small { color: var(--muted); }
.pos-line button { border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 1.2rem; }
.pos-total { font-size: 1.8rem; color: var(--success); }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.module-card { position: relative; min-height: 132px; padding: 1rem; border: 1px solid #dedfe5; border-radius: 15px; background: #fff; color: var(--ink); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-2px); border-color: rgba(var(--primary-rgb),.55); box-shadow: 0 10px 24px rgba(18,19,26,.08); }
.module-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-fill); color: var(--primary-contrast); }
.module-card h3 { margin: .8rem 0 .35rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.module-arrow { position: absolute; top: 1rem; right: 1rem; color: var(--muted); font-size: 1.1rem; }
.dashboard-heading { margin-bottom: .9rem; }
.dashboard-heading .eyebrow { display: block; margin-bottom: .35rem; }
.dashboard-stat { display: block; color: var(--ink); transition: border-color .18s ease, transform .18s ease; }
.dashboard-stat:hover { transform: translateY(-1px); border-color: rgba(var(--primary-rgb),.5); }
.dashboard-stat strong { font-size: 1.45rem; }
.dashboard-stat span { display: block; margin-top: .35rem; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.dashboard-table-card .admin-card-header > div { display: grid; gap: .2rem; }
.dashboard-table-card .admin-card-header small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.dashboard-table-card .admin-card-body { padding: .55rem 1rem .8rem; }
.dashboard-empty { padding: 1.5rem 1rem !important; text-align: center; white-space: normal; }
.dashboard-empty strong, .dashboard-empty span { display: block; }
.dashboard-empty span { margin-top: .3rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.dashboard-modules { margin-top: .8rem !important; }
.dashboard-modules .admin-card-header > div { display: grid; gap: .2rem; }
.dashboard-modules .admin-card-header small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.auth-form-link { margin-top: -.35rem; text-align: right; font-size: .86rem; }
.auth-form-link a { color: var(--primary); font-weight: 800; }
.account-profile-grid { display: grid; gap: 1rem; }
.loyalty-reward-callout { border-color: rgba(var(--primary-rgb),.35); }
.loyalty-checkout-options { display: grid; gap: .75rem; }
.loyalty-checkout-options .choice { width: 100%; }
.choice-disabled { opacity: .58; }
.summary-row[data-checkout-discount-row] strong { color: var(--success); }
.loyalty-settings-grid { margin-bottom: 1rem; }
.loyalty-campaign-layout { margin: 1rem 0; align-items: start; }
.admin-help-list { display: grid; gap: .75rem; margin: 0; padding-left: 1.2rem; color: var(--muted); }
.loyalty-adjust-form { display: grid; grid-template-columns: 105px minmax(150px,1fr) auto; gap: .45rem; min-width: 390px; }
.loyalty-adjust-form input { min-width: 0; padding: .55rem .65rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.table-actions form { margin: 0; }
html[data-theme="dark"] .choice-disabled { opacity: .48; }

/* Modo noite */
html[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--primary-rgb), .23), transparent 34rem),
    radial-gradient(circle at 95% 25%, rgba(var(--accent-rgb), .12), transparent 30rem),
    var(--canvas);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: #1c1c1f; color: var(--ink); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #7d7d84; }
html[data-theme="dark"] .site-header { background: rgba(11,11,13,.9); border-bottom-color: rgba(54,54,59,.85); }
html[data-theme="dark"] .site-nav a { color: #d8d8dc; }
html[data-theme="dark"] .trust-line { color: #b8b8bd; }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .detail-list div,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .care-card,
html[data-theme="dark"] .care-quick-note { background: rgba(23,23,25,.9); border-color: var(--line); }
html[data-theme="dark"] .hero-card { border-color: rgba(var(--primary-rgb),.22); }
html[data-theme="dark"] .product-media,
html[data-theme="dark"] .product-detail-media,
html[data-theme="dark"] .cart-line img,
html[data-theme="dark"] .admin-product img,
html[data-theme="dark"] .admin-product-placeholder,
html[data-theme="dark"] .service-thumb,
html[data-theme="dark"] .service-image-preview,
html[data-theme="dark"] .booking-service-image { background: #222225; }
html[data-theme="dark"] .chip,
html[data-theme="dark"] .choice,
html[data-theme="dark"] .shipping-option,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .flash { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .pix-timer { background: #202024; }
html[data-theme="dark"] .section-dark { background: #080809; color: #fff; }
html[data-theme="dark"] .floating-note,
html[data-theme="dark"] .cart-count,
html[data-theme="dark"] .chip[data-active="true"],
html[data-theme="dark"] .product-badge { background: #f4f4f5; color: #171719; }
html[data-theme="dark"] .button-dark { background: #303034; color: #fff; }
html[data-theme="dark"] .site-footer { background: rgba(14,14,16,.82); }
html[data-theme="dark"] .care-feature { background: rgba(var(--accent-rgb),.07); }
html[data-theme="dark"] .care-feature-warning { background: color-mix(in srgb,var(--danger) 7%,transparent); }
html[data-theme="dark"] .care-followup { background: #f1f1f2; color: #141416; }
html[data-theme="dark"] .care-followup p { color: #56565d; }
html[data-theme="dark"] .care-sources { background: rgba(23,23,25,.72); }
html[data-theme="dark"] .legal-update-card,
html[data-theme="dark"] .legal-summary,
html[data-theme="dark"] .legal-document > section { background: rgba(23,23,25,.9); border-color: var(--line); }
html[data-theme="dark"] .legal-closing { background: rgba(var(--primary-rgb),.09) !important; }
html[data-theme="dark"] .admin-body { background: var(--canvas); }
html[data-theme="dark"] .admin-sidebar { background: #09090a; }
html[data-theme="dark"] .admin-topbar { background: rgba(17,17,19,.92); border-bottom-color: var(--line); }
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-stat,
html[data-theme="dark"] .admin-product,
html[data-theme="dark"] .module-card { background: var(--surface); border-color: var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.18); }
html[data-theme="dark"] .admin-card-header { border-bottom-color: var(--line); }
html[data-theme="dark"] .theme-color-editor,
html[data-theme="dark"] .appearance-setting-block { background: #121214; }
html[data-theme="dark"] .month-summary span { border-color: var(--line); }
html[data-theme="dark"] .pos-line { background: #202024; }
html[data-theme="dark"] .module-icon { background: var(--primary-fill); color: var(--primary-contrast); }
html[data-theme="dark"] .status { background: #29292d; }
html[data-theme="dark"] .status-confirmed,
html[data-theme="dark"] .status-completed,
html[data-theme="dark"] .status-paid,
html[data-theme="dark"] .status-processing,
html[data-theme="dark"] .status-shipped { background: #173d30; color: #7ae0b8; }
html[data-theme="dark"] .status-pending,
html[data-theme="dark"] .status-pending_payment,
html[data-theme="dark"] .status-draft { background: #49351c; color: #f7c87c; }
html[data-theme="dark"] .status-cancelled,
html[data-theme="dark"] .status-refunded { background: #4b222d; color: #ff9daf; }
html[data-theme="dark"] .status-no_show { background: #303035; color: #d0d0d5; }

@media (prefers-reduced-motion: reduce) {
  body, .theme-toggle { transition: none; }
}

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-product-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-products-layout, .admin-categories-layout, .admin-services-layout { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-toggle [data-theme-label] { display: none; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-block-grid, .gallery-admin-layout, .content-social-grid { grid-template-columns: 1fr; }
  .appearance-setting-wide { grid-template-columns: 1fr; }
  .appearance-setting-wide > .settings-image-preview,
  .appearance-setting-wide > .settings-empty-preview { grid-row: auto; }
}

@media (max-width: 900px) {
  .site-nav { position: absolute; display: none; flex-direction: column; align-items: stretch; top: 100%; left: 1rem; right: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav[data-open] { display: flex; }
  .menu-toggle { display: block; }
  .nav-actions > .button { display: none; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .split-feature, .product-detail, .cart-layout, .checkout-layout, .account-grid, .pix-payment, .care-hero-grid, .care-followup { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card { min-height: 330px; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .legal-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-summary { position: static; }
  .admin-shell { grid-template-columns: 82px 1fr; }
  .admin-sidebar { padding: .7rem; }
  .admin-sidebar .brand span:last-child, .admin-label, .admin-nav a span, .admin-user span { display: none; }
  .admin-nav a { justify-content: center; font-size: 0; }
  .admin-nav a::before { font-size: 1.5rem; }
  .pos-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-filters .button { width: 100%; }
  .month-section-header { align-items: flex-start; flex-direction: column; }
  .month-summary { justify-content: flex-start; }
  .nav-shell { min-height: 68px; }
  .brand { font-size: .95rem; }
  h1 { font-size: 3.25rem; }
  .hero-visual { min-height: 390px; }
  .floating-note { width: 190px; }
  .section { padding: 3.6rem 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .care-card-grid, .care-feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .legal-hero { padding: 3.3rem 0 2.6rem; }
  .legal-summary nav { grid-template-columns: 1fr; }
  .product-body { padding: .8rem; }
  .product-body p { display: none; }
  .product-price { align-items: start; flex-direction: column; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line img { width: 70px; height: 70px; }
  .cart-line input, .cart-line > strong { grid-column: 2; }
  .form-grid, .form-grid-three, .choice-grid, .detail-list { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .stat-grid, .admin-stats, .admin-grid, .admin-grid-3, .appearance-settings-grid { grid-template-columns: 1fr; }
  .appearance-setting-wide { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .footer-legal-block { text-align: left; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; top: 0; z-index: 70; height: auto; max-height: 100svh; display: block; padding: .65rem; overflow-y: auto; border-bottom: 1px solid #2d2e35; }
  .admin-sidebar-head { min-height: 54px; }
  .admin-sidebar .brand { min-width: 0; padding: .2rem .35rem; }
  .admin-sidebar .brand span:last-child { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-menu-toggle { display: inline-flex; flex: 0 0 auto; }
  .admin-label, .admin-nav, .admin-user { display: none; }
  .admin-sidebar[data-open] .admin-label { display: block; margin-top: .75rem; }
  .admin-sidebar[data-open] .admin-nav { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 0 .15rem .55rem; }
  .admin-sidebar[data-open] .admin-nav a { justify-content: flex-start; font-size: .9rem; }
  .admin-sidebar[data-open] .admin-nav a span { display: inline; }
  .admin-sidebar[data-open] .admin-user { display: block; margin-top: .45rem; }
  .admin-sidebar[data-open] .admin-user span { display: block; }
  .admin-topbar { min-height: 64px; padding: 0 .8rem; }
  .admin-content { width: min(calc(100% - 1.2rem), 1440px); }
  .admin-product-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}
