/* ===== Šola za Pse Tačka — Riviera style ===== */

:root {
  --aubergine: #3a1430;
  --aubergine-2: #58204a;
  --aubergine-3: #2a0f23;
  --lime: #c6e24d;
  --lime-dark: #93ab2e;
  --ivory: #faf4e6;
  --ivory-2: #f1e8d2;
  --azure: #2d7f93;
  --azure-dark: #1f5c6c;
  --lemon: #f3c43c;
  --ink: #241220;
  --white: #fffdf8;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 1.1rem;
  --radius-sm: .6rem;
  --shadow-soft: 0 .6rem 1.8rem -.6rem rgba(42, 15, 35, .35);
  --shadow-lift: 0 1.2rem 2.6rem -.8rem rgba(42, 15, 35, .45);
  --maxw: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* focus rings */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 2px;
  border-radius: .3rem;
}

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

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .85em 1.5em; border-radius: 3em; border: 2px solid var(--aubergine);
  background: var(--aubergine); color: var(--ivory);
  cursor: pointer; text-decoration: none; overflow: hidden; isolation: isolate;
  min-height: 44px;
  transition: color .3s ease, border-color .3s ease, transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--lime); z-index: -1; transition: left .35s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--aubergine); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--aubergine); }
.btn-outline::before { background: var(--aubergine); }
.btn-outline:hover, .btn-outline:focus-visible { color: var(--ivory); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--aubergine-3); }
.btn-lime::before { background: var(--aubergine); }
.btn-lime:hover, .btn-lime:focus-visible { color: var(--lime); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--aubergine);
  color: var(--ivory);
  border-bottom: 3px solid var(--lime);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ivory); flex-shrink: 0; }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-word { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.logo-sub { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav ul { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--ivory); font-weight: 600; font-size: .95rem;
  position: relative; padding: .3em 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link {
  display: inline-flex; align-items: center; gap: .4em; text-decoration: none; color: var(--ivory);
  font-weight: 700; border: 2px solid var(--lime); border-radius: 3em; padding: .45em 1em; min-height: 44px;
}
.cart-link svg { width: 20px; height: 20px; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--lime); color: var(--aubergine-3); font-size: .8rem; transition: transform .25s ease; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--lime); border-radius: .5rem; color: var(--ivory);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--aubergine); flex-direction: column; align-items: flex-start; padding: 1.4rem; gap: 1.4rem; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.1rem; width: 100%; }
  .main-nav a { font-size: 1.15rem; }
  .menu-toggle { display: flex; }
}

/* ===== Marquee hero motion ===== */
.marquee-strip {
  background: var(--lime); color: var(--aubergine-3); overflow: hidden;
  border-bottom: 3px solid var(--aubergine);
}
.marquee-track {
  display: flex; width: max-content; gap: 2.5rem; padding: .55rem 0;
  animation: marquee 26s linear infinite;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
}
.marquee-track span { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.marquee-track svg { width: 14px; height: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== Hero ===== */
.hero { position: relative; background: var(--aubergine); color: var(--ivory); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.hero-eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-size: .8rem; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin: .3em 0 .5em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lede { font-size: 1.1rem; max-width: 34ch; color: var(--ivory-2); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-sun { animation: bob 6s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-sun { animation: none; } }
@media (max-width: 760px) { .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 320px; margin: 0 auto; } }

/* ===== Section dividers / wave ===== */
.wave-divider { display: block; width: 100%; height: auto; }
.section { padding: 4.2rem 0; }
.section-ivory { background: var(--ivory); }
.section-ivory-2 { background: var(--ivory-2); }
.section-aubergine { background: var(--aubergine); color: var(--ivory); }
.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section-head .kicker { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--azure-dark); }
.section-aubergine .section-head .kicker { color: var(--lime); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ===== Reveal ===== */
.reveal { opacity: 1; }
.reveal.js-hidden { opacity: 0; clip-path: inset(0 0 40% 0); transform: translateY(26px); transition: opacity .7s ease, clip-path .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; clip-path: inset(0 0 0% 0); transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal.js-hidden { opacity: 1; clip-path: none; transform: none; transition: none; } }

/* ===== Masonry gallery ===== */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 10px; gap: 1rem; }
.masonry-item { position: relative; grid-row-end: span 20; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.masonry-item:nth-child(1) { grid-column: span 2; grid-row-end: span 28; }
.masonry-item:nth-child(2) { grid-row-end: span 18; }
.masonry-item:nth-child(3) { grid-row-end: span 24; }
.masonry-item:nth-child(4) { grid-column: span 2; grid-row-end: span 16; }
.masonry-item:nth-child(5) { grid-row-end: span 22; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(1.05); }
.masonry-item .tag {
  position: absolute; inset: auto 0 0 0; padding: 1rem .9rem .8rem;
  background: linear-gradient(to top, rgba(42,15,35,.88), transparent);
  color: var(--ivory); font-weight: 700; font-size: .95rem;
  transform: translateY(100%); transition: transform .35s ease;
}
.masonry-item:hover img, .masonry-item:focus-within img { transform: scale(1.08); }
.masonry-item:hover .tag, .masonry-item:focus-within .tag { transform: translateY(0); }
@media (max-width: 760px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry-item:nth-child(1), .masonry-item:nth-child(4) { grid-column: span 2; }
}

/* ===== Training plan feature ===== */
.plan {
  background: var(--white); border: 2px solid var(--aubergine); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.plan-ages { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 1.6rem; }
.plan-ages button {
  border: 2px solid var(--aubergine); background: transparent; color: var(--aubergine);
  padding: .6em 1.1em; border-radius: 3em; font-weight: 700; cursor: pointer; min-height: 44px;
  transition: background .25s ease, color .25s ease;
}
.plan-ages button:hover { background: var(--ivory-2); }
.plan-ages button[aria-pressed="true"] { background: var(--aubergine); color: var(--ivory); }
.plan-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.plan-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.plan-checklist li { display: flex; align-items: flex-start; gap: .7rem; background: var(--ivory); border-radius: var(--radius-sm); padding: .7em .9em; }
.plan-checklist input[type="checkbox"] { accent-color: var(--aubergine); width: 1.2em; height: 1.2em; margin-top: .15em; flex-shrink: 0; }
.plan-checklist label { cursor: pointer; color: var(--ink); }
.plan-checklist .done label { text-decoration: line-through; color: #7a6a76; }
.plan-progress { font-weight: 700; margin-top: 1rem; color: var(--azure-dark); }
.plan-gear { background: var(--ivory-2); border-radius: var(--radius-sm); padding: 1.2rem; }
.plan-gear h3 { font-size: 1.05rem; color: var(--ink); }
.plan-gear ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.plan-gear a { text-decoration: none; font-weight: 700; color: var(--aubergine); display: flex; align-items: center; gap: .5em; }
.plan-gear a:hover { text-decoration: underline; }
@media (max-width: 760px) { .plan-body { grid-template-columns: 1fr; } }

/* ===== Product grid / strip ===== */
.product-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.product-filters button {
  border: 2px solid var(--aubergine); background: var(--ivory); color: var(--aubergine);
  padding: .5em 1em; border-radius: 3em; font-weight: 700; cursor: pointer; min-height: 44px; font-size: .88rem;
}
.product-filters button[aria-pressed="true"] { background: var(--aubergine); color: var(--ivory); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none; color: var(--ink);
}
.product-card:hover, .product-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.09); }
.product-card .cat-pill { position: absolute; top: .7rem; left: .7rem; background: var(--lime); color: var(--aubergine-3); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .3em .7em; border-radius: 3em; }
.product-card .body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card h3 { font-size: 1.08rem; margin: 0; }
.product-card .price { font-weight: 700; color: var(--azure-dark); font-size: 1.15rem; margin-top: auto; }
.product-card .short { font-size: .9rem; color: #5a4a56; }

.product-strip-scroll { display: none; }
@media (max-width: 760px) {
  .product-grid.strip-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem; padding-bottom: .6rem; grid-template-columns: unset; }
  .product-grid.strip-mobile .product-card { min-width: 72%; scroll-snap-align: start; }
}

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
.product-detail .thumb { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-size: 1.8rem; font-weight: 700; color: var(--azure-dark); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; }
.qty-row input { width: 4.5rem; padding: .6em; border: 2px solid var(--aubergine); border-radius: .5rem; font-size: 1rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ===== Cards generic ===== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-soft); }
.info-card svg { width: 34px; height: 34px; color: var(--azure-dark); margin-bottom: .6rem; }

/* ===== Badge / seal ===== */
.seal { width: 120px; height: 120px; flex-shrink: 0; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select {
  padding: .75em .9em; border: 2px solid var(--aubergine); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field .error-msg { color: #a3123a; font-size: .85rem; min-height: 1.1em; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: #a3123a; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; padding: .8em 1em; border-radius: var(--radius-sm); margin-top: 1rem; }
.form-status.ok { background: var(--lime); color: var(--aubergine-3); }
.form-status.fail { background: #a3123a; color: var(--ivory); }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 30rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 10rem; padding: .7em .9em; border-radius: var(--radius-sm); border: 2px solid var(--lime); background: var(--aubergine-2); color: var(--ivory); }
.newsletter-form input[type="email"]::placeholder { color: var(--ivory-2); opacity: .7; }

/* ===== Cart table ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8em .6em; border-bottom: 1px solid var(--ivory-2); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: .5rem; }
.cart-line { display: flex; align-items: center; gap: .7rem; }
.cart-table input[type="number"] { width: 4rem; padding: .4em; border: 2px solid var(--aubergine); border-radius: .4rem; }
.remove-btn { background: none; border: none; color: #a3123a; font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 44px; }
.cart-summary { display: flex; justify-content: flex-end; gap: 1rem; font-size: 1.2rem; font-weight: 700; margin: 1rem 0; }
.cart-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.delivery-note { background: var(--ivory-2); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .92rem; }

/* ===== FAQ ===== */
.faq-list details { background: var(--white); border-radius: var(--radius-sm); padding: 1em 1.2em; margin-bottom: .8rem; box-shadow: var(--shadow-soft); }
.faq-list summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
.faq-list summary::marker { color: var(--azure-dark); }
.faq-list p { margin-top: .7em; }

/* ===== Legal pages ===== */
.legal h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal { max-width: 46rem; }

/* ===== Footer ===== */
.site-footer { background: var(--aubergine-3); color: var(--ivory-2); padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.2rem; }
.footer-grid h4 { color: var(--lime); font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; color: var(--ivory-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--lime); text-decoration: underline; }
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-logo svg { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--aubergine-3); color: var(--ivory); border-top: 3px solid var(--lime);
  padding: 1.2rem 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 42rem; font-size: .92rem; }
.cookie-banner a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; border: 2px solid var(--ivory); color: var(--ivory); }
.btn-ghost::before { background: var(--ivory); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--aubergine-3); }

/* ===== Breadcrumb / page hero ===== */
.page-hero { background: var(--aubergine); color: var(--ivory); padding: 3rem 0 2.2rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: var(--ivory-2); max-width: 40ch; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 5rem 0; }
.page-404 svg { width: 180px; height: 180px; margin: 0 auto 1.4rem; }

/* decorative dividers full width svg */
.divider-wrap { line-height: 0; }
.divider-wrap svg { width: 100%; height: auto; display: block; }

/* lemon pattern strip */
.lemon-strip { width: 100%; height: 46px; display: block; }
