:root {
  color-scheme: light;
  --page: #eef3f8;
  --ink: #0f2742;
  --muted: #60738a;
  --panel: #ffffff;
  --line: #d8e3ef;
  --line-strong: #bad0e5;
  --blue: #0e64ad;
  --teal: #0a9a92;
  --green: #17a86b;
  --soft: #f4f8fc;
  --warning: #ffbf4c;
}

.store-shell [hidden] {display:none!important;}
.store-banner.is-placeholder {background:radial-gradient(ellipse at 90% 10%,#259f9b66,transparent 65%),linear-gradient(125deg,#112c48,#125c69);border-color:#163e57;}
.store-banner-copy {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(24px,5vw,64px);color:white;background:linear-gradient(90deg,#071b30bf,transparent);}
.store-banner-copy h2 {font-size:clamp(26px,4vw,48px);line-height:1.12;margin:0;max-width:850px;overflow-wrap:anywhere;}
.store-banner-copy p {font-size:clamp(15px,2vw,20px);line-height:1.5;max-width:680px;margin:18px 0 0;}
.store-info-page {background:white;border:1px solid var(--line);border-radius:0 0 14px 14px;padding:clamp(22px,5vw,60px);min-height:300px;}
.store-info-page h1 {font-size:clamp(24px,4vw,36px);overflow-wrap:anywhere;}
.store-page-content {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;max-width:850px;}
.store-back {color:var(--blue);text-decoration:underline;}
.store-footer {background:#102b3b;color:#f0f7fb;border-top:4px solid #27c8b0;padding:40px 32px 0;margin-top:40px;border-radius:14px;overflow:hidden;}
.store-footer-grid {display:grid;grid-template-columns:1.3fr .8fr 1fr 1.2fr;gap:32px;padding-bottom:32px;}
.store-footer-grid > * {min-width:0;}
.store-footer-identity {display:flex;align-items:center;gap:12px;}
.store-footer-logo {display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;background:#ecfaf7;color:#087c73;border-radius:12px;font-weight:900;overflow:hidden;}
.store-footer-logo img {width:100%;height:100%;object-fit:contain;padding:4px;}
.store-footer-eyebrow {display:block;font-size:10px;letter-spacing:1.7px;color:#87e3d3;margin-bottom:5px;font-weight:700;}
.store-footer-brand strong {font-size:20px;line-height:1.25;overflow-wrap:anywhere;}
.store-footer h2 {font-size:15px;margin:0 0 18px;color:#fff;}
.store-footer p {font-size:13px;line-height:1.75;color:#c6d7e2;margin:14px 0 0;}
.store-footer nav {display:flex;flex-direction:column;align-items:flex-start;gap:13px;}
.store-footer nav h2 {margin-bottom:5px;}
.store-footer a {font-size:13px;color:#e3eef5;line-height:1.55;overflow-wrap:anywhere;}
.store-footer a:hover,.store-footer a[aria-current] {color:#8eebd9;text-decoration:underline;text-underline-offset:4px;}
.store-footer a:focus-visible {outline:2px solid #8eebd9;outline-offset:5px;border-radius:3px;}
.store-footer .store-footer-whatsapp {display:flex;align-items:center;justify-content:space-between;gap:10px;background:#b3f2df;color:#073e35;font-weight:800;padding:12px 14px;border-radius:8px;margin-top:18px;text-decoration:none;}
.store-footer .store-footer-whatsapp:hover {background:#d2f9ed;color:#073e35;}
.store-footer-phone {display:block;color:#c6d7e2;font-size:12px;margin-top:10px;}
.store-footer-bottom {display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 20px;border-top:1px solid #ffffff24;padding:20px 0;font-size:12px;color:#b8cdda;}
.store-footer-bottom a {font-size:12px;}
@media(max-width:1000px){.store-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;}}
@media(max-width:640px){.store-footer{padding:28px 22px 0;margin-top:28px;}.store-footer-grid{grid-template-columns:1fr;gap:28px;}.store-footer-bottom{flex-direction:column;}.store-banner-copy{padding:24px;}}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0c1b34 0 48px, var(--page) 48px 100%);
  color: var(--ink);
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.store-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 28px;
}

.store-banner {
  position: relative;
  height: var(--banner-desktop-height, 320px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #dfeaf4;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 39, 66, 0.08);
}

.store-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--panel);
  box-shadow: 0 14px 35px rgba(15, 39, 66, 0.08);
}

.store-banner:not([hidden]) + .store-header {
  border-radius: 0;
}

.store-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.store-logo {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #e8f5f1;
  color: var(--teal);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
}

.store-logo.has-image {
  background: #fff;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.store-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.store-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.store-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #dff7ea;
  color: #087343;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.store-whatsapp .shop-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.store-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.store-filters,
.store-content {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(15, 39, 66, 0.08);
}

.store-filters {
  position: sticky;
  top: 12px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.filter-head strong {
  font-size: 14px;
}

.filter-head button,
.price-presets button {
  min-height: 28px;
  border: 1px solid #cfe1f4;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.filter-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #edf2f7;
}

.filter-block > span {
  color: #193a5e;
  font-size: 12px;
  font-weight: 900;
}

.store-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.store-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #49667f;
  stroke-width: 2;
  stroke-linecap: round;
}

.store-search input,
.filter-block select,
.price-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  outline: 0;
}

.store-search input {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.filter-block select,
.price-row input {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-row label {
  display: grid;
  gap: 4px;
}

.price-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-range {
  width: 100%;
  accent-color: var(--green);
}

.price-presets {
  display: flex;
  gap: 8px;
}

.price-presets button {
  flex: 1;
  background: #fff;
  color: #173a5f;
}

.store-content {
  min-width: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.store-toolbar strong {
  font-size: 13px;
}

.store-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-toolbar select,
.currency-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.store-toolbar select {
  min-width: 136px;
  padding: 0 10px;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
}

.category-strip button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #244b70;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.category-strip button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e7f0fa;
  color: var(--blue);
  font-size: 11px;
}

.category-strip button.is-active {
  border-color: rgba(10, 154, 146, 0.45);
  background: #e8f8f5;
  color: #087b75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 39, 66, 0.06);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  background: #edf5fb;
  color: var(--teal);
  font-size: 32px;
  font-weight: 900;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px 7px;
}

.product-body h2 {
  margin: 0;
  min-height: 32px;
  color: #073a73;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
}

.product-body p {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #47637d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product-category-pill {
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 7px;
  background: #e8f8f2;
  color: #087343;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta,
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-meta span,
.product-features li {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 7px;
  background: #eff6ff;
  color: #245276;
  font-size: 10px;
  font-weight: 900;
}

.product-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-features li {
  background: #edf9f3;
  color: #087343;
}

.product-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px 10px;
  border-top: 1px solid #edf2f7;
}

.product-footer strong {
  display: block;
  color: #008069;
  font-size: 14px;
}

.product-footer small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.ghost-button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #b7d7ef;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  flex: 1;
}

.ghost-button {
  color: var(--blue);
  background: #f3f9ff;
}

.ghost-button.is-disabled {
  border-color: #d7e4f1;
  color: #8aa0b4;
  background: #f7fafc;
}

.buy-button {
  border-color: #a9e7ca;
  color: #087343;
  background: #eafaf2;
}

.buy-button.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #f3f5f7;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 27, 52, 0.62);
}

.product-modal[hidden] {
  display: none;
}

.product-modal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 34px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(8, 21, 38, 0.28);
  overflow: hidden;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d6e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.product-modal-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  max-height: inherit;
}

.product-modal-image {
  min-height: 100%;
  background: #edf5fb;
}

.product-modal-image img,
.product-modal-image > span {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.product-modal-image > span {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 42px;
  font-weight: 900;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(760px, calc(100vh - 34px));
  overflow-y: auto;
  padding: 22px;
}

.product-modal-content h2 {
  margin: 0;
  color: #073a73;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.product-modal-content p {
  margin: 0;
  color: #334d66;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.product-modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-modal-features li {
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf9f3;
  color: #087343;
  font-size: 12px;
  font-weight: 900;
}

.product-modal-commerce {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.product-modal-commerce strong {
  color: #008069;
  font-size: 22px;
}

.product-modal-commerce small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.store-empty {
  margin: 18px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.product-card.is-loading {
  min-height: 305px;
  background: linear-gradient(110deg, #f2f6fa 8%, #e5eef7 18%, #f2f6fa 33%);
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}

@keyframes loading {
  to {
    background-position-x: -200%;
  }
}

.store-filter-toggle,.store-filter-apply {display:none;}
@media (max-width: 900px) {
  .store-filter-toggle,.store-filter-apply {display:block;min-height:44px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#073a73;font-weight:800;padding:12px 16px;cursor:pointer;}
  .store-filter-toggle {text-align:left;margin-top:12px;}
  .store-filter-toggle::after {content:"＋";float:right;}
  .store-filter-toggle[aria-expanded="true"]::after {content:"−";}
  .store-filter-apply {margin:12px;width:calc(100% - 24px);background:#087d70;color:white;}
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-filters {
    position: static;
    display:none;
  }
  .store-filters.is-open {display:block;}
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #0c1b34 0 34px, var(--page) 34px 100%);
  }

  .store-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 14px;
  }

  .store-header,
  .store-toolbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .store-whatsapp,
  .store-toolbar-actions,
  .store-toolbar select {
    width: 100%;
  }

  .store-banner {
    height: var(--banner-mobile-height, 220px);
  }

  .product-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap:10px;
    padding:10px;
  }
  .product-card {min-width:0;}
  .product-media {aspect-ratio:1 / 1;}
  .product-media img {object-fit:contain;}
  .product-body h2,.product-footer strong {overflow-wrap:anywhere;}
  .product-actions {flex-direction:column;}
  .store-toolbar {flex-direction:row;align-items:center;gap:8px;padding:12px;}
  .store-toolbar-actions {width:auto;min-width:0;}
  .store-toolbar select {width:auto;max-width:145px;}
  .store-toolbar .currency-pill {display:none;}

  .product-modal-body {
    grid-template-columns: 1fr;
  }

  .product-modal-image img,
  .product-modal-image > span {
    min-height: 190px;
    max-height: 230px;
  }

  .product-modal-content {
    padding: 16px;
  }

  .product-modal-actions {
    flex-direction: column;
  }
}
