@import "tailwindcss";

:root {
  --ivory: #f7f1e8;
  --paper: #fffdf9;
  --ink: #2f332b;
  --muted: #6d7068;
  --terracotta: #c96f55;
  --terracotta-dark: #ad5741;
  --rose: #d9a2a1;
  --green: #64765b;
  --sand: #e8d8c5;
  --serif: var(--font-cormorant), Georgia, serif;
  --sans: var(--font-manrope), Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-manrope), Arial, sans-serif !important; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.demo-banner { padding: 8px 20px; background: var(--green); color: white; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-header { height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(32px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--sand); background: rgba(255,253,249,.95); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.brand { justify-self: start; position: relative; display: inline-flex; align-items: center; font-family: var(--font-cormorant), Georgia, serif !important; font-size: 50px; font-weight: 600; letter-spacing: -.08em; }
.brand-sprig { position: absolute; left: -18px; top: 5px; color: var(--green); font-size: 31px; transform: rotate(-28deg); }
.site-header nav { display: flex; align-items: center; gap: 46px; }
.site-header nav a, .site-header nav button { padding: 32px 4px 27px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font-size: 15px; }
.site-header nav a:hover, .site-header nav button:hover { border-color: var(--terracotta); }
.cart-button { justify-self: end; min-width: 105px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px; border: 0; background: none; cursor: pointer; }
.cart-button > span:first-child { font-size: 31px; transform: rotate(180deg); }
.cart-label { font-size: 13px; }
.cart-count { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: white; font-size: 12px; }
.hero { min-height: 570px; display: grid; grid-template-columns: minmax(420px, .92fr) 1.08fr; background: var(--ivory); overflow: hidden; }
.hero-copy { padding: 78px max(48px, calc((100vw - 1240px)/2)); padding-right: 44px; align-self: center; }
.eyebrow { margin: 0 0 13px; color: var(--terracotta-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-cormorant), Georgia, serif !important; }
h1 { max-width: 580px; margin-bottom: 17px; font-size: clamp(58px, 5vw, 79px); line-height: .91; font-weight: 600; letter-spacing: -.035em; }
.flourish { display: block; margin: 4px 0 17px; color: var(--rose); font-size: 20px; }
.hero-text { max-width: 490px; margin-bottom: 31px; color: #55584f; font-size: 17px; line-height: 1.7; }
.primary-button { display: inline-flex; min-height: 55px; align-items: center; justify-content: center; padding: 0 30px; background: var(--terracotta); color: white; border-radius: 4px; font-weight: 700; transition: .2s ease; }
.primary-button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.hero-image { min-height: 570px; background: linear-gradient(90deg, var(--ivory), transparent 18%), url("/hero-products.png") center/cover no-repeat; }
.category-section, .catalog-section { max-width: 1240px; margin: 0 auto; padding: 76px 28px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 26px; }
.section-heading h2, .catalog-heading h2 { margin-bottom: 0; font-size: 43px; line-height: 1; font-weight: 600; }
.section-heading > p { max-width: 440px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 23px; border: 1px solid var(--sand); border-radius: 10px; background: var(--paper); text-align: left; cursor: pointer; transition: .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--terracotta); box-shadow: 0 12px 35px rgba(80,54,42,.07); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f8e6df; color: var(--terracotta); font-size: 26px; }
.category-card strong { display: block; font-family: var(--font-cormorant), Georgia, serif !important; font-size: 22px; }
.category-card small { display: block; margin-top: 4px; color: var(--muted); }
.catalog-section { padding-top: 88px; padding-bottom: 90px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 27px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filters button { padding: 9px 15px; border: 1px solid var(--sand); border-radius: 99px; background: var(--paper); cursor: pointer; font-size: 13px; }
.filters button.active, .filters button:hover { background: var(--green); border-color: var(--green); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { overflow: hidden; border: 1px solid var(--sand); border-radius: 12px; background: var(--paper); transition: .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(70,52,42,.08); }
.product-image, .cart-thumb { background-image: url("/catalog-products.png"); background-repeat: no-repeat; background-size: 300% 200%; }
.product-image { position: relative; aspect-ratio: 1.3; background-color: var(--ivory); transition: .25s ease; }
.product-card:hover .product-image { filter: saturate(1.06); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 6px 11px; background: var(--terracotta); color: white; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.stock-badge { position: absolute; top: 14px; right: 14px; padding: 6px 11px; border-radius: 99px; background: #d58d34; color: white; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.stock-badge.out { background: #777a73; }
.product-info { padding: 21px; }
.product-info > p { margin-bottom: 5px; color: var(--terracotta-dark); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.product-info h3 { min-height: 48px; margin-bottom: 3px; font-size: 24px; line-height: 1.05; font-weight: 600; }
.product-description { min-height: 38px; display: block; margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.product-info > span { color: var(--muted); font-size: 13px; }
.product-buy { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.product-buy strong { font-size: 18px; }
.product-buy button { padding: 9px 14px; border: 1px solid var(--terracotta); border-radius: 4px; background: transparent; color: var(--terracotta-dark); cursor: pointer; font-weight: 700; font-size: 13px; }
.product-buy button:hover { background: var(--terracotta); color: white; }
.product-buy button:disabled { border-color: #c9c9c5; background: #eeeeeb; color: #84867f; cursor: not-allowed; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand); border-block: 1px solid var(--sand); }
.benefits > div { padding: 42px 30px; background: var(--ivory); text-align: center; }
.benefits span { display: block; margin-bottom: 8px; color: var(--terracotta); font-size: 26px; }
.benefits strong { font-family: var(--font-cormorant), Georgia, serif !important; font-size: 23px; }
.benefits p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
footer { padding: 55px 28px 40px; background: var(--ink); color: #f8f1e8; text-align: center; }
.footer-brand { justify-self: center; font-size: 48px; }
footer p { margin: 5px 0 18px; color: #cfd1ca; }
footer > a:not(.brand) { color: #efb5a2; text-decoration: underline; text-underline-offset: 5px; }
footer small { display: block; margin-top: 35px; color: #9fa398; }
.overlay { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; background: rgba(29,31,27,.45); backdrop-filter: blur(3px); }
.overlay[hidden] { display: none !important; }
.cart-panel { width: min(460px, 100%); height: 100%; display: flex; flex-direction: column; padding: 30px; background: var(--paper); box-shadow: -20px 0 60px rgba(30,28,25,.18); animation: slideIn .25s ease-out; }
.panel-header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--sand); }
.panel-header h2, .checkout-card h2 { margin: 0; font-size: 42px; line-height: 1; }
.panel-header button, .close-checkout { width: 40px; height: 40px; border: 1px solid var(--sand); border-radius: 50%; background: transparent; cursor: pointer; font-size: 25px; }
.empty-cart { margin: auto 0; text-align: center; }
.empty-cart > span { color: var(--terracotta); font-size: 48px; }
.empty-cart h3 { margin: 12px 0 6px; font-size: 30px; }
.empty-cart p { color: var(--muted); }
.empty-cart button, .back-button { border: 0; background: none; color: var(--terracotta-dark); font-weight: 700; text-decoration: underline; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 8px 0; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 13px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--sand); }
.cart-thumb { width: 74px; height: 82px; border-radius: 7px; background-color: var(--ivory); }
.cart-item strong, .cart-item small, .cart-item div > span { display: block; }
.cart-item strong { font-family: var(--font-cormorant), Georgia, serif !important; font-size: 19px; line-height: 1.05; }
.cart-item small { margin: 4px 0; color: var(--muted); }
.cart-item div > span { font-size: 13px; font-weight: 700; }
.quantity-control { display: flex; align-items: center; gap: 8px; border: 1px solid var(--sand); border-radius: 99px; padding: 4px; }
.quantity-control button { width: 27px; height: 27px; border: 0; border-radius: 50%; background: var(--ivory); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 19px 0; border-top: 1px solid var(--sand); }
.cart-total strong { font-size: 22px; }
.checkout-button, .whatsapp-button { width: 100%; min-height: 54px; border: 0; border-radius: 5px; background: var(--terracotta); color: white; cursor: pointer; font-weight: 700; }
.checkout-button:hover, .whatsapp-button:hover { background: var(--terracotta-dark); }
.cart-help { margin: 11px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.checkout-overlay { justify-content: center; align-items: center; padding: 20px; }
.checkout-card { position: relative; width: min(590px, 100%); max-height: 94vh; overflow: auto; padding: 43px; border-radius: 14px; background: var(--paper); box-shadow: 0 25px 90px rgba(30,28,25,.24); animation: riseIn .25s ease-out; }
.close-checkout { position: absolute; top: 20px; right: 20px; }
.checkout-card > p:not(.eyebrow):not(.future-payment) { margin: 18px 0; color: var(--muted); line-height: 1.6; }
.bank-total { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; padding: 18px; background: var(--ivory); border-radius: 7px; }
.bank-total strong { font-size: 23px; }
.bank-data { margin: 0 0 22px; border: 1px solid var(--sand); border-radius: 7px; }
.bank-data div { display: grid; grid-template-columns: 120px 1fr; padding: 13px 16px; border-bottom: 1px solid var(--sand); }
.bank-data div:last-child { border-bottom: 0; }
.bank-data dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.bank-data dd { margin: 0; font-weight: 700; word-break: break-word; }
.bank-data button { float: right; border: 0; background: none; color: var(--terracotta-dark); cursor: pointer; font-size: 12px; text-decoration: underline; }
.payment-options { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
.payment-options legend { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.payment-options label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--sand); border-radius: 8px; cursor: pointer; }
.payment-options label:has(input:checked) { border-color: var(--terracotta); background: #fff8f3; }
.payment-options input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.payment-options span { display: grid; gap: 2px; }
.payment-options small { color: var(--muted); }
.back-button { display: block; margin: 17px auto 0; }
.future-payment { margin: 23px 0 0; padding-top: 17px; border-top: 1px solid var(--sand); color: var(--muted); text-align: center; font-size: 11px; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 22px; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 62px 28px 46px; }
  .hero-image { min-height: 390px; background-image: linear-gradient(180deg, var(--ivory), transparent 18%), url("/hero-products.png"); }
  .section-heading, .catalog-heading { align-items: start; flex-direction: column; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .demo-banner { font-size: 9px; }
  .site-header { height: 72px; }
  .brand { font-size: 42px; }
  .cart-label { display: none; }
  .hero { min-height: 0; }
  .hero-copy { padding-top: 48px; }
  h1 { font-size: 52px; }
  .hero-image { min-height: 330px; }
  .category-section, .catalog-section { padding-inline: 18px; padding-top: 62px; }
  .section-heading h2, .catalog-heading h2 { font-size: 38px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { padding: 17px; }
  .product-grid { gap: 18px; }
  .benefits { grid-template-columns: 1fr; }
  .cart-panel { padding: 23px 18px; }
  .checkout-card { padding: 37px 20px 26px; }
  .bank-data div { grid-template-columns: 1fr; gap: 5px; }
  .bank-data button { float: none; margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
