:root {
  --bg: #f7f3ed;
  --mint: #6aa89f;
  --wood: #9ea8b0;
  --rose: #d7b8c5;
  --sky: #c5d5e2;
  --vanilla: #f6f2ec;
  --lavender: #d9d8e5;
  --ink: #1f3241;
  --muted: #64707c;
  --white: #ffffff;
  --danger: #dc5d76;
  --shadow: 0 18px 45px rgba(54, 90, 112, .12);
  --line: rgba(94, 126, 149, .18);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  min-height: 100%;
  min-width: 100%;
  scrollbar-gutter: stable both-edges;
}
body {
  margin: 0;
  min-height: 100vh;
  min-width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: auto;
  touch-action: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(132, 192, 226, 0.18), transparent 24%), radial-gradient(circle at 80% 10%, rgba(91, 180, 201, 0.15), transparent 28%), radial-gradient(circle at 50% 80%, rgba(88, 110, 135, 0.08), transparent 20%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(247, 244, 235, .9);
  animation: loaderFade .35s ease .25s forwards;
  pointer-events: none;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 150px; animation: logoIn .35s ease both; }
@keyframes loaderFade { to { opacity: 0; visibility: hidden; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,253,248,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(112, 93, 73, .08);
  transform: translateZ(0);
  will-change: transform;
}
.top-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(93, 142, 172, .16), rgba(112, 138, 167, .08));
  color: #345068;
  font-size: .92rem;
  font-weight: 700;
  flex-wrap: wrap;
}
.top-strip span { display: inline-flex; align-items: center; gap: 6px; }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { width: 106px; height: auto; object-fit: contain; }
.brand { display: inline-flex; align-items: center; }
.homepage .header-inner { justify-content: space-between; gap: 18px; }
.homepage .header-actions { justify-content: flex-end; gap: 12px; }
.header-search {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.chip-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(112, 93, 73, .06);
}
.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: rgba(255,253,248,.95);
  box-shadow: inset 0 1px 2px rgba(112, 93, 73, .05);
}
.search-panel input { border: 0; background: transparent; padding: 0; min-height: auto; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(112, 93, 73, .16);
}
.search-results:empty { display: none; }
.search-results a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.search-results img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; }
.search-results span { display: grid; gap: 2px; font-weight: 800; }
.search-results small { color: var(--muted); font-weight: 700; }
.search-results strong { color: #315f51; white-space: nowrap; }
.search-empty { padding: 14px; color: var(--muted); font-weight: 800; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.header-actions a, .header-actions button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(94, 126, 149, .18);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}
.header-actions a:hover, .header-actions button:hover { background: rgba(91, 180, 201, .16); color: #1f3241; border-color: rgba(91, 180, 201, .4); transform: translateY(-1px); }
.homepage .header-actions a, .homepage .header-actions button { min-height: 36px; padding: 8px 10px; }
.customer-chip {
  position: relative;
  overflow: hidden;
  max-width: 178px;
  border: 1px solid rgba(49, 95, 81, .12);
  background: linear-gradient(135deg, rgba(255,253,248,.92), rgba(194,226,210,.30));
  box-shadow: 0 10px 22px rgba(44, 58, 52, .07);
}
.customer-chip::after {
  content: "";
  position: absolute;
  inset: auto 10px 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,95,81,.28), transparent);
}
.customer-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-logout-form {
  margin: 0;
  display: inline-flex;
}
.logout-mini {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(216, 93, 93, .12);
  background: rgba(245,199,199,.32);
  color: #7b4a4a;
}
.cart-link { position: relative; background: rgba(194,226,210,.3); }
.cart-link strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--rose);
  color: #5c3b3b;
  font-size: .8rem;
  margin-left: 4px;
}
.header-menu {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.menu-link {
  color: #53615e;
  font-weight: 700;
  padding: 6px 2px;
  position: relative;
}
.menu-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width .25s ease;
}
.menu-link:hover::after { width: 100%; }
.menu-link:hover { color: #355647; }
.menu-item { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  padding: 18px;
  min-width: 760px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,253,248,.97);
  box-shadow: 0 24px 60px rgba(112, 93, 73, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
}
.menu-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-column h4 { margin: 0 0 10px; font-size: .95rem; color: #4f5d5a; }
.mega-column a { display: block; padding: 6px 0; color: var(--ink); font-weight: 600; }
.mega-column a:hover { color: var(--mint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover, .product-card:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, #61b3c6, #4d8fac); color: #fff; box-shadow: 0 16px 32px rgba(51, 96, 118, .18); }
.btn-secondary { background: rgba(255,255,255,.86); color: #4d5f72; border-color: rgba(94, 126, 149, .18); }
.btn.primary { background: linear-gradient(135deg, #61b3c6, #4d8fac); color: #fff; box-shadow: 0 16px 32px rgba(51, 96, 118, .18); }
.btn.secondary { background: rgba(255,255,255,.86); color: #4d5f72; border-color: rgba(94, 126, 149, .18); }
.ghost { background: rgba(255,255,255,.72); border-color: rgba(94, 126, 149, .14); }
.icon-button { width: 46px; padding: 0; }
.favorite { background: var(--mint); color: #2e5046; border: 1px solid rgba(46, 80, 70, .14); }
.favorite:hover,
.favorite.active { background: #90c9af; }
.favorite.active i { color: #1f4334; }
.header-favorites-link {
  position: relative;
}
.header-favorites-link strong {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: .68rem;
  color: #fff;
  background: var(--mint);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
}
.header-favorites-link i,
.header-action-link:hover i { color: #2e5046; }
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  padding: 14px 18px;
  background: #d4f2dd;
  color: #23573d;
  border: 1px solid rgba(46, 80, 70, .16);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
}
.toast.error { background: var(--rose); color: #6a2f2f; }

.hero {
  min-height: calc(100vh - 132px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 7vw 20px;
  position: relative;
}
.hero::before, .wide-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,244,235,.96), rgba(247,244,235,.72), rgba(247,244,235,.2));
}
.hero-content, .wide-promo > div { position: relative; max-width: 690px; margin-left: max(20px, calc((100vw - 1240px) / 2)); }
.eyebrow, .section-title span {
  display: inline-flex;
  background: var(--vanilla);
  color: #79683b;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: .82rem;
}
h1, h2, h3 { font-family: Poppins, Nunito, sans-serif; line-height: 1.12; margin: 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 5.8rem); max-width: 860px; margin: 18px 0; }
.hero p { max-width: 650px; font-size: 1.18rem; color: #56645f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.section, .page-shell { max-width: 1240px; margin: auto; padding: 56px 20px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-title h1, .section-title h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); max-width: 760px; margin-top: 10px; }
.section-title.compact { align-items: start; flex-direction: column; }
.category-grid, .product-grid, .review-grid, .integration-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.category-card, .product-card, .summary-card, .admin-card, .integration-card, .form-panel, .simple-page {
  background: rgba(255,253,248,.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.category-card { padding: 24px; display: grid; gap: 8px; background: linear-gradient(135deg, var(--sky), rgba(255,253,248,.82)); }
.category-card svg { width: 32px; height: 32px; }
.category-card small, .muted { color: var(--muted); }

.product-card { overflow: hidden; transition: .2s ease; }
.product-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3.2;
  min-height: 220px;
  background: var(--sky);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

/* Reduce image size for related products section */
.related-products {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.related-products .product-card { border-radius: 18px; }
.related-products .product-image {
  min-height: 140px;
  aspect-ratio: 4 / 3.2;
  background: var(--white);
}
.related-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1024px) {
  .related-products { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .related-products .product-image { min-height: 160px; }
}
.soft-section .product-image {
  min-height: 200px;
}
.product-card:hover img { transform: scale(1.04); }
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  background: var(--rose);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}
.product-body { padding: 18px; display: grid; gap: 11px; }
.category-pill { width: fit-content; background: var(--lavender); border-radius: 999px; padding: 6px 10px; font-size: .82rem; font-weight: 900; }
.rating { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: #b49336; }
.rating small { color: var(--muted); }
.price-row, .product-price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price-row strong, .product-price strong { font-size: 1.45rem; color: #315f51; }
del { color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr 48px; gap: 10px; }
.card-actions form:first-child button { width: 100%; }

.wide-promo {
  position: relative;
  margin: 34px auto;
  min-height: 380px;
  max-width: 1240px;
  border-radius: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.wide-promo h2 { font-size: clamp(2rem, 4vw, 4rem); max-width: 780px; margin: 14px 0 22px; }
.two-lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mini-list { display: grid; gap: 12px; }
.mini-list a { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.mini-list img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.review-grid blockquote { margin: 0; padding: 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); color: #b49336; }
.review-grid p { color: var(--ink); }
.review-grid cite { color: var(--muted); font-style: normal; font-weight: 900; }

.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.category-hero, .simple-page { padding: 48px; background: linear-gradient(135deg, var(--mint), var(--white)); }
.category-hero { display:flex; align-items:center; justify-content:center; text-align:center; padding: 40px 20px; min-height: 320px; }
.category-hero > div { max-width: 980px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 34px; align-items: start; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 24px; align-items: start; }
.gallery-frame { background: rgba(255,253,248,.84); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.gallery-main { width: 100%; max-width: 620px; max-height: 460px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); background: var(--sky); margin: 0 auto; }
.product-3d-section { margin-top: 24px; display: grid; gap: 18px; }
.sketchfab-embed-wrapper, model-viewer { width: 100%; min-height: 430px; border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.sketchfab-embed-wrapper iframe { width: 100%; height: 100%; min-height: 430px; border: 0; }
.product-purchase-card { background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; position: sticky; top: 100px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product-purchase-card h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.product-highlights { display: grid; gap: 8px; margin-top: 4px; }
.product-highlights div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.buy-box { display: grid; gap: 12px; }
.quantity-stepper { display: inline-flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); width: fit-content; }
.quantity-stepper.compact { width: 100%; justify-content: center; padding: 8px 10px; }
.qty-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mint); color: #2e5046; font-size: 1.15rem; font-weight: 900; }
.quantity-stepper input { width: 54px; min-height: 40px; text-align: center; border: 0; padding: 0; background: transparent; }
.btn-full { width: 100%; }
.product-content-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 20px; }
.content-card { background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.product-copy { color: var(--muted); font-size: 1.02rem; }
.detail-list { margin: 16px 0 0; padding-left: 18px; color: var(--ink); display: grid; gap: 8px; }
.product-video video { width: 100%; border-radius: 20px; margin-top: 12px; }
.review-stack { display: grid; gap: 12px; }
.review-card { margin: 0; padding: 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.review-card p { margin: 8px 0; color: var(--ink); }
.reply { color: var(--muted); }

/* Pagination styles */.pagination { display:flex; gap:8px; justify-content:center; align-items:center; margin-top:20px; }
.pagination .page, .pagination a { padding:8px 12px; border-radius:8px; border:1px solid var(--line); background:var(--white); color:var(--ink); text-decoration:none; }
.pagination .current { font-weight:800; background:var(--mint); border-color:transparent; }
.pagination .page-prev, .pagination .page-next { font-weight:700; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { border: 2px solid transparent; background: transparent; padding: 0; border-radius: 12px; overflow: hidden; }
.thumbs img { width: 76px; height: 64px; object-fit: cover; }
.product-info { display: grid; gap: 16px; }
.product-info h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.lead { color: var(--muted); font-size: 1.1rem; }
.buy-box { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 46px;
  padding: 10px 13px;
  background: var(--white);
  color: var(--ink);
  outline-color: var(--mint);
}
textarea { resize: vertical; }
.external-actions, .share-row, .switches { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row button, .share-row a { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 12px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec-grid span { display: grid; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: var(--muted); }
.spec-grid strong { color: var(--ink); }
.product-description { background: rgba(255,253,248,.48); border-radius: 30px; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) 340px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 180px 96px;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,253,248,.98), rgba(242, 236, 226, .86));
  border: 1px solid rgba(170, 140, 110, .18);
  box-shadow: 0 24px 48px rgba(112, 93, 73, .12);
}
.cart-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
}
.cart-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.cart-item-copy a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  transition: color .2s ease;
}
.cart-item-copy a:hover {
  color: #3d6c59;
}
.cart-item-copy span {
  color: var(--muted);
  font-size: .95rem;
}
.cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.cart-item-meta strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(194,226,210,.34);
  color: #325d4d;
  font-size: 1rem;
  font-weight: 800;
}
.cart-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
}
.coupon-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(170, 140, 110, .14);
  color: var(--muted);
  font-weight: 700;
}
.coupon-field input {
  min-width: 140px;
  border: none;
  background: transparent;
  outline: none;
}
.checkout-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(242, 236, 226, .86));
  border: 1px solid rgba(170, 140, 110, .15);
  box-shadow: 0 22px 42px rgba(112, 93, 73, .1);
}
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.checkout-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}
.checkout-grid label.full {
  grid-column: 1 / -1;
}
.checkout-grid input,
.checkout-grid textarea {
  width: 100%;
}
.summary-card {
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242, 236, 226, .9));
  border: 1px solid rgba(170, 140, 110, .16);
  box-shadow: 0 24px 50px rgba(112, 93, 73, .12);
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}
.summary-card h2 {
  margin: 0;
  font-size: 1.35rem;
}
.summary-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}
.summary-card .total {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 900;
}
.summary-card a {
  width: 100%;
}
.empty-state, .map-box {
  background: var(--white);
  border: 1px dashed var(--wood);
  border-radius: 22px;
  padding: 34px;
  text-align: center;
}

.site-footer { margin-top: 50px; background: #efe7d7; padding: 46px 20px 24px; position: relative; }
.footer-grid { max-width: 1240px; margin: auto; display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 26px; }
.footer-logo { width: 170px; }
.site-footer a { display: block; margin: 7px 0; color: #59645f; }
.socials { display: flex; gap: 10px; }
.newsletter { display: grid; gap: 10px; }
.whatsapp-float, .scroll-top {
  position: fixed;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  box-shadow: var(--shadow);
  z-index: 40;
}
.whatsapp-float { bottom: 86px; background: var(--mint); }
.scroll-top { bottom: 24px; background: var(--vanilla); }
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  padding: 14px 18px;
  background: var(--mint);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
}
.toast.error { background: var(--rose); }
.error-page, .login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-page img { width: 190px; margin: auto; }

.admin-body { background: #f3f0e8; }
.admin-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: rgba(255,253,248,.82);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-brand img { width: 160px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; }
.admin-sidebar a:hover { background: var(--mint); }
.admin-main { padding: 30px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.stat-grid article { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.stat-grid strong { font-size: 2rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 20px; }
.admin-card, .form-panel { padding: 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
td small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 8px; justify-content: end; }
.row-actions form { display: inline; }
.row-actions button, .row-actions a { border: 0; background: var(--vanilla); border-radius: 12px; width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--ink); }
.status { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-weight: 900; background: var(--rose); }
.status.ok { background: var(--mint); }
.status.off { background: var(--rose); }
.admin-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 900; color: #51605b; }
.dropzone { padding: 28px; border: 2px dashed var(--wood); border-radius: 22px; background: var(--white); text-align: center; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.preview-grid div { position: relative; border-radius: 16px; overflow: hidden; background: var(--white); }
.preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.preview-grid button { position: absolute; right: 6px; bottom: 6px; border: 0; border-radius: 12px; background: var(--rose); padding: 6px; }
.integration-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.integration-card { padding: 22px; display: grid; gap: 12px; }
.integration-logo { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--sky); font-weight: 900; }
.integration-card form { display: flex; gap: 8px; flex-wrap: wrap; }
.fake-chart { height: 210px; display: flex; align-items: end; gap: 16px; padding-top: 24px; }
.fake-chart span { flex: 1; border-radius: 18px 18px 0 0; background: linear-gradient(var(--mint), var(--sky)); }
.login-card { width: min(440px, 100%); padding: 34px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); display: grid; gap: 16px; }
.login-card img { width: 180px; margin: auto; }

.account-page {
  display: grid;
  gap: 24px;
}

.account-auth {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 520px);
  gap: 28px;
  align-items: start;
}

.auth-copy {
  padding: 26px 0;
  display: grid;
  gap: 14px;
}

.auth-copy h1,
.account-top h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #2b3f3b;
}

.auth-copy p,
.account-top p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.account-card {
  padding: 24px;
  border: 1px solid rgba(49, 95, 81, .12);
  border-radius: 18px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 18px 45px rgba(44, 58, 52, .08);
  display: grid;
  gap: 16px;
}

.account-card h2 {
  color: #2b3f3b;
  font-size: 1.35rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-form-grid .full,
.account-card label:has(textarea) {
  grid-column: 1 / -1;
}

.account-inline-link,
.account-switch a {
  color: #315f51;
  font-weight: 900;
}

.account-inline-link {
  justify-self: end;
  margin-top: -6px;
  font-size: .94rem;
}

.account-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.account-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.account-summary,
.account-grid {
  display: grid;
  gap: 18px;
}

.account-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,253,248,.86);
  box-shadow: 0 12px 30px rgba(44, 58, 52, .06);
  display: grid;
  gap: 4px;
}

.account-summary strong {
  color: #315f51;
  font-family: Poppins, Nunito, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.account-summary span {
  color: var(--muted);
  font-weight: 800;
}

.account-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: start;
}

.account-wide {
  grid-column: span 1;
}

.account-profile-form {
  display: grid;
  gap: 16px;
}

.account-list,
.order-stack {
  display: grid;
  gap: 12px;
}

.account-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(49, 95, 81, .10);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}

.account-list.compact a {
  grid-template-columns: 50px minmax(0, 1fr);
}

.account-list img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.account-list.compact img {
  width: 50px;
  height: 50px;
}

.account-list strong,
.account-list small {
  display: block;
}

.account-list strong {
  overflow-wrap: anywhere;
}

.account-list small {
  color: var(--muted);
  font-weight: 800;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(49, 95, 81, .12);
  border-radius: 16px;
  background: rgba(247,244,235,.48);
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.order-head span {
  color: #315f51;
  font-weight: 900;
}

/* ===== HOME PAGE LAYOUT ===== */
.home {
  background: transparent;
  padding-bottom: 40px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-shell {
  padding: 26px 0 30px;
  background: linear-gradient(180deg, rgba(247,244,235,.95), rgba(247,244,235,.88)), url('/images/banner3.png');
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: center;
  padding: 26px 26px 28px;
  border-radius: 34px;
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(170,140,110,.16);
  box-shadow: 0 18px 50px rgba(112, 93, 73, .10);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 16px 0 18px;
  max-width: 620px;
  color: #2b3f3b;
}

.hero-copy p {
  max-width: 600px;
  font-size: 1rem;
  color: #5f675f;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(246,233,190,.85);
  color: #7a6636;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 22px;
}

.hero-highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-highlights div {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(170,140,110,.14);
  border-radius: 20px;
  padding: 14px 16px;
  min-width: 120px;
  box-shadow: 0 14px 28px rgba(112, 93, 73, .08);
}

.hero-highlights strong { display: block; font-size: 1.05rem; color: #36564a; }
.hero-highlights span { color: #576159; font-size: .92rem; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-image {
  position: relative;
  width: min(100%, 520px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(170,140,110,.14);
  box-shadow: 0 24px 58px rgba(112, 93, 73, .12);
  background: rgba(255,255,255,.6);
}

.hero-card-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.05) brightness(1.02);
}

.hero-labels {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}

.hero-labels span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  font-size: .9rem;
  color: #4f5d56;
  box-shadow: 0 10px 22px rgba(112,93,73,.08);
}

.printer-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--wood), #e9d0b2);
  overflow: hidden;
}
.printer-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background: rgba(255,253,248,.45);
  border: 1px solid rgba(255,255,255,.45);
}
.printer-head {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 120px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(140deg, #fbf6ee, #d8c4a3);
  box-shadow: inset 0 -8px 20px rgba(112,93,73,.16);
}
.printer-base {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 180px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 24px;
  background: linear-gradient(140deg, #fffcf6, #e3caab);
}
.shape {
  position: absolute;
  border-radius: 18px;
  background: var(--mint);
  opacity: .95;
}
.heart { width: 54px; height: 54px; left: 24%; bottom: 20%; transform: rotate(-12deg); }
.cube { width: 44px; height: 44px; right: 18%; top: 20%; background: var(--sky); }
.star { width: 42px; height: 42px; right: 24%; bottom: 14%; background: var(--rose); border-radius: 50%; }

.hero-card-small {
  padding: 14px 16px;
  font-weight: 800;
  color: #4f5d5a;
  background: rgba(255,253,248,.9);
  min-width: 112px;
  text-align: center;
}
.small-one { top: 10%; right: 8%; }
.small-two { top: 40%; left: 2%; }
.small-three { bottom: 16%; right: 4%; }
.small-four { bottom: 6%; left: 8%; }

.benefits-bar {
  margin: 10px 0 32px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.benefits-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255,253,248,.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(112, 93, 73, .06);
  color: #4f5d5a;
  font-weight: 700;
}

.products-section {
  padding: 24px 0 32px;
}

.soft-section {
  background: linear-gradient(180deg, rgba(194,226,210,.16), transparent 92%);
  padding-top: 10px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  color: #31423d;
  font-family: Poppins, Nunito, sans-serif;
}

.text-link {
  color: #5b6f6b;
  font-weight: 800;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(170,140,110,.16);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(112, 93, 73, .08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(112, 93, 73, .14);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / .9;
  background: linear-gradient(135deg, rgba(185,220,229,.25), rgba(245,199,199,.25));
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.product-card:hover .product-image img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(246,233,190,.95);
  color: #7a6636;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: .8rem;
}

.product-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 10px;
}

.category-pill {
  justify-self: start;
  background: rgba(211,202,223,.45);
  color: #675c72;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 800;
}

.product-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #2b3f3b;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating { color: #c6a337; }
.price-row del { color: #8f948d; }

.card-actions { display: grid; grid-template-columns: 1fr 46px; gap: 10px; }
.card-btn { min-height: 44px; }

.site-footer {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(233,220,198,.78), rgba(255,253,248,.96));
  border-top: 1px solid rgba(170,140,110,.14);
  padding: 42px 24px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr;
  gap: 24px;
}

.footer-logo { width: 140px; margin-bottom: 12px; }
.site-footer h3 { margin-bottom: 10px; color: #31423d; }
.site-footer a { display: block; margin: 7px 0; color: #5b6f6b; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,253,248,.9);
  border: 1px solid var(--line);
}
.newsletter input { margin-bottom: 8px; }
.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(170,140,110,.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #6a7672;
}
.payment-pill {
  background: rgba(194,226,210,.4);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.whatsapp-float, .scroll-top { position: fixed; right: 20px; border: 0; border-radius: 999px; display: grid; place-items: center; width: 52px; height: 52px; box-shadow: 0 14px 30px rgba(112,93,73,.16); }
.whatsapp-float { bottom: 90px; background: var(--mint); color: #2c4b41; }
.scroll-top { bottom: 24px; background: var(--vanilla); color: #6a5732; }

/* Responsivo */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    gap: 12px;
    justify-content: center;
  }
  .section-title { font-size: 1.2rem; }
  .products-section { padding: 24px 0; }
  .category-list { gap: 16px; }
}

@media (max-width: 620px) {
  .container { padding: 0 14px; }
  .hero-shell { padding: 18px 0 22px; }
  .hero-grid {
    padding: 22px 20px;
    border-radius: 24px;
  }
  .hero-copy h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }
  .hero-copy p { font-size: .98rem; }
  .hero-highlights div { flex: 1 1 120px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title { font-size: 1.1rem; margin-bottom: 16px; }
  .products-section { padding: 20px 0; }
  .category-strip { padding: 8px 0; top: 44px; }
  .category-list { gap: 12px; padding: 0 14px; }
  .cat-item { font-size: .85rem; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 140px auto; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .search, .header-actions { grid-column: 1 / -1; }
  .header-actions { justify-content: space-between; }
  .mega-menu { display: none; }
  .mega-menu.open { display: grid; }
  .mega-inner { flex-direction: column; max-height: 60vh; overflow: auto; }
  .hero { min-height: 720px; background-attachment: scroll; }
  .product-detail, .two-lanes, .footer-grid, .admin-layout, .admin-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .checkout-form { padding: 24px; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .admin-main { padding: 20px; }
}

@media (max-width: 620px) {
  .top-strip { font-size: .78rem; }
  .header-inner { padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
  .brand img { width: 124px; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; flex-wrap: nowrap; }
  .header-actions a {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .cart-link strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: .68rem;
  }
  .header-search { order: 3; flex: 0 0 100%; width: 100%; }
  .header-search .chip-button { display: none; }
  .search-wrap { max-width: none; width: 100%; }
  .search-panel { width: 100%; }
  .search-results a { grid-template-columns: 48px minmax(0, 1fr); }
  .search-results strong { grid-column: 2; }
  .header-actions a span { display: none; }
  .section, .page-shell { padding: 20px 14px; }
  .section-title, .admin-top { align-items: start; flex-direction: column; }
  .hero { min-height: 620px; padding: 50px 14px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-content { margin-left: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .spec-grid, .form-grid { grid-template-columns: 1fr; }
  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 10px 12px;
    padding: 14px;
  }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item-meta {
    justify-content: space-between;
    width: 100%;
  }
  .cart-item-meta strong {
    min-width: auto;
    width: auto;
    padding: 10px 12px;
  }
  .quantity-stepper { width: 100%; padding: 6px 10px; justify-content: space-between; }
  .qty-btn { width: 34px; height: 34px; font-size: 1rem; }
  .quantity-stepper input { width: 48px; min-height: 34px; }
  .quantity-stepper.compact { padding: 6px 10px; }
  .cart-actions { grid-template-columns: 1fr; gap: 10px; }
  .coupon-field { flex-direction: column; align-items: stretch; }
  .coupon-field input { min-width: auto; width: 100%; }
  .btn { min-height: 44px; font-size: .95rem; }
  .cart-actions .btn { width: 100%; }
  .checkout-form { padding: 18px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 12px; }
  .summary-card { padding: 20px; }
  .summary-card a { width: 100%; }
  .table-card { overflow-x: auto; }
  .admin-top .btn { width: 100%; }
}

/* ===== LAYOUT FIX PASS ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-header {
  background: rgba(255, 253, 248, .98);
}

.header-inner,
.header-menu,
.container,
.section,
.page-shell,
.footer-grid,
.footer-bottom {
  width: min(100%, 1280px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
}

.brand img {
  width: 96px;
}

.header-search,
.search-wrap,
.search-panel {
  min-width: 0;
}

.search-panel input {
  min-width: 0;
}

.header-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.header-menu {
  justify-content: center;
}

.hero-shell {
  padding: 28px 0 34px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
  text-wrap: balance;
}

.hero-copy p {
  max-width: 620px;
}

.hero-card-image {
  aspect-ratio: 1 / .9;
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-position: 78% center;
}

.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.product-grid,
.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  border-radius: 18px;
}

.card-actions {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.card-actions .btn {
  min-width: 0;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand img {
    width: 88px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions {
    gap: 6px;
    grid-column: auto;
    align-self: center;
  }

  .header-actions a,
  .header-actions button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .header-actions a span,
  .header-actions button span {
    display: none;
  }

  .customer-chip {
    max-width: none;
    border-radius: 999px;
  }

  .cart-link strong {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: .68rem;
    margin: 0;
  }

  .header-menu {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .header-menu::-webkit-scrollbar {
    display: none;
  }

  .menu-link {
    white-space: nowrap;
  }

  .mega-menu {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: center;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .account-auth,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-top {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .top-strip {
    gap: 6px;
    padding: 7px 12px;
    font-size: .76rem;
  }

  .top-strip span {
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 12px 14px;
    gap: 12px;
  }

  .brand {
    order: 1;
  }

  .brand img {
    width: 82px;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 4px;
    grid-column: auto;
    justify-content: flex-end;
    align-self: center;
  }

  .header-actions a,
  .header-actions button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .header-favorites-link {
    display: inline-flex;
  }

  .customer-chip {
    width: auto !important;
    max-width: min(38vw, 150px);
    padding: 0 10px;
  }

  .customer-chip span {
    display: inline;
    max-width: 96px;
    font-size: .78rem;
  }

  .logout-mini span {
    display: none;
  }

  .header-search {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  .header-search .chip-button {
    display: none;
  }

  .search-wrap {
    max-width: none;
    width: 100%;
  }

  .search-panel {
    width: 100%;
    padding: 11px 14px;
  }

  .header-menu {
    padding: 0 14px 12px;
  }

  .hero-shell {
    padding: 14px 0 24px;
  }

  .container {
    padding: 0 14px;
  }

  .hero-grid {
    padding: 22px 18px;
    border-radius: 18px;
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    line-height: 1.08;
    margin: 14px 0 14px;
  }

  .hero-copy p {
    font-size: .98rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: 14px;
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-highlights div {
    min-width: 0;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .hero-highlights strong {
    font-size: .95rem;
  }

  .hero-highlights span {
    font-size: .78rem;
  }

  .hero-card-image {
    border-radius: 18px;
    aspect-ratio: 1.2 / .8;
  }

  .hero-card-image img {
    object-position: 70% center;
  }

  .hero-labels {
    left: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .hero-labels span {
    padding: 7px 10px;
    font-size: .78rem;
  }

  .benefits-bar {
    margin: 8px 0 18px;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .benefits-grid div {
    padding: 12px;
    border-radius: 14px;
    font-size: .88rem;
  }

  .products-section {
    padding: 18px 0 26px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .section-heading h2,
  .section-title h1,
  .section-title h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .product-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 13px;
    gap: 8px;
  }

  .product-body h3 {
    font-size: .95rem;
  }

  .rating {
    gap: 4px;
    font-size: .82rem;
  }

  .price-row strong {
    font-size: 1rem;
  }

  .card-actions {
    grid-template-columns: 1fr 40px;
    gap: 8px;
  }

  .card-btn {
    min-height: 40px;
    padding: 9px 10px;
    font-size: .86rem;
  }

  .icon-button {
    width: 40px;
    min-height: 40px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .account-card {
    padding: 18px;
  }

  .account-form-grid,
  .account-summary {
    grid-template-columns: 1fr;
  }

  .account-inline-link {
    justify-self: start;
  }

  .account-list a {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .account-list img {
    width: 54px;
    height: 54px;
  }
}

/* ===== PRODUCT SALES EXPERIENCE - ACTIVE FINAL LAYER ===== */
.product-page { max-width: 1280px; padding-top: 34px; }
.product-page .breadcrumb { font-size: .92rem; font-weight: 800; color: #69716c; }
.product-page .breadcrumb a:hover { color: #315f51; }
.product-hero { grid-template-columns: minmax(0, 1.03fr) minmax(360px, .92fr); gap: 30px; align-items: start; }
.gallery-frame {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(49, 95, 81, .12);
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 246, 238, .94));
  box-shadow: 0 22px 55px rgba(44, 58, 52, .10);
}
.gallery-frame::before {
  content: "Produto Legu3D";
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 10px 26px rgba(44, 58, 52, .08);
  color: #3f5a51;
  font-size: .78rem;
  font-weight: 900;
}
.gallery-main { width: 100%; max-width: none; max-height: none; aspect-ratio: 1 / .82; border-radius: 14px; box-shadow: none; background: #eef4ef; }
.thumbs { gap: 12px; margin-top: 14px; padding: 3px 2px 6px; }
.thumbs button {
  flex: 0 0 auto;
  border: 1px solid rgba(49, 95, 81, .14);
  border-radius: 12px;
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 8px 18px rgba(44, 58, 52, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.thumbs button:hover { transform: translateY(-2px); border-color: rgba(49, 95, 81, .34); box-shadow: 0 12px 24px rgba(44, 58, 52, .12); }
.thumbs img { width: 78px; height: 68px; border-radius: 11px; }
.product-purchase-card {
  position: sticky;
  top: 108px;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(49, 95, 81, .14);
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(255, 250, 242, .94));
  box-shadow: 0 24px 62px rgba(44, 58, 52, .13);
}
.product-purchase-card::after { content: ""; height: 1px; margin: 2px 0; background: linear-gradient(90deg, transparent, rgba(49, 95, 81, .18), transparent); }
.product-purchase-card .pill-row { order: -4; }
.product-purchase-card h1 { order: -3; color: #243934; font-size: clamp(1.8rem, 2.7vw, 2.55rem); letter-spacing: 0; }
.product-purchase-card .lead { order: -2; margin: 0; color: #5d6762; font-size: 1rem; line-height: 1.7; }
.product-purchase-card .rating {
  order: -1;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(180, 147, 54, .16);
  border-radius: 12px;
  background: rgba(246, 233, 190, .28);
}
.product-purchase-card .rating span { color: #c49a24; letter-spacing: 1px; }
.product-purchase-card .rating small { color: #5c665f; font-weight: 800; }
.product-price { align-items: center; gap: 10px 12px; padding: 4px 0 2px; }
.product-price strong { color: #244f43; font-family: Poppins, Nunito, sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.product-price del { color: #8b918c; font-weight: 800; }
.product-price span { border-radius: 999px; padding: 7px 10px; background: rgba(216, 93, 93, .10); color: #a64242; font-size: .84rem; font-weight: 900; }
.buy-box { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 14px; border: 1px solid rgba(49, 95, 81, .12); border-radius: 16px; background: rgba(255, 255, 255, .68); }
.buy-box .quantity-stepper { width: 100%; height: 54px; justify-content: space-between; gap: 4px; padding: 6px; border-radius: 14px; border-color: rgba(49, 95, 81, .16); background: #fffdf8; }
.buy-box .qty-btn { width: 38px; height: 38px; border-radius: 12px; background: #edf7f1; color: #244f43; transition: transform .18s ease, background .18s ease; }
.buy-box .qty-btn:hover { transform: translateY(-1px); background: var(--mint); }
.buy-box .quantity-stepper input { width: 38px; color: #263d37; font-weight: 900; }
.buy-box .btn.primary, .btn.btn-primary.card-btn { min-height: 54px; border-radius: 14px; background: linear-gradient(135deg, #2f6b57, #5fa783); color: #fff; box-shadow: 0 16px 30px rgba(47, 107, 87, .24); }
.buy-box .btn.primary:hover, .btn.btn-primary.card-btn:hover { box-shadow: 0 20px 38px rgba(47, 107, 87, .30); }
.product-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.product-highlights div { align-items: flex-start; gap: 8px; min-height: 76px; padding: 13px 11px; border: 1px solid rgba(49, 95, 81, .11); border-radius: 14px; background: rgba(255, 253, 248, .72); color: #53615b; font-size: .88rem; line-height: 1.25; }
.product-highlights svg { flex: 0 0 auto; width: 20px; height: 20px; color: #315f51; }
.content-card { border-radius: 18px; border: 1px solid rgba(49, 95, 81, .12); background: rgba(255, 253, 248, .94); box-shadow: 0 18px 45px rgba(44, 58, 52, .08); }
.product-content-grid { gap: 24px; margin-top: 26px; }
.product-copy { color: #5f6964; line-height: 1.8; }
.detail-list { padding: 0; list-style: none; }
.detail-list li { padding: 12px 14px; border: 1px solid rgba(49, 95, 81, .10); border-radius: 12px; background: rgba(247, 244, 235, .58); }
.review-card { border-radius: 14px; background: #fffdf8; box-shadow: 0 10px 24px rgba(44, 58, 52, .06); }
.product-grid, .products-grid { gap: 22px; }
.product-card { border-radius: 18px; border: 1px solid rgba(49, 95, 81, .12); background: rgba(255, 253, 248, .96); box-shadow: 0 16px 40px rgba(44, 58, 52, .08); }
.product-card:hover { transform: translateY(-5px); border-color: rgba(49, 95, 81, .22); box-shadow: 0 24px 55px rgba(44, 58, 52, .13); }
.product-card .product-image { aspect-ratio: 1 / .88; background: linear-gradient(135deg, rgba(194, 226, 210, .24), rgba(185, 220, 229, .18)); }
.product-card .product-body { gap: 11px; padding: 17px; }
.product-card .category-pill, .product-purchase-card .category-pill { border: 1px solid rgba(103, 92, 114, .10); background: rgba(211, 202, 223, .42); }
.product-card .price-row strong { color: #244f43; font-family: Poppins, Nunito, sans-serif; font-size: 1.34rem; }
.card-actions { align-items: center; }
.card-actions .icon-button { width: 46px; height: 46px; border-radius: 14px; background: rgba(245, 199, 199, .52); }

@media (max-width: 1024px) {
  .product-hero, .product-content-grid { grid-template-columns: 1fr; }
  .product-purchase-card { position: static; }
  .related-products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  .product-page { padding-top: 22px; }
  .gallery-frame, .product-purchase-card, .content-card { border-radius: 16px; }
  .gallery-frame { padding: 12px; }
  .gallery-frame::before { left: 18px; top: 18px; font-size: .72rem; }
  .product-purchase-card { padding: 20px; }
  .product-price strong { font-size: 2.15rem; }
  .buy-box { grid-template-columns: 1fr; }
  .product-highlights { grid-template-columns: 1fr; }
  .product-highlights div { min-height: 0; align-items: center; }
  .related-products { grid-template-columns: 1fr; }
}

.buy-box .quantity-stepper.is-disabled {
  opacity: .62;
}

.buy-box .quantity-stepper.is-disabled .qty-btn,
.buy-box .btn.primary:disabled {
  cursor: not-allowed;
  transform: none;
}

.buy-box .btn.primary:disabled {
  background: linear-gradient(135deg, #8d9691, #b5bdb8);
  box-shadow: none;
}

.stock-note {
  margin: -4px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(216, 93, 93, .16);
  border-radius: 12px;
  background: rgba(216, 93, 93, .08);
  color: #9a4747;
  font-weight: 900;
  font-size: .9rem;
}
