/* Venezia Outlet: brand tokens + page layout on top of kit.css (public site and admin). */
:root {
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mesh-a: #f3cfc8; --mesh-b: #ddd9d0; --mesh-c: #f1e3d2;
  --tomato: #c72c30;            /* Venezia red */
  --brand-deep: #981b1e;
  --dock-x: 0px; --dock-w: 0px; /* no dock on these pages */
  --app-max: 1280px;
}
.app { padding-top: 14px; }
h1, h2, h3 { text-wrap: balance; }
.ico--fill { fill: currentColor; stroke: none; }

/* ── Floating pill nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 20px; margin-bottom: clamp(28px, 5vw, 56px); border-radius: 999px;
  background: var(--float); border: 1px solid var(--line); box-shadow: 0 14px 34px -22px rgba(40, 30, 20, .4);
}
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__brand img { height: 34px; width: auto; }
.nav__tag { padding: 4px 10px; border-radius: 999px; background: var(--tomato); color: var(--on-tomato); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.nav__link { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.nav__link:hover { background: var(--well); }
.nav .btn { margin-left: 6px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: center; margin-bottom: clamp(48px, 7vw, 96px); }
.hero__title { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero__title .word { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.hero__title .ch { display: inline-block; }
.hero__lead { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn--red { background: var(--tomato); color: var(--on-tomato); }
.btn--red:hover { background: var(--brand-deep); }

/* the page's one bold block: the biggest discount */
.deal { background: var(--ink); color: var(--on-ink); border-color: transparent; padding: 14px; gap: 14px; }
.deal__img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #26292a; }
.deal__img img { width: 100%; height: 100%; object-fit: cover; }
.deal__off { position: absolute; left: 12px; top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--tomato); color: var(--on-tomato); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.deal__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 6px 6px; }
.deal__label { font-size: 12.5px; opacity: .65; }
.deal__name { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.deal__price { font-size: 21px; font-weight: 700; white-space: nowrap; }
.deal__price s { display: block; font-size: 13px; font-weight: 500; opacity: .6; text-align: right; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { margin-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: 96px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.sec__title { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.sec__sub { color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { height: 38px; padding: 0 16px; flex: none; font-size: 13.5px; }
.filters .chip small { opacity: .6; font-weight: 600; }

/* ── Product cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pcard { padding: 10px; gap: 0; }
.pcard__img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--well); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__off { position: absolute; left: 10px; top: 10px; padding: 5px 11px; font-size: 13px; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 8px 6px; flex: 1; }
.pcard__cat { font-size: 12px; font-weight: 600; color: var(--muted); }
.pcard__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pcard__feat { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: auto; padding-top: 12px; }
.pcard__price b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pcard__price s { font-size: 13px; color: var(--faint); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.loc { display: inline-flex; align-items: center; gap: 4px; }
.loc .ico { width: 14px; height: 14px; }

/* ── Steps + showrooms ────────────────────────────────────────────────── */
.three { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { padding: 22px; gap: 10px; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--rim); font-weight: 800; }
.step__title { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.step p { color: var(--muted); }
.salon { padding: 22px; gap: 6px; }
.salon__city { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.salon__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px clamp(20px, 3vw, 36px); border-radius: var(--r-card); background: var(--ink); color: var(--on-ink); }
.foot img { height: 84px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot .btn--ghost { background: none; border-color: rgba(255, 255, 255, .28); color: inherit; }
.foot small { width: 100%; opacity: .55; font-size: 12px; }

/* phone: call + WhatsApp always in reach */
.callbar { display: none; }

/* ── Product page ─────────────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.back:hover { color: var(--text); }
.pp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.gal { padding: 10px; gap: 10px; }
.gal__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.gal__strip::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; background: var(--well); }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal__thumb { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; opacity: .55; border: 2px solid transparent; }
.gal__thumb[aria-current="true"] { opacity: 1; border-color: var(--text); }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: clamp(18px, 2vw, 28px); gap: 14px; position: sticky; top: 92px; }
.info__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.info__title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.info__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.info__price b { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.info__price s { font-size: 16px; color: var(--faint); }
.info__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.info__tags .badge { font-size: 12.5px; padding: 5px 12px; }
.feats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feats li { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feats .ico { margin-top: 2px; color: var(--tomato); }
.info__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.info__cta .btn { width: 100%; }
.info__cta .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.info__note { font-size: 12.5px; color: var(--muted); }

/* ── Admin ────────────────────────────────────────────────────────────── */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(400px, 100%); padding: 28px; gap: 16px; align-items: stretch; text-align: center; }
.login img { height: 120px; margin: 0 auto; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--well); flex: none; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.is-off td:not(:last-child) { opacity: .5; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form__foot { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: -22px; padding: 12px 0 0; background: #f7f5f0; }
.field textarea { min-height: 110px; resize: vertical; border-radius: 14px; }
.field__hint { font-size: 12px; color: var(--faint); }
.modal--wide { width: min(680px, calc(100vw - 24px)); max-height: 92dvh; overflow: auto; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--well); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__x, .photo__main { position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--float); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); font-size: 13px; font-weight: 800; }
.photo__x { right: 4px; } .photo__main { left: 4px; }
.photo__main[aria-pressed="true"] { background: var(--butter); }
.photo--add { display: grid; place-items: center; border: 1.5px dashed var(--line-2); background: none; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero, .pp { grid-template-columns: minmax(0, 1fr); }
  .info { position: static; }
  .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { padding-left: 16px; }
  .nav__link, .nav__wa { display: none; }
  .nav__brand img { height: 28px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 6px; border-radius: 20px; }
  .pcard__img { border-radius: 15px; }
  .pcard__body { padding: 10px 6px 6px; }
  .pcard__name { font-size: 16px; }
  .pcard__price b { font-size: 17px; }
  .pcard__feat, .pcard__foot .loc { display: none; }
  .gal__slide { aspect-ratio: 1; }
  .callbar {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 999px;
    background: var(--float); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  }
  .callbar .btn { height: 48px; padding: 0 10px; }
  .form__row, .form__row--3 { grid-template-columns: minmax(0, 1fr); }
  .admin .app { padding-bottom: 40px; }
  .hide-sm { display: none; }
  .admin .toolbar .search { flex: 1 1 100% !important; max-width: none !important; }
  /* the product table becomes a list of cards: one product, its price and stock, then its actions */
  .admin .table thead, .admin .table td:nth-child(2) { display: none; }
  .admin .table, .admin .table tbody { display: block; }
  .admin .table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .admin .table tr:last-child { border-bottom: 0; }
  .admin .table td { padding: 0; border: 0; }
  .admin .table td:nth-child(1), .admin .table td:nth-child(6) { grid-column: 1 / -1; }
  .admin .table td:nth-child(3) { text-align: left; }
  .admin .row-actions { justify-content: flex-start; }
}
@media (max-width: 339px) { .grid { grid-template-columns: minmax(0, 1fr); } }
