/* ============================================================================
   Frangello By — marketplace homepage
   Mirrors /Downloads/frangello-home.html 1:1 (layout, neutrals, Manrope,
   spacing). Only change: the orange accent #e0603f is replaced by the brand
   blue. Filled buttons use the deeper #1583d4 so white text stays readable —
   #39B6FE with white text fails contrast.
   Used by index.html only; other pages keep /css/style.css.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg:        #f6f5f3;
  --ink:       #17161a;
  --ink-2:     #2c2a27;
  --soft:      #4a4640;
  --body:      #6b6660;
  --muted:     #8a847c;
  --dim:       #a9a6a1;
  --line:      #e7e4df;
  --brand:     #39B6FE;   /* brand blue — accents, highlights, on dark */
  --fill:      #1583d4;   /* filled buttons / white text */
  --fill-2:    #0d6fc0;   /* filled hover */
  --tint:      #e8f4ff;   /* soft blue wash */
  --sand:      #e8e3db;   /* hero panel */
  --sand-2:    #ddd6cb;   /* hero stripes */
  --sale:      #d1462f;
  --green:     #2f7d55;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --wrap:      1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--fill); }
img { display: block; max-width: 100%; }
button { font: inherit; }
.hidden { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.top { background: var(--ink); color: var(--bg); }
.toprow { display: flex; align-items: center; gap: 28px; height: 40px; font-size: 13px; font-weight: 500; color: var(--dim); }
.toprow a { color: var(--dim); }
.toprow a:hover { color: var(--bg); }
.toprow .pin { color: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.toprow .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.toprow .cur { padding: 3px 10px; border: 1px solid #3a3833; border-radius: 999px; color: var(--bg); }

.mainrow { display: flex; align-items: center; gap: 20px; padding-bottom: 18px; }
.logo-img { height: 28px; width: auto; }

.catalog {
  display: flex; align-items: center; gap: 10px; background: var(--fill); color: #fff;
  border: 0; border-radius: 12px; padding: 0 20px; height: 48px;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.catalog:hover { background: var(--fill-2); }
.burger { display: flex; flex-direction: column; gap: 3px; }
.burger i { display: block; width: 16px; height: 2px; background: #fff; }

.search { flex: 1; min-width: 170px; display: flex; align-items: center; background: #fff; border-radius: 12px; height: 48px; padding: 0 6px 0 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search button { height: 36px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--fill); }

.icons { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 600; color: var(--dim); }
.hicon { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim); }
.hicon:hover { color: var(--bg); }
.hicon b { font-size: 19px; color: var(--bg); font-weight: 400; line-height: 1; }
/* account slot markup comes from /js/customer.js (shared with other pages) */
.icons .account-link { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--dim); }
.icons .account-link:hover { color: var(--bg); }
.icons .account-link-icon { font-size: 17px; line-height: 19px; color: var(--bg); }

nav.catnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.navrow { display: flex; align-items: center; gap: 26px; height: 50px; font-size: 14px; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.navrow::-webkit-scrollbar { display: none; }
.navrow a { white-space: nowrap; }
.navrow a.on { color: var(--fill); }
.navrow .pay { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--green); }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
main { max-width: var(--wrap); margin: 0 auto; padding: 20px 24px 60px; }

.promo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.promo em { background: var(--fill); color: #fff; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-style: normal; }
.promo i { margin-left: auto; color: var(--dim); font-weight: 500; font-style: normal; }

.heroGrid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-bottom: 32px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--sand); min-height: 380px; display: flex; flex-direction: column; justify-content: center; padding: 56px 60px; }
.hero .stripes { position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, var(--sand-2) 0 12px, var(--sand) 12px 24px); opacity: .9; }
.hero .in { position: relative; }
.kick { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #7a736a; margin-bottom: 18px; }
.h1 { font-size: 64px; line-height: .95; font-weight: 800; letter-spacing: -.035em; max-width: 560px; margin: 0; }
.h1 span { color: var(--fill); }
.lead { font-size: 17px; font-weight: 500; color: var(--soft); margin: 20px 0 0; max-width: 420px; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; background: var(--fill); color: #fff; padding: 16px 30px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.cta:hover { color: #fff; background: var(--fill-2); }
.heroTag { position: absolute; right: 44px; bottom: 44px; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 22px; font-size: 15px; font-weight: 700; }

.side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.card { border-radius: 18px; background: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.card.dark { background: var(--ink); color: var(--bg); }
.card .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--green); }
.card.dark .lbl { color: var(--brand); }
.card .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.card .sm { font-size: 14px; color: var(--body); font-weight: 500; }
.card.dark .sm { color: var(--dim); }

/* ─── Categories ──────────────────────────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 40px; }
.cat { background: #fff; border: 0; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; cursor: pointer; text-align: left; font: inherit; }
.cat:hover { box-shadow: 0 10px 26px -18px rgba(23,22,26,.5); }
.cat.active { background: var(--tint); }
.cat .ic { height: 34px; width: 34px; border-radius: 10px; background: #f0ece5; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cat img.ic { object-fit: cover; }
.cat b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-top: auto; line-height: 1.25; }
.cat span { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ─── Section head ────────────────────────────────────────────────────────── */
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.head .count { font-size: 15px; font-weight: 600; color: var(--muted); padding-bottom: 5px; }
.head .all { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--fill); padding-bottom: 5px; background: none; border: 0; cursor: pointer; }
.head .all:hover { color: var(--fill-2); }

/* ─── Product grid ────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.p { position: relative; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.p:hover { box-shadow: 0 16px 34px -22px rgba(23,22,26,.55); }
.pimg { position: relative; aspect-ratio: 3/4; background: #f4f1ec; overflow: hidden; display: block; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #ffffffe6; font-size: 16px; line-height: 1; cursor: pointer; color: #b8b3ac; }
.fav:hover, .fav.on { color: var(--sale); }
.badges { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.disc { background: var(--sale); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 7px; }
.tag { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; letter-spacing: .04em; }
.tag.new { background: var(--fill); }
.pbody { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; color: var(--sale); letter-spacing: -.02em; }
.old { font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: line-through; }
.name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rate { font-size: 13px; font-weight: 600; color: var(--muted); }
.buy { margin-top: auto; height: 42px; border: 0; border-radius: 11px; background: #f2ede6; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.buy:hover { background: var(--fill); color: #fff; }

.empty { grid-column: 1/-1; text-align: center; padding: 48px 20px; color: var(--muted); font-weight: 600; }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.more { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 34px; font-size: 15px; font-weight: 700; cursor: pointer; }
.more:hover { border-color: var(--fill); color: var(--fill); }

/* Skeletons */
.sk { background: #fff; border-radius: 16px; overflow: hidden; }
.sk .a { aspect-ratio: 3/4; background: linear-gradient(90deg,#f4f1ec,#eae5dd,#f4f1ec); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
.sk .b { height: 14px; margin: 14px; border-radius: 6px; background: #f2ede6; }
.sk .b.s { width: 55%; }
@keyframes sh { to { background-position: -200% 0; } }

/* ─── Reels ───────────────────────────────────────────────────────────────── */
.reels-sec { margin-top: 44px; }
.ugc-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ugc-track { display: flex; gap: 14px; width: max-content; animation: marq 64s linear infinite; }
.ugc-row:hover .ugc-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.ugc-card { position: relative; flex: 0 0 auto; width: 190px; aspect-ratio: 9/16; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #e8e3db; }
.ugc-card .ugc-poster, .ugc-card .ugc-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ugc-card .ugc-v { opacity: 0; transition: opacity .25s var(--ease); }
.ugc-card.on .ugc-v { opacity: 1; }
.ugc-badge { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.ugc-play { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(23,22,26,.6); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ugc-lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,11,14,.93); display: none; align-items: center; justify-content: center; }
.ugc-lb.open { display: flex; }
.ugc-lb-stage { width: min(420px, 92vw); aspect-ratio: 9/16; }
.ugc-lb-stage video { width: 100%; height: 100%; border-radius: 16px; background: #000; }
.ugc-lb-x, .ugc-lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.ugc-lb-x { top: 20px; right: 20px; }
.ugc-lb-nav.prev { left: 3vw; } .ugc-lb-nav.next { right: 3vw; }
.ugc-lb-ig { position: absolute; bottom: 24px; color: #fff; font-weight: 700; font-size: 14px; }

/* ─── Trust / delivery ────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.trust div { background: #fff; border-radius: 16px; padding: 24px; }
.trust b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.trust p { margin: 0; font-size: 14px; font-weight: 500; color: var(--body); line-height: 1.45; }

.delivery { margin-top: 16px; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 34px 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: center; }
.delivery .lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
.delivery .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.delivery p { margin: 0; font-size: 15px; font-weight: 500; color: #c9c5bf; line-height: 1.5; }
.chips { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.chips span { background: #26241f; border-radius: 10px; padding: 12px 16px; }

/* ─── БелГИЭ ──────────────────────────────────────────────────────────────── */
.belgie { margin-top: 16px; background: #fff; border-radius: 18px; padding: 32px 36px; }
.belgie-head { display: flex; gap: 18px; align-items: flex-start; }
.belgie-shield { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--fill); display: flex; align-items: center; justify-content: center; }
.belgie-shield svg { width: 24px; height: 24px; }
.belgie h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.belgie-sub { margin: 0; font-size: 14.5px; color: var(--body); line-height: 1.55; max-width: 760px; font-weight: 500; }
.belgie-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.belgie-badges div { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.bb-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.bb-value { font-size: 14.5px; font-weight: 700; }
.belgie ul { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--body); font-weight: 500; }
.belgie ul strong { color: var(--ink); }
.belgie-verify { display: inline-flex; align-items: center; gap: 9px; background: var(--fill); color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px 22px; border-radius: 12px; }
.belgie-verify:hover { background: var(--fill-2); color: #fff; }
.belgie-verify svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.belgie-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; font-weight: 500; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer { background: #fff; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 24px; max-width: var(--wrap); margin: 0 auto; }
.fcol { display: flex; flex-direction: column; gap: 9px; font-size: 14px; font-weight: 600; }
.fcol > b { color: var(--muted); }
.freq { font-size: 14px; color: var(--body); font-weight: 500; margin-top: 10px; line-height: 1.5; }
/* the logo SVG is white-filled for the dark header — knock it to ink for the light footer */
.flogo img { height: 26px; filter: brightness(0) opacity(.85); }
.copy { border-top: 1px solid var(--line); padding: 18px 24px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ─── Toast / WhatsApp ────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: none; align-items: center; justify-content: center; z-index: 120; box-shadow: 0 10px 26px -10px rgba(37,211,102,.9); }

/* ─── Responsive (mockup breakpoints + mobile header fixes) ───────────────── */
@media (max-width: 1100px) {
  .heroGrid { grid-template-columns: 1fr; }
  .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .trust, .delivery, .fgrid { grid-template-columns: 1fr 1fr; }
  .belgie-badges { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap, main { padding-left: 14px; padding-right: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .h1 { font-size: 40px; }
  .hero { padding: 32px 24px; min-height: 300px; }
  .heroTag { right: 16px; bottom: auto; top: 18px; padding: 10px 15px; font-size: 13px; }
  .head h2 { font-size: 26px; }
  .toprow { gap: 16px; font-size: 12px; overflow-x: auto; scrollbar-width: none; }
  .toprow::-webkit-scrollbar { display: none; }
  .toprow .hide-sm { display: none; }
  /* row 1: logo + account icons — row 2: catalog + search */
  .mainrow { flex-wrap: wrap; gap: 12px; }
  .mainrow > a:first-child { order: 1; }
  .icons { order: 2; margin-left: auto; gap: 16px; }
  .catalog { order: 3; height: 44px; padding: 0 16px; font-size: 14px; }
  .search { order: 4; flex: 1 1 150px; height: 44px; padding-left: 14px; }
  .search button { padding: 0 14px; }
  .trust, .delivery, .fgrid { grid-template-columns: 1fr; }
  .delivery { padding: 26px 22px; }
  .fgrid { gap: 24px; padding: 32px 14px; }
  .promo i { margin-left: 0; flex-basis: 100%; }
  .belgie { padding: 24px 18px; }
  .ugc-card { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
