:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1b1d1f;
  --muted: #697179;
  --line: #dedbd2;
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #a855f7;
  --gold: #c99432;
  --soft: #e8f4ef;
  --shadow: 0 18px 45px rgba(18, 30, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 16px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}
.brand-logo {
  width: 128px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: #1d1d1f;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text-logo {
  color: var(--accent);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  -webkit-text-stroke: 1px #111;
  text-shadow: 1px 1px 0 #111;
}
.brand > span:not(.brand-logo) {
  display: inline-block;
}
.brand small { display: block; color: var(--muted); }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 46px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; }
.header-actions { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.icon-btn, .secondary, .admin-link, .cart-btn, .primary {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}
.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 750;
}
.primary:hover { background: var(--primary-dark); }
.secondary:hover, .icon-btn:hover, .admin-link:hover { border-color: var(--primary); }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #050505;
  font-size: 20px;
  padding: 0;
  white-space: nowrap;
}
.header-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round-action,
.cart-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
}
.round-action svg,
.cart-icon-btn svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-icon-btn span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.cart-btn { display: flex; align-items: center; gap: 8px; }
.cart-btn span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}
.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(16px, 4vw, 56px);
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.category-strip button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
}
.category-strip button.active { border-color: var(--primary); background: var(--soft); color: var(--primary-dark); }
.view { display: none; padding: 28px clamp(16px, 4vw, 56px) 52px; }
.view.active { display: block; }
.admin-mode .topbar,
.admin-mode .site-header,
.admin-mode .category-strip,
.admin-mode .footer {
  display: none;
}
.admin-mode .view {
  padding: 0;
}
.admin-mode .admin-shell {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
}
.hero {
  position: relative;
  min-height: clamp(260px, 32vw, 520px);
  background-color: #f7c0da;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-carousel {
  margin: -28px calc(clamp(16px, 4vw, 56px) * -1) 0;
}
.carousel-track,
.carousel-slide {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  opacity: 0;
  transition: opacity .45s ease;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
}
.carousel-dots button.active {
  background: var(--accent);
}
.hero-copy { padding: clamp(32px, 6vw, 72px); align-self: center; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 850;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 0.96; margin-bottom: 18px; letter-spacing: 0; }
h2 { font-size: 24px; margin-bottom: 14px; letter-spacing: 0; }
.hero p:not(.eyebrow) { max-width: 520px; color: #dbe7e5; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.benefits, .category-grid, .review-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}
.benefits article, .category-card, .panel, .reviews article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.benefits span, .category-card span, .product-meta, .muted { color: var(--muted); }
.subtle-benefits {
  margin: 18px 0 28px;
  gap: 10px;
}
.subtle-benefits article {
  padding: 13px 14px;
  background: #f0efec;
  border-color: #e6e2da;
  color: #666b70;
  box-shadow: none;
}
.subtle-benefits strong {
  display: block;
  margin-bottom: 3px;
  color: #54585d;
  font-size: 13px;
}
.subtle-benefits span {
  color: #7d8287;
  font-size: 12px;
  line-height: 1.35;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}
.category-tools {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 12px;
}
.section-head h1, .section-head h2 { margin-bottom: 0; }
.compact { margin-top: 0; }
.category-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #fffdf8, #e9f5f2);
}
.category-card button { align-self: start; }
.store-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 130px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filters label { display: grid; gap: 7px; font-weight: 700; }
.filters input, .filters select, .checkout-form input, .checkout-form select, .cart-footer input, .category-editor input, .settings-editor input, .settings-editor textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.settings-editor textarea {
  resize: vertical;
  line-height: 1.45;
}
.popular-searches { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-searches strong { width: 100%; }
.popular-searches button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.product-card figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e6e1d8;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover img { transform: scale(1.04); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 800;
}
.badge.sale { background: var(--accent); }
.badge.warn { background: #775a10; }
.product-card h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 20px; }
.price s { color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.fav-btn { min-width: 42px; padding: 0; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, .9fr);
  gap: 28px;
}
.gallery img { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; border-radius: 8px; }
.detail-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.variant-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
}
.variant-row button.selected { border-color: var(--primary); background: var(--soft); }
.variant-row button:disabled { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.wide { width: 100%; justify-content: center; }
.reviews, .newsletter { margin-top: 44px; }
.curated-section {
  margin-top: 46px;
}
.beauty-heading {
  text-align: center;
  margin-bottom: 18px;
}
.beauty-heading p {
  margin: 0 0 5px;
  color: #9a8d86;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.beauty-heading h2 {
  margin: 0;
  color: #353535;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 850;
  text-transform: lowercase;
}
.soft-product-grid {
  max-width: 1180px;
  margin: 0 auto;
}
.newsletter {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px 16px 16px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  border: 0;
  text-align: center;
}
.newsletter .eyebrow { display: none; }
.newsletter h2 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.05;
  text-transform: none;
}
.newsletter-heart {
  display: none;
}
.newsletter form {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(650px, 100%);
}
.newsletter input {
  width: 100%;
  min-height: 28px;
  border-radius: 999px;
  border: 0;
  padding: 0 13px;
  background: #fff;
  font-size: 12px;
}
.newsletter button {
  min-height: 28px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  border-color: #fff;
  font-size: 12px;
}
.instagram-section {
  margin-top: 46px;
  padding-top: 10px;
}
.instagram-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  font-size: clamp(24px, 4vw, 34px);
}
.instagram-title span {
  padding: 0;
  color: #222;
  background: transparent;
  font-weight: 850;
}
.instagram-title strong {
  color: var(--accent);
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.instagram-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}
.instagram-grid a::after {
  content: "◎";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 0, 122, .18);
  font-size: 52px;
  opacity: 0;
  transition: opacity .2s ease;
}
.instagram-grid a:hover::after {
  opacity: 1;
}
.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(472px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 0;
  transform: translateX(102%);
  transition: transform .22s ease;
  box-shadow: -18px 0 38px rgba(20, 20, 20, .16);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #d8d8d8;
}
.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #000;
  font-size: 26px;
  font-weight: 900;
}
.drawer-head h2 span {
  color: #0e1d49;
  font-size: 23px;
}
.cart-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 40px;
  line-height: 1;
}
#cartItems {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}
.cart-item {
  display: grid;
  grid-template-columns: 130px 1fr 96px;
  gap: 14px;
  align-items: start;
  padding: 12px 0 18px;
  border-bottom: 0;
}
.summary-line, .order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.cart-item img {
  width: 130px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
}
.cart-product-info {
  min-width: 0;
}
.cart-product-info strong {
  display: block;
  color: #000;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}
.cart-product-info > span {
  display: block;
  margin-top: 3px;
  color: #000;
  font-size: 13px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.qty span {
  color: var(--accent);
  font-size: 21px;
  font-weight: 850;
}
.cart-price {
  display: grid;
  justify-items: end;
  gap: 3px;
}
.remove-circle {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #d8d9dd;
  font-size: 20px;
  line-height: 1;
}
.cart-price s {
  margin-top: 36px;
  color: #777;
  font-size: 14px;
}
.cart-price strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}
.cart-footer {
  padding: 28px 26px 18px;
  border-top: 1px solid #efefef;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .08);
}
.coupon-line {
  display: none;
}
.summary-line {
  margin: 0 0 18px;
  color: #000;
  font-size: 16px;
  font-weight: 900;
}
.summary-line strong {
  color: var(--accent);
  font-size: 21px;
  font-weight: 900;
}
.cart-final-actions {
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: 18px;
  align-items: center;
  margin-top: 40px;
}
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  text-align: left;
  text-decoration: underline;
  font-size: 16px;
  font-weight: 900;
}
.checkout-button {
  min-height: 52px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(12, 18, 20, 0);
  transition: background .22s ease;
}
.scrim.open { pointer-events: auto; background: rgba(12, 18, 20, .42); }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 380px;
  gap: 18px;
}
.checkout-form, .order-summary {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.account-view {
  min-height: 470px;
  background: #f7f7f8;
}
.customer-login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .92fr);
  gap: 56px;
  align-items: start;
  max-width: 830px;
  margin: 44px auto 10px;
}
.customer-login-option,
.customer-login-form {
  display: grid;
  gap: 14px;
}
.customer-login-option h2,
.customer-login-form h2 {
  color: var(--accent);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}
.outline-pill {
  min-height: 52px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: #fff;
  font-weight: 900;
}
.customer-login-form input,
.service-card input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #d6d8dd;
  border-radius: 6px;
  background: #fff;
  font-size: 18px;
}
.password-field {
  position: relative;
}
.password-field span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #999;
  transform: translateY(-50%);
}
.customer-login-form a {
  color: var(--accent);
  text-align: right;
  font-size: 18px;
  font-weight: 900;
}
.customer-login-form .primary {
  min-height: 52px;
  border-radius: 10px;
  font-size: 18px;
}
.tracking-view {
  padding: 0;
}
.service-page {
  min-height: calc(100vh - 170px);
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 72px 18px 34px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, .82) 0 24%, transparent 24%),
    linear-gradient(315deg, rgba(216, 180, 254, .7) 0 22%, transparent 22%),
    #fff;
}
.returns-bg {
  background: linear-gradient(180deg, var(--accent) 0%, #f7b4dd 68%, #fff 100%);
}
.service-logo {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: clamp(50px, 7vw, 82px);
  font-weight: 950;
  line-height: 1;
}
.service-card {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  padding: 46px 50px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .12);
}
.service-card h1 {
  margin: 0 0 10px;
  color: #172033;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
}
.service-card p {
  color: #202636;
  font-size: 16px;
  line-height: 1.45;
}
.service-card label {
  display: grid;
  gap: 7px;
  color: #202636;
  font-weight: 850;
}
.service-submit {
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #aab1bd;
  font-weight: 900;
  font-size: 16px;
}
.powered {
  margin-top: 58px;
  color: #202636;
  font-style: italic;
}
.returns-card .service-logo {
  margin: 0;
  text-align: center;
  font-size: 40px;
}
.returns-policy-view {
  background: linear-gradient(180deg, #fff 0%, #fbf7ff 100%);
}
.returns-terms {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.returns-terms h1 {
  color: var(--accent);
  text-align: center;
  font-size: clamp(34px, 5vw, 56px);
}
.returns-terms h2 {
  margin-top: 28px;
  color: #222;
}
.returns-terms p {
  color: #333;
  font-size: 16px;
  line-height: 1.55;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.rules-grid article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #eadff9;
  border-radius: 8px;
  background: #fbf8ff;
}
.rules-grid strong {
  color: var(--accent);
}
.rules-grid span {
  color: #4d4d55;
}
.admin-login-view {
  min-height: 70vh;
  place-items: center;
}
.admin-login-view.active {
  display: grid;
}
.login-card {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.login-card h1 {
  margin-bottom: 0;
  font-size: 42px;
}
.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}
.login-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.checkline { display: flex; gap: 8px; align-items: start; }
.checkline input { width: auto; min-height: auto; margin-top: 5px; }
.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 680px;
  background: #f7f4fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, #4c1d95, #7e22ce);
  color: #fff;
}
.admin-sidebar strong {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: 0;
}
.admin-sidebar button {
  text-align: left;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-weight: 850;
}
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: rgba(255,255,255,.2);
}
.admin-content { padding: 24px; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpi, .table, .config-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7e22ce, #a855f7);
  box-shadow: 0 18px 38px rgba(126, 34, 206, .22);
}
.dashboard-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}
.dashboard-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(255,255,255,.86);
}
.dashboard-score {
  display: grid;
  place-items: center;
  min-width: 132px;
  min-height: 132px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.dashboard-score strong {
  font-size: 44px;
  line-height: 1;
}
.dashboard-score span {
  max-width: 92px;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.quick-actions button {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #24202d;
  box-shadow: 0 10px 24px rgba(80, 44, 118, .08);
}
.quick-actions span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  font-weight: 950;
}
.quick-actions strong {
  font-size: 18px;
}
.quick-actions small {
  color: var(--muted);
}
.dashboard-kpis .kpi {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(80, 44, 118, .06);
}
.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.admin-card h3 {
  margin: 0 0 14px;
}
.admin-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin-card p:last-child {
  border-bottom: 0;
}
.admin-card span {
  color: var(--muted);
}
.admin-card button {
  margin: 0 8px 8px 0;
}
.category-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.category-manager .category-editor {
  grid-template-columns: 1fr;
}
.category-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.category-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fbf8ff;
}
.category-create label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}
.category-create input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.inline-toolbar {
  padding: 0;
  border: 0;
  background: transparent;
}
.category-editor label,
.settings-editor label,
.color-editor label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}
.category-editor span,
.settings-editor span,
.color-editor span {
  color: var(--muted);
  font-size: 13px;
}
.settings-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.banner-uploader {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 12px;
  background: #fbf8ff;
  border: 1px dashed #c4a5f4;
}
.banner-uploader h3 {
  margin: 0 0 6px;
}
.banner-uploader p {
  margin: 0;
  color: var(--muted);
}
.drop-zone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 150px;
  border: 2px dashed #a855f7;
  border-radius: 12px;
  color: #6d28d9;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.drop-zone.dragging {
  background: #f3e8ff;
  transform: scale(.99);
}
.drop-zone input {
  display: none;
}
.banner-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.banner-preview-list figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 7;
  background: #eee;
}
.banner-preview-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-preview-list button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0,0,0,.62);
  font-size: 12px;
  font-weight: 850;
}
.wide-field {
  grid-column: 1 / -1;
}
.color-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.color-editor input {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.product-id-helper {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f6;
}
.product-id-helper summary {
  cursor: pointer;
  font-weight: 850;
}
.product-id-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.product-id-grid span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.product-id-grid code {
  color: var(--accent);
  font-size: 12px;
}
.product-manager {
  display: grid;
  gap: 16px;
}
.manager-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.manager-toolbar h2 {
  margin-bottom: 6px;
}
.product-editor-list {
  display: grid;
  gap: 14px;
}
.product-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.product-editor.inactive {
  opacity: .68;
  background: #fafafa;
}
.product-editor-head {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
}
.product-editor-head img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}
.product-editor-head strong {
  display: block;
  font-size: 18px;
}
.product-editor-head span {
  color: var(--muted);
  font-size: 13px;
}
.product-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.product-editor-grid label {
  display: grid;
  gap: 6px;
  color: #333;
  font-weight: 750;
}
.product-editor-grid input,
.product-editor-grid select,
.product-editor-grid textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.product-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.danger-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  background: #fff5f5;
  font-weight: 850;
}
.switch {
  position: relative;
  width: 58px;
  height: 32px;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9cdd4;
  transition: background .18s ease;
}
.switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span::before {
  transform: translateX(26px);
}
.kpi strong { display: block; font-size: 26px; }
.table { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }
.status { padding: 5px 8px; border-radius: 999px; background: var(--soft); color: var(--primary-dark); font-weight: 800; font-size: 12px; }
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 14, 16, .72);
}
.age-card {
  max-width: 480px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 120px);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #1f2c2b;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.toast.show { transform: translate(-50%, 0); }
.footer {
  color: #fff;
  background: var(--accent);
}
.faby-footer {
  padding: 50px clamp(18px, 8vw, 180px) 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) minmax(240px, 1fr);
  gap: 42px;
  min-height: 330px;
}
.footer-brand strong {
  display: block;
  margin-bottom: 34px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}
.footer-brand nav {
  display: grid;
  gap: 11px;
  align-content: start;
}
.footer a,
.footer span {
  color: #fff;
}
.footer-brand a {
  font-size: 13px;
  font-weight: 700;
}
.footer-social {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 58px;
}
.social-icons {
  display: flex;
  gap: 14px;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  font-weight: 900;
  font-size: 20px;
}
.back-top {
  font-size: 13px;
  font-weight: 700;
}
.footer-payments {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 28px;
  text-align: center;
}
.footer-payments strong {
  font-size: 17px;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.payment-badges span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}
.pix-mark {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.pix-mark small {
  font-size: 14px;
}
.footer-bottom {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.footer-bottom p {
  margin: 0;
}
.hidden { display: none !important; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr; }
  .header-actions { overflow-x: auto; }
  .hero, .store-layout, .product-detail, .checkout-grid, .admin-shell { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid, .benefits, .category-grid, .review-grid, .kpi-grid, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { grid-template-columns: 1fr; }
  .customer-login-shell { grid-template-columns: 1fr; gap: 28px; }
  .rules-grid { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    overflow-x: auto;
    align-items: center;
    padding: 12px;
  }
  .admin-sidebar strong {
    white-space: nowrap;
    margin: 0 8px 0 0;
  }
  .admin-sidebar button {
    white-space: nowrap;
  }
  .quick-actions,
  .dashboard-panels,
  .banner-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .view { padding: 18px 12px 42px; }
  .site-header { padding: 12px; gap: 12px; }
  .brand small { display: none; }
  .hero { min-height: auto; }
  .hero-carousel { min-height: 240px; margin-top: -18px; }
  .hero-copy { padding: 28px 20px; }
  .hero-media { min-height: 220px; }
  .product-grid, .benefits, .category-grid, .review-grid, .kpi-grid, .admin-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .category-editor, .settings-editor, .color-editor { grid-template-columns: 1fr; }
  .category-row, .category-create { grid-template-columns: 1fr; }
  .product-id-grid { grid-template-columns: 1fr; }
  .manager-toolbar { flex-direction: column; align-items: stretch; }
  .product-editor-grid { grid-template-columns: 1fr; }
  .product-editor-head { grid-template-columns: 60px 1fr auto; }
  .product-editor-head img { width: 60px; height: 60px; }
  .quick-actions,
  .dashboard-panels,
  .banner-preview-list {
    grid-template-columns: 1fr;
  }
  .admin-content { padding: 14px; }
  .dashboard-hero { padding: 18px; }
  .quick-actions button { min-height: 96px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .newsletter form { flex-direction: column; }
  .cart-item { grid-template-columns: 92px 1fr 76px; gap: 10px; }
  .cart-item img { width: 92px; height: 82px; }
  .cart-product-info strong { font-size: 14px; }
  .qty button { width: 34px; height: 34px; font-size: 25px; }
  .qty { gap: 8px; }
  .cart-price strong { font-size: 18px; }
  .cart-final-actions { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .checkout-button { width: 100%; }
  .service-page { min-height: calc(100vh - 90px); padding-top: 44px; }
  .service-card { padding: 28px 18px; }
  .service-logo { font-size: 46px; }
  .returns-terms { padding: 22px 16px; }
  h1 { font-size: 40px; }
}
