:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#392e29;background:#f8f5f0}*{box-sizing:border-box}body{margin:0}header{background:#e9ddd0;border-bottom:1px solid #d7c7b7}header .bar{max-width:1050px;margin:auto;padding:16px 22px;display:flex;gap:16px;align-items:center;justify-content:space-between}header img{height:55px;width:55px;border-radius:12px;object-fit:cover}header .brand{display:flex;align-items:center;gap:13px}h1{font-size:1.15rem;margin:0}h2{font-size:1.2rem;margin:0 0 12px}p{line-height:1.5}.muted{color:#786b60}.small{font-size:.86rem}main{max-width:1050px;margin:30px auto;padding:0 22px}nav a{color:#583e30;font-weight:650;text-decoration:none}nav a:hover{text-decoration:underline}.card{background:white;border:1px solid #eadfd6;border-radius:18px;padding:22px;box-shadow:0 4px 22px #4631250b}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}.price{font-size:1.5rem;font-weight:750}.pill{display:inline-block;font-size:.8rem;border-radius:999px;padding:5px 10px;background:#eae1d8;color:#4a382c;font-weight:600}.empty-img{height:195px;background:linear-gradient(130deg,#eee3d9,#f8f5f0);border-radius:13px;display:flex;align-items:center;justify-content:center;color:#806c5d;text-align:center;padding:18px;margin-bottom:16px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:6px}label{font-size:.86rem;font-weight:650}input,select{width:100%;padding:11px 12px;border-radius:10px;border:1px solid #c9b9ac;background:#fff;font:inherit;color:inherit}input:focus,select:focus{outline:2px solid #ad8c75;outline-offset:1px}button,.button{border:0;border-radius:10px;padding:11px 17px;background:#59402f;color:#fff;font:inherit;cursor:pointer;font-weight:650;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#3e2a20}.secondary{background:#eee8e2;color:#47372f}.secondary:hover{background:#e1d4c9}.danger{background:#fff0ed;color:#9b3430}.danger:hover{background:#f7d4cd}button:disabled{opacity:.5;cursor:not-allowed}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.variant{border:1px solid #e6d9cb;background:#fcfaf7;border-radius:12px;padding:13px;margin:10px 0}.variant .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.variant .actions{margin-top:10px}.notice{border-left:4px solid #b99a73;background:#f1e8dc;padding:12px 15px;border-radius:5px;margin:16px 0}.status{padding:10px 0;min-height:30px;font-weight:600}footer{margin:32px auto;max-width:1050px;padding:0 22px 30px;font-size:.8rem;color:#86796d}@media(max-width:580px){main{margin:18px auto}header .bar{padding:12px 16px}.card{padding:16px}.variant .fields{grid-template-columns:1fr}header img{width:46px;height:46px}}

.product-img{width:100%;height:220px;object-fit:cover;border-radius:10px;background:#f0ebe6}

/* Vitrine pública */
.storefront {
  --store-paper: #faf9f6;
  --store-ink: #1e1e1e;
  --store-muted: #5f5147;
  --store-brown: #4c341f;
  --store-terracotta: #944931;
  --store-line: #e8e6e1;
  --store-serif: "Playfair Display", Georgia, serif;
  color: var(--store-ink);
  background: var(--store-paper);
  font: 400 0.9375rem/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom));
}

.storefront a:focus-visible,
.storefront select:focus-visible,
.store-filters input:focus-visible,
.store-filter-clear:focus-visible {
  outline: 2px solid var(--store-terracotta);
  outline-offset: 4px;
}

.store-shell {
  width: min(100% - 2rem, 90rem);
  margin-inline: auto;
}

.storefront main {
  max-width: none;
  margin-block: 1rem 3rem;
  padding: 0;
}

.store-skip {
  position: fixed;
  z-index: 3;
  top: 0.5rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  color: var(--store-ink);
  background: white;
  transform: translateY(-160%);
}

.store-skip:focus {
  transform: translateY(0);
}

.store-header {
  border-bottom: 1px solid var(--store-line);
  background: var(--store-paper);
}

.store-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-header-inner {
  min-height: 4.5rem;
  padding-block: 0.625rem;
}

.store-brand {
  display: inline-flex;
}

.store-brand img {
  display: block;
  width: 7.5rem;
  height: 3.125rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.store-nav {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.375rem 1rem calc(0.375rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--store-line);
  background: var(--store-paper);
}

.store-nav a {
  display: grid;
  min-height: 2.75rem;
  min-width: 5rem;
  place-items: center;
  color: var(--store-ink);
  font-size: 0.875rem;
}

.store-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 18rem;
  padding: clamp(1.25rem, 5vw, 4.5rem);
  border-radius: 0.5rem;
  background: linear-gradient(115deg, #f4ebe2 25%, #efe0d1 65%, #dfc3a9);
  color: var(--store-brown);
}

.store-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(12rem, 36vw, 33rem);
  aspect-ratio: 1;
  top: 12%;
  right: -27%;
  border: 1px solid #ac77594d;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem #f4ebe24d, 0 0 0 3rem #f4ebe24d;
  pointer-events: none;
}

.store-hero-copy {
  max-width: 32rem;
}

.store-hero h1,
.store-collection h2 {
  margin: 0;
  font-family: var(--store-serif);
  font-weight: 500;
  line-height: 1.12;
}

.store-hero h1 {
  font-size: clamp(2.375rem, 5.5vw, 4.5rem);
}

.store-hero em {
  color: var(--store-terracotta);
}

.store-hero p {
  max-width: 31ch;
  margin: 1rem 0 1.5rem;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.625rem 1rem;
  border-radius: 0.25rem;
  background: var(--store-ink);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.store-cta:hover {
  background: var(--store-brown);
}

.store-collection {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  scroll-margin-top: 1rem;
}

.store-collection-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--store-line);
}

.store-collection h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.store-collection-header p {
  margin: 0.5rem 0 0;
  color: var(--store-muted);
}

.storefront .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.storefront .card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--store-line);
  border-radius: 0.5rem;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.storefront .card h3 {
  margin: 0.5rem 0 0;
  font: 500 1.375rem/1.3 var(--store-serif);
}

.storefront .product-img {
  display: block;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.875rem;
  border-radius: 0.25rem;
}

.storefront .empty-img {
  height: auto;
  min-height: 4rem;
  margin-bottom: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.25rem;
  background: #f4f3f1;
  color: var(--store-muted);
  font-size: 0.8125rem;
}

.storefront .pill {
  border-radius: 0.25rem;
  background: #f3ebe4;
  color: var(--store-brown);
}

.storefront .muted {
  color: var(--store-muted);
}

.storefront .price {
  margin: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.storefront .card label {
  display: grid;
  gap: 0.375rem;
}

.storefront .card select {
  min-height: 44px;
  border-radius: 0.25rem;
}

.storefront .card select:disabled {
  background: #f4f3f1;
  color: var(--store-muted);
}

.storefront .status:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.store-footer {
  max-width: none;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--store-line);
  color: var(--store-muted);
}

.store-footer a {
  color: inherit;
}

@media (min-width: 48rem) {
  .storefront {
    padding-bottom: 0;
  }

  .store-shell {
    width: min(100% - 4rem, 90rem);
  }

  .store-nav {
    position: static;
    padding: 0;
    border: 0;
  }

  .store-hero {
    min-height: 23rem;
  }

  .store-hero::after {
    right: 4%;
  }
}

@media (min-width: 64rem) {
  .store-shell {
    width: min(100% - 8rem, 90rem);
  }
}


.store-filters {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--store-line);
  border-radius: 0.5rem;
  background: #fff;
}

.store-filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin-block: 0.5rem;
}

.store-filter-options label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.375rem;
  min-width: 0;
}

.store-filters input,
.store-filters select {
  min-width: 0;
  min-height: 44px;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.store-filter-clear {
  justify-self: start;
  min-height: 44px;
  padding: 0.5rem 0;
  background: transparent;
  color: var(--store-brown);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.store-filter-clear:hover {
  background: transparent;
  color: var(--store-terracotta);
}

.store-filters[hidden],
.store-filters [hidden] {
  display: none;
}

.storefront .status:not(:empty) {
  margin: 0.75rem 0;
  color: var(--store-muted);
  font-size: 0.875rem;
}

/* Ficha de produto */
.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-link:hover h3,
.product-card-link:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.product-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.product-detail {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-block: clamp(1.25rem, 4vw, 3rem);
}

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

.product-frame {
  display: grid;
  place-items: center;
  min-height: 8rem;
  background: #f4f3f1;
  border: 1px solid var(--store-line);
  border-radius: 0.25rem;
  overflow: hidden;
  color: var(--store-muted);
}

.product-frame img {
  display: block;
  width: 100%;
  max-height: 36rem;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-thumbs button {
  flex: 0 0 3.5rem;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid var(--store-line);
  border-radius: 0.25rem;
  background: white;
}

.product-thumbs button[aria-pressed="true"] {
  border-color: var(--store-ink);
}

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

.product-gallery-status {
  margin: 0.5rem 0 0;
  color: var(--store-muted);
  font-size: 0.8125rem;
}

.product-gallery-status:empty {
  margin: 0;
}

.product-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-info h1 {
  font: 500 clamp(2rem, 5vw, 3.5rem)/1.12 var(--store-serif);
}

.product-category {
  margin: 0 0 0.625rem;
  color: var(--store-terracotta);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-variants {
  min-width: 0;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

.product-variants legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-weight: 700;
}

.product-variants label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  min-height: 44px;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--store-line);
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
}

.product-variants label:has(:checked) {
  border-color: var(--store-ink);
  box-shadow: inset 0 0 0 1px var(--store-ink);
}

.product-variants input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--store-ink);
}

.product-variants label:has(:disabled) {
  background: #f4f3f1;
  color: var(--store-muted);
  cursor: default;
}

.product-stock {
  margin-inline-start: auto;
  color: #1b4d3e;
  font-size: 0.8125rem;
}

.product-variants input:disabled ~ .product-stock {
  color: var(--store-muted);
}

.product-thumbs button:focus-visible,
.product-variants input:focus-visible {
  outline: 2px solid var(--store-terracotta);
  outline-offset: 3px;
}

.product-action button {
  min-height: 48px;
  border-radius: 0.25rem;
  background: var(--store-ink);
}

.product-action p {
  color: var(--store-muted);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Sacola */
.store-nav .bag-link {
  display: inline-flex;
  justify-content: center;
  gap: 0.25rem;
}

.bag-page [hidden] {
  display: none;
}

.bag-heading,
.bag-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.bag-heading h1 {
  font: 500 clamp(2rem, 5vw, 3.5rem)/1.12 var(--store-serif);
}

.bag-layout,
.bag-items {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.bag-items {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.bag-item,
.bag-summary {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--store-line);
  border-radius: 0.5rem;
  background: #fff;
  overflow-wrap: anywhere;
}

.bag-item {
  display: grid;
  grid-template-columns: minmax(2.75rem, 4.5rem) minmax(0, 1fr);
  gap: 0.75rem;
}

.bag-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #f4f3f1;
  color: var(--store-muted);
  font-size: 0.6875rem;
  text-align: center;
}

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

.bag-item h2,
.bag-item p {
  margin: 0 0 0.375rem;
}

.bag-item h2 {
  font-size: 1rem;
}

.bag-unit-price {
  font-weight: 600;
}

.bag-issue {
  color: var(--store-terracotta);
  font-size: 0.875rem;
}

.bag-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bag-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  border-radius: 0.25rem;
  background: #f4f3f1;
  color: var(--store-ink);
}

.bag-controls button:not(:disabled):hover {
  background: #e8e6e1;
}

.bag-controls button:focus-visible,
.product-action button:focus-visible {
  outline: 2px solid var(--store-terracotta);
  outline-offset: 3px;
}

.bag-item-quantity {
  font-size: 0.875rem;
}

.bag-summary h2 {
  font: 500 1.5rem/1.2 var(--store-serif);
}

.bag-summary button {
  min-height: 48px;
  border-radius: 0.25rem;
  background: var(--store-ink);
}

@media (min-width: 48rem) {
  .bag-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .bag-items { margin-top: 0; }
}

.product-action button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: wait;
}

#produto-sacola-status:empty {
  margin: 0;
}

/* Finalização da solicitação */
.checkout-form,
.checkout-field,
.checkout-methods {
  display: grid;
  gap: 0.625rem;
  min-width: 0;
}

.checkout-form {
  margin-top: 1.25rem;
}

.checkout-field {
  gap: 0.375rem;
}

.checkout-methods {
  margin: 0.5rem 0;
  padding: 0;
  border: 0;
}

.checkout-methods legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.checkout-methods label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.625rem;
  border: 1px solid var(--store-line);
  border-radius: 0.25rem;
  cursor: pointer;
}

.checkout-methods label:has(:checked) {
  border-color: var(--store-ink);
  background: #f4f3f1;
}

.checkout-methods input {
  flex: 0 0 1rem;
  width: 1rem;
  margin: 0;
  accent-color: var(--store-ink);
}

.checkout-form input:not([type="radio"]),
.checkout-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem;
  border: 1px solid #c9b9ac;
  border-radius: 0.25rem;
  background: #faf9f6;
  color: var(--store-ink);
  font: inherit;
  font-size: 1rem;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form :focus-visible,
.checkout-review button:focus-visible {
  outline: 2px solid var(--store-terracotta);
  outline-offset: 3px;
}

.checkout-form button,
.checkout-review button {
  width: 100%;
}

.bag-summary button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: wait;
}

.checkout-review {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--store-line);
}

.checkout-review h3 {
  margin: 0;
  font: 500 1.25rem/1.2 var(--store-serif);
}

.checkout-message {
  padding: 0.75rem;
  border-radius: 0.25rem;
  background: #f4f3f1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Navegação e recuperação de falhas */
html:has(.storefront) {
  scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

.store-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  padding-inline: 0.5rem;
}

.store-nav a {
  min-width: 0;
  align-content: center;
  overflow-wrap: anywhere;
  text-align: center;
}

.store-nav .bag-link {
  flex-wrap: wrap;
  align-items: center;
}

.store-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.store-return {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-bottom: 0.5rem;
}

.store-return a {
  color: var(--store-brown);
  overflow-wrap: anywhere;
}

.store-retry {
  min-height: 44px;
  margin-bottom: 0.75rem;
}

.store-retry.secondary {
  background: #eee8e2;
  color: var(--store-brown);
}

.store-retry.secondary:hover {
  background: #e1d4c9;
}

.storefront .store-retry[hidden],
.storefront .store-return [hidden] {
  display: none;
}

.storefront :is(button, [tabindex="-1"]):focus-visible {
  outline: 2px solid var(--store-terracotta);
  outline-offset: 3px;
}

.storefront select,
.bag-summary button,
.bag-controls button {
  max-width: 100%;
}

.bag-page .bag-controls > * {
  min-width: min(44px, 100%);
}

@media (min-width: 48rem) {
  html:has(.storefront) {
    scroll-padding-bottom: 0;
  }

  .store-nav {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    padding-inline: 0;
  }
}

/* Contatos e retirada */
.store-footer {
  padding-block: 0.875rem;
  background: #f4f0ec;
}

.store-contact-grid {
  display: grid;
  gap: 0.625rem;
  padding-block: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.store-contact-grid section {
  min-width: 0;
}

.store-contact-grid section + section {
  padding-top: 0.625rem;
  border-top: 1px solid var(--store-line);
}

.store-contact-grid h2 {
  margin: 0 0 0.25rem;
  color: var(--store-brown);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-contact-grid .store-contact-place h2 {
  color: var(--store-ink);
  font: 500 1.25rem/1.2 var(--store-serif);
}

.store-contact-grid address {
  font-style: normal;
}

.store-footer a {
  text-underline-offset: 0.2em;
}

.store-contact-grid address a,
.store-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

.store-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.125rem;
}

.store-contact-links a {
  font-weight: 600;
  color: var(--store-brown);
}

.store-footer-admin {
  margin-top: 0.25rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--store-line);
  font-size: 0.8125rem;
}

.store-footer-admin a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
  min-height: 44px;
}


.store-hours {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pickup-info {
  padding: 0.75rem;
  border-inline-start: 2px solid var(--store-terracotta);
  background: #f4f3f1;
  color: var(--store-muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.pickup-info p {
  margin: 0.375rem 0;
}

.pickup-info a {
  color: var(--store-brown);
}

@media (min-width: 48rem) {
  .store-contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(1rem, 3vw, 2rem);
    padding-block: 0.5rem;
  }

  .store-contact-grid section + section {
    padding-top: 0;
    padding-inline-start: clamp(1rem, 2.5vw, 1.75rem);
    border-top: 0;
    border-inline-start: 1px solid var(--store-line);
  }

  .store-footer-admin {
    text-align: end;
  }
}

/* Ajustes editoriais para telas estreitas */
.card-availability,
.card-variant-summary {
  display: none;
}

@media (max-width: 47.99rem) {
  .storefront {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  html:has(.storefront) {
    scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .store-shell {
    width: auto;
    margin-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .store-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .store-header-inner {
    min-height: 3.75rem;
    padding-block: 0.5rem;
  }

  .store-brand {
    align-items: center;
    min-height: 44px;
    max-width: 100%;
  }

  .store-brand img {
    width: min(9rem, 100%);
    height: auto;
    aspect-ratio: 2.65;
    border-radius: 0.1875rem;
  }

  .storefront main {
    margin-block: 0.75rem 2.25rem;
  }

  .store-nav {
    gap: 0.25rem;
    padding-inline: max(0.5rem, env(safe-area-inset-left, 0px)) max(0.5rem, env(safe-area-inset-right, 0px));
    background: #fffdf9;
  }

  .store-nav a {
    min-height: 44px;
    padding: 0.375rem 0.1875rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .store-nav .bag-link span {
    color: var(--store-terracotta);
    font-variant-numeric: tabular-nums;
  }

  .store-nav a[aria-current="page"],
  #inicio:not(:has(#colecoes:target)) .store-nav a[href="#inicio"],
  #inicio:has(#colecoes:target) .store-nav a[data-store-collections],
  .storefront:has(.product-detail) .store-nav a[data-store-collections] {
    background: #f3ebe4;
    color: var(--store-brown);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .store-hero {
    min-height: 0;
    padding: clamp(1.125rem, 5vw, 2.5rem);
    background: linear-gradient(125deg, #f4ebe2 12%, #eee0d2 75%, #e5cdb7);
  }

  .store-hero::after {
    top: 15%;
    right: -34%;
    box-shadow: 0 0 0 1.25rem #f4ebe255;
  }

  .store-hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 8.5vw, 3.125rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .store-hero em {
    display: block;
  }

  .store-hero p {
    margin: 0.625rem 0 0.875rem;
    line-height: 1.5;
  }

  .store-cta {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .store-collection {
    margin-top: 1.5rem;
  }

  .store-collection-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
  }

  .store-collection-header p {
    margin-top: 0.25rem;
  }

  .store-filters {
    padding: 0.75rem;
  }

  .storefront .status:not(:empty) {
    min-height: 0;
    margin: 0.625rem 0;
    padding: 0.25rem 0;
  }

  .storefront .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.75rem), 1fr));
    gap: 0.75rem;
  }

  .storefront .card:only-child {
    width: 100%;
    max-width: 28rem;
  }

  .storefront .card {
    padding: 0.625rem;
    border-radius: 0.375rem;
  }

  .storefront .product-img {
    aspect-ratio: 4 / 5;
    margin-bottom: 0.625rem;
    background: #eee9e1;
  }

  .storefront .empty-img {
    margin-bottom: 0.625rem;
  }

  .product-card-link {
    min-height: 44px;
  }

  .storefront .card h3 {
    margin-top: 0.375rem;
    font-size: clamp(1.125rem, 4.8vw, 1.375rem);
    line-height: 1.22;
  }

  .storefront .card .small {
    margin: 0.375rem 0;
    line-height: 1.45;
  }

  .storefront .card .price {
    margin: 0.375rem 0;
    color: var(--store-ink);
  }

  .storefront .card .card-stock {
    display: inline-block;
    margin-block: 0.125rem 0.5rem;
  }

  .storefront .card .card-availability {
    background: #eaf1eb;
    color: #1b4d3e;
  }

  .card-variant-summary {
    display: block;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .storefront .card select {
    padding-inline: 0.5rem;
    font-size: 1rem;
  }

  .store-return {
    margin-bottom: 0;
  }

  .product-detail {
    gap: 1rem;
    margin-block: 0.375rem 1.75rem;
  }

  .product-frame {
    background: #f0ebe5;
  }

  .product-frame img {
    max-height: min(108vw, 34rem);
    aspect-ratio: 4 / 5;
  }

  .product-thumbs {
    gap: 0.375rem;
    margin-top: 0.5rem;
  }

  .product-thumbs button {
    flex-basis: 3rem;
    min-width: 44px;
    min-height: 44px;
  }

  .product-info h1 {
    font-size: clamp(1.875rem, 7.5vw, 2.75rem);
  }

  .product-info .price {
    margin-block: 0.375rem;
    font-size: 1.375rem;
  }

  .product-info .muted {
    margin-block: 0.5rem 0.875rem;
  }

  .product-variants {
    margin-block: 1rem 0.75rem;
  }

  .product-variants label {
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .product-variants label:has(:checked) {
    background: #f5eee7;
  }

  .product-action button {
    width: 100%;
    min-height: 48px;
  }

  .product-action button:not(.secondary):not(:disabled) {
    background: var(--store-brown);
  }

  .bag-heading h1 {
    font-size: clamp(1.875rem, 8vw, 2.625rem);
  }

  .bag-layout,
  .bag-items {
    gap: 0.75rem;
  }

  .bag-items {
    margin-top: 0.625rem;
  }

  .bag-items:empty {
    display: none;
  }

  .bag-item,
  .bag-summary {
    padding: 0.75rem;
  }

  .bag-item {
    grid-template-columns: minmax(2.75rem, 3.75rem) minmax(0, 1fr);
    gap: 0.625rem;
  }

  .bag-item h2 {
    line-height: 1.3;
  }

  .bag-item-info {
    min-width: 0;
  }

  .bag-controls {
    gap: 0.375rem;
    margin-top: 0.5rem;
  }

  .bag-controls .bag-remove {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .bag-total {
    margin-block: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.25rem;
    background: #f4f3f1;
  }

  .bag-total strong {
    color: var(--store-ink);
  }

  .checkout-form {
    margin-top: 0.875rem;
  }

  .checkout-form label,
  .checkout-methods legend {
    font-size: 0.9375rem;
  }

  .checkout-methods label {
    min-height: 48px;
  }

  .checkout-methods label:has(:checked) {
    background: #f5eee7;
  }

}

@media (max-width: 19rem), (max-width: 47.99rem) and (max-height: 27rem) {
  html:has(.storefront) {
    scroll-padding-bottom: 0;
  }

  .storefront {
    padding-bottom: 0;
  }

  .store-nav {
    position: static;
    width: 100%;
    padding: 0.25rem 0 0;
  }
}

@media (max-width: 47.99rem) and (prefers-reduced-motion: no-preference) {
  .store-nav a,
  .store-cta,
  .product-action button,
  .checkout-form button {
    transition: background-color 140ms ease, color 140ms ease;
  }
}

/* Galeria e cartões do catálogo */
.storefront .card {
  padding: 0;
}

.product-card-link {
  display: grid;
  gap: 0.375rem;
  padding: 0.625rem;
  min-width: 0;
}

.card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #f4f0eb;
}

.storefront .card-media .product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  visibility: hidden;
  background: transparent;
}

.storefront .card-media .product-img.is-loaded {
  visibility: visible;
}

.card-photo-placeholder {
  padding: 0.75rem;
  color: var(--store-muted);
  text-align: center;
}

.card-category {
  font-size: 0.8125rem;
}

.storefront .card .product-card-link :is(h3, .price, .card-stock, .card-variant-summary) {
  margin: 0;
}

.storefront .card .card-stock {
  display: inline-block;
  justify-self: start;
}

.storefront .card .card-availability {
  background: #eaf1eb;
  color: #1b4d3e;
}

.storefront .card .card-variant-summary {
  display: block;
  font-size: 0.875rem;
}

.product-frame.has-photos {
  aspect-ratio: 4 / 5;
  touch-action: pan-y pinch-zoom;
}

.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-photo-actions,
.product-photo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-photo-actions {
  justify-content: space-between;
  margin-top: 0.5rem;
}

.product-photo-actions:not(:has(> button:not([hidden]), > .product-photo-steps:not([hidden]))) {
  margin-top: 0;
}

.product-photo-actions button,
.product-photo-dialog button {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background: #f3ebe4;
  color: var(--store-brown);
}

.product-photo-actions button[aria-disabled="true"] {
  color: var(--store-muted);
  opacity: 0.6;
}

.product-photo-dialog {
  width: min(95vw, 64rem);
  max-height: calc(100dvh - 2rem);
  padding: 0.75rem;
  border: 1px solid var(--store-line);
  border-radius: 0.375rem;
  background: var(--store-paper);
}

.product-photo-dialog::backdrop {
  background: #241b14d9;
}

.product-photo-dialog form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.product-photo-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  height: auto;
  margin: auto;
}

/* Vitrine */
.storefront .store-shell {
  max-width: 76rem;
}

#inicio main {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.storefront #produtos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.storefront #produtos > .card {
  display: flex;
  width: auto;
}

.storefront #produtos > .card:only-child {
  max-width: none;
}

.product-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
}

.card-media {
  flex: none;
  width: 100%;
  background: #f4f0ec;
}

.storefront .card-media .product-img {
  transform: scale(var(--cover-scale, 1));
  transform-origin: var(--cover-origin, center);
}

/* Perfis da capa carregada. Só a vitrine recebe esses ajustes.
   Arquivos novos ou substitutos preservam o enquadramento por padrão. */
.card-media [data-cover="verano.jpeg"] {
  --cover-scale: 1.11;
  --cover-origin: center bottom;
}

.card-media [data-cover="calca-noruega-01-card.webp"] {
  --cover-scale: 1.52;
}

.card-media [data-cover="saia-cannes-longa-01-card.webp"] {
  --cover-scale: 1.58;
}

.card-media [data-cover="saia-nice-01-card.webp"] {
  --cover-scale: 1.8;
  --cover-origin: 54% center;
}

.card-media [data-cover="biquini-cereja-01-card.webp"] {
  --cover-scale: 1.08;
  --cover-origin: center 46%;
}

.card-media [data-cover="calca-rivieira-01-card.webp"],
.card-media [data-cover="tri-junto-celeste-01-card.webp"] {
  --cover-scale: 1.06;
  --cover-origin: center 78%;
}

.card-info,
.card-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding-inline: 0.125rem;
}

.card-info {
  flex: 1;
}

.card-category {
  line-height: 1.35;
}

.storefront .card .card-info h3 {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.23;
  text-wrap: pretty;
}

.card-details {
  padding-bottom: 0.125rem;
}

.storefront .card .card-details .price {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  font-variant-numeric: tabular-nums;
}

.storefront .card .card-details .card-stock {
  max-width: 100%;
  padding: 0.1875rem 0.375rem;
  line-height: 1.35;
}

@media (max-width: 47.99rem) {
  .storefront #produtos > .card:only-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 23rem;
  }
}

@media (min-width: 48rem) {
  .storefront #produtos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .product-card-link {
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .card-details {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem 0.625rem;
  }
}

@media (min-width: 64rem) {
  .storefront #produtos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
