:root {
  --ink: #1b1a19;
  --ink-soft: #302d2a;
  --paper: #f4f1ec;
  --white: #ffffff;
  --line: #dcd5cc;
  --muted: #706a63;
  --rose: #b56b77;
  --rose-soft: #f1e2e5;
  --sage: #758479;
  --sage-soft: #e2e8e3;
  --shadow: 0 18px 50px rgba(31, 27, 24, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.8; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; padding: 12px max(22px, calc((100vw - 1320px) / 2)); color: var(--white); transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.site-header.scrolled { color: var(--ink); background: rgba(244, 241, 236, 0.96); box-shadow: 0 10px 35px rgba(30, 26, 23, 0.08); backdrop-filter: blur(14px); }
.brand, .footer-signature { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; background: #171717; box-shadow: 0 9px 24px rgba(0,0,0,.2); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); transform: scale(.76); }
.brand-copy { display: grid; gap: 4px; color: inherit; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.32); }
.brand-copy strong { font-family: Georgia, serif; font-size: 1rem; font-weight: 600; }
.brand-copy small { font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.site-header.scrolled .brand-copy { text-shadow: none; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; font-size: .84rem; font-weight: 750; }
.main-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { border-color: currentColor; }
.cart-button, .icon-button, .dialog-close { display: inline-grid; place-items: center; border: 1px solid currentColor; color: inherit; background: transparent; }
.cart-button { position: relative; justify-self: end; width: 44px; height: 44px; border-radius: 6px; }
.cart-button span { position: absolute; top: -7px; right: -7px; display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; padding: 0 5px; color: white; background: var(--rose); font-size: .7rem; font-weight: 850; }

.hero { position: relative; display: flex; min-height: 720px; height: calc(100svh - 44px); max-height: 900px; align-items: flex-end; overflow: hidden; padding: 130px max(24px, calc((100vw - 1320px) / 2)) 112px; color: white; background: linear-gradient(90deg, rgba(18,16,15,.86) 0%, rgba(18,16,15,.55) 46%, rgba(18,16,15,.08) 76%), url("./assets/dona-site.jpeg") center 28%/cover no-repeat; }
.hero-content { position: relative; z-index: 1; min-width: 0; width: min(690px, 58vw); max-width: 100%; }
.eyebrow { margin: 0; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero h1, .section-heading h2, .shop-heading h2, .own-brand h2, .cart-header h2 { margin: 12px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0; }
.hero h1 { font-size: 6.2rem; line-height: .88; }
.hero-copy { max-width: 610px; margin: 26px 0 0; overflow-wrap: anywhere; font-size: 1.18rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.primary-action, .secondary-action, .text-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border-radius: 6px; padding: 12px 18px; font-size: .86rem; font-weight: 800; }
.primary-action { color: var(--ink); background: white; }
.secondary-action { border: 1px solid rgba(255,255,255,.58); color: white; background: rgba(25,22,20,.18); }
.hero-signals { position: absolute; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 32px; left: max(24px, calc((100vw - 1320px) / 2)); z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.36); padding-top: 18px; }
.hero-signals span { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700; }

.section-shell { width: min(1320px, calc(100% - 44px)); margin: 0 auto; padding: 90px 0; }
.shop-section { background: var(--paper); }
.shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; }
.shop-heading h2, .section-heading h2, .own-brand h2 { font-size: 3.3rem; line-height: 1; }
.product-search { display: flex; width: min(390px, 100%); min-height: 46px; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding: 0 4px; }
.product-search input { width: 100%; border: 0; padding: 10px 0; color: var(--ink); background: transparent; outline: 0; }
.product-search input::placeholder { color: #918980; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.filter-chip { min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink); background: transparent; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.filter-chip.active { border-color: var(--ink); color: white; background: var(--ink); }
.catalog-status { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; color: var(--muted); font-size: .76rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: grid; min-width: 0; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border: 0; padding: 0; background: #f6f2ec; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-brand { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; border-radius: 999px; padding: 6px 9px; color: var(--ink); background: rgba(255,255,255,.9); font-size: .66rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.product-body { display: grid; min-height: 230px; grid-template-rows: auto 1fr auto; gap: 12px; padding: 17px; }
.product-body h3 { margin: 0; font-size: 1rem; line-height: 1.18; }
.product-body p { margin: 7px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 1.04rem; font-weight: 900; }
.stock-state { display: inline-flex; align-items: center; gap: 6px; color: var(--sage); font-size: .7rem; font-weight: 800; }
.stock-state::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.stock-state.low { color: #9a692f; }
.stock-state.empty { color: #a43e45; }
.add-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ink); border-radius: 6px; padding: 8px 12px; color: white; background: var(--ink); font-size: .76rem; font-weight: 850; }
.add-button:disabled { cursor: not-allowed; border-color: #aaa39b; background: #aaa39b; }
.empty-catalog { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 58px 0; color: var(--muted); text-align: center; }

.own-brand { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 640px; background: var(--ink); color: white; }
.own-brand-image { min-height: 580px; overflow: hidden; background: #eee9e1; }
.own-brand-image img { width: 100%; height: 100%; object-fit: cover; }
.own-brand-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 72px max(40px, calc((100vw - 1320px) / 2)); }
.own-brand-copy h2 { max-width: 520px; }
.own-brand-copy > p:not(.eyebrow) { max-width: 520px; margin: 22px 0 0; color: #d8d1ca; line-height: 1.65; }
.text-action { margin-top: 28px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding-right: 0; padding-left: 0; color: white; background: transparent; }

.brands-section { background: white; }
.section-heading { max-width: 650px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.brand-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.brand-card img { width: 100%; height: 230px; object-fit: contain; padding: 28px; background: #f8f6f2; }
.brand-card .ar-brand-card-logo { padding: 54px; }
.brand-card div { border-top: 1px solid var(--line); padding: 18px; }
.brand-card h3 { margin: 0; font-size: .98rem; }
.brand-card p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.delivery-section { color: white; background: var(--sage); }
.delivery-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.delivery-options { display: grid; border-top: 1px solid rgba(255,255,255,.36); }
.delivery-options article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.36); padding: 22px 0; }
.delivery-options h3 { margin: 0; font-size: 1rem; }
.delivery-options p { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: .86rem; line-height: 1.5; }

.site-footer { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 36px; padding: 60px max(22px, calc((100vw - 1320px) / 2)) 32px; color: white; background: var(--ink); }
.footer-signature .brand-copy { color: white; text-shadow: none; }
.footer-signature .brand-mark { border-color: #4d4843; box-shadow: none; }
.footer-brand p { color: #aaa39c; }
.site-footer > div:not(.footer-brand) { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.site-footer > div > span { margin-bottom: 4px; color: #aaa39c; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.site-footer a { font-size: .84rem; }
.site-footer small { grid-column: 1 / -1; border-top: 1px solid #3c3834; padding-top: 24px; color: #817a74; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; visibility: hidden; background: rgba(18,16,14,.58); opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.cart-panel { display: flex; width: min(500px, 100%); height: 100%; flex-direction: column; overflow-y: auto; padding: 24px; background: var(--paper); transform: translateX(100%); transition: transform 220ms ease; }
.drawer-backdrop.open .cart-panel { transform: translateX(0); }
.cart-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cart-header h2 { font-size: 2.4rem; }
.icon-button { width: 42px; height: 42px; border-color: var(--line); border-radius: 6px; color: var(--ink); background: white; }
.cart-items { display: grid; min-height: 150px; gap: 10px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.empty-cart { display: grid; min-height: 130px; place-items: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.cart-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
.cart-item img { width: 68px; height: 68px; border-radius: 4px; object-fit: cover; background: white; }
.cart-item strong, .cart-item small { display: block; }
.cart-item strong { font-size: .82rem; line-height: 1.25; }
.cart-item small { margin-top: 5px; color: var(--muted); font-size: .72rem; }
.cart-qty { display: grid; grid-template-columns: 28px 24px 28px; align-items: center; text-align: center; }
.qty-button { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 0; background: white; }
.qty-button svg { width: 14px; height: 14px; }
.checkout-form { display: grid; gap: 18px; padding: 20px 0 0; }
.checkout-form fieldset { margin: 0; border: 0; padding: 0; }
.checkout-form legend { margin-bottom: 9px; font-size: .76rem; font-weight: 850; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: grid; min-height: 42px; place-items: center; background: white; font-size: .8rem; font-weight: 800; }
.segmented-control label + label span { border-left: 1px solid var(--line); }
.segmented-control input:checked + span { color: white; background: var(--ink); }
.customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.customer-fields label { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.customer-fields label:nth-child(4), .customer-fields label:nth-child(5) { grid-column: 1 / -1; }
.customer-fields small { font-weight: 500; }
.customer-fields input, .customer-fields textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px 11px; color: var(--ink); background: white; outline: 0; resize: vertical; }
.customer-fields input:focus, .customer-fields textarea:focus { border-color: var(--ink); }
.cart-summary { display: grid; gap: 9px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: .84rem; }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cart-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-size: 1.04rem; }
.checkout-message { min-height: 20px; margin: 12px 0 0; color: #a43e45; font-size: .78rem; }
.checkout-button { display: inline-flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 6px; color: white; background: var(--ink); font-weight: 850; }
.checkout-button:disabled { cursor: wait; background: #76706a; }
.checkout-note { margin: 9px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }

.product-dialog { width: min(900px, calc(100% - 30px)); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.product-dialog::backdrop { background: rgba(17,15,14,.68); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-color: var(--line); border-radius: 6px; color: var(--ink); background: white; }
.product-dialog-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.product-dialog-layout > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; background: #f4f0e9; }
.product-dialog-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 60px 48px; }
.product-dialog-copy h2 { margin: 10px 0 0; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; line-height: 1; }
.product-dialog-copy > p { margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.dialog-price { margin-top: 24px; font-size: 1.25rem; font-weight: 900; }
.product-dialog-copy .add-button { margin-top: 22px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero h1 { font-size: 4.4rem; }
  .product-grid, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-brand { grid-template-columns: 1fr 1fr; }
  .delivery-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 64px; padding: 9px 14px; }
  .brand, .footer-signature { gap: 8px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy { gap: 3px; }
  .brand-copy strong { font-size: .86rem; }
  .brand-copy small { font-size: .55rem; }
  .cart-button { width: 41px; height: 41px; border-color: rgba(255,255,255,.75); color: white; background: rgba(27,26,25,.82); }
  .hero { min-height: 690px; height: 88svh; align-items: flex-end; padding: 110px 18px 150px; background: linear-gradient(180deg, rgba(18,16,15,.08) 20%, rgba(18,16,15,.88) 78%), url("./assets/dona-site.jpeg") 54% top/cover no-repeat; }
  .hero-content { width: calc(100vw - 36px); max-width: calc(100vw - 36px); }
  .hero h1 { font-size: 3.2rem; line-height: .94; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-signals { right: 18px; bottom: 22px; left: 18px; grid-template-columns: 1fr; gap: 8px; padding-top: 12px; }
  .section-shell { width: min(100% - 28px, 1320px); padding: 64px 0; }
  .shop-heading { align-items: stretch; flex-direction: column; }
  .shop-heading h2, .section-heading h2, .own-brand h2 { font-size: 2.5rem; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { min-height: 238px; padding: 13px; }
  .product-body h3 { font-size: .88rem; }
  .product-body p { display: -webkit-box; overflow: hidden; font-size: .76rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .product-meta { align-items: flex-start; flex-direction: column; }
  .add-button { width: 100%; }
  .own-brand { grid-template-columns: 1fr; }
  .own-brand-image { min-height: 430px; }
  .own-brand-copy { padding: 56px 22px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card { grid-template-columns: 130px 1fr; }
  .brand-card img { height: 150px; padding: 20px; }
  .brand-card div { display: flex; justify-content: center; flex-direction: column; border-top: 0; border-left: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 48px 22px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .cart-panel { padding: 18px 14px; }
  .customer-fields { grid-template-columns: 1fr; }
  .customer-fields label:nth-child(4), .customer-fields label:nth-child(5) { grid-column: auto; }
  .product-dialog-layout { grid-template-columns: 1fr; }
  .product-dialog-layout > img { min-height: 320px; max-height: 390px; }
  .product-dialog-copy { padding: 34px 24px; }
  .product-dialog-copy h2 { font-size: 2rem; }
}

@media (max-width: 410px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-body { min-height: 210px; }
  .product-meta { align-items: center; flex-direction: row; }
}
