
:root {
  --green: #173638;
  --cream: #fff9eb;
  --orange: #f6a941;
  --muted: #587273;
  --line: #d9dacd;
  --surface: #fffdf5;
  --card: #fffdf7;
  --soft-green: #e6eddf;
  --soft-orange: #fae5bd;
  --banner: #e8e9d8;
  --input-border: #9eaead;
  --pill-border: #c6ccc2;
  --status: #315e51;
  --warning: #9b4730;
  --note-border: #8d5c2d;
  --summary-border: #bfcbc0;
  --demo-bg: #fbe8bd;
  --demo-border: #ddb567;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --green: #e2ece5;
  --cream: #162320;
  --muted: #aabbb3;
  --line: #384943;
  --surface: #202e2a;
  --card: #1d2b27;
  --soft-green: #2a3b33;
  --soft-orange: #403322;
  --banner: #293a33;
  --input-border: #71847c;
  --pill-border: #596c63;
  --status: #a6d2b0;
  --warning: #f0a08a;
  --note-border: #9c7949;
  --summary-border: #52665a;
  --demo-bg: #3a321f;
  --demo-border: #79653d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--cream); color: var(--green); font: 16px/1.5 'DM Sans', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; letter-spacing: -.05em; line-height: 1.08; }
.container { width: 100%; max-width: 1320px; margin: auto; padding-inline: 32px; }
main { flex: 1; }
.top-bar { background: var(--orange); text-align: center; padding: 8px 16px; font-size: .82rem; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 20; width: 100%; max-width: none; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(32px, calc((100% - 1256px) / 2)); background: var(--cream); transition: box-shadow .2s ease; }
.site-header.is-sticky { box-shadow: 0 4px 12px rgb(23 54 56 / 10%); }
.logo { font: 700 2rem/1 'Fraunces', Georgia, serif; letter-spacing: -.055em; white-space: nowrap; }
.logo span { color: #e78935; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 22px; }
.mobile-nav { display: none; }
.main-nav a { font-weight: 700; font-size: .91rem; }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.header-actions { gap: 10px; }
.basket-link, .language-button, .theme-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--green); border-radius: 30px; background: transparent; padding: 8px 13px; color: var(--green); font-weight: 700; white-space: nowrap; }
.theme-button { width: 42px; height: 42px; padding: 0; font-size: 1.25rem; }
.basket-count { display: grid; place-items: center; background: var(--green); color: white; min-width: 23px; height: 23px; padding-inline: 4px; border-radius: 50%; font-size: .77rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; }
.site-footer a { text-decoration: underline; }

/* Home */
.hero { position: relative; min-height: 590px; display: flex; align-items: end; background: #76543d url('../assets/nuts-and-seeds.webp') center/cover; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0b2525e8, #0b252577 55%, #0b25250f); }
.hero-content { position: relative; width: 100%; color: white; padding-block: 85px 72px; }
.eyebrow { display: block; color: #ffe0aa; text-transform: uppercase; letter-spacing: .15em; font-size: .84rem; font-weight: 700; margin-bottom: 16px; }
body[dir="rtl"] .eyebrow { font-size: 1.06rem; letter-spacing: .08em; }
body[dir="ltr"] .eyebrow { font-size: .9rem; }
.hero h1 { font-size: clamp(3.8rem, 6.8vw, 7.3rem); max-width: 800px; margin-bottom: 20px; }
body[dir="rtl"] .hero h1 { font-size: clamp(4.1rem, 7.2vw, 7.7rem); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { max-width: 540px; font-size: 1.12rem; color: #f8f1e7; margin-bottom: 28px; }
.primary-link, .dark-button, .orange-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 30px; padding: 13px 20px; min-height: 48px; font-weight: 700; }
.primary-link, .orange-button { background: var(--orange); color: var(--green); }
.dark-button { background: var(--green); color: white; }
.primary-link:hover, .orange-button:hover { background: #ffc268; }
.dark-button:hover { background: #2c5a5d; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; padding-block: 68px; border-bottom: 1px solid var(--line); }
.intro h2 { font-size: clamp(2.3rem, 4vw, 4.1rem); margin: 0; }
.intro p { font-size: 1.08rem; color: var(--muted); max-width: 500px; margin: 0; }
.home-categories { padding-block: 42px 90px; }
.section-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-tile { min-height: 142px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 23px 25px; display: grid; grid-template-columns: 52px 1fr 42px; gap: 20px; align-items: center; transition: transform .2s; }
.category-tile:hover, .product-card:hover { transform: translateY(-3px); }
.category-tile:nth-child(3n+1) { background: var(--soft-green); }
.category-tile:nth-child(3n+2) { background: var(--soft-orange); }
.category-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: transparent; font-size: 2.5rem; }
.category-tile h3 { font-size: clamp(1.35rem, 2.2vw, 2.1rem); margin: 0 0 6px; }
.category-tile small { color: var(--muted); font-size: .87rem; }
.round-arrow { border: 1px solid currentColor; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.4rem; }
.about { background: var(--orange); padding-block: 85px; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.about h2 { font-size: clamp(2.6rem, 4.6vw, 5rem); margin: 0; }
.about p { font-size: 1.15rem; max-width: 540px; }
address { font-style: normal; }
.store-info { border-top: 1px solid var(--note-border); padding-block: 19px; margin-top: 24px; }
.store-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.store-info address { font-weight: 700; margin-bottom: 4px; }
.store-info a { font-weight: 700; text-decoration: underline; }
.about-note { border-top: 1px solid var(--note-border); padding-top: 19px; font-weight: 700; }
.about-note a { display: inline-block; margin-inline-start: 8px; text-decoration: underline; }

/* Category and product cards */
.inner { padding-bottom: 80px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 26px 0; color: var(--muted); font-size: .88rem; }
.breadcrumb strong { color: var(--green); }
.demo-note { background: var(--demo-bg); border: 1px solid var(--demo-border); border-radius: 8px; padding: 12px 17px; font-size: .88rem; margin: 22px 0 27px; }
.category-banner { display: grid; grid-template-columns: 1.2fr .8fr; background: var(--banner); border-radius: 12px; overflow: hidden; min-height: 330px; }
.category-banner.no-image { grid-template-columns: 1fr; }
.category-banner > div { display: flex; flex-direction: column; justify-content: center; padding: 45px 54px; }
.category-banner .eyebrow, .product-info .eyebrow { color: var(--muted); }
.category-banner h1, .product-info h1 { font-size: clamp(2.9rem, 5vw, 5.2rem); margin-bottom: 17px; }
.category-banner p { font-size: 1.1rem; max-width: 500px; margin: 0; }
.category-banner img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.browse { padding-top: 45px; }
.browse-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.browse-heading h2 { font-size: 2rem; }
.browse-heading span { color: var(--muted); font-size: .9rem; }
.category-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 20px; }
.category-pills a { flex: none; border: 1px solid var(--pill-border); border-radius: 30px; padding: 8px 14px; font-size: .9rem; font-weight: 700; }
.category-pills a.active { background: var(--green); color: white; border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .2s; }
.product-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card.image-fit-contain img, .product-photo.image-fit-contain { object-fit: contain; background: #f4f4f4; padding: 2px; }
.product-card-link { display: block; }
.product-card .card-content { display: block; padding: 18px 20px 8px; }
.product-card h3 { font-size: 1.35rem; margin: 0 0 7px; }
.product-card p { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.product-card .price-line { margin: 0 18px 18px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.15rem; }
.card-add-control { display: inline-flex; align-items: center; }
.card-add-button, .card-quantity button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--orange); color: var(--green); font-size: 1.5rem; font-weight: 700; }
.card-add-button:hover, .card-quantity button:hover { background: #ffc268; }
.card-quantity { display: inline-flex; align-items: center; gap: 12px; }
.card-quantity button { background: var(--green); color: white; font-size: 1.2rem; }
.card-quantity button:hover { background: #2c5a5d; }
.card-quantity span { min-width: 1.5em; text-align: center; font-weight: 700; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; padding-block: 10px 70px; }
.product-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.product-info { padding-top: 24px; }
.product-info .size { color: var(--muted); margin-bottom: 25px; }
.product-price { font-size: 2.1rem; font-weight: 700; margin-bottom: 27px; }
.product-price small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.format { border-block: 1px solid var(--line); padding-block: 20px; margin-bottom: 25px; }
.format strong { display: block; }
.format p { margin: 5px 0 0; color: var(--muted); }
.purchase-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 9px; }
.quantity { display: inline-flex; border: 1px solid var(--input-border); border-radius: 30px; overflow: hidden; height: 48px; }
.quantity button { width: 40px; border: 0; background: transparent; color: var(--green); font-size: 1.25rem; }
.quantity input { width: 42px; border: 0; background: transparent; color: var(--green); text-align: center; font-weight: 700; appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; }
.status { min-height: 25px; color: var(--status); font-weight: 700; margin-top: 12px; }
.status a { text-decoration: underline; }
.detail-note { color: var(--muted); font-size: .86rem; max-width: 460px; }
.related h2 { font-size: 2.25rem; }

/* Basket */
.basket-layout { display: grid; grid-template-columns: 1.45fr .65fr; gap: 54px; padding-top: 15px; }
.basket-layout h1 { font-size: 3.5rem; }
.basket-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.basket-line img { width: 120px; aspect-ratio: 1/1; object-fit: cover; border-radius: 9px; }
.basket-line h2 { font-size: 1.35rem; margin: 0 0 5px; }
.basket-line p { color: var(--muted); margin: 0 0 10px; }
.line-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.remove-button { border: 0; background: none; color: var(--warning); text-decoration: underline; padding: 5px; }
.line-total { font-weight: 700; white-space: nowrap; }
.summary { background: var(--soft-green); border-radius: 12px; padding: 27px; align-self: start; }
.summary h2 { font-size: 1.6rem; }
.summary-row { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--summary-border); padding-block: 14px; }
.summary button { width: 100%; margin-top: 15px; }
.summary button:disabled { cursor: not-allowed; opacity: .55; }
.summary p { color: var(--muted); font-size: .86rem; margin: 15px 0 0; }
.delivery-status { color: var(--warning); font-weight: 700; }
.empty-basket { padding-block: 45px; }
body[dir=rtl] .hero::before { background: linear-gradient(270deg, #0b2525e8, #0b252577 55%, #0b25250f); }
body[dir=rtl] .round-arrow { transform: scaleX(-1); }
body[dir=rtl] .logo { direction: ltr; unicode-bidi: isolate; }
:root[data-theme="dark"] .top-bar { color: #17231d; }
:root[data-theme="dark"] .about { background: #332e24; }
:root[data-theme="dark"] .primary-link,
:root[data-theme="dark"] .orange-button,
:root[data-theme="dark"] .card-add-button { color: #17231d; }
:root[data-theme="dark"] .dark-button,
:root[data-theme="dark"] .category-pills a.active { background: #477457; color: #fff; border-color: #477457; }
:root[data-theme="dark"] .card-quantity button { background: #477457; color: #fff; }
:root[data-theme="dark"] .basket-count { background: #477457; color: #fff; }
:root[data-theme="dark"] .remove-button { color: var(--warning); }
:root[data-theme="dark"] .site-header.is-sticky { box-shadow: 0 4px 12px rgb(0 0 0 / 35%); }

@media (max-width: 850px) {
  .site-header { flex-wrap: wrap; padding-block: 16px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; padding-bottom: 8px; }
  .intro, .about-inner { grid-template-columns: 1fr; gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { gap: 35px; }
  .basket-layout { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 620px) {
  .container { padding-inline: 17px; }
  .top-bar { font-size: .72rem; }
  .site-header { min-height: 72px; gap: 12px; }
  .logo { font-size: 1.55rem; }
  .header-actions { gap: 6px; }
  .basket-link, .language-button { font-size: .78rem; padding: 7px 9px; }
  .theme-button { width: 36px; height: 36px; font-size: 1.1rem; }
  .main-nav a { font-size: .83rem; }
  .hero { min-height: 550px; background-position: 58% center; }
  .hero::before, body[dir=rtl] .hero::before { background: linear-gradient(0deg, #0b2525f2, #0b252548 90%); }
  .hero-content { padding-block: 60px 48px; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 4.5rem); }
  .hero p { font-size: 1rem; }
  .intro { padding-block: 42px; }
  .home-categories { padding-block: 32px 62px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile { min-height: 112px; padding: 18px; grid-template-columns: 42px 1fr 42px; gap: 13px; }
  .category-icon { width: 42px; height: 42px; font-size: 1.9rem; }
  .category-tile h3 { font-size: 1.5rem; }
  .about { padding-block: 52px; }
  .category-banner { display: flex; flex-direction: column-reverse; }
  .category-banner img { height: 210px; }
  .category-banner > div { padding: 26px 22px 32px; }
  .category-banner h1, .product-info h1 { font-size: 2.8rem; }
  .product-grid { gap: 10px; }
  .product-card .card-content { padding: 13px 13px 8px; }
  .product-card h3 { font-size: 1.12rem; }
  .product-card p { font-size: .8rem; margin-bottom: 12px; }
  .product-card .price-line { margin: 0 12px 12px; font-size: 1rem; }
  .product-card.has-quantity .price-line { flex-wrap: wrap; row-gap: 10px; }
  .product-card.has-quantity .card-add-control { flex-basis: 100%; justify-content: center; }
  .card-add-button, .card-quantity button { width: 38px; height: 38px; }
  .card-quantity { gap: 8px; }
  .product-detail { grid-template-columns: 1fr; gap: 25px; padding-bottom: 55px; }
  .product-photo { aspect-ratio: 4/3; }
  .product-info { padding-top: 0; }
  .purchase-actions .dark-button, .purchase-actions .orange-button { flex: 1; padding-inline: 10px; }
  .basket-line { grid-template-columns: 78px 1fr; gap: 12px; }
  .basket-line img { width: 78px; }
  .line-total { grid-column: 2; }
  .basket-layout h1 { font-size: 2.8rem; }
  .site-footer { flex-direction: column; }
}
/* The three inner views share one HTML page; hidden means only the selected view appears. */
[hidden] { display: none !important; }
