:root {
  --ink:        #0F1F3D;
  --muted:      #5A7A9E;
  --line:       #C5D3E8;
  --canvas:     #EEF2F8;
  --surface:    #FFFFFF;
  --surface2:   #E2EAF6;
  --brand:      #0090CC;
  --brand-dark: #007AAF;
  --brand-soft: #D6EEF9;
  --green:      #00956A;
  --green-soft: #D0F2E8;
  --amber:      #B86E00;
  --amber-soft: #FEF0D0;
  --red:        #C92C44;
  --red-soft:   #FDE8EC;
  --radius:     14px;
  --shadow:     0 4px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.08);
}

/* ---- dark theme override ---- */
html[data-theme="dark"] {
  --ink:        #EAF2FF;
  --muted:      #8AAED0;
  --line:       #304468;
  --canvas:     #13141A;
  --surface:    #182038;
  --surface2:   #1E2A4A;
  --brand:      #14CCFF;
  --brand-dark: #00AADD;
  --brand-soft: #0A1D36;
  --green:      #00ECAE;
  --green-soft: #071D14;
  --amber:      #FFC040;
  --amber-soft: #201600;
  --red:        #FF6480;
  --red-soft:   #260812;
  --shadow:     0 4px 16px rgba(0,0,0,.60), 0 16px 48px rgba(0,0,0,.46);
}
/* — cards — */
html[data-theme="dark"] .card                { border-color: #2A3C60; background: var(--surface); }
/* — header — */
html[data-theme="dark"] header.bar           { background: rgba(19,20,26,.95); backdrop-filter: blur(14px); }
/* — filter bar strip — */
html[data-theme="dark"] .cat-bar             { background: #1C1D24; border-color: #2A2C38; }
/* — category chips — */
html[data-theme="dark"] .chip                { border-color: #28406A; color: #8AAED0; background: rgba(20,30,56,.6); }
html[data-theme="dark"] .chip:hover          { border-color: var(--brand); color: var(--ink); background: rgba(20,204,255,.08); }
html[data-theme="dark"] .chip.active         { color: #13141A; background: var(--brand); border-color: var(--brand); }
/* — filter toggle button — */
html[data-theme="dark"] .fb-toggle           { background: #13141A; border-color: #2A2C38; color: var(--muted); }
html[data-theme="dark"] .fb-toggle:hover,
html[data-theme="dark"] .fb-toggle.active    { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
/* — spec button sharper glow — */
html[data-theme="dark"] .spec-btn:hover      { box-shadow: 0 2px 18px rgba(20,204,255,.35); }
/* — pagination — */
html[data-theme="dark"] .pg-btn              { border-color: #28406A; color: var(--muted); }
html[data-theme="dark"] .pg-btn:hover        { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
html[data-theme="dark"] .pg-btn.active       { color: #13141A; }
/* — primary button text fix — */
html[data-theme="dark"] .btn-primary         { color: #13141A; }
/* — social footer buttons — */
html[data-theme="dark"] .foot-social-btn     { color: var(--muted); border-color: transparent; }
html[data-theme="dark"] .foot-social-btn:hover      { background: rgba(255,255,255,.06); border-color: #304468; }
html[data-theme="dark"] .foot-social-btn.fb:hover   { color: #6AACF8; border-color: #6AACF8; background: rgba(106,172,248,.08); }
html[data-theme="dark"] .foot-social-btn.ig:hover   { color: #F472B6; border-color: #F472B6; background: rgba(244,114,182,.08); }
html[data-theme="dark"] .foot-social-btn.wa:hover   { color: #4ADE80; border-color: #4ADE80; background: rgba(74,222,128,.08); }
html[data-theme="dark"] .foot-social-btn.tt:hover   { color: #FB7185; border-color: #FB7185; background: rgba(251,113,133,.08); }
html[data-theme="dark"] .foot-social-btn.call:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
/* — misc — */
html[data-theme="dark"] .spec-chip           { background: rgba(255,255,255,.06); color: var(--cc, #c8daea); border-color: rgba(255,255,255,.11); }
html[data-theme="dark"] .sold-overlay        { background: rgba(19,20,26,.60); }
html[data-theme="dark"] .spec-tooltip        { box-shadow: 0 8px 36px rgba(0,0,0,.60); }
html[data-theme="dark"] .overlay             { background: rgba(10,11,18,.92); }
html[data-theme="dark"] .modal               { box-shadow: 0 32px 80px rgba(0,0,0,.75); }
html[data-theme="dark"] .thumbs              { background: rgba(0,0,0,.30); }
html[data-theme="dark"] footer               { background: #1C1D24; }
html[data-theme="dark"] #lightbox .lb-nav:hover { color: #13141A; }
html[data-theme="dark"] .gallery-prev:hover,
html[data-theme="dark"] .gallery-next:hover  { color: #13141A; }
html[data-theme="dark"] .previews .pv-star:hover { color: #13141A; }
html[data-theme="dark"] .previews .pv-badge  { color: #13141A; }
html[data-theme="dark"] .modal-close         { background: rgba(19,20,26,.92); }
html[data-theme="dark"] .gallery-side        { background: #0B0C12; }
html[data-theme="dark"] .gallery-prev,
html[data-theme="dark"] .gallery-next        { background: rgba(19,20,26,.82); color: var(--ink); }
html[data-theme="dark"] .previews .pv .rm    { background: rgba(10,11,18,.88); }
html[data-theme="dark"] .previews .pv-star   { background: rgba(10,11,18,.80); color: var(--muted); }

/* ---- header icon buttons (search / theme / service) — unified ---- */
.btn-theme,
.btn-svc-nav,
.btn-search-mobile {
  border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.btn-theme:hover,
.btn-svc-nav:hover,
.btn-search-mobile:hover {
  border-color: var(--brand); color: var(--brand); background: var(--brand-soft);
}
.btn-theme {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Space Grotesk", "Noto Sans Georgian", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
a { text-decoration: none; }
.hidden { display: none !important; }

/* ---- top line ---- */
.topline {
  height: 3px;
  background: linear-gradient(90deg, #00BAFF, #A78BFA, #00BAFF);
}

/* ---- header ---- */
header.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 242, 248, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; flex-direction: column; line-height: 1; cursor: pointer; user-select: none; }
.logo .wm { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.5px; }
.logo .wm b { color: var(--brand); }
.logo .tag { font-size: 11px; color: var(--muted); margin-top: 3px; }

.search { flex: 1; max-width: 440px; position: relative; }
.bar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.bar-right > * { height: 38px; }
.bar-right .btn { padding-top: 0; padding-bottom: 0; }
.bar-right #topContact { border: 1.5px solid var(--brand); }
.search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); outline: none; font-size: 14px;
}
.search input::placeholder { color: var(--muted); }
.search input[type="search"]::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--line); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.search-clear:hover { background: var(--red-soft); color: var(--red); }
.search-clear.hidden { display: none; }
.search input { padding-right: 38px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: .15s; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; border: none; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #3A1020; }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 6px 11px; font-size: 13px; white-space: nowrap; }

/* ---- category bar (always visible, below header) ---- */
.cat-bar {
  background: rgba(197, 211, 232, 0.4);
  border-bottom: 1px solid var(--line);
}

.cat-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; gap: 10px;
}
.cat-bar-inner .fb-toggle { margin-left: auto; }

/* ---- chips (category, inside filter panel) ---- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }

/* ---- grid ---- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid #9EB3CC;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.card .imgwrap { position: relative; aspect-ratio: 1/1; background: var(--canvas); overflow: hidden; }
.card .imgwrap img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.imgwrap.img-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: imgshimmer 1.4s ease-in-out infinite;
}
html[data-theme="dark"] .imgwrap.img-loading { background: #1C2240; }
@keyframes imgshimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.img-scroll-track { display: flex; height: 100%; will-change: transform; }
.img-scroll-track img { flex-shrink: 0; }
.card .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; }

.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.img-timer {
  position: absolute; bottom: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red-soft); color: var(--red);
  font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 7px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.badge.new     { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.badge.likenew { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand); }
.badge.used    { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber); }

.card.sold { opacity: .78; }
.card.sold:hover { opacity: 1; }
.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(240,244,252,.7);
  display: flex; align-items: center; justify-content: center;
}
.sold-overlay span {
  background: var(--red); color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 14px;
  padding: 6px 18px; border-radius: 999px; letter-spacing: .04em;
}

/* ── Spec button on card ─────────────────────────── */
.spec-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; padding: 6px 11px; border-radius: 8px;
  border: 1.5px solid var(--brand); background: var(--brand-soft);
  color: var(--brand); font-size: 11px; font-weight: 800;
  cursor: pointer; font-family: inherit; margin: 4px 0;
  letter-spacing: .03em;
  transition: background .15s, color .15s, box-shadow .15s;
}
.spec-btn:hover {
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(0,140,255,.22);
}
.spec-btn .si { width: 13px; height: 13px; }

/* ── Spec tooltip ────────────────────────────────── */
.spec-tooltip {
  position: fixed; z-index: 500;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
  pointer-events: auto;
}
.spec-tooltip.hidden { display: none; }
.stt-head {
  font-size: 12px; font-weight: 700; color: var(--ink);
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.stt-body { display: flex; flex-direction: column; gap: 5px; }
.stt-row { display: flex; align-items: center; gap: 8px; }
.stt-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stt-lbl { font-size: 10px; font-weight: 800; color: var(--muted); min-width: 72px; flex-shrink: 0; letter-spacing: .03em; }
.stt-val { font-size: 12px; font-weight: 600; color: var(--ink); display: flex; align-items: center; flex: 1; min-width: 0; }

.btn-sold { background: transparent; color: var(--green); border: 1px solid #002B1E; }
.btn-sold:hover { background: var(--green-soft); }
.btn-sold.active { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.btn-success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-cyan { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-cyan:hover { background: var(--brand-soft); }

.card .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card .cat   { font-size: 12px; color: var(--muted); }
.card .name  { font-weight: 600; font-size: 15px; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; min-height: 2.6em; }
.spec-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: 2px 0;
}
.spec-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: #0d1625;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--cc, rgba(0,0,0,.2));
  border-radius: 6px; padding: 3px 7px;
  line-height: 1;
}
.si {
  width: 12px; height: 12px; flex-shrink: 0;
}
.price-row { margin-top: auto; padding-top: 6px; }
.card .price { display: flex; align-items: baseline; gap: 8px; }
.card .price .now { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; color: var(--brand); white-space: nowrap; }
.card .price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }

/* ---- store pagination ---- */
.store-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  padding: 32px 20px 8px;
}
.pg-btn {
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: .15s; display: flex; align-items: center; justify-content: center;
}
.pg-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pg-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-arrow { font-size: 16px; }
.pg-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.pg-dots { color: var(--muted); padding: 0 4px; line-height: 40px; }

/* ---- empty ---- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 18px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }

/* ---- modal ---- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(30, 50, 90, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px);
}
.modal {
  background: var(--surface); border-radius: 18px;
  max-width: 1120px; width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.modal-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  flex: none;
  min-height: 560px;
  overflow: visible;
}

/* left column wrapper — gallery + optional FB banner (theme-aware) */
.gallery-side {
  display: flex; flex-direction: column;
  background: var(--surface);
  min-height: 560px;
}
/* gallery — fills the left column, FB banner sits below */
.gallery {
  display: flex; flex-direction: column;
  overflow: hidden;
  flex: 1; min-height: 0;
}

/* Facebook product banner */
.fb-cta {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border-top: 1px solid var(--line);
}
.fb-cta-txt {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.fb-cta-txt svg { flex-shrink: 0; }
.fb-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #1877F2; color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.fb-cta-btn:hover { background: #1465d8; transform: translateY(-1px); }
.gallery .main {
  flex: 1; min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery .main img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.gallery .noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}

/* lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 6, 18, .97);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
#lightbox img {
  max-width: 96vw; max-height: 94vh;
  object-fit: contain; border-radius: 6px;
  user-select: none;
}
#lightbox .lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 22px; cursor: pointer; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#lightbox .lb-close:hover { background: var(--red-soft); color: var(--red); }
#lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,186,255,.15); color: var(--brand);
  border: 1px solid var(--brand); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#lightbox .lb-nav:hover { background: var(--brand); color: #fff; }
#lightbox .lb-prev { left: 18px; }
#lightbox .lb-next { right: 18px; }

/* nav arrows */
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(15, 31, 61, .6); color: #fff;
  border: 1px solid var(--line);
  font-size: 16px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: .15s;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px;
  flex-shrink: 0; background: rgba(0,0,0,.1);
  max-height: 140px; overflow-y: auto;
}
.thumbs img {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent; transition: .15s; flex-shrink: 0; opacity: .6;
}
.thumbs img:hover { opacity: 1; }
.thumbs img.active { border-color: var(--brand); opacity: 1; }

/* modal info — flows naturally, whole modal scrolls */
.modal-info {
  padding: 26px 26px 28px;
  position: relative;
  overflow: visible;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  border-left: 1px solid var(--line);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted); cursor: pointer; border: none; transition: .15s;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.modal-info h2 { font-size: 22px; margin: 6px 0 4px; padding-right: 36px; overflow-wrap: break-word; word-break: break-word; }
.modal-info .mcat { font-size: 13px; color: var(--muted); }
.modal-info .mprice { margin: 16px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.modal-info .mprice .now { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 30px; color: var(--brand); }
.modal-info .mprice .old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.spec-table {
  margin: 14px 0 6px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.spec-row {
  display: flex; align-items: center;
  padding: 6px 14px; border-bottom: 1px solid var(--line); gap: 10px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em;
  flex-shrink: 0; white-space: nowrap;
  width: 110px; min-width: 110px;
  border-right: 2px solid var(--line);
  padding-right: 14px;
  margin-right: 4px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.spec-val { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 500; word-break: break-word; }

.modal-info .desc {
  white-space: pre-wrap; color: var(--ink); font-size: 14px; line-height: 1.7;
  margin: 14px 0 22px; border-top: 1px solid var(--line); padding-top: 16px;
  overflow-wrap: break-word; word-break: break-word;
}
.modal-info .cta { display: flex; gap: 8px; flex-wrap: wrap; }
.sold-badge-modal {
  display: inline-block; padding: 10px 20px;
  background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red); border-radius: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  flex: 1; min-width: 130px; justify-content: center;
  transition: .15s;
}
.btn-cta-fb { background: #1877F2; color: #fff; }
.btn-cta-fb:hover { background: #1465d0; }
.btn-cta-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.btn-cta-ig:hover { opacity: .88; }
.btn-cta-tt { background: #010101; color: #fff; }
.btn-cta-tt:hover { background: #1a1a1a; }
.btn-cta-wa { background: #25D366; color: #fff; }
.btn-cta-wa:hover { background: #1db954; }

.btn-installment {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; margin-bottom: 10px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; font-size: 14px; font-weight: 700;
  border-radius: 12px; text-decoration: none;
  transition: opacity .18s, transform .15s;
  letter-spacing: .01em;
}
.btn-installment:hover { opacity: .9; transform: translateY(-1px); }

/* ---- footer ---- */
footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(197, 211, 232, 0.94);
  backdrop-filter: blur(14px);
  transition: transform .3s ease;
}
footer.footer-hidden { transform: translateY(100%); }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: nowrap; gap: 8px; color: var(--muted); font-size: 13px;
}
.foot a { color: var(--muted); transition: color .15s; }
.foot a:hover { color: var(--brand); }
.foot .links { display: flex; gap: 18px; }
#view-store { padding-bottom: 60px; }

/* ---- admin ---- */
.page-admin { max-width: 980px; margin: 0 auto; padding: 32px 20px 70px; overflow-x: hidden; }
.page-admin h1 { font-size: 24px; margin-bottom: 4px; }
.page-admin .sub { color: var(--muted); margin-bottom: 26px; font-size: 14px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.panel h3 { font-size: 16px; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field label .lbl-ic { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; outline: none; background: var(--canvas);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--canvas); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.split-field { display: flex; gap: 8px; }
.split-field select { flex: 0 0 auto; min-width: 0; }
.split-field input  { flex: 1; min-width: 0; }

.spec-divider {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 14px; margin-top: 4px;
}

.drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 24px;
  text-align: center; color: var(--muted); cursor: pointer; transition: .15s; font-size: 14px;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.previews .pv {
  position: relative;
  width: 100px; height: 100px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; border: 2px solid var(--line); transition: border-color .15s;
}
.previews .pv img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.previews .pv .rm {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(15,31,61,.82); color: #fff;
  font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; border: none;
}
.previews .pv-star {
  position: absolute; bottom: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(15,31,61,.72); color: #cdd8ec;
  font-size: 11px; line-height: 20px; text-align: center; cursor: pointer; border: none; transition: .15s;
}
.previews .pv-star:hover { background: var(--brand); color: #fff; }
.previews .pv-crop {
  position: absolute; bottom: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(15,31,61,.72); color: #cdd8ec;
  font-size: 11px; line-height: 20px; text-align: center; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.previews .pv-crop:hover { background: var(--brand); color: #fff; }
.previews .pv-badge {
  position: absolute; bottom: 3px; left: 3px;
  background: var(--brand); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 5px;
}
.previews .pv-main { border-color: var(--brand); }

.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.prod-list { display: flex; flex-direction: column; gap: 8px; }
.prod-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--canvas); transition: border-color .15s;
}
.prod-row:hover { border-color: var(--line); }
.prod-row img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.prod-row .nophoto { width: 52px; height: 52px; border-radius: 8px; background: var(--surface); flex-shrink: 0; }
.prod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.prod-meta .t { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-meta .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-price { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--brand); }
.row-sold-tag { font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 2px 6px; border-radius: 5px; vertical-align: middle; margin-right: 3px; }
.prod-actions { display: flex; gap: 5px; }
.prod-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 6px 4px; font-size: 12px; white-space: nowrap; }
.prod-actions .bic { flex-shrink: 0; }
.prod-row.prod-sold { opacity: .6; }

.pagination {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px; justify-content: center; flex-wrap: wrap;
}
.pagination button:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ---- login ---- */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px; text-align: center; width: 100%; max-width: 380px;
  box-shadow: var(--shadow);
}
.login-box .wm { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 26px; margin-bottom: 4px; }
.login-box .wm b { color: var(--brand); }
.login-box p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.login-box input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; text-align: center; margin-bottom: 12px; outline: none;
  background: var(--canvas);
}
.login-box input::placeholder { color: var(--muted); }
.login-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.login-box .err { color: var(--red); font-size: 13px; margin-bottom: 10px; min-height: 18px; }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface2); color: var(--ink); border: 1px solid var(--brand);
  padding: 12px 22px; border-radius: 10px; font-size: 14px;
  z-index: 90; opacity: 0; transition: opacity .25s, bottom .25s;
  pointer-events: none; white-space: nowrap; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; bottom: 32px; }

/* ---- footer social ---- */
.foot-social {
  display: flex; align-items: center; gap: 6px;
}
.foot-social-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: .15s;
  border: 1px solid transparent;
}
.foot-social-btn:hover          { border-color: var(--line); background: var(--surface2); }
.foot-social-btn.fb:hover { color: #1877F2; border-color: #1877F2; }
.foot-social-btn.ig:hover { color: #E1306C; border-color: #E1306C; }
.foot-social-btn.wa:hover { color: #25D366; border-color: #25D366; }
.foot-social-btn.tt:hover { color: #FE2C55; border-color: #FE2C55; }
.foot-social-btn.call:hover { color: var(--brand); border-color: var(--brand); }

/* ---- crop overlay ---- */
#cropOverlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 10, 20, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.crop-modal {
  background: var(--surface); border-radius: 16px;
  width: 100%; max-width: 860px;
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.crop-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
}
.crop-counter { font-size: 13px; color: var(--muted); font-weight: 400; }
.crop-canvas-wrap {
  background: #0a0e18;
  height: 44vh; min-height: 220px;
  position: relative; overflow: hidden;
}
.crop-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.crop-ratios { display: flex; gap: 6px; }
.crop-tools  { display: flex; gap: 6px; margin-left: 8px; align-items: center; }
.crop-tools input[type=range] { width: 110px; cursor: pointer; accent-color: var(--brand); }
.crop-zoom-val { font-size: 12px; color: var(--muted); min-width: 36px; font-family: "Space Grotesk", sans-serif; }
.crop-actions { display: flex; gap: 8px; margin-left: auto; }
.crop-ratio-btn { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.crop-ratio-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.crop-ratio-btn:hover:not(.active) { border-color: var(--brand); color: var(--brand); }

/* ---- filter toggle button ---- */
.fb-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s;
}
.fb-toggle:hover, .fb-toggle.active { border-color: var(--brand); color: var(--brand); }
.fb-toggle.active .fb-toggle-arrow { transform: rotate(180deg); }
.fb-toggle-arrow { transition: transform .2s; }

/* ---- collapsible filter panel ---- */
.filter-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease, border-color .28s;
  border-bottom: 1px solid transparent;
}
.filter-panel.open { grid-template-rows: 1fr; border-color: var(--line); }
.filter-panel > div { overflow: hidden; }
.filter-panel.open > div { overflow: visible; }
.fp-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  border: 1px solid var(--line); border-top: none;
}

.fp-lbl { font-size: 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }

.fp-select {
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 8px 32px 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; appearance: none; -webkit-appearance: none; min-width: 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.fp-select:focus { outline: none; border-color: var(--brand); }

/* row 2: spec dropdowns + price */
.fp-dd-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* each dropdown widget */
.fp-dd { position: relative; }
.fp-dd-btn {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.fp-dd-btn:hover, .fp-dd.open .fp-dd-btn { border-color: var(--brand); color: var(--brand); }
.fp-dd-btn svg { transition: transform .2s; }
.fp-dd.open .fp-dd-btn svg { transform: rotate(180deg); }
.fp-dd-cnt { font-weight: 700; }

.fp-dd-list {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px; min-width: 200px; max-width: 320px;
  display: none; flex-wrap: wrap; gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  overflow-y: auto;
}
.fp-dd.open .fp-dd-list { display: flex; }

.fp-chip {
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .15s;
}
.fp-chip:hover { border-color: var(--brand); color: var(--brand); }
.fp-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* price + sort dropdowns */
.fp-dd-list.fp-price-dd { flex-direction: column; gap: 10px; min-width: 240px; padding: 14px 16px; }
.fp-price-lbl { font-size: 12px; font-weight: 700; color: var(--brand); text-align: center; }
.fp-dd-list.fp-sort-dd { min-width: 160px; }
.range-wrap { position: relative; height: 36px; min-width: 130px; }
.range-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 4px;
  transform: translateY(-50%); background: var(--surface2); border-radius: 4px;
}
.range-fill {
  position: absolute; top: 50%; height: 4px;
  transform: translateY(-50%); background: var(--brand); border-radius: 4px;
}
.range-wrap input[type=range] {
  position: absolute; top: 50%; left: 0; width: 100%; height: 20px; margin: 0;
  transform: translateY(-50%);
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer;
  margin-top: -8px;
}
.range-wrap input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
}
.range-wrap input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer;
}
.fb-clear {
  display: none; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--red-soft); color: var(--red); border: 1.5px solid transparent;
  padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color .15s;
}
.fb-clear.show { display: inline-flex; }
.fb-clear:hover { border-color: var(--red); }

/* ---- mobile grid toggle ---- */
.grid-toggle {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  width: 36px; height: 36px; cursor: pointer; color: var(--ink);
  transition: border-color .15s, color .15s;
}
.grid-toggle:hover, .grid-toggle.active { border-color: var(--brand); color: var(--brand); }

/* ---- discount badge + sale timer (cards) ---- */
.badge-discount {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: var(--red); color: #fff;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 13px;
  padding: 4px 9px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sale-timer {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--red); background: var(--red-soft);
  font-size: 12px; font-weight: 700; font-family: "Space Grotesk", sans-serif;
  padding: 4px 9px; border-radius: 7px; margin-top: 2px; align-self: flex-start;
}
.sale-timer.ended { color: var(--muted); background: var(--surface2); }

/* ---- modal: share, discount, sale timer ---- */
.modal-top-actions {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  display: flex; gap: 8px;
}
.modal-share, .modal-top-actions .modal-close {
  position: static; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; border: none; transition: .15s;
}
.modal-share:hover { background: var(--brand-soft); color: var(--brand); }
.mprice .mdisc {
  background: var(--red); color: #fff;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14px;
  padding: 3px 9px; border-radius: 8px;
}
.msale-timer {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); background: var(--red-soft);
  font-size: 13px; font-weight: 700; font-family: "Space Grotesk", sans-serif;
  padding: 7px 12px; border-radius: 9px; margin: 0 0 14px;
}
.msale-timer.ended { color: var(--muted); background: var(--surface2); }

/* ---- admin: draft + discount tags ---- */
.row-draft-tag { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 2px 6px; border-radius: 5px; margin-right: 3px; }
.row-disc-tag  { font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 2px 6px; border-radius: 5px; margin-right: 3px; }
.prod-row.prod-hidden { opacity: .7; border-style: dashed; }

/* ---- admin: draft toggle ---- */
.draft-toggle {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--canvas); margin-bottom: 18px;
}
.draft-toggle input { display: none; }
.draft-box {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--surface);
  position: relative; transition: .15s;
}
.draft-toggle input:checked + .draft-box { background: var(--amber); border-color: var(--amber); }
.draft-toggle input:checked + .draft-box::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.draft-txt { display: flex; flex-direction: column; gap: 2px; }
.draft-txt b { font-size: 14px; color: var(--ink); }
.draft-txt small { font-size: 12px; color: var(--muted); }

/* ---- reveal animation ---- */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card.reveal { animation: cardReveal .4s ease both; }
@media (prefers-reduced-motion: reduce) { .card.reveal { animation: none; } }

/* ---- loading skeletons ---- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.card.skel { pointer-events: none; }
.skel-box, .skel-line {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}
.skel-box { width: 100%; aspect-ratio: 1/1; border-radius: 0; }
.skel-line { height: 12px; margin: 10px 0; }
.skel-line.w40 { width: 40%; }
.skel-line.w70 { width: 70%; }
.skel-line.w90 { width: 90%; }

/* ============ SERVICE PAGE ============ */
.btn-svc-nav {
  display: flex; align-items: center; gap: 6px;
  border-radius: 10px; padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}

.svc-main { max-width: 680px; margin: 0 auto; padding: 32px 20px 60px; }
.svc-wrap { display: flex; flex-direction: column; gap: 28px; }

#view-service { background: var(--surface); min-height: 100vh; }
html[data-theme="dark"] #view-service { background: var(--canvas); }

.svc-hero { text-align: center; padding: 16px 0 4px; }
.svc-hero-icons { display: flex; justify-content: center; gap: 18px; color: var(--brand); margin-bottom: 16px; opacity: .7; }
.svc-hero-title { font-size: 26px; font-weight: 700; }
.svc-hero-sub { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* how it works steps */
.svc-steps {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.svc-steps-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.svc-step { display: flex; align-items: flex-start; gap: 12px; }
.svc-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.svc-step-txt { display: flex; flex-direction: column; gap: 2px; }
.svc-step-txt strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.svc-step-txt span { font-size: 12px; color: var(--muted); line-height: 1.4; }

.svc-form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 24px 28px;
}
.svc-form-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

.svc-check-lbl {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.svc-check-lbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.svc-install-note { font-size: 12px; font-weight: 400; color: var(--amber); }

/* photo upload */
.svc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-photo-slot {
  border: 2px dashed var(--line); border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; transition: border-color .15s;
  position: relative;
}
.svc-photo-slot:hover { border-color: var(--brand); }
.svc-photo-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 100%; color: var(--muted); font-size: 12px; font-weight: 600; padding: 12px;
  text-align: center;
}
.svc-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-submit { width: 100%; padding: 14px; font-size: 15px; }
.opt-lbl { color: var(--muted); font-weight: 400; font-size: 12px; }

.svc-success {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-soft); border: 1.5px solid var(--green);
  border-radius: 12px; padding: 14px 18px; color: var(--green);
  font-weight: 600; margin-bottom: 20px;
}

/* admin service panel */
.svc-admin-panel { margin-bottom: 24px; }
.svc-admin-hdr {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.svc-badge {
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.svc-empty-msg { color: var(--muted); font-size: 13px; padding: 4px 0; }

.svc-order {
  background: var(--canvas); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.svc-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-order-laptop { font-weight: 700; font-size: 15px; }
.svc-order-parts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.svc-part-tag {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  background: var(--brand-soft); color: var(--brand); border-radius: 999px;
}
.svc-part-tag.install { background: var(--green-soft); color: var(--green); }
.svc-order-meta { font-size: 13px; color: var(--muted); }
.svc-order-note { font-size: 13px; color: var(--ink); font-style: italic; }
.svc-order-photos { display: flex; gap: 6px; }
.svc-order-photo { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); flex-shrink: 0; }
.svc-photo-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.svc-photo-modal-img { max-width: min(90vw, 600px); max-height: 80vh; border-radius: 12px; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.svc-order-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.svc-status-sel { padding: 6px 28px 6px 10px; font-size: 12px; min-width: 0; }
.svc-order-price-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.svc-price-col { display: flex; flex-direction: column; gap: 3px; }
.svc-price-lbl { font-size: 11px; font-weight: 600; color: var(--muted); }
.svc-order-url-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.svc-url-input {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--brand); border-radius: 10px;
  font-size: 12px; font-family: inherit; background: var(--surface); color: var(--ink);
  outline: none; min-width: 0;
}
.svc-url-input:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.svc-price-input {
  width: 110px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit; background: var(--surface);
  color: var(--ink); outline: none;
}
.svc-price-input:focus { border-color: var(--brand); }
.svc-wa-btn { display: flex; align-items: center; gap: 6px; color: #25D366; border-color: #25D366; }
.svc-wa-btn:hover { background: #d4f5e1; }

.svc-status {
  font-size: 11px; font-weight: 700; padding: 4px 9px;
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: flex-start;
}
.svc-status.new       { background: var(--brand-soft);           color: var(--brand); }
.svc-status.priced    { background: var(--amber-soft);           color: var(--amber); }
.svc-status.confirmed { background: var(--green-soft);           color: var(--green); }
.svc-status.rejected  { background: rgba(229,62,62,.12);         color: #e53e3e; }
.svc-status.ordered   { background: var(--surface2);             color: var(--muted); }
.svc-status.arrived   { background: rgba(107,70,193,.12);        color: #6b46c1; }
.svc-status.done      { background: var(--green-soft);           color: var(--green); }

@media (max-width: 600px) {
  .svc-form-card { padding: 18px 16px 22px; }
}

/* ---- mobile search overlay ---- */
.btn-search-mobile {
  display: none;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--muted); cursor: pointer;
  align-items: center; justify-content: center;
  transition: .15s; flex-shrink: 0;
}

.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 64px;
  animation: soFadeIn .18s ease;
}
.search-overlay.hidden { display: none; }
@keyframes soFadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-overlay-island {
  width: calc(100% - 28px); max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
  animation: islandDrop .25s cubic-bezier(.34,1.4,.64,1);
}
html[data-theme="dark"] .search-overlay-island { box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3); }
@keyframes islandDrop {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.search-overlay-island .search { flex: 1; max-width: 100%; }
.search-overlay-island .search input { font-size: 16px; border-radius: 12px; }
.btn-so-close {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: .15s;
}
.btn-so-close:hover { border-color: var(--red); color: var(--red); }

/* ---- responsive ---- */
/* desktop: filter row stays on one line, buttons shrink proportionally */
@media (min-width: 721px) {
  .fp-dd-row { flex-wrap: nowrap; }
  .fp-dd { flex-shrink: 1; min-width: 0; }
  .fp-dd-btn { overflow: hidden; }
}

@media (max-width: 720px) {
  .bar-inner { gap: 8px; padding: 10px 14px; }
  .search { display: none; }
  .search-overlay-island .search { display: block; }
  .btn-search-mobile { display: flex; }
  .logo .tag { display: none; }
  .logo .wm { font-size: 19px; }
  .svc-nav-lbl { display: none; }
  .label-hide { display: none; }
  .bar-right { gap: 6px; }
  /* all icon buttons same 38×38 size */
  .btn-theme,
  .btn-svc-nav,
  #topContact,
  .btn-search-mobile {
    width: 38px; height: 38px; padding: 0; gap: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .btn-svc-nav { border-radius: 10px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .grid-toggle { display: flex; }

  /* ── 2-column grid — mobile only ── */
  .grid.grid-2col { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid.grid-2col .card .body { padding: 9px 9px 11px; gap: 3px; }
  .grid.grid-2col .card .cat  { font-size: 11px; }
  .grid.grid-2col .card .name { font-size: 13px; line-height: 1.25; }
  .grid.grid-2col .spec-chips { display: none; }
  .grid.grid-2col .spec-btn   { font-size: 10px; padding: 4px 8px; margin: 2px 0; }
  .grid.grid-2col .price-row  { gap: 4px; flex-wrap: nowrap; padding-top: 4px; }
  .grid.grid-2col .card .price .now { font-size: 14px; }
  .grid.grid-2col .card .price .old { font-size: 11px; }
  .grid.grid-2col .sale-timer { font-size: 10px; padding: 3px 5px; }

  /* modal mobile — full screen, scrolls as one unit */
  .overlay { padding: 0; align-items: stretch; }
  .modal {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .modal-top {
    grid-template-columns: 1fr;
    min-height: auto;
    flex: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }
  .gallery-side { min-height: 0; flex-shrink: 0; }
  .gallery { height: 58vh; min-height: 260px; max-height: 480px; flex: none; flex-shrink: 0; }
  .thumbs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
  }
  .thumbs img { width: 48px; height: 48px; }
  .modal-top-actions { position: fixed; top: 12px; right: 12px; z-index: 12; }
  .modal-top-actions .modal-close,
  .modal-share {
    width: 34px; height: 34px; font-size: 18px;
    background: rgba(15,31,61,.85); color: #fff;
  }
  .modal-info { padding: 16px 16px 32px; flex: none; overflow: visible; border-left: none; }
  .modal-info h2 { font-size: 18px; }
  .modal-info .mprice { margin: 10px 0; }
  .modal-info .mprice .now { font-size: 24px; }
  .btn-cta { min-width: 0; font-size: 13px; padding: 11px 10px; gap: 5px; flex: 1; }
  .modal-info .cta { gap: 6px; }

  /* filter bar mobile */
  .filterbar { gap: 10px; padding: 0 14px; }
  .fb-sort { margin-left: auto; flex: 0; }
  .fb-sort select { width: auto; }
  .fb-price { max-width: none; flex-basis: 100%; order: 3; }
  /* cat-bar: all items shrink proportionally so everything always fits one row */
  .cat-bar-inner { gap: clamp(4px, 1.5vw, 10px); padding: 6px clamp(8px, 3vw, 20px); flex-wrap: nowrap; }
  .fb-clear, .fb-toggle, .grid-toggle {
    flex-shrink: 1; min-width: 0;
    font-size: clamp(11px, 3.2vw, 13px);
    padding: clamp(5px, 1.4vw, 7px) clamp(7px, 2.2vw, 12px);
    white-space: nowrap; overflow: hidden;
  }
  .grid-toggle { display: flex; }

  /* footer mobile — only icons, pushed to the right */
  .foot { flex-wrap: nowrap; gap: 6px; padding: 8px 10px; font-size: 12px; }
  .foot-social { gap: 4px; margin-left: auto; }
  .foot-social-btn { padding: 7px; gap: 0; }
  .foot-social-btn .sl { display: none; }

  /* admin prod-row mobile — icon-only buttons */
  .prod-actions .blabel { display: none; }
  .prod-actions .btn { padding: 8px 4px; gap: 0; }
  .prod-actions .bic { width: 18px; height: 18px; }
}

/* ===== USER BUTTON + DROPDOWN (header) ===== */
.user-btn-wrap { position: relative; flex-shrink: 0; }

.btn-user {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface) center/cover no-repeat;
  color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: border-color .18s; padding: 0;
}
.btn-user:hover { border-color: var(--accent); }
.btn-user.logged-in { border-color: var(--accent); }
.btn-user .user-initials {
  font-size: 13px; font-weight: 700; color: var(--accent); line-height: 1;
}

.user-dd {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 200;
}
.user-dd-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: none; background: none; color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer;
  text-align: left; font-family: inherit;
  transition: background .15s;
}
.user-dd-item:hover { background: var(--bg); }
.user-dd-item.logout { color: var(--red, #e53e3e); }
.user-dd-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ===== HEART / FAVORITE BUTTON ===== */
.fav-btn {
  position: absolute; top: 7px; right: 7px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); border: none; cursor: pointer;
  color: #fff; transition: background .18s, transform .15s;
  backdrop-filter: blur(4px);
}
.fav-btn:hover { background: rgba(0,0,0,.55); transform: scale(1.1); }
.fav-btn.active { background: rgba(220,38,38,.75); }
.fav-btn.active:hover { background: rgba(220,38,38,.9); }

/* ===== AUTH PAGES (login / register) ===== */
.auth-main {
  min-height: calc(100vh - 60px); display: flex;
  align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px 32px;
  width: 100%; max-width: 380px; box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.auth-title {
  margin: 0 0 22px; font-size: 22px; font-weight: 700;
  color: var(--text); text-align: center;
}
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 11px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.btn-google:hover { border-color: var(--accent); background: var(--bg); }
.auth-or {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; color: var(--muted); font-size: 13px;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 14px; margin-bottom: 10px;
  font-family: inherit; transition: border-color .18s;
}
.auth-input:focus { outline: none; border-color: var(--accent); }
.auth-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 15px; }
.auth-switch {
  margin: 18px 0 0; text-align: center;
  font-size: 14px; color: var(--muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ===== PROFILE PAGE ===== */
.prof-main { min-height: calc(100vh - 60px); padding: 28px 16px; }
.prof-wrap { max-width: 780px; margin: 0 auto; }

.prof-hero {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px 28px; margin-bottom: 24px;
}
.prof-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim, rgba(0,144,204,.15));
  color: var(--accent); font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: visible; position: relative;
}
.prof-avatar-img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.prof-avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.prof-avatar-edit:hover { filter: brightness(1.15); }
.prof-info { flex: 1; min-width: 0; }
.prof-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.prof-email { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.prof-section { margin-bottom: 28px; }
.prof-section h3 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.prof-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.prof-fav-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color .18s, transform .15s;
}
.prof-fav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.prof-fav-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.prof-fav-noimg { width: 100%; aspect-ratio: 4/3; background: var(--line); }
.prof-fav-title {
  padding: 8px 10px 2px; font-size: 12px; font-weight: 600;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prof-fav-price { padding: 0 10px 10px; font-size: 12px; color: var(--accent); font-weight: 700; }

.prof-order {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.prof-order-body { padding: 14px 14px 10px; }
.prof-order-laptop {
  font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3;
  margin-bottom: 8px;
}
.prof-order-tags {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 2px;
}
.prof-status-pill { margin-left: auto; flex-shrink: 0; }
.prof-order-meta {
  font-size: 12px; color: var(--muted); margin: 8px 0 4px;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.prof-order-meta svg { flex-shrink: 0; opacity: .5; }
.prof-order-photos { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 4px; }
.prof-order-photo {
  width: 72px; height: 72px; object-fit: cover; border-radius: 9px;
  cursor: pointer; border: 1px solid var(--line);
  transition: opacity .15s, transform .15s; flex-shrink: 0;
}
.prof-order-photo:hover { opacity: .88; transform: scale(1.03); }

.prof-order-price-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; margin: 10px 0 2px;
}
.prof-order-price-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text); padding: 2px 0;
  gap: 8px;
}
.prof-order-price-row + .prof-order-price-row {
  border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 7px;
}
.prof-order-total-lbl { font-weight: 700; color: var(--text); font-size: 13px; }
.prof-order-total-val { font-size: 15px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.prof-order-action-box {
  background: linear-gradient(135deg, rgba(255,186,0,.09), rgba(255,140,0,.05));
  border-top: 1px solid rgba(255,186,0,.28);
  padding: 12px 14px 14px;
}
.prof-order-action-title {
  font-size: 12px; font-weight: 700; color: #b45309; margin-bottom: 10px;
  display: flex; align-items: center; gap: 5px; line-height: 1.3;
}
.prof-order-confirm {
  display: flex; gap: 8px; width: 100%;
}
.prof-order-confirm .btn {
  flex: 1; justify-content: center; font-size: 13px;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 8px; padding-right: 8px;
}

.prof-order-footer {
  border-top: 1px solid var(--line); padding: 9px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.prof-order-date-lbl { font-size: 11px; color: var(--muted); min-width: 0; }
.prof-order-wa {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; background: #e8f8f0; color: #1a7f4b;
  border: 1px solid #b2dfce; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s; flex-shrink: 0;
}
.prof-order-wa:hover { background: #d0f0e4; }
.prof-order-price { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.prof-order-date  { font-size: 12px; color: var(--muted); }

@media (max-width: 380px) {
  .prof-order-body { padding: 12px 12px 8px; }
  .prof-order-action-box { padding: 10px 12px 12px; }
  .prof-order-footer { padding: 8px 12px; }
  .prof-order-photo { width: 62px; height: 62px; }
  .prof-order-confirm { flex-direction: column; }
  .prof-order-confirm .btn { width: 100%; }
}

.prof-empty { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
  .prof-hero { padding: 18px 16px; gap: 14px; }
  .prof-avatar { width: 52px; height: 52px; font-size: 20px; }
  .prof-name { font-size: 16px; }
  .prof-fav-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}
