:root {
  color-scheme: light;
  --cream: #F8F2E8;
  --cream-2: #fffaf2;
  --card: #FFFFFF;
  --chocolate: #3B1F12;
  --cocoa: #5f3825;
  --caramel: #bd7837;
  --gold: #D4AF37;
  --soft: #eadac2;
  --muted: #806252;
  --line: rgba(59, 31, 18, 0.12);
  --shadow: 0 18px 40px rgba(59, 31, 18, 0.12);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 164, 65, 0.12), transparent 28rem),
    var(--cream);
  color: var(--chocolate);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
}

.home-screen,
.screen,
.success-screen {
  width: min(100%, 760px);
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 156px;
}

.screen {
  padding-bottom: 32px;
}

.app-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  padding: 0 0 18px;
}

.brand-logo {
  display: block;
  justify-self: center;
  width: 210px;
  max-height: 126px;
  object-fit: contain;
}

.header-spacer {
  width: 42px;
  height: 42px;
}

.icon-button {
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  font-size: 1.4rem;
}

.icon-button em {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--cream-2);
  background: var(--caramel);
  border-radius: 999px;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
}

.premium-hero {
  overflow: hidden;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(217, 164, 65, 0.18), transparent 12rem),
    linear-gradient(180deg, #fffaf2, #f7ead2);
  border: 1px solid rgba(47, 26, 18, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-photo {
  display: grid;
  place-items: center;
  min-height: 202px;
  padding: 22px 18px 8px;
}

.hero-photo img {
  width: min(302px, 80vw);
  height: 204px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(47, 26, 18, 0.16));
}

.hero-copy {
  padding: 12px 24px 26px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.34rem, 4vw, 1.65rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.hero-copy p {
  max-width: 320px;
  margin: 0 auto;
  color: var(--muted);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 15px;
  font-weight: 950;
}

.primary-cta {
  color: var(--cream-2);
  background: var(--chocolate);
  border: 0;
  box-shadow: 0 14px 26px rgba(47, 26, 18, 0.18);
}

.secondary-cta {
  color: var(--chocolate);
  background: #fff;
  border: 1px solid var(--line);
}

.highlight-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 30px;
}

.highlight-grid article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(47, 26, 18, 0.08);
}

.highlight-grid article > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #f7ead2;
  border-radius: 14px;
  font-size: 1.15rem;
}

.highlight-grid strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.16;
}

.highlight-grid p {
  margin: 0;
  font-size: 0.78rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title span {
  color: var(--caramel);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title > strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.section-title p {
  max-width: 300px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 366px;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 26px;
  box-shadow: 0 14px 30px rgba(59, 31, 18, 0.09);
  animation: fadeInUp 520ms ease both;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:nth-child(2) {
  animation-delay: 60ms;
}

.product-card:nth-child(3) {
  animation-delay: 120ms;
}

.product-card:nth-child(4) {
  animation-delay: 180ms;
}

.product-card:nth-child(5) {
  animation-delay: 240ms;
}

.product-card:nth-child(6) {
  animation-delay: 300ms;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 42px rgba(59, 31, 18, 0.14);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 206px;
  margin: 10px 10px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.18), transparent 5rem),
    #fffaf2;
  border-radius: 22px;
}

.product-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  display: block;
  padding: 8px;
  filter: drop-shadow(0 12px 12px rgba(59, 31, 18, 0.15));
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.055);
}

.product-image > span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  color: var(--cream-2);
  background: linear-gradient(135deg, var(--chocolate), #6f3d20);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(59, 31, 18, 0.14);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 12px 58px;
}

.product-info h3 {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 1.06rem;
  line-height: 1.08;
}

.product-info p {
  min-height: 62px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-buy strong {
  color: var(--chocolate);
  font-size: 1.14rem;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.add-button,
.primary-button,
.secondary-button,
.success-button,
.bottom-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--cream-2);
  background: var(--chocolate);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(47, 26, 18, 0.18);
  font-weight: 950;
}

.add-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  color: var(--cream-2);
  background: linear-gradient(135deg, var(--gold), #9d642f);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(59, 31, 18, 0.2);
  font-size: 1.55rem;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.add-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 28px rgba(59, 31, 18, 0.24);
}

.add-button:active,
.primary-button:active,
.secondary-button:active,
.success-button:active,
.bottom-bar button:active,
.primary-cta:active,
.secondary-cta:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.secondary-button {
  width: 100%;
  color: var(--chocolate);
  background: var(--gold);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  color: var(--chocolate);
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.quantity-control span {
  text-align: center;
  font-weight: 950;
}

.quantity-control.compact {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 112px;
  grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 10px 22px rgba(59, 31, 18, 0.12);
}

.premium-values {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.premium-values article {
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(217, 164, 65, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(47, 26, 18, 0.07);
}

.premium-values strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.premium-values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.premium-footer {
  margin-top: 24px;
  padding: 24px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 164, 65, 0.16), transparent 9rem),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(217, 164, 65, 0.22);
  border-radius: 26px;
}

.premium-footer h2 {
  margin-bottom: 10px;
  color: var(--chocolate);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-style: italic;
}

.premium-footer p {
  max-width: 320px;
  margin: 0 auto 12px;
  color: var(--cocoa);
  font-size: 0.9rem;
}

.premium-footer span {
  display: inline-flex;
  color: var(--caramel);
  font-size: 0.86rem;
  font-weight: 950;
}

.bottom-bar {
  position: fixed;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: 16px;
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: var(--chocolate);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(47, 26, 18, 0.18);
  backdrop-filter: blur(14px);
}

.bottom-bar span {
  display: inline-flex;
  color: var(--cream-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.bottom-bar strong {
  display: block;
  margin-top: 2px;
  color: var(--cream-2);
}

.bottom-bar button {
  justify-content: flex-start;
  gap: 8px;
  min-width: 160px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.bar-cart {
  display: grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 249, 238, 0.14);
  border-radius: 50%;
}

.screen h1 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.screen-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 42px;
  margin-bottom: 28px;
}

.screen-subtitle {
  margin-bottom: 20px;
}

.back-button,
.link-button {
  padding: 0;
  color: var(--cocoa);
  background: transparent;
  border: 0;
  font-weight: 900;
  font-size: 1.45rem;
}

.cart-list,
.payment-list,
.choice-grid,
.form-grid {
  display: grid;
  gap: 12px;
}

.cart-item,
.coupon-row,
.saved-address,
.time-card,
.recognized-card,
.choice-card,
.payment-card,
.field,
.order-summary,
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(47, 26, 18, 0.07);
}

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  color: var(--cream-2);
  background: #fffaf2;
  border-radius: 50%;
  font-weight: 950;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item h3,
.cart-item p {
  margin-bottom: 4px;
}

.coupon-row,
.payment-card,
.choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px;
  color: var(--chocolate);
  text-align: left;
}

.coupon-row {
  width: 100%;
  margin: 14px 0;
}

.order-summary {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
}

.order-summary h3 {
  margin-bottom: 2px;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-total strong {
  font-size: 1.15rem;
}

.field {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 32px;
  color: var(--chocolate);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 850;
}

.recognized-card,
.saved-address,
.time-card,
.empty-state {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 16px;
}

.recognized-card span,
.saved-address span,
.time-card span {
  color: var(--muted);
}

.choice-card,
.payment-card {
  border: 2px solid transparent;
}

.choice-card.is-selected,
.payment-card.is-selected {
  border-color: var(--caramel);
  background: var(--cream-2);
}

.choice-card strong {
  display: block;
}

.choice-card span {
  color: var(--muted);
}

.form-grid {
  margin-top: 12px;
}

.primary-button {
  width: 100%;
  margin-top: 4px;
}

.success-shell {
  background: var(--chocolate);
}

.success-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cream-2);
  background:
    radial-gradient(circle at 50% 15%, rgba(217, 164, 65, 0.26), transparent 14rem),
    var(--chocolate);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  color: var(--chocolate);
  background: var(--gold);
  border-radius: 50%;
  font-size: 2.4rem;
  font-weight: 950;
}

.success-screen h1 {
  color: var(--cream-2);
}

.success-screen p {
  color: rgba(255, 249, 238, 0.76);
}

.success-summary {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  background: rgba(255, 249, 238, 0.08);
  border: 1px solid rgba(255, 249, 238, 0.16);
  border-radius: 20px;
}

.success-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.success-button {
  color: var(--chocolate);
  background: var(--gold);
}

@media (max-width: 520px) {
  .home-screen,
  .screen,
  .success-screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-logo {
    width: min(176px, 48vw);
    max-height: 104px;
  }

}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 52px 1fr;
  }

  .cart-item .quantity-control {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }
}
