/* mykod.store — developer marketplace UI
   Latin text renders in Inter; Georgian falls through to Mersad, which covers Mkhedruli. */

@font-face {
    font-family: 'Mersad';
    src: url('/fonts/mersad-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Mersad';
    src: url('/fonts/mersad-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Mersad';
    src: url('/fonts/mersad-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Mersad';
    src: url('/fonts/mersad-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --page: #F6F7F9;
    --surface: #FFFFFF;

    --ink: #16181D;
    --muted: #6B7280;
    --quiet: #98A1AE;

    --border: #E2E5EA;
    --border-strong: #D3D8E0;

    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-soft: #EFF6FF;

    --success: #0F7B3F;
    --success-bg: #E4F5EA;

    --hero: #07182E;
    --hero-deep: #051225;

    --danger: #B42318;

    /* Bank of Georgia — ლოგოდან გაზომილი ბრენდის ნარინჯისფერი.
       ღილაკი ზუსტად ბრენდის ტონშია; წარწერა მუქია, რადგან თეთრი ამ ფონზე AA-ს ვერ გადის. */
    --bog: #FF5F21;              /* ბანკის ბრენდის ნარინჯისფერი */
    --bog-btn: #FF5F21;          /* ღილაკის ფონი — ზუსტად ბრენდის ტონი */
    --bog-btn-hover: #F04E10;
    --bog-btn-ink: #16181D;      /* თეთრი წარწერა ამ ნარინჯისფერზე 3.04:1-ია (AA ✗), მუქი — 5.84:1 (AA ✓) */

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    --shell: 1160px;
    --reading: 880px;
}

* { box-sizing: border-box; }

html {
    scroll-padding-top: 84px;   /* მიმაგრებული ზოლი #products/#pay-ს არ გადაფაროს */
    /* scrollbar-ის ადგილი ყოველთვის დაცულია — თორემ გრძელიდან მოკლე გვერდზე გადასვლისას
       შიგთავსი 15px-ით ხტება (ზოლიც, ვიტრინაც, ფუტერიც) */
    overflow-y: auto;
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html { overflow-y: scroll; }
}

body {
    margin: 0;
    /* მოკლე გვერდზეც ფუტერი ბოლოში რჩება, შუაში არ ეკიდება */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, Mersad, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

a { color: var(--accent); }
button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .15);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.shell {
    width: calc(100% - 64px);
    max-width: var(--shell);
    margin: 0 auto;
}

/* ============================ header ============================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 68px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

/* გადახვევისას ზოლი მინისებრი ხდება და ჩრდილით სცილდება შიგთავსს */
@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
    .topbar {
        background: rgba(255, 255, 255, .78);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}

.topbar.scrolled {
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 10px 28px rgba(22, 24, 29, .06);
}

.topbar .shell {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    flex: none;
}

/* ლოგო ერთი სურათია — სიმაღლე ზოლს ერგება, სიგანე პროპორციით მიჰყვება */
.brand-logo { display: block; height: 26px; width: auto; }

.nav-main { display: flex; align-items: center; gap: 2px; margin-right: auto; }

.navlink {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease, background 150ms ease;
}

.navlink:hover { color: var(--ink); background: #EFF1F5; }
.navlink.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

.icon-btn:hover { background: #EFF1F5; }
.icon-btn.on { color: var(--accent); background: var(--accent-soft); }

.cart-count {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-nav.ghost { color: var(--ink); border: 1px solid var(--border-strong); }
.btn-nav.ghost:hover { border-color: var(--ink); background: #EFF1F5; }
.btn-nav.solid { background: var(--accent); color: #fff; }
.btn-nav.solid:hover { background: var(--accent-hover); }

.menu-toggle { display: none; }
/* desktop keeps the inline nav; the menu drawer only exists on narrow screens */
.mobile-menu { display: none; }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 46, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
    z-index: 30;
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============================ page shells ============================ */

.wrap {
    width: 100%;               /* body ფლექსია: auto-margin-ი stretch-ს აუქმებს, სიგანე ცხადად უნდა ეწეროს */
    max-width: var(--shell);   /* შიდა გვერდებიც ვიტრინის სიგანეზეა — ვიწრო სვეტი აღარ არის */
    margin: 28px auto;
    padding: 0 16px;
}

.home { margin: 24px auto 0; }

h1 { font-size: 24px; line-height: 32px; letter-spacing: -0.4px; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 18px; line-height: 26px; font-weight: 600; margin: 0 0 8px; }

/* ============================ hero slider ============================ */

.hero {
    position: relative;
    height: auto;
    min-height: 266px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--hero);
    color: #fff;
    display: flex;
}

.hero-copy {
    width: 46%;
    padding: 0 32px 0 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 0 10px;
    height: 22px;
    line-height: 22px;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, .22);
    color: #BBD1FF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
}

.hero-copy h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.7px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    max-width: 430px;
}

.hero-copy p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: rgba(255, 255, 255, .72);
    max-width: 460px;
}

.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.hero-stage { position: relative; width: 54%; overflow: hidden; }

/* ცარიელი ვიტრინა: ილუსტრაცია ჰერო-ბარათის კიდემდე მიდის და მარცხნივ ფონში ითქვიფება */
.hero-empty { position: absolute; inset: 0 0 0 9%; pointer-events: none; }   /* ცოტა მარჯვნივ, ტექსტისგან მოშორებით */

.hero-empty img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 46%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%);
    mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}

.hero-slide {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide a { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; }

.hero-caption {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0 2px;
    color: #fff;
    max-width: 600px;
}

.hero-caption strong {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-caption em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .78); flex: none; }

/* ფასიანი სლაიდი: ვინ ყიდის — ლოგო, მაღაზია, გაყიდვები, ნიშნული */
.hero-caption { align-items: center; }

.hero-seller-logo {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-seller-logo img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.hero-seller-logo .icon { width: 11px; height: 11px; color: rgba(255, 255, 255, .75); }

.hero-seller-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    flex: none;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-seller-name::after { content: '·'; margin-left: 8px; color: rgba(255, 255, 255, .45); }

.hero-ad {
    flex: none;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .16);
    font-size: 10px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.hero-slide img,
.hero-slide .hero-blank {
    width: 600px;
    max-width: 92%;
    height: 230px;
    object-fit: cover;
    object-position: left top;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 0;
    display: block;
}

.hero-slide .hero-blank {
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 150ms ease;
}

.hero-arrow:hover { background: rgba(0, 0, 0, .45); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transition: background 150ms ease;
}

.hero-dot.on { background: var(--accent); }

/* ============================ category filter ============================ */

.filters {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: #4B5563;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    white-space: nowrap;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.chip-icon { opacity: .75; transform: translateY(1px); }
.chip.on .chip-icon { opacity: 1; }

.chip:hover { border-color: #C8CFD9; background: #FAFBFC; color: var(--ink); }

/* ჩიპის მრიცხველი და NEW-ბეიჯი */
.chip-count {
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: #EEF1F5;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

.chip.on .chip-count { background: rgba(255, 255, 255, .22); color: #fff; }

.chip-new {
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
    line-height: 15px;
}

.chip.on .chip-new { background: rgba(255, 255, 255, .9); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-icon { flex: none; }

/* ============================ product grid ============================ */

.grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.product:hover {
    border-color: #CBD2DC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 24, 29, .05);
}

.product-cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 8.2;
    background: #EEF1F5;
    border-bottom: 1px solid var(--border);
}

.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-cover.blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(45deg, #EFF2F6 0 10px, #EAEEF3 10px 20px);
}

.cover-fallback { color: #AEB7C4; display: flex; }
.cover-fallback svg { width: 30px; height: 30px; }

.cover-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 21px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    line-height: 21px;
}

.product-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    margin: 0;
    overflow: hidden;
}

.product-sales {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);   /* --quiet fails AA at this size */
    white-space: nowrap;
    flex: none;
}

.tag {
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    border: 1px solid #93B4FF;
    background: var(--surface);
    color: var(--accent);
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.tag.new {
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success);
    font-weight: 600;
    line-height: 22px;
}

.product-platform { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-title {
    margin: 9px 0 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: -0.15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a { color: var(--ink); text-decoration: none; }
.product-title a:hover { color: var(--accent); }

.product-desc {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-actions { display: flex; align-items: center; gap: 6px; }
.product-actions form { margin: 0; }

.btn-cart {
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 150ms ease, border-color 150ms ease;
}

.btn-cart:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.price {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -0.25px;
    color: var(--ink);
}

.price.big { font-size: 24px; line-height: 32px; }

.btn-view {
    height: 32px;
    min-width: 60px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #7CA5FF;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    line-height: 30px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 150ms ease, border-color 150ms ease;
}

.btn-view:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ============================ buttons & forms ============================ */

.btn {
    display: inline-block;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 38px;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.btn:hover { border-color: var(--border-strong); background: #FAFBFC; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.small { height: 32px; padding: 0 12px; line-height: 30px; font-size: 13px; }

.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .8); }

label { display: block; margin: 14px 0 4px; font-size: 14px; font-weight: 500; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-top: 16px; }

input[type=text], input[type=email], input[type=password], input[type=file], textarea, select {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--surface);
    color: var(--ink);
}

input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
textarea { resize: vertical; }

form.buy button, form button.primary { margin-top: 14px; }
form.inline { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
form.inline button { margin-top: 0; }
form.inline.left { justify-content: flex-start; }
.small-input { width: 150px; min-height: 32px; padding: 5px 9px; font-size: 13px; }

/* ============================ shared blocks ============================ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.card.narrow { max-width: 420px; margin-inline: auto; }
.card.empty { color: var(--muted); text-align: center; }

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 19px; }
.hint { color: var(--muted); font-size: 13px; line-height: 19px; }
.warn { color: var(--danger); }
.right { text-align: right; }
.back { text-decoration: none; font-size: 13px; color: var(--muted); }
.back:hover { color: var(--accent); }

.meta { color: var(--muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.desc { margin: 12px 0; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row > div { flex: 1 1 160px; }

.lead { color: var(--muted); margin: 0 0 4px; }

table.kv { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.kv td { max-width: 74ch; }
table.kv th { text-align: left; width: 160px; color: var(--muted); font-weight: 500; padding: 8px 0; vertical-align: top; font-size: 14px; }
table.kv td { padding: 8px 0; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); padding: 8px 10px 8px 0; font-size: 13px; }
table.list td { border-bottom: 1px solid var(--border); padding: 10px 10px 10px 0; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }

.badge { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px; background: #EEF1F5; color: var(--muted); }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.pending { background: #FDF1E3; color: #9A5B12; }
.badge.off { background: #F1F2F4; color: var(--muted); }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 20px; }

.flash { padding: 11px 14px; border-radius: var(--radius-md); margin-bottom: 16px; background: var(--success-bg); color: var(--success); border: 1px solid #BFE3CD; }
.flash.error { background: #FDECEB; color: var(--danger); border-color: #F2C9C2; }

code { background: #EEF1F5; padding: 2px 6px; border-radius: var(--radius-sm); font-size: 13px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ============================ product page ============================ */

.gallery { margin: 16px 0 20px; }
.gallery-main { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; display: block; max-height: 460px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.gallery-thumb {
    width: 78px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: none;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.on { border-color: var(--accent); }

.row-with-thumb { display: flex; gap: 10px; align-items: center; }
.mini-thumb { width: 46px; height: 34px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }

.admin-images { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-image { margin: 0; width: 150px; }
.admin-image img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); }
.admin-image figcaption { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.admin-image form.inline { justify-content: flex-start; }

.repo-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-top: 12px; }

/* ============================ BOG installment ============================ */

.bog { margin: 10px 0 6px; }
.bog .row { margin-top: 10px; }
.bog-btn { min-width: 150px; }

/* the SDK calculator is injected DOM, so our CSS reaches it; on phones it clips its own header */
@media (max-width: 600px) {
    .bog-smart-modal-wrapper {
        top: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: 64px !important;
        box-sizing: border-box !important;
    }
}

/* ============================ footer ============================ */

.foot {
    margin-top: 44px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.foot-top {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
    gap: 32px;
    padding: 40px 0 28px;
}

.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); max-width: 42ch; }

.foot-delivery { display: flex; gap: 14px; margin-top: 12px !important; flex-wrap: wrap; }
.foot-delivery span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.foot-delivery .icon { width: 13px; height: 13px; }

.foot-col { display: flex; flex-direction: column; gap: 10px; }

.foot-col h3 {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--quiet);
}

.foot-link {
    font-size: 13px;
    line-height: 18px;
    color: var(--muted);
    text-decoration: none;
    width: fit-content;
    transition: color 150ms ease;
}

.foot-link:hover { color: var(--accent); }

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--quiet);
}

.foot-note { text-align: right; }

/* „დამზადებულია" + Diveloper Digital-ის ლოგო — საავტორო ხაზშივე */
.foot-made { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.foot-maker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--quiet);
    text-decoration: none;
}

.foot-maker:hover { color: var(--muted); }
.foot-maker img { height: 13px; width: auto; display: block; }

.foot a { text-decoration: none; }   /* ფერს თითოეული როლი თავად ირჩევს — brand მუქია, ბმული ჩუმი */

/* ============================ tablet ============================ */

@media (max-width: 900px) {
    .shell { width: calc(100% - 40px); }

    /* პლანშეტზე ორი ვიწრო სვეტი ვერ ტევდა ვერც ტექსტს, ვერც სლაიდს —
       აქედან ქვევით ჰერო ტელეფონივით ეწყობა: ტექსტი ზემოთ, სლაიდი ქვემოთ */
    .hero { flex-direction: column; }
    .hero-copy { width: 100%; padding: 32px 28px 24px; }
    .hero-copy h1 { font-size: 26px; line-height: 33px; }
    .hero-stage { width: 100%; height: 230px; }
    .hero-slide { inset: 0; justify-content: center; align-items: flex-start; }
    /* ბმული შიგთავსზეა შეკუმშული — პროცენტული სიგანე მასზე რომ იმუშაოს, თავად უნდა გაიშალოს */
    .hero-slide a { width: 100%; align-items: center; }
    .hero-slide img,
    .hero-slide .hero-blank { width: calc(100% - 40px); max-width: 620px; height: 200px; margin: 8px auto 0; border-radius: 8px; object-position: center top; }
    .hero-caption { width: calc(100% - 40px); max-width: 620px; margin-left: auto; margin-right: auto; }
    .hero-arrow { display: none; }
    .hero-empty { inset: 0; }
    .hero-empty img {
        object-position: center 42%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%);
        mask-image: linear-gradient(180deg, transparent 0, #000 38%);
    }

    .filters {
        display: flex;
        flex-wrap: nowrap;   /* scroll instead of breaking into ragged rows */
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: 0 0 auto; padding: 0 16px; }

    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* ბრენდი მთელ სიგანეზე, სამი სვეტი კი ერთ რიგში რჩება */
    .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 30px 0 22px; }
    .foot-brand { grid-column: 1 / -1; }
}

/* ============================ tablet: the drawer takes over ============================ */

@media (max-width: 900px) {
    .nav-main { display: none; }
    .nav-actions .desk { display: none; }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        color: var(--ink);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50%;
        min-width: 240px;
        max-width: 340px;
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: -12px 0 32px rgba(22, 24, 29, .12);
        transform: translateX(100%);
        transition: transform 250ms ease;
        z-index: 31;
    }
    .mobile-menu.open { transform: translateX(0); }

    .drawer-head {
        height: 60px;
        padding: 0 12px 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }
    .drawer-title { font-size: 14px; font-weight: 600; color: var(--muted); }
    .drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        color: var(--ink);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .drawer-links { padding: 10px; overflow-y: auto; }
    .drawer-links a {
        display: flex;
        align-items: center;
        padding: 12px 12px;
        border-radius: var(--radius-md);
        min-height: 44px;
        color: var(--ink);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }
    .drawer-links a:hover { background: var(--accent-soft); color: var(--accent); }
    .drawer-links hr { margin: 8px 12px; }

    body.drawer-open { overflow: hidden; }
}

/* ============================ mobile ============================ */

@media (max-width: 600px) {
    .shell { width: calc(100% - 32px); }

    .foot-top { grid-template-columns: 1fr; gap: 22px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
    .foot-note { text-align: left; }

    .topbar { height: 58px; }
    .brand-logo { height: 22px; }


    .hero { border-radius: var(--radius-md); }
    .hero-copy { padding: 28px 20px 22px; }

    /* გრძელი ქართული სიტყვები 375px-ზეც თავისუფლად ეტევა */
    .hero-copy h1 { font-size: 23px; line-height: 30px; letter-spacing: -0.4px; }
    .hero-copy p { font-size: 13px; line-height: 20px; }

    .hero-stage { height: 200px; }
    .hero-slide img,
    .hero-slide .hero-blank { width: calc(100% - 32px); height: 175px; }

    .grid { grid-template-columns: 1fr; }
    .product-cover { aspect-ratio: 16 / 9; }
    .product-body { padding: 14px; }
    .btn-view { min-height: 40px; line-height: 38px; }


    table.list th:nth-child(3), table.list td:nth-child(3) { display: none; }

    table.list {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    table.list td, table.list th { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    *, .hero-slide { transition: none !important; animation: none !important; }
}

/* ============================ a11y & interaction states ============================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 60;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 var(--radius-md) 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { left: 0; }

/* pressed feedback — colour/shadow only, never a layout shift */
.btn:active, .btn-view:active, .btn-cart:active, .chip:active,
.hero-arrow:active, .drawer-close:active, .pager-step:active, .pager-page:active {
    filter: brightness(.94);
}

.btn[disabled], .btn-cart[disabled], button[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: none;
}

/* submit buttons show they are working instead of inviting a second click */
button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
button.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

.btn:not(.primary).is-loading::after,
.btn-view.is-loading::after { border-color: rgba(37, 99, 235, .3); border-top-color: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }

/* the dark hero needs its own focus ring — the blue one disappears there */
.hero :focus-visible { outline: 3px solid rgba(255, 255, 255, .65); outline-offset: 3px; }

/* hero dots are 6px visually, but the button keeps a finger-sized hit area */
.hero-dot { position: relative; }
.hero-dot::after { content: ''; position: absolute; inset: -12px; }

/* ============================ pagination ============================ */

.pager {
    margin: 22px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pager-pages { display: flex; gap: 6px; }

.pager-step, .pager-page {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.pager-page { padding: 0 8px; }
.pager-step:hover, .pager-page:hover { border-color: var(--border-strong); background: #FAFBFC; }
.pager-page.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-step.disabled { color: var(--quiet); background: #FAFBFC; cursor: default; }

.listing-empty { margin-top: 20px; }
.listing-empty p { margin: 6px 0; }
.listing-empty { padding: 44px 24px; }
.listing-empty h2 { margin: 4px 0 6px; font-size: 19px; color: var(--ink); }
.card.empty.listing-empty p { max-width: 46ch; margin: 6px auto; }   /* .card.empty p ბოლოში margin-ს ანულებს */
.empty-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px !important; flex-wrap: wrap; }

/* readable measure for long-form copy */
.desc, .card > p, .lead { max-width: 68ch; }

/* ============================ mobile touch targets ============================ */

@media (max-width: 600px) {
    .chip { height: 44px; padding: 0 16px; }
    .btn-cart { height: 44px; padding: 0 14px; }
    .btn-view { height: 44px; line-height: 42px; }
    .drawer-close { width: 44px; height: 44px; }
    .cart-link { min-height: 44px; min-width: 44px; justify-content: center; }
    .pager-step, .pager-page { height: 44px; line-height: 42px; }
}

/* ============================ icons (Font Awesome Pro, inlined) ============================ */

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex: none;

    /* duotone: the secondary layer sits behind at a lower opacity, both inherit currentColor */
    --fa-secondary-opacity: .4;
}

.icon .fa-secondary { opacity: var(--fa-secondary-opacity); }
.icon .fa-primary { opacity: 1; }

/* on solid accent surfaces the faint layer would disappear, so lift it a little */
.btn.primary .icon, .btn-cart .icon, .chip.on .icon, .hero-arrow .icon { --fa-secondary-opacity: .55; }

/* large decorative glyphs read better with a stronger backdrop layer */
.cover-fallback .icon, .empty-icon .icon { --fa-secondary-opacity: .45; }

.nav-icon { width: 1.15em; height: 1.15em; }
.chip-icon { width: 14px; height: 14px; opacity: .8; }
.chip.on .chip-icon { opacity: 1; }
.tag-icon { width: 11px; height: 11px; margin-right: 5px; opacity: .9; }

.cart-link .icon { width: 18px; height: 18px; }
.hero-eyebrow .icon { width: 11px; height: 11px; margin-right: 6px; vertical-align: 0; }
.cover-flag .icon { width: 10px; height: 10px; margin-right: 5px; }
.product-sales .icon { width: 11px; height: 11px; margin-right: 4px; opacity: .7; }

.btn .icon, .btn-cart .icon, .btn-view .icon { margin-right: 7px; }
.btn.small .icon { margin-right: 5px; width: 12px; height: 12px; }
.drawer-links .icon { width: 16px; height: 16px; margin-right: 12px; color: var(--muted); }
.drawer-links a:hover .icon { color: var(--accent); }

table.kv .icon { margin-right: 7px; color: var(--muted); }
a .icon.icon { color: inherit; }
.card p a .icon, td a .icon { margin-left: 5px; margin-right: 0; width: 11px; height: 11px; }

.cover-fallback .cover-icon { width: 34px; height: 34px; color: #B4BCC8; }
.empty-icon .icon { width: 40px; height: 40px; color: var(--quiet); margin-bottom: 4px; }
.card.empty p { margin: 6px 0; }

/* ============================ product detail ============================ */

/* the detail page uses the spec container: 880px, 48px of breathing room on small screens */
.wrap.detail-page { width: calc(100% - 48px); max-width: 880px; padding: 0; margin: 0 auto 18px; }

.detail-back { margin: 22px 0 12px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover { color: var(--accent-hover); }
.back-link .icon { width: 13px; height: 13px; }

.card.detail { padding: 24px; margin-bottom: 18px; }

.detail-head h1 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin: 0;
}

.detail-summary {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--muted);
    max-width: 72ch;
}

/* --- gallery --- */

.gallery { margin: 14px 0 0; }

.gallery-main {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--page);
    cursor: zoom-in;
}

.gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5.5;
    object-fit: cover;
}

.gallery-thumbs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-thumb {
    height: 72px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--page);
    cursor: pointer;
    transition: border-color 150ms ease;
    width: 100%;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: #BFC7D2; }
.gallery-thumb.on { border: 2px solid var(--accent); }

/* --- specifications --- */

.specs { margin-top: 16px; }

.spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: baseline;
    min-height: 25px;
    border-bottom: 1px solid #F0F1F3;
}

.spec-row:last-child { border-bottom: 0; }

.spec-label { font-size: 13px; line-height: 20px; color: var(--muted); }
.spec-value { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink); }

.spec-value a { color: var(--accent); font-weight: 500; text-decoration: none; }
.spec-value a:hover { text-decoration: underline; text-underline-offset: 2px; }
.spec-value .icon { width: 10px; height: 10px; margin-left: 5px; }

/* --- description --- */

.detail-desc { margin-top: 18px; max-width: 74ch; }
.detail-desc p { margin: 0 0 4px; font-size: 14px; line-height: 21px; color: var(--ink); }

/* --- purchase --- */

.purchase {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.detail-price {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--ink);
}

.purchase form { margin: 0; }
.purchase label { margin: 0 0 5px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.purchase input[type=email] { height: 40px; min-height: 40px; padding: 0 12px; border-color: var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; }
.purchase input[type=email]::placeholder { color: var(--quiet); }
.purchase input[type=email]:focus { border-color: var(--accent); outline: 3px solid rgba(37, 99, 235, .12); outline-offset: 0; }
.purchase-buy { margin-top: 10px; }
.account-note { margin: 0 0 10px; }

.btn-outline, .btn-solid, .btn-bog {
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.btn-outline { background: var(--surface); border: 1px solid #7CA5FF; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-outline:active { background: #E5EFFF; }
.btn-outline.wide { width: 100%; }

.btn-solid { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
/* შესყიდვის ღილაკებს hover-ეფექტი შეგნებულად არ აქვთ — ფოკუსის რგოლი რჩება კლავიატურისთვის */

.btn-outline .icon, .btn-solid .icon, .btn-bog .icon { width: 15px; height: 15px; }

.purchase-actions { margin-top: 12px; display: grid; gap: 12px; }
.purchase-actions.two { grid-template-columns: 1fr 1fr; }
.purchase-actions.one { grid-template-columns: 1fr; }
.purchase-actions .btn-solid, .purchase-actions .btn-outline, .purchase-actions .btn-bog { height: 42px; }

.purchase-hint {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.purchase-hint .icon { width: 15px; height: 15px; flex: none; }

/* --- lightbox --- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(7, 24, 46, .78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); display: block; }

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { background: rgba(0, 0, 0, .5); }
.lightbox :focus-visible { outline: 3px solid rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
    .wrap.detail-page { width: calc(100% - 40px); }
    .card.detail { padding: 20px; }
    .gallery-thumbs { gap: 10px; }
}

@media (max-width: 600px) {
    .wrap.detail-page { width: calc(100% - 32px); }
    .card.detail { padding: 16px; border-radius: var(--radius-md); }
    .detail-head h1 { font-size: 22px; line-height: 29px; }
    .gallery-main img { aspect-ratio: 16 / 10; }

    .gallery-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }
    .gallery-thumbs::-webkit-scrollbar { display: none; }
    .gallery-thumb { flex: 0 0 82px; height: 58px; }

    .spec-row { grid-template-columns: 105px 1fr; }
    .purchase-actions.two { grid-template-columns: 1fr; gap: 8px; }
    .purchase-actions .btn-solid, .purchase-actions .btn-outline, .purchase-actions .btn-bog, .btn-outline.wide { min-height: 44px; }
    .lightbox { padding: 16px; }
}

/* a purchase option the bank cannot serve at this price: visible, explained, not clickable */
.purchase-actions .btn-outline[disabled] {
    background: var(--surface);
    border-color: var(--border);
    color: var(--quiet);
    opacity: 1;
    cursor: not-allowed;
}

.purchase-actions .btn-outline[disabled]:hover { background: var(--surface); border-color: var(--border); }
.purchase-actions .btn-outline[disabled] .icon { opacity: .5; }

/* --- installment: the bank's own colour, in our own button shape --- */

.btn-bog {
    background: var(--bog-btn);
    border: 1px solid var(--bog-btn);
    color: var(--bog-btn-ink);
}

.btn-bog:focus-visible { outline: 3px solid rgba(255, 95, 33, .35); }

.bog-mark {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex: none;
    display: block;
}

.purchase-actions .btn-bog[disabled] {
    background: var(--surface);
    border-color: var(--border);
    color: var(--quiet);
    opacity: 1;
    cursor: not-allowed;
}

.purchase-actions .btn-bog[disabled] .bog-mark { filter: grayscale(1); opacity: .5; }

/* ============================ storefront ============================ */

.store-head { margin-bottom: 18px; }

.store-cover {
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #EFF2F6 0 12px, #E8ECF2 12px 24px);
    border: 1px solid var(--border);
}

.store-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.store-identity {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin: -44px 0 0 24px;
    position: relative;
    z-index: 2;
}

.store-avatar {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 3px solid var(--surface);
    box-shadow: 0 2px 10px rgba(22, 24, 29, .08);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-avatar.blank { color: #B4BCC8; }

.store-meta { padding-bottom: 6px; }
.store-meta h1 { margin: 0 0 2px; }
.store-meta p { margin: 0; }

.store-facts { display: flex; gap: 16px; margin-top: 6px !important; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.store-facts .icon { width: 13px; height: 13px; margin-right: 6px; }

.store-about { margin-top: 16px; }

.product-store {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-store:hover { color: var(--accent); }
.product-store .icon { width: 11px; height: 11px; }

@media (max-width: 600px) {
    .store-cover { height: 130px; }
    .store-identity { margin: -36px 0 0 16px; gap: 12px; }
    .store-avatar { width: 68px; height: 68px; }
}

/* ---------- დეველოპერების ზოლი და კატალოგი ---------- */

.devs { margin: 26px 0 4px; }

.devs-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.devs-head h2 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.devs-head h2 .head-icon { width: 18px; height: 18px; color: var(--accent); }
.devs-head p { margin: 0; font-size: 13px; }

.devs-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.devs-more:hover { text-decoration: underline; }
.devs-more .more-icon { width: 11px; height: 11px; }

.devs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

/* მთავარ გვერდზე მხოლოდ ერთი რიგია — დანარჩენი /developers-ზეა */
.devs.strip .devs-grid { grid-template-columns: repeat(4, 1fr); }

.dev-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dev-card:hover { border-color: var(--border-strong); box-shadow: 0 2px 10px rgba(22, 24, 29, .06); }
.dev-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dev-avatar {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF2F6;
}

.dev-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-avatar.blank { color: #B4BCC8; }
.dev-avatar .cover-icon { width: 26px; height: 26px; }

.dev-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.dev-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dev-tagline {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-facts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dev-facts .icon { width: 11px; height: 11px; margin-right: 4px; }

@media (max-width: 900px) {
    .devs.strip .devs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .devs:not(.strip) .devs-grid { grid-template-columns: 1fr; }

    /* ვიწრო ეკრანზე ზოლი პროდუქტებს ქვემოთ არ ჩამოსწევს — გვერდულად გადაიშლება */
    .devs.strip .devs-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .devs.strip .dev-card { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ============================ ავტორიზაცია / რეგისტრაცია ============================ */

/* ბანერი და ფორმა ერთ ბარათშია, გვერდის ჩვეულებრივ სიგანეზე — ზოლიც და ფუტერიც ადგილზეა */
.auth-split {
    display: grid;
    grid-template-columns: 46% 54%;
    /* შესვლა და რეგისტრაცია ერთი სიმაღლისაა — მოკლე ფორმა უბრალოდ ცენტრირდება */
    min-height: 620px;
    margin: 24px 0 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.auth-side {
    position: relative;
    overflow: hidden;
    background: var(--hero);
    color: #fff;
    padding: 44px 40px 0;
    display: flex;
    flex-direction: column;
}

.auth-side .brand { color: #fff; flex: none; }


.auth-pitch { margin-top: 0; max-width: 440px; }

.auth-pitch h2 {
    margin: 0;
    font-size: 31px;
    line-height: 40px;
    letter-spacing: -0.9px;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}

.auth-pitch p {
    margin: 14px 0 0;
    max-width: 380px;
    font-size: 14px;
    line-height: 23px;
    color: rgba(255, 255, 255, .66);
}

/* უპირატესობები მინისებრ რიგებადაა */
.auth-perks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }

.auth-perks li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, .92);
}

.auth-perks .icon { width: 16px; height: 16px; flex: none; color: #7FA8FF; --fa-secondary-opacity: .3; }

/* ილუსტრაცია ბანერის ფონია: ქვემოდან იწყება, ზემოთ ითქვიფება და ტექსტი მასზე დევს */
.auth-art {
    position: absolute;
    left: 50%;
    bottom: -4%;
    transform: translateX(-50%);
    width: 122%;
    max-width: none;
    height: auto;
    opacity: .42;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 50%);
    mask-image: linear-gradient(180deg, transparent 0, #000 50%);
}

/* ტექსტსა და ილუსტრაციას შორის ნავისფერი ფარდა — ასოები ყოველთვის იკითხება */
.auth-side::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, var(--hero) 10%, rgba(7, 24, 46, .62) 46%, rgba(7, 24, 46, .35) 100%);
}

.auth-side .auth-pitch { position: relative; z-index: 2; }

/* ბანერს სიმაღლე ტექსტი აძლევს; ილუსტრაციას ქვემოთ სივრცე რჩება */
.auth-side { padding-bottom: 190px; min-height: 460px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

.auth-card { width: 100%; max-width: 400px; }

.auth-card h1 { font-size: 27px; line-height: 34px; margin: 0; }
.auth-sub { margin: 4px 0 22px; color: var(--muted); font-size: 14px; }

.auth-form label { margin: 16px 0 6px; font-size: 13px; }
.auth-form label:first-of-type { margin-top: 0; }
.label-hint { color: var(--quiet); font-weight: 400; }

.auth-form input[type=email],
.auth-form input[type=password] { min-height: 44px; border-radius: var(--radius-md); }

.input-pass { position: relative; display: block; }

.pass-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--quiet);
    border-radius: var(--radius-sm);
}

.pass-toggle:hover { color: var(--muted); background: #F1F3F7; }
.pass-toggle.on { color: var(--accent); }
.pass-toggle .icon { width: 18px; height: 18px; }
/* დამალულ პაროლზე — ღია თვალი, ნაჩვენებზე — გადახაზული */
.pass-toggle .eye-off, .pass-toggle.on .eye-on { display: none; }
.pass-toggle.on .eye-off { display: inline-block; }

.btn.block { width: 100%; justify-content: center; height: 46px; margin-top: 22px; font-size: 15px; }

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--quiet);
    font-size: 12px;
}

.auth-or::before, .auth-or::after { content: ; flex: 1; height: 1px; background: var(--border); }

.auth-oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn.oauth {
    display: inline-flex;      /* .btn თავისთავად inline-block-ია — flex-ის გარეშე gap/centering არ მუშაობს */
    align-items: center;
    justify-content: center;
    height: 46px;              /* მთავარი ღილაკის ტოლი */
    line-height: 1;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.btn.oauth:hover { background: #F7F8FA; border-color: var(--ink); }

.btn.oauth .oauth-mark {
    display: block;            /* baseline-ის ნაცვლად — თორემ ორი იკონი 2px-ით სცდება ერთმანეთს */
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex: none;
}

/* octocat თავის კვადრატს კიდემდე ავსებს, G — არა: ოპტიკურად ერთი ზომისთვის ერთი ოდნავ პატარაა */
.btn.oauth .icon.oauth-mark { width: 17px; height: 17px; }

.auth-foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* წესებზე თანხმობის ჩექბოქსი რეგისტრაციაზე */
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: none;
    accent-color: var(--accent);
    cursor: pointer;
}
.check-row a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.auth-form .check-row + .btn { margin-top: 14px; }

.auth-consent { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.auth-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* წესების გვერდი */
.terms h2 { margin: 26px 0 8px; font-size: 17px; }
.terms p { line-height: 1.65; }

@media (max-width: 900px) {
    /* ვიწრო ეკრანზე ბანერი ფორმის თავზე მოკლე ზოლად რჩება */
    .auth-split { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { padding: 26px 22px 0; }
    .auth-pitch { margin-top: 20px; }
    .auth-pitch h2 { font-size: 25px; line-height: 33px; letter-spacing: -0.6px; }
    .auth-pitch p { display: none; }
    .auth-perks { margin-top: 16px; }
    .auth-art { width: 132%; bottom: -6%; opacity: .45; }
    .auth-side { padding-bottom: 150px; min-height: 0; }
    .auth-main { padding: 26px 18px 32px; }
}

@media (max-width: 420px) {
    .auth-oauth { grid-template-columns: 1fr; }
}
/* --- ვიდეო-ბანერი ავტორიზაციაზე --- */

.auth-side.has-video { padding-bottom: 48px; background-size: cover; background-position: center; }
.auth-side.has-video .auth-pitch { margin-top: auto; margin-bottom: 8vh; }

.auth-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* ბრენდის ტონში მოვყავართ: ოდნავ მუქი და ნაკლებად ჭრელი */
    filter: saturate(.82) brightness(.72) contrast(1.04);
}

/* ტექსტი ვიდეოზე მხოლოდ ბურუსის მიღმა იკითხება */
.auth-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 24, 46, .96) 0%, rgba(7, 24, 46, .78) 55%, rgba(7, 24, 46, .62) 100%),
        linear-gradient(180deg, rgba(7, 24, 46, .78) 0%, rgba(7, 24, 46, .5) 45%, rgba(7, 24, 46, .85) 100%);
}

.auth-side.has-video .brand,
.auth-side.has-video .auth-pitch { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    /* მოძრაობა გამორთულია — რჩება იმავე კადრის სტოპ-კადრი */
    .auth-video { display: none; }
    .auth-side.has-video { background-image: var(--auth-poster); }
}

@media (max-width: 900px) {
    /* ტელეფონზე ვიდეოს არ ვწევთ — პოსტერი ჰყოფნის */
    .auth-video { display: none; }
    .auth-side.has-video { background-image: var(--auth-poster); min-height: 260px; }
    .auth-side.has-video .auth-pitch { margin: 24px 0; }
}

/* ============================ კალათის პანელი ============================ */

/* კალათას ცალკე გვერდი არ აქვს — მარჯვნიდან გამოსრიალებული პანელია ყველა გვერდზე */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 32px rgba(22, 24, 29, .12);
    transform: translateX(100%);
    transition: transform 250ms ease;
    z-index: 33;
}

/* JS-ის გარეშეც იხსნება: ღილაკი #cart-drawer-ზე მიმავალი ბმულია */
.cart-drawer.open,
.cart-drawer:target { transform: translateX(0); }

.cart-drawer .drawer-head {
    height: 60px;
    padding: 0 12px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex: none;
}

.cart-drawer .drawer-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cart-drawer .drawer-title .icon { width: 16px; height: 16px; color: var(--muted); }

.cart-drawer .drawer-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.cart-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.cart-empty p { margin: 6px 0; }
.cart-empty .icon { width: 38px; height: 38px; color: var(--quiet); }

.cart-items { flex: 1; overflow-y: auto; padding: 10px 14px; }

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: 0; }

.cart-thumb {
    width: 56px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #EFF2F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb.blank .icon { width: 18px; height: 18px; color: var(--quiet); }

.cart-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cart-title { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 19px; }
.cart-title:hover { color: var(--accent); }
.cart-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cart-meta .icon { width: 12px; height: 12px; }
.cart-price { font-size: 14px; font-weight: 600; }

.cart-drop {
    width: 30px;
    height: 30px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--quiet);
    border-radius: var(--radius-sm);
}

.cart-drop:hover { color: var(--danger); background: #FDF2F1; }
.cart-drop .icon { width: 13px; height: 13px; }

.cart-foot { flex: none; padding: 16px 18px 20px; border-top: 1px solid var(--border); background: var(--page); }
.cart-sum { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.cart-sum strong { font-size: 20px; color: var(--ink); }
.cart-foot label { margin-top: 0; }
.cart-foot .hint { margin: 8px 0 0; }
.cart-foot .btn.block { margin-top: 14px; }

/* ============================ შეფასებები ============================ */

.reviews-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews-head h2 { margin: 0; }

.reviews-avg { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }

/* ვარსკვლავები: რუხი ფენა ქვევით, ყვითელი ზევით --fill სიგანეზე — ნახევრებიც ზუსტად იხატება */
.stars { position: relative; display: inline-flex; line-height: 1; }
.stars .icon { width: 16px; height: 16px; }
.stars.small .icon { width: 13px; height: 13px; }
.stars-bg { display: inline-flex; color: #D6DAE1; }
.stars-fg {
    display: inline-flex;
    color: #F5A623;
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: var(--fill, 0%);
    white-space: nowrap;
}
.stars-fg .icon { flex: none; }

.review-form { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.review-form-title { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.review-form textarea { margin-top: 10px; }
.review-form .btn { margin-top: 12px; }

/* ვარსკვლავების არჩევა JS-ის გარეშე: შებრუნებული რიგი + :checked ~ label */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #D6DAE1; padding: 2px; }
.star-input label .icon { width: 22px; height: 22px; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #F5A623; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.review-list { list-style: none; margin: 0; padding: 0; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }

.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-author { font-size: 13px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--quiet); }
.review-top .inline { margin-left: auto; }

.review-body { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: #3F4652; max-width: 68ch; }

/* ქარდზე: ვარსკვლავი + საშუალო, გაყიდვების გვერდით */
.product-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.product-rating .icon { width: 12px; height: 12px; color: #F5A623; }
