/* ============================================================
   VOILA PALERMO — SEO/UX Mockup
   Mobile-first, no framework. Maps 1:1 to Shopify theme sections.
   ============================================================ */

:root {
  --ink: #101010;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --sand: #f6f1e9;
  --sand-deep: #ece3d4;
  --terra: #c2552e;
  --sea: #1f5f78;
  --gold: #b98a2f;
  --line: #e4ddd1;
  --ok: #1d7a3e;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 16, 16, .10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section--sand { background: var(--sand); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #a63e1b; margin-bottom: .8rem;
}
.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.6rem;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #2b2b2b; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--sea); outline-offset: 2px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  font-size: .88rem; font-weight: 600; padding: .55rem 1rem;
}
.announce strong { color: #ffd98a; font-weight: 700; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .12em; text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--terra); }
.nav { display: none; margin-inline: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .85rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  border-radius: 50%; color: var(--ink);
}
.icon-btn:hover { background: var(--sand); }
.cart-count {
  position: absolute; top: 4px; right: 2px; background: var(--terra); color: #fff;
  font-size: .62rem; font-weight: 700; border-radius: 50%;
  width: 16px; height: 16px; display: grid; place-items: center;
}
.menu-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: .9rem 1.25rem; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .nav { display: flex; gap: .25rem; }
  .menu-toggle { display: none; }
}

/* ---------- Hero-Slider ---------- */
.hero-slider { position: relative; display: grid; }
.hero-slider .hero {
  grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease;
  pointer-events: none; z-index: 1;
}
.hero-slider .hero.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.slider-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(12,12,12,.35); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(12,12,12,.6); }
.slider-arrow--prev { left: .9rem; }
.slider-arrow--next { right: .9rem; }
.slider-dots {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: .5rem; display: flex; gap: .25rem;
}
.slider-dot {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 0; background: transparent; padding: 0;
  display: grid; place-items: center;
}
.slider-dot::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent;
}
.slider-dot[aria-current="true"]::before { background: #fff; }
@media (max-width: 700px) {
  .slider-arrow { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, center 10%); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .35), rgba(10, 10, 10, .62));
}
.hero__inner {
  min-height: min(86vh, 730px); display: flex; flex-direction: column;
  justify-content: center; padding: clamp(3rem, 9vw, 6rem) 0;
}
.hero .eyebrow { color: #ffd98a; }
.hero .hero-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem); letter-spacing: -.01em;
  line-height: 1.15; margin: 0 0 .5em;
}
.hero p { max-width: 54ch; font-size: 1.08rem; color: #f4efe7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.hero__note { margin-top: 1.1rem; font-size: .9rem; color: #ffe9c4; font-weight: 600; }

/* ---------- USP bar ---------- */
.usp { background: var(--sand); border-block: 1px solid var(--line); }
.usp__inner {
  display: grid; gap: .6rem; padding: 1rem 0;
  grid-template-columns: 1fr;
  font-size: .9rem; font-weight: 600;
}
.usp__item { display: flex; align-items: center; gap: .55rem; }
.usp__item svg { flex: none; color: var(--terra); }
@media (min-width: 700px) { .usp__inner { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ---------- Product grid ---------- */
.grid-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.product-grid {
  display: grid; gap: 1.4rem 1rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 0; margin: 0; list-style: none;
}
@media (min-width: 720px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.4rem; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--sand); aspect-ratio: 4 / 5;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: var(--terra); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
}
.badge--new { background: var(--sea); }
.card__body { padding: .8rem .15rem 0; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card__title { font: 600 .98rem/1.35 var(--font-body); margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { font-size: .84rem; color: var(--ink-soft); }
.card__price { font-weight: 700; font-size: 1rem; }
.card__stock { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ok); font-weight: 600; }
.card__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.card .btn { position: relative; z-index: 2; margin-top: .7rem; min-height: 44px; font-size: .92rem; padding: .55rem 1rem; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; display: flex; align-items: flex-end;
  color: #fff; text-decoration: none; isolation: isolate;
}
.tile img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, .72));
}
.tile:hover img { transform: scale(1.05); }
.tile__label { padding: 1.2rem; }
.tile__label strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.tile__label span { font-size: .88rem; opacity: .9; }

/* ---------- Story ---------- */
.story { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.story__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Reviews ---------- */
.rating { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: 1.05rem; }
.rating small { font-weight: 600; color: var(--ink-soft); }
.review-band { text-align: center; }
.review-band .stars { font-size: 1.6rem; }
.review-band__score { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: .2rem 0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: #fff; }
.newsletter .lede { color: #d9d2c6; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.newsletter-form input {
  flex: 1 1 240px; min-height: 48px; padding: .6rem 1.1rem;
  border-radius: 999px; border: 1px solid #4a4a4a; background: #1d1d1d; color: #fff;
  font: 400 1rem var(--font-body);
}
.newsletter-form input::placeholder { color: #9a9a9a; }

/* ---------- Footer ---------- */
.footer { background: #0c0c0c; color: #cfc9bd; font-size: .92rem; }
.footer a { color: #cfc9bd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 800px) { .footer__brand { grid-column: auto; } }
.footer__bottom {
  border-top: 1px solid #262626; padding: 1.2rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer ul.paylist, .paylist { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.paylist li {
  border: 1px solid #3a3a3a; border-radius: 5px; padding: .18rem .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #efe9dd; background: #161616;
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: #b9b0a0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { font-weight: 600; color: var(--ink); }

/* ---------- Collection ---------- */
.collection-head { max-width: 70ch; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 .4rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: .42rem 1rem; font: 600 .86rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid-count { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Product page ---------- */
.product { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; } }
.gallery { display: grid; gap: .8rem; }
.gallery__main { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery__thumbs button {
  border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0;
  cursor: pointer; background: var(--sand); aspect-ratio: 1;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pinfo h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .3rem; }
.pinfo__vendor { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.price { font-size: 1.5rem; font-weight: 700; margin: .6rem 0 .2rem; }
.price small { font-size: .78rem; font-weight: 400; color: var(--ink-soft); display: block; }
.stock-note { display: flex; align-items: center; gap: .45rem; color: var(--ok); font-weight: 600; font-size: .92rem; margin: .5rem 0 1.2rem; }
.stock-note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }

.opt { margin-bottom: 1.1rem; }
.opt__label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.opt__label a { color: var(--sea); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); padding: 3px; background: #fff;
}
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.size {
  min-width: 52px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; font: 600 .95rem var(--font-body); cursor: pointer; padding: .4rem .6rem;
}
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.buybox { display: grid; gap: .7rem; margin: 1.4rem 0 1rem; }
.trust-inline { display: grid; gap: .45rem; font-size: .88rem; color: var(--ink-soft); margin: 1rem 0 1.4rem; }
.trust-inline li { display: flex; gap: .5rem; align-items: center; }
.trust-inline svg { color: var(--terra); flex: none; }
.trust-inline ul, ul.trust-inline { list-style: none; padding: 0; margin: 0; }
.pay-strip { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.pay-strip span {
  border: 1px solid var(--line); border-radius: 5px; padding: .15rem .5rem;
  font-size: .68rem; font-weight: 700; color: var(--ink-soft); background: #fff;
}

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; font-weight: 600; padding: 1rem .2rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--ink-soft); }
.acc details[open] summary::after { content: "–"; }
.acc .acc__body { padding: 0 .2rem 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.acc table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.acc th, .acc td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: center; }
.acc th { background: var(--sand); }

/* Sticky mobile ATC */
.sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--line);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  display: flex; gap: .8rem; align-items: center;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc__info { font-size: .85rem; line-height: 1.3; min-width: 0; }
.sticky-atc__info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .btn { margin-left: auto; flex: none; }
@media (min-width: 900px) { .sticky-atc { display: none; } }

/* ---------- Modal (size guide / cart preview) ---------- */
dialog.modal {
  border: 0; border-radius: 14px; padding: 0; max-width: min(520px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(12, 12, 12, .55); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem .4rem; }
.modal__head h2 { font-size: 1.25rem; margin: 0; }
.modal__body { padding: .4rem 1.3rem 1.4rem; font-size: .95rem; color: var(--ink-soft); }
.modal__body table { border-collapse: collapse; width: 100%; margin: .6rem 0; }
.modal__body th, .modal__body td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: center; font-size: .88rem; }
.modal__body th { background: var(--sand); }

/* ---------- Cross-sell ---------- */
.xsell-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .xsell-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Annotation layer („Was ist neu") ---------- */
.note-toggle {
  position: fixed; z-index: 90; right: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sea); color: #fff; border: 0; border-radius: 999px;
  padding: .75rem 1.2rem; font: 700 .92rem var(--font-body); cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 95, 120, .45);
}
.note-toggle:hover { background: #17495d; }
body.has-sticky-atc .note-toggle { bottom: 5.2rem; }
.note-dot {
  position: absolute; z-index: 80; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sea); color: #fff; border: 2px solid #fff; cursor: pointer;
  font: 700 .8rem/1 var(--font-body); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(31, 95, 120, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 95, 120, .45); }
  50% { box-shadow: 0 0 0 9px rgba(31, 95, 120, 0); }
}
.note-pop {
  position: absolute; z-index: 85; width: min(300px, calc(100vw - 2rem));
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: .9rem 1rem; font-size: .87rem; line-height: 1.5;
}
.note-pop strong { color: var(--sea); display: block; margin-bottom: .2rem; }
[data-note-host] { position: relative; }

/* ---------- Toast (cart preview) ---------- */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; border-radius: 10px; padding: .8rem 1.2rem;
  font-size: .9rem; max-width: min(420px, calc(100vw - 2rem));
  transition: transform .3s ease; text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
