@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fbf3eb;
  --bg-strong: #f3e0d3;
  --paper: rgba(255, 249, 244, 0.9);
  --paper-strong: #fff9f4;
  --ink: #27150f;
  --muted: rgba(39, 21, 15, 0.72);
  --line: rgba(73, 37, 24, 0.12);
  --brand: #a1462d;
  --brand-dark: #6d2516;
  --accent: #2d6a4f;
  --accent-soft: rgba(45, 106, 79, 0.12);
  --warn: #9e3d27;
  --warn-soft: rgba(158, 61, 39, 0.12);
  --shadow: 0 20px 55px rgba(64, 28, 17, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body.storefront-body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(233, 162, 112, 0.24), transparent 32%),
    radial-gradient(circle at bottom right, rgba(161, 70, 45, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8f1 0%, var(--bg) 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.storefront-container {
  padding-bottom: 4rem;
}

.storefront-nav {
  padding: 1rem 0 1.35rem;
}

.storefront-nav-inner {
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 244, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.storefront-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storefront-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.storefront-link {
  font-weight: 700;
  color: var(--ink);
}

.storefront-chip {
  list-style: none;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.storefront-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.storefront-alert {
  margin-bottom: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.section-kicker,
.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.catalog-title,
.store-title {
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.95;
}

.store-title {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0;
}

.catalog-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0;
}

.store-lead,
.hero-copy,
.checkout-hint,
.product-card p,
.featured-body p,
.cart-item-copy p,
.order-card p,
.order-detail-grid p {
  color: var(--muted);
}

.hero-copy,
.store-lead {
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions,
.checkout-actions,
.product-actions,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-button {
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.store-hero,
.featured-wrap,
.section-block,
.cart-shell,
.product-page,
.checkout-shell {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.store-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.store-hero-copy,
.store-hero-card,
.checkout-copy-panel,
.checkout-form-panel,
.featured-card,
.product-card,
.cart-item-card,
.cart-summary-panel,
.success-banner,
.product-hero,
.empty-state,
.auth-form-panel,
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.store-hero-copy,
.store-hero-card,
.checkout-copy-panel,
.checkout-form-panel,
.cart-summary-panel,
.success-banner,
.empty-state,
.auth-form-panel {
  padding: 1.5rem;
}

.store-hero-copy {
  background:
    radial-gradient(circle at top right, rgba(255, 206, 170, 0.42), transparent 35%),
    linear-gradient(135deg, rgba(255, 249, 244, 0.98), rgba(246, 226, 211, 0.92));
}

.store-hero-card {
  display: grid;
  gap: 1rem;
  background: linear-gradient(160deg, rgba(118, 42, 26, 0.94), rgba(161, 70, 45, 0.88));
  color: #fff5ee;
}

.hero-stat-grid,
.orders-grid,
.featured-grid,
.store-grid,
.checkout-grid,
.checkout-products-grid,
.order-detail-grid {
  display: grid;
  gap: 1rem;
}

.hero-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 241, 0.1);
  border: 1px solid rgba(255, 244, 235, 0.14);
}

.hero-stat span,
.hero-card-list span {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.hero-stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
}

.hero-card-list {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 241, 0.08);
}

.catalog-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
}

.store-search {
  flex: 1 1 320px;
  display: grid;
  gap: 0.45rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-link,
.pill,
.pill-soft,
.availability-pill,
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chip-link {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 249, 244, 0.8);
}

.chip-link-active {
  color: #fff7f2;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.pill,
.pill-soft {
  color: var(--brand-dark);
  background: rgba(161, 70, 45, 0.1);
}

.availability-pill-live {
  color: var(--accent);
  background: var(--accent-soft);
}

.availability-pill-off {
  color: var(--warn);
  background: var(--warn-soft);
}

.featured-tag {
  color: var(--paper-strong);
  background: linear-gradient(135deg, #c67a28, #a1462d);
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card,
.product-card,
.product-hero,
.cart-item-card {
  overflow: hidden;
}

.featured-card[data-tone="cake"] .featured-media,
.product-card[data-tone="cake"] .product-media,
.product-hero[data-tone="cake"] .product-hero-media,
.cart-item-card[data-tone="cake"] {
  background: linear-gradient(135deg, #70402d, #c97854);
}

.featured-card[data-tone="sweet"] .featured-media,
.product-card[data-tone="sweet"] .product-media,
.product-hero[data-tone="sweet"] .product-hero-media,
.cart-item-card[data-tone="sweet"] {
  background: linear-gradient(135deg, #7a2942, #d17f89);
}

.featured-card[data-tone="savory"] .featured-media,
.product-card[data-tone="savory"] .product-media,
.product-hero[data-tone="savory"] .product-hero-media,
.cart-item-card[data-tone="savory"] {
  background: linear-gradient(135deg, #5f4124, #b08a52);
}

.featured-card[data-tone="drink"] .featured-media,
.product-card[data-tone="drink"] .product-media,
.product-hero[data-tone="drink"] .product-hero-media,
.cart-item-card[data-tone="drink"] {
  background: linear-gradient(135deg, #244f56, #4ea3a3);
}

.featured-card[data-tone="craft"] .featured-media,
.product-card[data-tone="craft"] .product-media,
.product-hero[data-tone="craft"] .product-hero-media,
.cart-item-card[data-tone="craft"] {
  background: linear-gradient(135deg, #4a3f6b, #8b74b5);
}

.featured-card[data-tone="signature"] .featured-media,
.product-card[data-tone="signature"] .product-media,
.product-hero[data-tone="signature"] .product-hero-media,
.cart-item-card[data-tone="signature"] {
  background: linear-gradient(135deg, #7a3523, #ce8a6b);
}

.featured-media,
.product-media,
.product-hero-media {
  position: relative;
  min-height: 180px;
  padding: 1rem;
}

.featured-media::after,
.product-media::after,
.product-hero-media::after {
  content: "";
  position: absolute;
  inset: auto -18% -24% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 248, 242, 0.18);
}

.featured-body,
.product-content {
  padding: 1.2rem;
}

.featured-body h3,
.product-content h3,
.cart-item-copy h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  margin: 0.3rem 0 0.6rem;
}

.product-topline,
.product-meta,
.summary-row,
.payment-order-headline,
.checkout-product-headline,
.section-heading {
  justify-content: space-between;
}

.product-meta,
.summary-row,
.checkout-product-headline,
.payment-order-headline,
.cart-item-grid {
  display: flex;
  gap: 1rem;
}

.product-meta {
  align-items: center;
}

.product-actions {
  justify-content: space-between;
  margin-top: 1rem;
}

.ghost-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--brand-dark);
}

.store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-block {
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
}

.empty-state-alert {
  background: rgba(255, 243, 239, 0.96);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1rem;
}

.cart-items-panel,
.cart-summary-panel,
.checkout-panel {
  display: grid;
  gap: 1rem;
}

.cart-item-card {
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.92), rgba(255, 245, 236, 0.92));
}

.cart-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 120px minmax(0, 1fr) 110px;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
}

.cart-item-copy {
  display: grid;
  gap: 0.5rem;
}

.cart-notes-field {
  min-width: 0;
}

.cart-line-total {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.cart-line-total strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
}

.summary-row {
  align-items: center;
  padding: 0.25rem 0;
}

.summary-row-strong {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.checkout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field {
  display: grid;
  gap: 0.45rem;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-card-panel {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.92);
}

.checkout-card-panel-headline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-field-hidden {
  display: none;
}

.checkout-field-visible {
  display: grid;
}

.payment-order-panel,
.pix-preview-block {
  display: grid;
  gap: 0.8rem;
}

.pix-preview-image {
  width: min(240px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
}

.checkout-feedback-info {
  color: var(--accent);
}

.checkout-feedback-error {
  color: var(--warn);
}

.auth-form-panel {
  max-width: 860px;
}

.orders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-card {
  padding: 1.2rem;
}

.order-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.checkout-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-product-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 244, 0.88);
}

.success-banner,
.cart-empty {
  padding: 1.6rem;
  text-align: left;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.product-hero-media {
  min-height: 100%;
}

.product-info-panel {
  padding: 1.6rem;
}

.product-meta-hero {
  margin: 1rem 0;
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 16px;
  border-color: rgba(86, 48, 35, 0.16);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(161, 70, 45, 0.14);
  border-color: rgba(161, 70, 45, 0.34);
}

@media (max-width: 991px) {
  .store-hero,
  .cart-layout,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .store-grid,
  .orders-grid,
  .checkout-products-grid,
  .order-detail-grid,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .cart-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .storefront-nav-inner {
    border-radius: 28px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .store-title {
    max-width: none;
  }

  .product-actions,
  .checkout-actions,
  .payment-order-headline,
  .section-heading,
  .checkout-card-panel-headline,
  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
  font-size: 0.92rem;
}

.checkout-feedback-info {
  color: var(--leaf);
}

.checkout-feedback-error {
  color: var(--berry);
}

.checkout-field span {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-product-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 36, 24, 0.1);
  border-radius: 22px;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.checkout-product-card-disabled {
  opacity: 0.7;
}

.checkout-product-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-product-headline h3 {
  margin: 0;
  font-size: 1.05rem;
}

.checkout-product-headline p {
  margin: 0.2rem 0 0;
  color: var(--soft-ink);
}

.checkout-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.auth-form-panel {
  display: grid;
  gap: 1rem;
}

.orders-grid,
.order-detail-grid {
  display: grid;
  gap: 1rem;
}

.order-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(58, 36, 24, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
}

.checkout-hint {
  margin: 0;
  color: var(--soft-ink);
}

.js-installments-field.checkout-field-hidden {
  display: none;
}

.checkout-feedback-card h2 {
  margin-top: 0.5rem;
}

.payment-order-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(58, 36, 24, 0.12);
}

.payment-order-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.payment-order-headline h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pix-preview-block {
  display: grid;
  gap: 0.75rem;
}

.pix-preview-image {
  width: min(240px, 100%);
  background: #fff;
  padding: 0.75rem;
  border-radius: 18px;
  border: 1px solid rgba(58, 36, 24, 0.1);
}

.checkout-feedback-success {
  border-color: rgba(53, 86, 66, 0.25);
  background: linear-gradient(180deg, rgba(248, 255, 249, 0.94), rgba(236, 248, 239, 0.94));
}

.catalog-headline {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
  margin: 0;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  background: rgba(58, 36, 24, 0.08);
  color: var(--chocolate);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-pill-soft {
  background: rgba(255, 250, 244, 0.72);
}

.featured-card,
.product-card {
  overflow: hidden;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.featured-card {
  display: grid;
}

.featured-copy,
.product-body {
  padding: 1.1rem;
}

.featured-copy h3,
.product-body h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.3rem;
}

.featured-copy p,
.product-body p {
  color: var(--soft-ink);
  margin-bottom: 1rem;
}

.featured-image,
.product-image {
  min-height: 190px;
  background-color: rgba(58, 36, 24, 0.12);
  background-size: cover;
  background-position: center;
}

.product-topline,
.product-bottomline,
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.availability {
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.availability-live {
  background: rgba(53, 86, 66, 0.12);
  color: var(--leaf);
}

.availability-off {
  background: rgba(163, 58, 45, 0.12);
  color: var(--berry);
}

.featured-tag {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card-disabled {
  opacity: 0.82;
}

.product-card-empty {
  padding: 1.2rem;
}

.roadmap-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.roadmap-card-alert {
  border-color: rgba(163, 58, 45, 0.28);
}

.storefront-footer {
  padding: 1rem 0 2rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hero-shell,
  .checkout-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .signal-grid,
  .roadmap-grid,
  .product-grid,
  .featured-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(190, 106, 63, 0.18), 0 0 0 0.3rem rgba(58, 36, 24, 0.15);
}

@media (min-width: 992px) {
  .hero-shell {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: start;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-card-highlight {
    grid-column: 1 / -1;
  }

  .featured-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roadmap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}