/* ===== Maslinovo Ulje Maslina — stylesheet ===== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --ink: #1f2c3a;
  --ink-deep: #121b26;
  --sand: #f3e6c8;
  --sand-dark: #e2cd9a;
  --cream: #fbf5e7;
  --coral: #e3664a;
  --coral-deep: #c24d34;
  --olive: #6f7a3f;
  --line: rgba(31, 44, 58, .16);
  --shadow: 0 18px 40px -20px rgba(18, 27, 38, .35);
  --radius: 18px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-deep); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-deep); margin: 0 0 .5em; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
section { position: relative; }
.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--coral-deep);
  font-size: 1.05rem;
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: .4em;
}
.lede { font-size: 1.1rem; max-width: 46ch; color: #3a4a5a; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  mix-blend-mode: multiply;
}

/* ===== scallop divider ===== */
.scallop {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--sand-dark);
}
.scallop--coral { color: var(--coral); }
.scallop--flip { transform: scaleY(-1); }

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink-deep); }
.logo svg { height: 40px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--coral-deep); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
  position: relative;
  min-height: 44px;
  padding: 0 4px;
}
.cart-link svg { width: 26px; height: 26px; }
.cart-count {
  background: var(--coral);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump { transform: scale(1.4); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--ink-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s ease;
    z-index: 200;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--sand); font-size: 1.15rem; }
  .main-nav a[aria-current="page"] { color: var(--coral); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--ink-deep);
  background: var(--ink-deep);
  color: var(--cream);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  left: -100%;
  background: var(--coral);
  transition: left .3s ease;
  z-index: 1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn--outline { background: transparent; color: var(--ink-deep); }
.btn--outline::before { background: var(--ink-deep); }
.btn--outline:hover { color: var(--cream); }
.btn--on-dark { border-color: var(--sand); color: var(--ink-deep); background: var(--sand); }
.btn--ghost {
  background: transparent;
  border: 2px solid rgba(251,245,231,.6);
  color: var(--cream);
}
.btn--ghost::before { background: rgba(251,245,231,.18); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== hero ===== */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--cream);
  overflow: hidden;
}
.hero__media {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: saturate(.9);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 120px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 .3em;
  color: var(--cream);
}
.hero__title .wipe {
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.65,0,.15,1);
}
.hero.is-revealed .hero__title .wipe { clip-path: inset(0 0 0 0); }
.hero__title .wipe:nth-child(2) { transition-delay: .18s; }
.hero__sub { font-size: 1.15rem; max-width: 42ch; color: var(--sand); opacity: .92; }
.hero__ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero__card {
  position: relative;
  z-index: 3;
  background: var(--sand);
  color: var(--ink-deep);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transform: translateY(-10px) rotate(-1.5deg);
  max-width: 320px;
  margin-left: auto;
}
.hero__card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.hero__card .tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--coral-deep);
}
.hero__card .price { font-weight: 800; font-size: 1.3rem; }
.hero__wave { position: relative; z-index: 2; display: block; width: 100%; height: 40px; color: var(--cream); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; padding: 48px 0 60px; }
  .hero__card { margin: 20px auto 0; transform: none; }
}

/* ===== continuous ambient motion ===== */
.ambient {
  position: absolute;
  z-index: 1;
  opacity: .5;
}
@media (prefers-reduced-motion: no-preference) {
  .ambient { animation: drift 10s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(3deg); } }

/* ===== reveal ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== intro strip ===== */
.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.intro__item { display: flex; gap: 14px; align-items: flex-start; }
.intro__item svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--coral-deep); }
.intro__item h3 { font-size: 1.1rem; margin-bottom: .2em; }
.intro__item p { font-size: .94rem; color: #445565; margin: 0; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }

/* ===== product strip / grid ===== */
.strip-wrap { position: relative; }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.strip .card { scroll-snap-align: start; }
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px -16px rgba(18,27,38,.25);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--coral); color: #fff;
  font-size: .72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 1.08rem; margin: 0; }
.card__body h3 a { color: var(--ink-deep); }
.card__unit { font-size: .82rem; color: #6a7684; }
.card__desc { font-size: .9rem; color: #465564; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card__price { font-weight: 800; font-size: 1.15rem; color: var(--ink-deep); }

/* ===== pairing feature ===== */
.pairing {
  background: var(--ink-deep);
  color: var(--sand);
  border-radius: 28px;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}
.pairing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pairing h2 { color: var(--cream); }
.pairing__group { margin-bottom: 20px; }
.pairing__label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--cream); font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid rgba(251,245,231,.35);
  background: transparent;
  color: var(--sand);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  min-height: 44px;
}
.chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.pairing__result {
  background: var(--sand);
  color: var(--ink-deep);
  border-radius: 18px;
  padding: 22px;
  min-height: 220px;
}
.pairing__result .result-card { display: flex; gap: 16px; }
.pairing__result img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.pairing__result h3 { margin-bottom: .2em; font-size: 1.1rem; }
.pairing__placeholder { color: #5a6a78; font-style: italic; font-family: var(--font-display); }
@media (max-width: 860px) { .pairing__grid { grid-template-columns: 1fr; } }

/* ===== badges / ornaments ===== */
.seal { width: 120px; height: 120px; color: var(--coral-deep); }
.sprig { width: 64px; height: 64px; color: var(--olive); }

/* ===== about / split sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.split__media .seal { position: absolute; bottom: -24px; right: -24px; background: var(--cream); border-radius: 50%; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media .seal { width: 86px; height: 86px; bottom: -14px; right: 6px; } }

/* ===== newsletter / cta band ===== */
.cta-band {
  background: var(--sand);
  border-radius: 28px;
  padding: 44px;
  text-align: center;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band form { display: flex; gap: 10px; justify-content: center; max-width: 420px; margin: 20px auto 0; flex-wrap: wrap; }
.cta-band input[type="email"] {
  flex: 1;
  min-width: 180px;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid var(--line);
  padding: 0 18px;
  font-size: 1rem;
  background: #fff;
}

/* ===== forms ===== */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  accent-color: var(--coral);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.is-success { display: block; background: #e4efd9; color: #3a5c22; }
.form-msg.is-error { display: block; background: #fbe4df; color: var(--coral-deep); }
.field-error { color: var(--coral-deep); font-size: .84rem; min-height: 1.2em; }
.required-mark { color: var(--coral-deep); }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink-deep);
  color: var(--sand);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  z-index: 500;
  display: none;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: .92rem; flex: 1 1 260px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== footer ===== */
.site-footer { background: var(--ink-deep); color: var(--sand); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-col h3 { color: var(--cream); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--sand); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-brand .logo svg { width: 160px; height: 42px; }
.footer-brand p { color: var(--sand); opacity: .8; font-size: .92rem; max-width: 32ch; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(251,245,231,.15);
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--sand);
  opacity: .75;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th { text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #6a7684; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.qty-input { width: 64px; min-height: 40px; border-radius: 10px; border: 2px solid var(--line); padding: 4px 8px; text-align: center; }
.remove-btn { background: none; border: none; color: var(--coral-deep); cursor: pointer; font-weight: 700; text-decoration: underline; min-height: 44px; }
.cart-summary { max-width: 360px; margin-left: auto; display: grid; gap: 10px; font-size: 1rem; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .total { font-weight: 800; font-size: 1.25rem; border-top: 2px solid var(--line); padding-top: 10px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ===== product page ===== */
.product-view { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-view__media { position: relative; }
.product-view__media img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow); }
.product-view__price { font-size: 2rem; font-weight: 800; color: var(--ink-deep); margin: 10px 0 20px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag-pill { background: var(--sand); color: var(--ink-deep); font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: none; background: transparent; font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 48px; text-align: center; border: none; min-height: 44px; font-size: 1rem; }
.product-actions { display: flex; gap: 14px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .product-view { grid-template-columns: 1fr; } }

/* ===== faq ===== */
.faq-list { max-width: 760px; display: grid; gap: 14px; }
.faq-item { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { transition: transform .25s ease; flex-shrink: 0; width: 20px; height: 20px; color: var(--coral-deep); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 20px; color: #465564; }

/* ===== legal pages ===== */
.legal { max-width: 740px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal p, .legal li { color: #3a4a5a; }
.legal ul { margin: 0 0 1em 1.3em; padding: 0; list-style: disc; }
.legal li { margin-bottom: .5em; }
.page-head { padding: 56px 0 20px; }
.page-head .eyebrow { margin-bottom: .2em; }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 100px 20px; }
.notfound svg { width: 160px; height: 160px; margin: 0 auto 20px; color: var(--coral-deep); }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }

/* ===== misc ===== */
.breadcrumb { font-size: .85rem; color: #6a7684; margin-bottom: 18px; }
.breadcrumb a { color: var(--coral-deep); }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.icon-list { display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--coral-deep); margin-top: 2px; }
