/* colors taken from the price list of 17.11.2026: navy header, blue accents, light-blue panels, orange "pcs/box" */
:root {
  /* fine grain (svg noise tile) over a moving blue gradient: header + profile card */
  --shine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(120deg, #0a1f4a, #1d4ea8, #3a7ee8, #133a85, #0a1f4a);
  --navy: #1f3c72;
  --blue: #2e59a6;
  --blue2: #3b6bbf;
  --sky: #e3ebf5;
  --bg: #f0f3f8;
  --card: #fff;
  --line: #dbe3ef;
  --text: #1c2944;
  --muted: #5d6a84;
  --or: #c9600f;
  --photo-bg: radial-gradient(circle at 50% 40%, #fbfdff, #e9f1fb);
  --shadow: 0 1px 2px rgba(31, 60, 114, .06), 0 8px 22px -10px rgba(31, 60, 114, .28);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 16px 60px; }
img { display: block; }

/* ---------- background: shelves glide past like a camera flying along them, the round logo stays put ---------- */
@keyframes sky { to { background-position: 100% 100%; } } /* header shimmer */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #eef1f5; }
/* img/shelves.jpg is a seamless loop 643px wide at this size, so moving by exactly 643px repeats without a jump */
.bg::before { content: ""; position: absolute; top: 50%; left: 0; width: calc(100% + 643px); height: 960px; margin-top: -480px;
  background: url(img/shelves.jpg) repeat-x 0 0 / 643px 960px; animation: glide 26s linear infinite; will-change: transform; }
@keyframes glide { to { transform: translateX(-643px); } }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(244, 248, 254, .55), rgba(217, 231, 250, .45)); } /* keeps text readable, site stays light blue */
.bg-logo { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.bg-logo img { width: min(62vmin, 520px); opacity: .35; }

/* ---------- header (navy bar, like the price list) ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100% - 1280px) / 2 + 16px));
  /* shimmering blue, a bit faster than the page background (18s) */
  /* first layer: fine grain (svg noise tile), second: the moving gradient */
  background: var(--shine); background-size: 160px 160px, 300% 300%;
  animation: sky 9s ease-in-out infinite alternate; color: #fff;
  box-shadow: 0 4px 18px rgba(31, 60, 114, .25);
}
.logo { display: flex; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); } /* round logo has its own white ring */
.logo img { height: 60px; width: auto; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav a { padding: 8px 14px; border-radius: 10px; color: #d4def0; font-weight: 600; font-size: 15px; transition: .2s; }
nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
nav a.active { color: var(--navy); background: #fff; }
.lang { position: relative; }
.globe { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; font: 700 13px Montserrat, system-ui, sans-serif; cursor: pointer; transition: .2s; }
.globe svg { width: 22px; height: 22px; transition: transform .5s; }
.globe:hover, .globe[aria-expanded="true"] { background: rgba(255, 255, 255, .12); border-color: #fff; }
.globe:hover svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: flex; flex-direction: column; min-width: 90px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(31, 60, 114, .25); animation: pop .15s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button { background: transparent; color: var(--text); border: 0; border-radius: 8px; padding: 9px 12px; text-align: left; font: 700 14px Montserrat, system-ui, sans-serif; cursor: pointer; }
.lang-menu button:hover { background: var(--sky); }
.lang-menu button.on { background: var(--blue); color: #fff; }
.cart-btn { position: relative; background: var(--blue2); border: 0; border-radius: 12px; width: 46px; height: 42px; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.cart-btn:hover { background: #4b7bd0; }
.cart-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--or); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.5); } }

/* ---------- buttons / inputs ---------- */
.btn {
  display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 20px; font: 700 15px Montserrat, system-ui, sans-serif; cursor: pointer; transition: .2s; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 #1a3466, 0 6px 14px rgba(31, 60, 114, .3);
}
.btn:hover { background: var(--blue2); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 0 #1a3466, 0 2px 4px rgba(31, 60, 114, .3); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.done { background: #2e9d57; box-shadow: 0 3px 0 #1f6e3c; }
.btn.big { padding: 15px 30px; font-size: 17px; }
.field, .search {
  width: 100%; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font: 15px Montserrat, system-ui, sans-serif; outline: none; transition: .2s;
}
.field::placeholder, .search::placeholder { color: #8a95ab; }
.field:focus, .search:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(59, 107, 191, .18); }
textarea.field { min-height: 120px; resize: vertical; }

.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--sky); align-self: flex-start; }
.qty button {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 #1a3466;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.qty button svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qty button:hover { filter: brightness(1.12); }
.qty button:active { transform: translateY(2px); box-shadow: 0 0 0 #1a3466; }
.qty input { width: 42px; text-align: center; background: transparent; color: var(--text); border: 0; font: 700 14px Montserrat, system-ui, sans-serif; padding: 3px 0; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.panel { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; color: var(--navy); }
h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: var(--navy); }
.muted { color: var(--muted); line-height: 1.6; }
.y { color: var(--blue); }
.or { color: var(--or); font-weight: 700; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: .25s; box-shadow: var(--shadow); }
.card:hover { border-color: var(--blue2); transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(31, 60, 114, .4); }
.pimg { display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--photo-bg); padding: 6px; overflow: hidden; }
.pimg img, .pp-img img, .cimg img, .side button img, .hero-art img { width: 100%; height: 100%; object-fit: contain; }
/* white photo backgrounds melt into the tinted box, so only the product shows */
.pimg img, .pp-img img, .cimg img { mix-blend-mode: multiply; }
.pimg img { transition: transform .3s; }
.card:hover .pimg img { transform: scale(1.05); }
.pname { font-weight: 700; font-size: 14px; line-height: 1.35; min-height: 38px; }
.pname:hover { color: var(--blue); }
.pprice { color: var(--muted); font-size: 13px; }
.ptotal { font-weight: 800; font-size: 17px; color: var(--navy); white-space: nowrap; }
.card .ptotal { margin-top: auto; }
.card .pprice { font-weight: 600; }
/* wholesale cards: box price on light blue, pallet price on navy, like the price list */
.pmeta { color: var(--muted); font-size: 12px; }
.wsp { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wsp span { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 10px; background: var(--sky); color: var(--muted); font-size: 11px; }
.wsp b { color: var(--navy); font-size: 16px; white-space: nowrap; }
.wsp .pal { background: var(--navy); color: #c9d6ee; }
.wsp .pal b { color: #fff; }
.ws-cat { margin-top: 40px; }
.ws-cat > .muted { margin: -6px 0 22px; }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 110px); overflow-y: auto; }
.side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.side button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 4px 8px 4px 5px; font: 700 12px/1.2 Montserrat, system-ui, sans-serif; cursor: pointer; transition: .2s;
}
.side button img { width: 24px; height: 24px; flex: none; }
.side button:hover { border-color: var(--blue2); background: var(--sky); }
.side button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.side button.dim:not(.on) { opacity: .45; }
.side .side-x { display: none; width: auto; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 20px; }
.cat-menu, .side-x { display: none; }
@media (max-width: 860px) { .side .side-x { display: block; } }
@keyframes fade { from { opacity: 0; } }
.cat-main { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.cat-sec { scroll-margin-top: 90px; }
.cat-sec h2 { display: flex; align-items: center; gap: 10px; }
.cat-sec h2::before { content: ""; flex: none; width: 6px; height: 26px; border-radius: 3px; background: var(--blue); }
.nothing { text-align: center; padding: 40px; color: var(--muted); font-size: 18px; }

/* ---------- product page ---------- */
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--blue); }
.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.pp-img { aspect-ratio: 1; border-radius: 24px; padding: 30px; background: var(--photo-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
button.pp-img { position: relative; display: block; width: 100%; color: inherit; font: inherit; cursor: zoom-in; }
.pp-img img { transition: transform .3s; }
.pp-img:hover img { transform: scale(1.04); }
.zoom-ic { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); font-size: 20px; border: 1px solid var(--line); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(240, 243, 248, .97); cursor: zoom-out; animation: pop .2s ease-out; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lb-x { position: absolute; top: 16px; right: 20px; font-size: 28px; }
.msgrs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.msgr { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 30px; background: #fff; font-weight: 700; font-size: 14px; transition: .2s; }
.msgr svg { width: 26px; height: 26px; }
.msgr:hover { border-color: var(--blue2); transform: translateY(-1px); }
.pp-info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pp-info h1 { font-size: clamp(22px, 3vw, 32px); }
.tag { background: var(--sky); color: var(--blue); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.pp-price { font-size: 17px; color: var(--muted); }
.pp-desc { font-size: 15px; line-height: 1.5; color: var(--text, #333); }
.pp-price b { color: var(--navy); font-size: 22px; }
.pp .qty button { width: 32px; height: 32px; border-radius: 9px; }
.pp .qty button svg { width: 12px; height: 12px; }
.pp .qty input { width: 64px; font-size: 19px; }
.pp-total { font-size: 20px; font-weight: 600; }
.pp-total .ptotal { font-size: 34px; }

/* ---------- cart page ---------- */
.cart-page { max-width: 1040px; }
.cart-h { font-size: 30px; color: var(--navy); margin-bottom: 16px; }
.cart-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.clist { display: flex; flex-direction: column; padding: 6px 18px; }
.cline { display: grid; grid-template-columns: auto 92px 1fr; gap: 14px; align-items: center; padding: 14px 0; }
.cline + .cline { border-top: 1px solid var(--line); }
.cart-sum { position: sticky; top: calc(var(--hh, 70px) + 12px); display: flex; flex-direction: column; gap: 12px; }
.cart-sum h3 { font-size: 17px; color: var(--navy); }
#checkout { width: 100%; }
#checkout .dot { opacity: .6; margin: 0 4px; }
.cart-btn.on { background: var(--or); }
.sel {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none; cursor: pointer;
  border: 2px solid #a9b6cc; border-radius: 6px; background: #fff; display: grid; place-items: center; transition: .15s;
}
.sel::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.sel:checked { background: var(--blue); border-color: var(--blue); }
.sel:checked::after { opacity: 1; }
.sel:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }
.cline.off > :not(.sel) { opacity: .4; }
.cimg { width: 92px; height: 92px; border-radius: 10px; background: var(--photo-bg); padding: 2px; }
.cbody { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ctop { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.cname { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cname:hover { color: var(--blue); }
.cbot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cbot .ptotal { font-size: 19px; white-space: nowrap; }
.cunit { color: var(--muted); font-size: 13px; }
.rm { background: none; border: 0; color: #9aa5ba; cursor: pointer; flex: none; padding: 2px; }
.rm svg { width: 22px; height: 22px; display: block; }
.rm:hover { color: #d63a2f; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac { display: flex; flex-direction: column; gap: 4px; }
.sugg {
  max-height: 210px; overflow-y: auto; padding: 4px; border-radius: 12px;
  background: #fff; border: 1px solid var(--blue2); box-shadow: 0 8px 20px rgba(31, 60, 114, .18);
  scrollbar-width: thin; scrollbar-color: #b8c4d8 transparent;
}
.sopt { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; font: 600 13px/1.3 Montserrat, system-ui, sans-serif; cursor: pointer; }
.sopt:hover, .sopt.on { background: var(--blue); color: #fff; }
.field:-webkit-autofill, .field:autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px #fff inset; caret-color: var(--text); }
.seg label { position: relative; display: grid; }
.seg label span { display: grid; place-items: center; padding: 10px 4px; font-size: 13px; line-height: 1.2; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky); font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer; transition: .2s; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59, 107, 191, .35); }
.pk-note { font-size: 14px; }
.sum { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: var(--navy); }
.empty, .ok { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: var(--muted); padding: 40px 16px; font-size: 17px; }
.ok { color: #2e9d57; font-weight: 600; }
.err { color: #d63a2f; font-size: 14px; font-weight: 600; }

/* ---------- home / contact / wholesale ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; margin-bottom: 50px; }
.hero p { margin: 18px 0 26px; font-size: 18px; }
/* cut-out product photos (transparent png), solid over the moving background */
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; perspective: 800px; }
.hero-art img { width: 26%; margin: 0 -1.5%; aspect-ratio: 1 / 2; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(31, 60, 114, .22)); }
.hero-art img:nth-child(even) { margin-bottom: 24px; }
.hero-art img:nth-child(2) { animation-delay: -1.5s; }
.hero-art img:nth-child(3) { animation-delay: -3s; }
.hero-art img:nth-child(4) { animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-10px) rotateY(10deg); } }
/* same card width as the catalog (which shares its row with the sidebar) */
@media (min-width: 861px) { #popular { grid-template-columns: repeat(4, minmax(0, 240px)); justify-content: center; } }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 50px; }
.feat h3 { color: var(--blue); margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.info { display: flex; flex-direction: column; gap: 18px; }
.info div span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.info div b { font-size: 17px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form h2 { margin-bottom: 4px; }
.benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.benefits li::before { content: "✔"; color: var(--blue); margin-right: 10px; }

.manager { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.manager h2 { margin-bottom: 6px; }
.tg-btn { display: inline-flex; align-items: center; gap: 10px; background: #29a9eb; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 0 #1a6f9c, 0 6px 12px rgba(41, 169, 235, .3); }
.tg-btn:hover { background: #3cb6f2; }
.tg-btn svg { width: 26px; height: 26px; }
.tg-btn svg circle { fill: #fff; }
.tg-btn svg path { fill: #29a9eb; }
.tg-mini { display: inline-block; vertical-align: middle; margin-left: 8px; transition: transform .2s; }
.tg-mini svg { width: 24px; height: 24px; display: block; }
.tg-mini:hover { transform: scale(1.15); }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
.steps li::marker { color: var(--blue); font-weight: 800; }

footer { text-align: center; padding: 22px 16px; color: #c9d6ee; font-size: 14px; background: var(--navy); }
footer .y { color: #fff; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  header { gap: 10px; }
  /* one scrollable row of tabs instead of wrapping into several lines */
  nav { margin-left: 0; order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 860px) {
  .catalog, .pp, .hero, .two, .cart-wrap { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
  /* phone: categories live in a drawer that slides in from the left; the pinned bar shows the current category */
  .cat-menu { display: flex; align-items: center; gap: 10px; position: sticky; top: var(--hh, 56px); z-index: 15; margin: -8px -12px 0; padding: 10px 14px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); color: var(--navy); font: 700 14px Montserrat, system-ui, sans-serif; text-align: left; cursor: pointer; }
  .cat-menu svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .cat-dim:not([hidden]) { position: fixed; inset: 0; z-index: 49; background: rgba(15, 30, 60, .45); animation: fade .2s; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(310px, 84vw); max-height: none; margin: 0; padding: 16px 12px 24px; background: #fff; gap: 6px !important; transform: translateX(-105%); transition: transform .25s ease-out; visibility: hidden; }
  .side.open { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(15, 30, 60, .25); }
  .side h3 { display: flex; align-items: center; justify-content: space-between; flex: none; width: 100%; }
  .side button:not(.x) { padding: 7px 10px 7px 6px !important; gap: 10px !important; font-size: 14px !important; border-radius: 10px !important; }
  .side button:not(.x) img { width: 30px !important; height: 30px !important; }
  .cat-sec { scroll-margin-top: calc(var(--hh, 56px) + 54px); }
  .pp-img { max-width: 360px; width: 100%; margin: 0 auto; padding: 20px; }
}
@media (max-width: 640px) {
  main { padding: 18px 12px 40px; }
  header { padding: 10px 12px; gap: 8px; }
  .logo img { height: 48px; }
  .globe { height: 36px; padding: 0 8px; }
  .globe svg { width: 18px; height: 18px; }
  .cart-btn { width: 40px; height: 36px; border-radius: 10px; }
  .cart-btn svg { width: 20px; height: 20px; }
  /* bottom tab bar */
  nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; width: auto; gap: 4px; overflow: visible;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -6px 20px rgba(31, 60, 114, .25);
  }
  nav a { flex: 1 1 0; min-width: 0; display: grid; place-items: center; text-align: center; padding: 7px 2px; font-size: 11px; line-height: 1.15; border-radius: 10px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  /* 3 compact cards per row on phones */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .card { padding: 6px; border-radius: 10px; gap: 4px; }
  .pimg { padding: 3px; border-radius: 8px; aspect-ratio: 4 / 5; }
  .pname { font-size: 10.5px; line-height: 1.25; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ptotal { font-size: 13px; }
  .card .pprice { font-size: 10px; }
  .pmeta { font-size: 9.5px; }
  .wsp { grid-template-columns: 1fr; gap: 3px; }
  .wsp span { padding: 3px 5px; font-size: 9px; border-radius: 6px; }
  .wsp b { font-size: 12px; }
  .cat-main { gap: 22px; }
  .cat-sec h2 { font-size: 17px; margin-bottom: 10px; }
  .side { gap: 5px; }
  .side button { padding: 3px 8px 3px 3px; gap: 5px; font-size: 11px; border-radius: 9px; }
  .side button img { width: 20px; height: 20px; }
  .search { padding: 10px 14px; font-size: 14px; }
  .panel { padding: 14px; border-radius: 14px; }
  .hero { margin-bottom: 24px; gap: 16px; }
  h1 { font-size: 26px; }
  .hero p { font-size: 15px; margin: 12px 0 16px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .feats { gap: 10px; margin-bottom: 30px; }
  .feat h3 { font-size: 16px; margin-bottom: 4px; }
  .feat p { font-size: 14px; }
  .btn.big { padding: 11px 20px; font-size: 15px; }
  .manager .tg-btn { width: 100%; justify-content: center; }
  /* product page fits one phone screen: smaller photo and info block */
  .back { margin-bottom: 8px; font-size: 14px; }
  .pp { gap: 12px; }
  .pp-img { max-width: 210px; padding: 10px; border-radius: 16px; }
  .zoom-ic { width: 30px; height: 30px; right: 8px; bottom: 8px; font-size: 15px; }
  .pp-info { gap: 8px; }
  .pp-info h1 { font-size: 18px; }
  .tag { padding: 3px 10px; font-size: 12px; }
  .pp-info .muted { font-size: 13px; line-height: 1.3; }
  .pp-price { font-size: 14px; }
  .pp-desc { font-size: 13px; line-height: 1.4; }
  .pp-price b { font-size: 17px; }
  .pp .qty button { width: 28px; height: 28px; }
  .pp .qty input { width: 52px; font-size: 16px; }
  .pp-total { font-size: 16px; }
  .pp-total .ptotal { font-size: 24px; }
  /* iPhone zooms into any field with text under 16px — keep fields at 16px */
  .field, .search, .qty input { font-size: 16px; }
  .cart-h { font-size: 22px; margin-bottom: 10px; }
  .clist { padding: 2px 12px; }
  .cline { grid-template-columns: auto 72px 1fr; gap: 10px; padding: 12px 0; }
  .cimg { width: 72px; height: 72px; }
  .cname { font-size: 13px; }
  .cbot .ptotal { font-size: 16px; }
  .cart-sum { gap: 8px; }
  #checkout { padding: 13px 10px; }
  .ws-cat { margin-top: 28px; }
}

/* out of stock (from BAS) */
.card.oos .pimg img { opacity: .45; filter: grayscale(1); }
.oos-l { color: #b4232a; font-weight: 700; font-size: 13px; }
.btn.oos-l { background: #eef1f6; color: #b4232a; cursor: default; box-shadow: none; }

/* ---------- account + admin (cabinet.js) ---------- */
.cab-page { max-width: 1040px; }
.cab-box { max-width: 440px; margin: 10px auto; }
.cab-help { margin-top: 18px; }
.cab-help h2 { font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.cab-help .ai-wrap { margin-top: 14px; }
.cab-box h1, .cab-head h1 { font-size: 26px; color: var(--navy); }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cab-links { text-align: center; font-size: 14px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: 700 14px Montserrat, system-ui, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cab-grid { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
.cab-grid .form { margin-top: 18px; }
.cab-tag { display: inline-block; margin-bottom: 8px; }
.cab-pass { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.cab-pass summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.small { font-size: 13px; }
.btn.small { padding: 7px 12px; font-size: 13px; box-shadow: 0 2px 0 #1a3466; }
.orders { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ord { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fbfdff; }
.ord-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ord ul { padding-left: 18px; font-size: 14px; line-height: 1.5; }
.ord-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st { margin-left: auto; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--sky); color: var(--blue); }
.st-confirmed { background: #fff2e3; color: var(--or); }
.st-sent { background: #e6f0ff; color: var(--blue); }
.st-done { background: #e3f6ea; color: #2e9d57; }
.st-cancelled { background: #f6e4e4; color: #b4232a; }
.st-sel { margin-left: auto; width: auto; padding: 6px 10px; font-weight: 700; }
.adm-tabs { margin-bottom: 16px; }
.adm-tabs button { padding: 11px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--sky); font: 700 14px Montserrat, system-ui, sans-serif; color: var(--navy); cursor: pointer; }
.adm-tabs button.on { background: var(--navy); color: #fff; }
#adm > .field { margin: 10px 0; }
.adm-table { overflow-x: auto; }
.adm-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; color: var(--muted); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table .num { width: 84px; padding: 7px 8px; }
@media (max-width: 860px) {
  .cab-grid { grid-template-columns: 1fr; }
  .adm-table td:first-child { min-width: 160px; }
}

/* ---------- account menu (OLX-like layout, Clean Box colors) ---------- */
.me { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.me-hero { position: relative; overflow: hidden; padding: 26px 22px 24px; border-radius: 24px; color: #fff;
  background: var(--shine); background-size: 160px 160px, 300% 300%; animation: sky 9s ease-in-out infinite alternate;
  box-shadow: 0 10px 30px rgba(31, 60, 114, .3); }
/* drifting outlined "Clean Box" behind the greeting, like the page background */
.me-bgtext { position: absolute !important; inset: 0; z-index: 0 !important; display: grid; place-items: center; pointer-events: none; user-select: none;
  font-weight: 900; font-size: clamp(64px, 17vw, 120px); letter-spacing: -.03em; white-space: nowrap; }
.me-bgtext span, .me-bgtext::before, .me-bgtext::after { grid-area: 1 / 1; animation: card-sway 9s ease-in-out infinite alternate backwards; }
.me-bgtext span { color: rgba(255, 255, 255, .05); -webkit-text-stroke: 2px rgba(255, 255, 255, .22); }
.me-bgtext::before, .me-bgtext::after { content: attr(data-t); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .14); }
.me-bgtext::before { filter: blur(3px); animation-delay: .5s; }
.me-bgtext::after { filter: blur(8px); opacity: .7; animation-delay: 1s; }
@keyframes card-sway {
  0% { transform: translate(-14%, 18%) rotate(-4deg); }
  50% { transform: translate(4%, -4%) rotate(1deg) scale(1.05); }
  100% { transform: translate(16%, 14%) rotate(-2deg); }
}
.me-hero > * { position: relative; z-index: 1; }
.me-edit { position: absolute; top: 20px; right: 18px; padding: 8px 14px; border-radius: 20px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); border: 0; color: var(--navy); font: 800 13px Montserrat, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.me-ava { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, #fff, #dbe7f8); color: var(--navy); font-size: 30px; font-weight: 900; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.me-hero h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; color: #fff; }
.me-mail { color: #d4def0; font-size: 14px; }
.me-badge { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; }
.me-card { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 72px; padding: 14px 80px; border-radius: 16px;
  background: var(--sky); border: 1px solid var(--line); color: var(--navy); font-size: 19px; font-weight: 800; text-align: center; transition: .2s; }
.me-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.me-card img { position: absolute; width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.me-card .l { left: 6px; bottom: -14px; transform: rotate(-14deg); }
.me-card .r { right: 6px; top: -10px; transform: rotate(16deg); }
.me-card.sup { width: 100%; min-height: 56px; padding: 12px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; background: #229ed9; color: #fff; border: 0; }
.me-card.adm { min-height: 56px; padding: 12px; background: var(--navy); color: #fff; border: 0; font-size: 16px; }
.me-h { margin-top: 14px; font-size: 22px; font-weight: 900; color: var(--navy); }
.me-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 16px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: 600 16px Montserrat, system-ui, sans-serif; color: var(--navy); text-align: left; cursor: pointer; transition: background .15s; }
.me-row:last-child { border-bottom: 0; }
.msgr-list { margin-top: 14px; }

/* ---------- AI assistant chat ---------- */
.ai-wrap { margin-top: 24px; }
.ai { display: flex; flex-direction: column; gap: 12px; }
.ai-head { display: flex; align-items: center; gap: 12px; }
.ai-head img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 8px rgba(31, 60, 114, .2); }
.ai-head b { display: block; font-size: 17px; color: var(--navy); }
.ai-head small { color: #1f9d55; font-size: 13px; font-weight: 600; }
.ai-head small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22c55e; vertical-align: 1px; }
.ai-log { display: flex; flex-direction: column; gap: 8px; max-height: 380px; min-height: 120px; overflow-y: auto; padding: 12px; border-radius: 14px; background: var(--sky); }
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; font-size: 15px; overflow-wrap: anywhere; }
.ai-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(31, 60, 114, .08); }
.ai-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.err { color: #b42318; }
.ai-msg a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.ai-msg.typing { display: flex; align-items: center; gap: 5px; padding: 13px 16px; }
.ai-msg.typing span { width: 8px; height: 8px; border-radius: 50%; background: #9db0cf; animation: ai-dot 1.1s infinite ease-in-out; }
.ai-msg.typing span:nth-child(2) { animation-delay: .18s; }
.ai-msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ai-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; background: var(--blue); } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: .2s; }
.ai-chip:hover { border-color: var(--blue); background: #f4f8fe; }
.ai-form { display: flex; gap: 8px; }
.ai-form .field { flex: 1; min-width: 0; margin: 0; }
.ai-form .btn { flex: none; display: grid; place-items: center; padding: 0 16px; }
.ai-note { color: var(--muted); font-size: 12px; }
/* button to the chat page */
.ai-link { display: flex; align-items: center; gap: 14px; color: inherit; }
.ai-link img { width: 52px; height: 52px; flex: none; border-radius: 50%; box-shadow: 0 2px 8px rgba(31, 60, 114, .2); }
.ai-link > span:not(.btn) { flex: 1; min-width: 0; }
.ai-link b { display: block; font-size: 17px; color: var(--navy); }
.ai-link small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.ai-link .btn { flex: none; }
/* the chat page itself: taller conversation */
.ai-page { max-width: 820px; }
.ai-page .ai-wrap { margin-top: 0; }
.ai-page .ai-log { max-height: none; height: 46vh; min-height: 260px; }
@media (max-width: 720px) {
  .ai-link { flex-wrap: wrap; } .ai-link .btn { width: 100%; text-align: center; }
  .ai-page { padding-top: 12px; }
  .ai-page .ai-wrap { padding: 12px; }
  .ai { gap: 10px; }
  .ai-head img { width: 38px; height: 38px; } .ai-head b { font-size: 16px; }
  .ai-page .ai-log { height: 38vh; min-height: 200px; padding: 10px; }
  .ai-msg { font-size: 15px; padding: 8px 11px; }
  .ai-chip { font-size: 12.5px; padding: 5px 9px; }
  .ai-form .field { font-size: 16px; } /* 16px stops iPhone zooming into the field */
  /* while typing, the bottom menu bar would float above the keyboard and eat the screen */
  body.ai-typing nav { display: none; }
  body.ai-typing .ai-page .ai-log { height: 28vh; min-height: 150px; } /* chat + field fit above the keyboard */
  body.ai-typing .ai-note { display: none; }
}
.msgr-row { color: inherit; font: inherit; cursor: pointer; text-align: left; }
.msgr-row svg:first-child { width: 32px; height: 32px; flex: none; }
.me-row:hover { background: #f4f8fe; }
.me-row span { flex: 1; }
.me-row.out { color: #b4232a; }
.me-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 13px; }
.chev { width: 22px; height: 22px; flex: none; color: var(--muted); }
.me-subhead { display: flex; align-items: center; gap: 10px; }
.me-subhead h1 { font-size: 24px; color: var(--navy); }
.me-back { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.me-back .chev { transform: rotate(180deg); color: var(--navy); }
.me-panel .orders { margin-top: 0; }
@media (max-width: 860px) {
  .me-hero { padding: 22px 18px 20px; }
  .me-hero h1 { font-size: 26px; }
  .me-card { font-size: 17px; padding: 12px 70px; }
  .me-card img { width: 54px; height: 54px; }
}

/* ---------- customer level (cabinet): black card, yellow scale ---------- */
.me-level { display: flex; flex-direction: column; gap: 12px; background: #121418; border: 0; border-left: 4px solid #ffd21f; color: #c9cdd6; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.me-level .me-h { margin-top: 0; color: #fff; font-size: 19px; }
.lv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lv-step { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; padding: 7px 8px; border-radius: 10px; background: #1d2027; border: 1px solid #2b2f38; color: #8b919e; min-width: 0; }
.lv-step b { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2b2f38; color: #c9cdd6; font-size: 12px; }
.lv-step span { font-weight: 800; color: #e8eaee; font-size: 12.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-step small { font-size: 10.5px; line-height: 1.25; }
.lv-step.past b { background: #6b5a12; color: #ffd21f; }
.lv-step.on { background: #ffd21f; border-color: #ffd21f; color: #4a3d00; box-shadow: 0 4px 14px rgba(255, 210, 31, .3); }
.lv-step.on b { background: #121418; color: #ffd21f; }
.lv-step.on span { color: #121418; }
.lv-bar { height: 10px; border-radius: 5px; background: #2b2f38; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffb800, #ffe45c); min-width: 4px; box-shadow: 0 0 10px rgba(255, 210, 31, .6); transition: width .6s; }
.lv-left { font-weight: 600; color: #e8eaee; font-size: 14px; }
.lv-left b { color: #ffd21f; }
.me-level .muted { color: #8b919e; }
@media (max-width: 420px) {
  .lv-step { grid-template-columns: 1fr; justify-items: center; row-gap: 3px; padding: 6px 4px; text-align: center; }
  .lv-step b { grid-row: auto; }
  .lv-step span { white-space: normal; font-size: 11.5px; }
  .lv-step small { display: none; }
} /* phone: number + name only; the line under the steps names the current perk */
.adm-levels label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.adm-levels label.chk { flex-direction: row; align-items: center; gap: 10px; }
.adm-levels h3 { margin-top: 8px; color: var(--navy); }
.lv-perk { font-size: 13px; color: #c9cdd6; }
.lv-perk b { color: #ffd21f; }
.ord-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn.ghost-red { background: #fff; color: #b4232a; box-shadow: inset 0 0 0 1.5px #e3b5b5; }
.btn.ghost-red:hover { background: #fbeaea; }
.btn.ghost-red.armed { background: #b4232a; color: #fff; box-shadow: none; }

/* ---------- product page: compact, info under the photo, similar products below ---------- */
.pp { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 14px; }
.pp-img { max-width: 300px; width: 100%; margin: 0 auto; padding: 16px; border-radius: 20px; }
.pp-info { gap: 10px; padding: 18px; }
.pp-info h1 { font-size: clamp(19px, 2.4vw, 24px); }
.pp-price { font-size: 15px; }
.pp-price b { font-size: 19px; }
.pp-desc { font-size: 14px; }
.pp-total { font-size: 17px; }
.pp-total .ptotal { font-size: 26px; }
.pp .btn.big { padding: 12px 26px; font-size: 16px; }
.similar { margin-top: 34px; }
.similar h2 { color: var(--navy); }
@media (min-width: 861px) { .similar .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- fly-to-cart ---------- */
.fly { position: fixed; z-index: 80; pointer-events: none; object-fit: contain; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 10px 30px rgba(31, 60, 114, .35); }

/* ---------- nav icons ---------- */
nav a { display: inline-flex; align-items: center; gap: 7px; }
nav a svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  nav a { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 2px; }
  nav a svg { width: 21px; height: 21px; }
  nav a span { font-size: 10.5px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---------- footer ---------- */
footer { text-align: left; padding: 36px max(16px, calc((100% - 1280px) / 2 + 16px)) 18px; background: var(--shine); background-size: 160px 160px, 300% 300%; color: #c9d6ee; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ft-col h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.ft-col a { color: #dbe6f7; transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-map { color: #9cc0f5 !important; font-weight: 700; }
.ft-hours { color: #aebcd6; }
.ft-brand img { width: 84px; border-radius: 50%; }
.ft-brand p { line-height: 1.5; }
.ft-msgs { display: flex; gap: 10px; }
.ft-msg svg { width: 34px; height: 34px; display: block; transition: transform .2s; }
.ft-msg:hover svg { transform: scale(1.12); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }
.ft-bottom b { color: #fff; }
.ft-credit { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; letter-spacing: .02em; }
.ft-credit svg { width: 22px; height: 22px; transition: transform .2s; }
.ft-credit:hover svg { transform: rotate(-12deg) scale(1.15); }
@media (max-width: 860px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .pp-img { max-width: 210px; padding: 10px; border-radius: 16px; } .pp-info { padding: 14px; gap: 8px; } }
/* product page: smaller type everywhere (owner asked for a calmer, more compact page) */
.pp-info { gap: 8px; padding: 16px; }
.pp-info .tag { font-size: 11px; padding: 4px 10px; }
.pp-info h1 { font-size: clamp(16px, 2vw, 20px); line-height: 1.3; }
.pp-info .muted { font-size: 12.5px; line-height: 1.4; }
.pp-desc { font-size: 13px; line-height: 1.45; }
.pp-price { font-size: 13px; }
.pp-price b { font-size: 16px; }
.pp-total { font-size: 14px; }
.pp-total .ptotal { font-size: 21px; }
.pp .qty button { width: 28px; height: 28px; }
.pp .qty input { width: 52px; font-size: 16px; }
.pp .btn.big { padding: 10px 22px; font-size: 14px; }
.similar { margin-top: 26px; }
.similar h2 { font-size: 19px; }
@media (max-width: 640px) {
  .pp-info { padding: 12px; gap: 6px; }
  .pp-info h1 { font-size: 15.5px; }
  .pp-desc { font-size: 12.5px; }
  .pp-total .ptotal { font-size: 19px; }
  .similar h2 { font-size: 16px; }
}
/* product info: wide and short — description on the left, price/qty/button on the right */
.pp { max-width: 860px; }
.pp-info { flex-direction: row; align-items: stretch; gap: 22px; }
.pp-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pp-buy { flex: 0 0 250px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-buy .btn { width: 100%; }
@media (max-width: 640px) {
  .pp-info { flex-direction: column; gap: 10px; }
  .pp-buy { flex: none; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 8px; }
}

/* ---------- 2026-11-30: boxes, promotions billboard, level 1–100, referral ---------- */
.qunit { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px 0 2px; }
.pp-box { font-size: 13px; margin: -4px 0 8px; }
.promo-l { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }

.billboard { position: relative; margin: 4px 0 34px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(10, 31, 74, .55); }
.bb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bb-track::-webkit-scrollbar { display: none; }
.bb-slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 200px; padding: 34px 40px 46px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; overflow: hidden; }
.bb-slide::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: -70px 140px 0 -20px rgba(255, 255, 255, .06); pointer-events: none; }
.bb-c0 { background: var(--shine); background-size: 160px 160px, 300% 300%; }
.bb-c1 { background: linear-gradient(120deg, #a8460a, #c9600f 45%, #e8892f); }
.bb-c2 { background: linear-gradient(120deg, #0b5a4a, #13806a 50%, #22a383); }
.bb-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .18); padding: 4px 10px; border-radius: 20px; }
.bb-slide h2 { margin: 0; color: #fff; font-size: 30px; line-height: 1.15; font-weight: 900; max-width: 640px; }
.bb-slide p { font-size: 15px; max-width: 620px; opacity: .92; }
.bb-slide .btn { background: #fff; color: var(--navy); font-weight: 800; margin-top: 4px; }
.bb-slide .btn:hover { background: #fff; filter: brightness(.95); }
.bb-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.bb-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.bb-dots button.on { width: 26px; background: #fff; }
@media (max-width: 640px) {
  .billboard { border-radius: 16px; margin-bottom: 22px; }
  .bb-slide { min-height: 170px; padding: 20px 18px 38px; gap: 8px; }
  .bb-slide h2 { font-size: 21px; }
  .bb-slide p { font-size: 13.5px; }
}

.lv-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lv-big b { font-size: 46px; line-height: 1; font-weight: 900; color: #ffd21f; text-shadow: 0 0 18px rgba(255, 210, 31, .35); }
.lv-big span { font-size: 16px; font-weight: 700; color: #8b919e; }
.lv-big em { font-style: normal; margin-left: auto; font-weight: 800; color: #121418; background: #ffd21f; border-radius: 20px; padding: 4px 12px; font-size: 13px; }
.lv-steps { grid-template-columns: repeat(4, 1fr); }

.me-ref { display: flex; flex-direction: column; gap: 10px; }
.me-ref .me-h { margin-top: 0; }
.me-ref h3 { font-size: 15px; color: var(--navy); margin-top: 4px; }
.ref-link { display: flex; gap: 8px; }
.ref-link .field { flex: 1; min-width: 0; font-size: 14px; }
.me-ref .lv-bar { background: var(--sky); }
.ref-left b { color: var(--or); }
.ref-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-code { border: 2px dashed var(--or); color: var(--or); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.ref-code b { letter-spacing: .05em; }
.ref-code.used { border-color: var(--line); color: var(--muted); text-decoration: line-through; }

.adm-slide { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.adm-slide legend { font-weight: 700; color: var(--navy); padding: 0 6px; }

/* 2026-11-30 (user): smaller header buttons, hero photos, level squares; billboard narrower and see-through */
.globe { height: 36px; padding: 0 8px; }
.globe svg { width: 18px; height: 18px; }
.cart-btn { width: 38px; height: 34px; border-radius: 10px; }
.cart-btn svg { width: 19px; height: 19px; }
.hero-art { max-width: 380px; margin: 0 auto; }
.billboard { max-width: 860px; margin: 0 auto 26px; border-radius: 18px; }
.bb-slide { min-height: 0; padding: 18px 26px 32px; gap: 6px; }
.bb-c0 { background: linear-gradient(120deg, rgba(10, 31, 74, .72), rgba(29, 78, 168, .62)); }
.bb-c1 { background: linear-gradient(120deg, rgba(168, 70, 10, .72), rgba(232, 137, 47, .62)); }
.bb-c2 { background: linear-gradient(120deg, rgba(11, 90, 74, .72), rgba(34, 163, 131, .62)); }
.billboard { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 26px -16px rgba(10, 31, 74, .5); }
.bb-slide h2 { font-size: 22px; }
.bb-slide p { font-size: 13.5px; }
.bb-slide .btn { padding: 7px 14px; font-size: 13px; }
.bb-slide::after { width: 160px; height: 160px; right: -40px; top: -40px; }
.lv-big b { font-size: 32px; }
.lv-big em { font-size: 12px; padding: 3px 10px; }
.lv-step { padding: 5px 6px; column-gap: 5px; border-radius: 8px; }
.lv-step b { width: 18px; height: 18px; font-size: 10px; }
.lv-step span { font-size: 11px; }
.lv-step small { font-size: 9.5px; }
@media (max-width: 640px) {
  .globe { height: 32px; padding: 0 6px; }
  .globe svg { width: 16px; height: 16px; }
  .cart-btn { width: 34px; height: 30px; border-radius: 9px; }
  .cart-btn svg { width: 17px; height: 17px; }
  .hero-art { max-width: 260px; }
  .bb-slide { padding: 12px 14px 26px; }
  .bb-slide h2 { font-size: 17px; }
  .bb-slide p { font-size: 12px; }
  .bb-dots { bottom: 9px; }
  .bb-tag { font-size: 9.5px; padding: 2px 8px; }
  .lv-big b { font-size: 26px; }
  .lv-step { padding: 4px 2px; }
  .lv-step span { font-size: 10px; }
}

/* admin «BAS» tab: checkbox beside its text */
.adm-levels label.check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; }
.adm-levels label.check input { width: auto; flex: none; margin: 3px 0 0; }
