/* Material-ish + pastel system (mobile-first) */
:root{
  --bg: #fbfbff;
  --surface: #ffffff;
  --surface-2: #f4f2ff;
  --surface-3: #eef8ff;
  --text: #1d1b24;
  --muted: #5b5568;
  --border: rgba(34, 20, 60, .10);

  --primary: #7c5cff;      /* lavender */
  --primary-2:#a694ff;
  --secondary: #4fb6c8;    /* pastel teal */
  --secondary-2:#8fd8e3;
  --accent: #ff7aa2;       /* pastel pink */
  --warn: #ffb84d;         /* pastel amber */

  --good: #2fbb8c;
  --bad: #e85d75;

  --shadow-1: 0 1px 2px rgba(20, 12, 38, .08), 0 1px 3px rgba(20, 12, 38, .06);
  --shadow-2: 0 6px 14px rgba(20, 12, 38, .10), 0 2px 6px rgba(20, 12, 38, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0f1020;
    --surface:#16172b;
    --surface-2:#1b1f37;
    --surface-3:#132634;
    --text:#f2efff;
    --muted:#b8b0d0;
    --border: rgba(255,255,255,.10);

    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 10px 22px rgba(0,0,0,.45);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1000px 500px at 10% -10%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(800px 420px at 90% 0%, rgba(79,182,200,.18), transparent 55%),
              radial-gradient(700px 420px at 50% 100%, rgba(255,122,162,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit}

.skip-link{
  position:absolute;left:-999px;top:8px;
  background:var(--surface); color:var(--text);
  padding:10px 12px;border-radius:999px; border:1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.skip-link:focus{left:10px;z-index:9999}

.container{max-width:var(--max); margin:0 auto; padding:16px}

/* App bar */
.appbar{
  position:sticky; top:0; z-index:30;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.appbar__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  min-width: 0;
}
.brand__mark{width:34px;height:34px}
.brand__name{font-weight:750; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.icon-btn{
  margin-left:auto;
  width:44px;height:44px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.icon-btn:active{transform: translateY(1px)}
.icon-lines{display:block; width:18px; height:12px; margin:0 auto; position:relative}
.icon-lines::before,.icon-lines::after,.icon-lines span{
  content:""; position:absolute; left:0; right:0; height:2px; background:var(--text); border-radius:999px;
}
.icon-lines::before{top:0}
.icon-lines::after{bottom:0}
.icon-lines span{top:5px}

.nav{display:none; width:100%}
.nav__list{list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:6px}
.nav__link{
  display:block;
  padding:10px 12px;
  border-radius: 14px;
  text-decoration:none;
  border:1px solid var(--border);
  background: var(--surface);
}
.nav__link:hover{box-shadow: var(--shadow-1)}

.nav.is-open{display:block}

@media (min-width: 720px){
  .icon-btn{display:none}
  .nav{display:block; width:auto; margin-left:auto}
  .nav__list{flex-direction:row; align-items:center; gap:10px; margin:0}
  .nav__link{border: none; background: transparent; padding:10px 10px}
  .nav__link:hover{background: color-mix(in srgb, var(--surface-2) 75%, transparent)}
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  padding:18px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface-2));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-2);
  overflow:hidden;
}
.hero__title{margin:0 0 8px; font-size: clamp(26px, 6vw, 40px); line-height:1.1}
.hero__sub{margin:0 0 12px; color:var(--muted)}
.hero__chips{display:flex; flex-wrap:wrap; gap:8px}
.hero__art{display:none}

@media (min-width: 920px){
  .hero{grid-template-columns: 1.2fr .8fr; align-items:center}
  .hero__art{display:block}
  .hero__img{filter: drop-shadow(0 10px 18px rgba(20,12,38,.12))}
}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-3));
  border:1px solid var(--border);
  border-radius: 999px;
  font-weight:600;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.chip__icon{width:16px;height:16px}

/* Sections */
.section{padding:18px 0}
.section__head{display:flex; flex-direction:column; gap:4px; margin: 0 0 12px}
.section__title{margin:0; font-size: 20px}
.section__meta{margin:0; color:var(--muted)}
.section--split{display:grid; grid-template-columns:1fr; gap:14px}
@media (min-width: 900px){
  .section--split{grid-template-columns: 1.1fr .9fr}
}

/* Cards */
.card{
  border:1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow:hidden;
}
.card--tonal{background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent))}
.card--flat{box-shadow:none}
.card__media{display:block; aspect-ratio: 16/10; overflow:hidden; background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(79,182,200,.12))}
.card__img{width:100%; height:100%; object-fit:cover}
.card__body{padding:14px}
.card__title{margin:0 0 6px; font-size:16px; line-height:1.25}
.card__text{margin:0; color:var(--muted)}
.card__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}

.grid{display:grid; grid-template-columns: 1fr; gap:14px}
@media (min-width: 640px){
  .grid{grid-template-columns: repeat(2, 1fr)}
}
@media (min-width: 980px){
  .grid{grid-template-columns: repeat(3, 1fr)}
}

.grid-2{display:grid; grid-template-columns: 1fr; gap:14px}
@media (min-width: 960px){
  .grid-2{grid-template-columns: 1.2fr .8fr; align-items:start}
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 80%, white 20%), var(--primary));
  color: #0b0717;
  font-weight:750;
  text-decoration:none;
  box-shadow: var(--shadow-1);
}
.btn:hover{filter:saturate(1.05)}
.btn:active{transform: translateY(1px)}
.btn--tonal{
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
  color: var(--text);
}
.btn--ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn--disabled{opacity:.55; pointer-events:none}
.btn--full{width:100%; margin-top: 10px}

.link{color: inherit; text-decoration:none}
.link:hover{text-decoration:underline}

/* Typography helpers */
.prose p{margin: 0 0 12px}
.prose h2{margin: 16px 0 8px; font-size: 18px}
.prose h3{margin: 14px 0 6px; font-size: 15px}
.prose ul{margin: 0 0 12px; padding-left: 18px}
.prose li{margin: 6px 0}
.muted{color:var(--muted)}
.subhead{margin:0 0 8px; font-size: 14px; letter-spacing:.2px}

.list{margin:10px 0 0; padding-left: 18px}
.list li{margin:6px 0}

.divider{height:1px; background: var(--border); margin: 12px 0}

/* Product page */
.crumbs{display:flex; align-items:center; gap:8px; padding:10px 0; color:var(--muted)}
.crumbs__link{text-decoration:none}
.crumbs__link:hover{text-decoration:underline}
.crumbs__sep{opacity:.7}

.product-head{display:grid; grid-template-columns: 1fr; gap:14px; align-items:start}
.product-head__title{margin:0; font-size: clamp(22px, 5vw, 36px); line-height:1.15}
.product-head__sub{margin:8px 0 0; color:var(--muted)}
.product-head__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.note{display:inline-block; padding:10px 12px; border-radius: 14px; border:1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, var(--surface-2)); color: var(--muted)}

@media (min-width: 980px){
  .product-head{grid-template-columns: 1.05fr .95fr}
}

.kv{display:grid; gap:8px; margin-top: 10px}
.kv__row{display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border-radius: 14px; border:1px solid var(--border); background: color-mix(in srgb, var(--surface) 85%, var(--surface-3))}
.kv__k{color:var(--muted); font-weight:650}
.kv__v{font-weight:700; text-align:right}

.pill{display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background: color-mix(in srgb, var(--secondary-2) 55%, var(--surface)); border:1px solid var(--border); font-weight:750}

.bullets{margin: 0 0 12px; padding-left: 18px}
.bullets li{margin: 6px 0}
.bullets--good li::marker{color: var(--good)}
.bullets--bad li::marker{color: var(--bad)}

/* Gallery */
.gallery{
  border:1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-2);
  padding: 12px;
}
.gallery__single{width:100%; border-radius: 16px; border:1px solid var(--border); aspect-ratio: 4/3; object-fit: cover; background: var(--surface)}
.gallery__main{display:block}
.gallery__main-img{width:100%; border-radius: 16px; border:1px solid var(--border); aspect-ratio: 4/3; object-fit: cover; background: var(--surface)}
.gallery__thumbs{margin-top:10px; display:flex; gap:10px; overflow:auto; padding-bottom:4px}
.thumb{border:1px solid var(--border); background: var(--surface); border-radius: 14px; padding:0; width:84px; flex: 0 0 auto; box-shadow: var(--shadow-1)}
.thumb img{width:100%; height:64px; object-fit:cover; border-radius: 14px}
.thumb.is-active{outline: 2px solid color-mix(in srgb, var(--primary) 70%, white 30%); outline-offset: 2px}

/* About map */
.map{border:1px solid var(--border); border-radius: 18px; overflow:hidden; box-shadow: var(--shadow-1); background: var(--surface)}
.map iframe{width:100%; height:240px; border:0}
@media (min-width: 760px){.map iframe{height:320px}}

.media-row{display:flex; gap:12px; align-items:flex-start}
.media-row__title{margin:0 0 4px}
.avatar{width:52px;height:52px; border-radius: 18px; border:1px solid var(--border); background: var(--surface-2)}

.thumb-row{display:grid; grid-template-columns: repeat(4, 1fr); gap:10px}
.thumb-row__img{width:100%; aspect-ratio: 1/1; padding:10px; border:1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, var(--surface-2))}

/* Pager */
.pager{display:flex; justify-content:space-between; gap:12px; margin-top:16px}

/* Footer */
.footer{border-top:1px solid var(--border); margin-top: 18px; background: color-mix(in srgb, var(--surface) 84%, transparent)}
.footer__inner{display:flex; flex-direction:column; gap:12px; padding:16px}
.footer__brand{display:flex; align-items:center; gap:10px}
.footer__mark{width:34px;height:34px}
.footer__name{font-weight:800}
.footer__small{color:var(--muted); font-size: 13px}
.footer__links{display:flex; flex-wrap:wrap; gap:12px}
.footer__link{color:var(--muted); text-decoration:none}
.footer__link:hover{color:var(--text); text-decoration:underline}
@media (min-width: 760px){
  .footer__inner{flex-direction:row; align-items:center; justify-content:space-between}
}

/* Cookie banner */
.cookie{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
}
.cookie[hidden]{display:none !important}
.cookie__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cookie__text{margin:0; color: var(--muted)}
.cookie__actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.fineprint{
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-3));
  padding: 12px 14px;
  border-radius: var(--radius);
}
