:root {
  --bg: #f7f3ee;
  --bg-elev: #fffcf8;
  --ink: #1c1916;
  --muted: #6b645c;
  --line: rgba(28, 25, 22, 0.1);
  --accent: #e85d04;
  --accent-soft: rgba(232, 93, 4, 0.16);
  --accent-ink: #fff;
  --danger: #9b2c2c;
  --shadow: 0 18px 50px rgba(28, 25, 22, 0.12);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 4, 0.1), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(92, 74, 58, 0.07), transparent 50%),
    var(--bg);
  min-height: 100dvh;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.promo-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 14px;
  line-height: 1.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-name {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
  max-width: 18ch;
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-wrap {
  position: relative;
}

.cart-wrap.has-items .cart-badge {
  display: inline-flex;
}

.page {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.product-above {
  display: contents;
}

.product-below {
  grid-column: 2;
  min-width: 0;
}

.media-panel,
.info-top {
  min-width: 0;
}

@media (min-width: 861px) {
  .media-panel {
    grid-row: 1 / span 2;
  }
}

.info-top {
  display: flex;
  flex-direction: column;
}

.media-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.thumbs {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.thumb {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.thumb.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.gallery {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 4px 4px 36px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.gallery-nav button {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1;
}

.gallery-dots {
  display: none;
}

.gallery-sold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82) 70%, transparent);
  pointer-events: none;
}

.range-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  align-items: end;
}

.range-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.range-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.range-btn {
  appearance: none;
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.range-btn:hover {
  border-color: rgba(232, 93, 4, 0.4);
}

.range-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gallery.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 93, 4, 0.1), transparent 55%),
    #fff8f3;
}

.gallery.is-featured .gallery-slide {
  background: transparent;
  padding-top: 4px;
}

.gallery.is-featured::after {
  content: "★";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
  pointer-events: none;
}

.gallery.is-featured .gallery-sold {
  color: #9a3412;
  background: linear-gradient(to top, rgba(255, 248, 243, 0.96), rgba(255, 248, 243, 0.75) 70%, transparent);
}

.media-stage.is-featured .thumb.is-selected {
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-above {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .product-below {
    grid-column: 1;
    padding-top: 2px;
    border-top: 0;
  }
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  flex-wrap: wrap;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f7a45;
  background: rgba(47, 122, 69, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.eyebrow-badge svg {
  width: 10px;
  height: 10px;
  color: #2f7a45;
  flex-shrink: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding: 9px 12px;
  background: rgba(28, 25, 22, 0.03);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.trust-item svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-sep {
  color: var(--line);
  font-size: 0.9rem;
  line-height: 1;
}

.product-title {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.buy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.buy-copy {
  min-width: 0;
}

.btn-add {
  width: auto;
  padding: 12px 18px;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.28);
}

.product-tagline {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 38ch;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.price {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-compare {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.includes {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.includes-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.includes-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.includes-list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.product-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.btn-buy-now {
  margin: 0 0 22px;
  width: 100%;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.28);
}

.reviews {
  margin: 8px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.reviews-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reviews-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.reviews-avg {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
}

.reviews-stars-mini {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.reviews-count {
  color: var(--muted);
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(28, 25, 22, 0.05);
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(28, 25, 22, 0.09);
}

.review-media {
  order: 2;
  background: transparent;
  border-left: 0;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 10px 4px;
}

.review-media img {
  width: 100%;
  height: 100%;
  max-height: 168px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.review-media::after {
  display: none;
}

.review-content {
  order: 1;
  display: grid;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  align-content: start;
}

.review-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid var(--line);
  background: #eee;
}

.review-who {
  min-width: 0;
  display: grid;
  gap: 0;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.review-place {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.review-stars {
  grid-column: 1 / -1;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  line-height: 1;
}

.review-stars span {
  color: #ddd6ce;
}

.review-variant {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.review-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
}

.review-verified {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #2f7a45;
}

.review-verified svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .review-card {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .review-media {
    min-height: 156px;
  }

  .review-media img {
    max-height: 180px;
  }
}

.section-label {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.variant-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.variant-card {
  appearance: none;
  position: relative;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  min-width: 0;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.variant-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.variant-card:hover {
  border-color: rgba(232, 93, 4, 0.4);
}

.variant-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.variant-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.variant-check::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.variant-card.is-selected .variant-check {
  display: grid;
}

@media (max-width: 860px) {
  .promo-bar {
    font-size: 0.74rem;
    padding: 7px 12px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .page {
    width: min(100% - 24px, var(--max));
    padding: 10px 0 20px;
  }

  .eyebrow {
    margin: 2px 0 4px;
    font-size: 0.68rem;
  }

  .product-title {
    margin: 0 0 4px;
    font-size: 1.22rem;
  }

  .buy-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .btn-add {
    padding: 11px 14px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .price-row {
    margin: 0;
  }

  .price {
    font-size: 1.22rem;
  }

  .product-desc {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .btn {
    padding: 13px 18px;
  }
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), opacity 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 40px) 28px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.footer-shield {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-copy {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
  z-index: 60;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100%);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  transform: translateX(104%);
  transition: transform 0.38s var(--ease);
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.drawer-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
}

.cart-line img {
  width: 88px;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.cart-line-meta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cart-line-meta p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-line-price {
  font-weight: 700;
}

.cart-includes {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cart-includes-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.cart-includes li {
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.cart-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.drawer-foot {
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

/* Checkout */
.checkout-wrap {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.checkout-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(28, 25, 22, 0.05);
}

.checkout-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 700;
}

.checkout-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.order-summary {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(28, 25, 22, 0.03);
  margin-bottom: 22px;
}

.order-summary img {
  width: 72px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.order-summary strong {
  display: block;
}

.order-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.is-found,
.field input.is-found:focus {
  border-color: #2f7a45;
  box-shadow: 0 0 0 3px rgba(47, 122, 69, 0.18);
}

.field input:disabled,
.field select:disabled {
  background: #f0ece6;
  color: var(--muted);
}

.field-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82em;
}

.field-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.cep-status {
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--muted);
}

.cep-status.is-loading {
  color: var(--accent);
}

.cep-status:empty {
  min-height: 0;
}

.cep-status.is-ok {
  color: #2f7a45;
}

.cep-status.is-error {
  color: var(--danger);
}

.address-block {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.25s;
}

.address-block.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.ship-block {
  margin-top: 6px;
}

.addr-card {
  margin: 0 0 18px;
  border: 1.5px solid #2f7a45;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.addr-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 8px;
  background: rgba(47, 122, 69, 0.07);
  border-bottom: 1px solid rgba(47, 122, 69, 0.15);
}

.addr-pin {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #2f7a45;
}

.addr-header-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f7a45;
}

.addr-info {
  padding: 12px 14px 4px;
}

.addr-street {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.addr-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.addr-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 14px 0;
}

.addr-fields {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 10px;
  padding: 12px 14px 14px;
}

.addr-field-wrap {
  display: grid;
  gap: 5px;
}

.addr-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.addr-required {
  color: var(--accent);
  font-weight: 700;
}

.addr-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #faf9f7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.addr-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.addr-input::placeholder {
  color: #b0a89e;
}

@media (max-width: 400px) {
  .addr-fields {
    grid-template-columns: 1fr;
  }
}

.ship-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ship-opt {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ship-opt-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 70px;
  height: 16px;
  max-width: 70px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.ship-opt-name {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  font-size: 0.92rem;
}

.ship-opt-days {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--muted);
}

.ship-opt-price {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.ship-opt.is-selected {
  border-color: var(--accent);
  background: #fff8f3;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ship-opt.is-selected .ship-opt-price {
  color: var(--accent);
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  z-index: 90;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.payer-block {
  margin: 16px 0 8px;
  padding-top: 4px;
}

.pix-panel {
  margin-top: 8px;
}

.pix-loading,
.pix-error {
  padding: 16px;
  border-radius: 12px;
  background: rgba(28, 25, 22, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

.pix-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  font-weight: 600;
  color: var(--ink);
}

.pix-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(232, 93, 4, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pix-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes pix-spin {
  to {
    transform: rotate(360deg);
  }
}

.pix-error {
  background: #fdecec;
  color: var(--danger);
}

.pix-loading[hidden],
.pix-error[hidden],
.pix-ready[hidden],
.pix-paid[hidden],
.pix-qr-wrap[hidden] {
  display: none !important;
}

.pix-ready {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  text-align: center;
}

.pix-amount {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pix-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.pix-code-row {
  display: grid;
  gap: 10px;
  width: 100%;
}

.pix-code-mask {
  margin: 0;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #faf9f7;
  color: var(--ink);
  text-align: left;
  word-break: break-all;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pix-qr-toggle {
  width: 100%;
}

.pix-qr-wrap {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  justify-self: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.pix-qr {
  width: 220px;
  height: 220px;
  display: block;
}

.pix-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.pix-paid {
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 12px 0;
}

.pix-paid-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2f7a45;
}

.pix-paid-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
