/*
 * Storefront layer: deliberately image-free so product imagery and brand
 * details can be introduced later without changing the purchase flow.
 */
.topbar {
  height: 32px;
}

.main-nav {
  height: 78px;
}

.shop-intro {
  padding: 46px 10vw 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  background: #f3efe5;
  border-bottom: 1px solid #d9d8cc;
}

.shop-intro h1 {
  font: 600 clamp(34px, 4.2vw, 58px)/1 var(--serif);
  letter-spacing: -.06em;
  margin: 0;
}

.shop-steps {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 510px;
}

.shop-steps p {
  margin: 0;
  color: #536258;
  font: 11px var(--mono);
  white-space: nowrap;
}

.shop-steps b {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}

.category-row {
  padding: 26px 5.5vw;
  gap: 9px;
  background: var(--paper);
}

.category-tile {
  position: relative;
  min-height: 96px;
  padding: 14px 16px;
  overflow: hidden;
  isolation: isolate;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  font-size: 19px;
  margin: auto 0 6px;
}

.category-tile::after {
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 16px;
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .14;
  transition: transform .25s ease, opacity .25s ease;
}

.category-tile:hover::after,
.category-tile.selected::after {
  opacity: .34;
  transform: scale(1.45);
}

.tile-icon {
  position: absolute;
  top: 26px;
  right: 30px;
  color: var(--green);
  font: 26px/1 var(--serif);
}

.tile-arrow {
  position: relative;
  z-index: 1;
  align-self: end;
  font-size: 20px;
}

.category-tile.selected .tile-icon {
  color: #e5c869;
}

.category-antepastos .tile-icon { font-size: 33px; }
.category-geleias .tile-icon { color: #964e5b; }
.category-massas .tile-icon { font-size: 31px; }
.category-licores .tile-icon { font-size: 31px; }

.catalog-section {
  padding: 48px 10vw 62px;
}

.catalog-meta {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.catalog-count {
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #bdc8ba;
  color: var(--green);
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-help {
  max-width: 260px;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-photo {
  height: 226px;
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, .74) 0 3px, transparent 3.5px),
    linear-gradient(135deg, #ece7db, #e2e5d9);
  isolation: isolate;
}

.generic-package {
  position: relative;
  width: 124px;
  height: 170px;
  margin-top: 18px;
}

.package-halo {
  position: absolute;
  z-index: -1;
  top: 21px;
  left: 4px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(255, 253, 244, .5);
  border-radius: 50%;
  opacity: .85;
}

.package-cap {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 20px;
  margin: auto;
  border: 1px solid #c8b99e;
  border-radius: 7px 7px 3px 3px;
  background: repeating-linear-gradient(90deg, #f8efdc 0 5px, #ded0b8 5px 8px);
}

.package-label {
  display: flex;
  position: relative;
  width: 124px;
  height: 123px;
  margin-top: -1px;
  border: 5px solid rgba(67, 58, 43, .16);
  border-radius: 12px 12px 25px 25px;
  box-shadow: 8px 10px 12px rgba(72, 59, 39, .18);
  color: #fffdf4;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.package-label span,
.package-label i {
  font: 7px var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-style: normal;
}

.package-label b {
  margin: 3px 0 12px;
  font: 600 20px/.85 var(--serif);
  letter-spacing: -.06em;
}

.package-shadow {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 114px;
  height: 11px;
  border-radius: 50%;
  background: rgba(81, 67, 47, .16);
}

.product-orbit {
  position: absolute;
  z-index: -1;
  right: -33px;
  bottom: -44px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(49, 91, 73, .12);
  border-radius: 50%;
}

.product-card {
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgba(49, 91, 73, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  border-color: #cbd1c4;
  box-shadow: 0 13px 25px rgba(48, 67, 51, .11);
  transform: translateY(-4px);
}

.product-card:hover .generic-package {
  transform: translateY(-5px) rotate(-2deg);
}

.generic-package {
  transition: transform .25s ease;
}

.package-pasta {
  height: 150px;
  margin-top: 28px;
}

.package-pasta .package-cap {
  width: 80px;
  height: 16px;
  border-radius: 4px 4px 1px 1px;
}

.package-pasta .package-label {
  height: 112px;
  border-radius: 7px 7px 12px 12px;
}

.package-pasta .package-halo {
  top: 13px;
  border-radius: 42% 58% 57% 43%;
}

.package-bottle {
  width: 100px;
  height: 179px;
  margin-top: 10px;
}

.package-bottle .package-cap {
  width: 39px;
  height: 28px;
  border-radius: 4px 4px 2px 2px;
}

.package-bottle .package-label {
  width: 86px;
  height: 135px;
  margin: -1px auto 0;
  border-radius: 18px 18px 14px 14px;
}

.package-bottle .package-label b {
  font-size: 18px;
}

.package-bottle .package-halo {
  top: 34px;
  left: -8px;
}

.package-bottle .package-shadow {
  left: -7px;
}

.gold .package-label { background: #b8953c; }
.plum .package-label { background: #70474b; }
.moss .package-label { background: #526d55; }
.coral .package-label { background: #bd694d; }
.berry .package-label { background: #964e5b; }
.apricot .package-label { background: #d4894f; }
.wheat .package-label { background: #b89154; }
.sage .package-label { background: #718878; }
.coffee .package-label { background: #705345; }

.product-photo-pasta {
  background:
    repeating-linear-gradient(112deg, transparent 0 15px, rgba(184, 145, 84, .11) 15px 17px, transparent 17px 30px),
    #e8e3d7;
}

.product-photo-bottle {
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, .6) 0 2px, transparent 2.5px),
    linear-gradient(135deg, #e8dfcf, #e1e4d9);
}

.delivery-section {
  padding: 58px 10vw;
}

.payment-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 7vw;
  padding: 32px 10vw;
  background: var(--green);
  color: #f4f2e9;
}

.payment-strip .eyebrow {
  margin-bottom: 8px;
  color: #c9d3ba;
}

.payment-strip h2 {
  margin: 0;
  font: 600 clamp(31px, 3.4vw, 43px)/1 var(--serif);
  letter-spacing: -.05em;
}

.payment-strip-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-strip-options p {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 11px;
  line-height: 1.45;
}

.payment-strip-options b {
  font: 28px var(--serif);
  color: #e2c66d;
}

.payment-strip-options span {
  display: flex;
  flex-direction: column;
}

.payment-strip-options strong {
  color: #fff;
  font-size: 12px;
}

.delivery-section h2 {
  font-size: clamp(38px, 4vw, 54px);
}

.delivery-options {
  gap: 30px;
}

.checkout-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.payment-methods {
  display: flex;
  gap: 10px !important;
}

.payment-option {
  flex: 1;
  display: flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid #cfd5ca;
  padding: 10px;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--green);
  background: #eef2e9;
}

.pix-panel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  background: #eef2e9;
  color: #536258;
}

.pix-panel p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.pix-panel strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.pix-qr {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  background:
    linear-gradient(90deg, #315b49 22%, transparent 22% 34%, #315b49 34% 52%, transparent 52% 62%, #315b49 62% 78%, transparent 78%),
    linear-gradient(#315b49 22%, transparent 22% 36%, #315b49 36% 50%, transparent 50% 65%, #315b49 65% 82%, transparent 82%);
  background-color: #fff;
  border: 4px solid #fff;
  outline: 1px solid #bfcbbd;
}

.card-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.card-panel label:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .shop-intro {
    padding: 34px 7vw 28px;
    display: block;
  }

  .shop-steps {
    justify-content: flex-start;
    margin-top: 26px;
    gap: 12px;
  }

  .category-row {
    padding: 18px 7vw;
  }

  .catalog-section {
    padding: 42px 7vw 54px;
  }

  .catalog-meta {
    align-items: flex-start;
    margin-top: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-section {
    padding: 50px 7vw;
  }

  .payment-strip {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 7vw;
  }
}

@media (max-width: 420px) {
  .shop-intro h1 {
    font-size: 36px;
  }

  .shop-steps {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .product-photo {
    height: 230px;
  }

  .catalog-meta {
    display: block;
  }

  .catalog-help {
    margin-top: 10px;
  }

  .payment-methods,
  .card-panel {
    grid-template-columns: 1fr;
  }

  .payment-strip-options {
    grid-template-columns: 1fr;
  }

  .card-panel label:first-child {
    grid-column: auto;
  }
}