/* Velingrad Store: a store-style Ghost theme (Bulgarian). */

/* ---------- Tokens ---------- */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-body: var(--gh-font-body, var(--font-sans));
    --font-heading: var(--gh-font-heading, var(--font-sans));

    --accent: #006fff;
    --accent-strong: color-mix(in srgb, var(--accent) 90%, #000);
    --accent-text: color-mix(in srgb, var(--accent) 88%, #000);
    --on-accent: #ffffff;

    /* Light palette measured on eu.store.ui.com (2026-11-20). */
    --bg: #ffffff;
    --surface: #fafbfb;          /* product cards */
    --surface-2: #f0f2f3;        /* image wells, secondary buttons */
    --surface-hover: #f4f5f6;
    --surface-pill: #f9fafa;     /* category pill bar */
    --footer-bg: #f6f6f8;
    --border: #eef0f1;
    --text: #000000;
    --text-2: #212327;
    --muted: #6e7680;            /* store uses #808893; darkened slightly to keep 4.5:1 contrast */
    --label: #a85400;
    --overlay: rgba(0, 0, 0, 0.62);
    --header-line: #eef0f1;
    --seg-active: #ffffff;       /* selected segment of the 3D / photo switcher */
    --btn: #006fff;              /* filled buttons (store, light) */

    --radius-sm: 4px;
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1196px;         /* store content width at 1440 px */
    --gutter: clamp(16px, 3vw, 24px);
    --header-h: 48px;

    color-scheme: light;
}

/* Dark palette measured on eu.store.ui.com with a dark device preference (2026-11-20). The site default. */
html[data-scheme="dark"] {
    --accent-text: #4797ff;
    --bg: #131416;
    --surface: #1c1e21;
    --surface-2: #26292d;
    --surface-hover: #212327;
    --surface-pill: #1c1e21;
    --footer-bg: #131416;
    --border: #282b2f;
    --header-line: #34383d;
    --seg-active: #34383d;
    --btn: #4797ff;
    --text: #f9fafa;
    --text-2: #dee0e3;
    --muted: #b7bcc2;
    --label: #e79813;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-scheme="auto"] {
        --accent-text: #4797ff;
        --bg: #131416;
        --surface: #1c1e21;
        --surface-2: #26292d;
        --surface-hover: #212327;
        --surface-pill: #1c1e21;
        --footer-bg: #131416;
        --border: #282b2f;
        --header-line: #34383d;
        --seg-active: #34383d;
        --btn: #4797ff;
        --text: #f9fafa;
        --text-2: #dee0e3;
        --muted: #b7bcc2;
        --label: #e79813;
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* With lang="bg" the Apple system font switches to its Bulgarian letter shapes ("nogxogящ" for
       "подходящ") while Android's Roboto keeps the standard ones; keep the standard shapes everywhere. */
    font-feature-settings: "locl" 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }   /* author display rules (e.g. img {display:block}) must not un-hide */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--btn);
    color: var(--on-accent);
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon { display: block; flex-shrink: 0; }
.icon-chevron { display: inline-block; vertical-align: -2px; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--btn); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 85%, #000); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--surface-2) 85%, var(--text)); }
/* One button system (eu.store.ui.com): filled = --btn with bold white text, secondary = --surface-2 with
   bold text; 32 px for actions, 40 px (.btn-lg) only for a form's submit next to 40 px fields. */
.btn-lg { min-height: 40px; padding: 0 20px; }
.btn-block { display: flex; width: 100%; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 500;
}

.eyebrow {
    display: inline-block;
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ---------- Header ---------- */
.site-header {
    position: relative;
    z-index: 50;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--header-line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.header-nav { flex: 1; min-width: 0; }
.header-actions { margin-left: auto; }

/* Light/dark switch: shows the sun in dark mode (go light) and the moon in light mode (go dark) */
.scheme-toggle .icon-moon { display: none; }
html[data-scheme="light"] .scheme-toggle .icon-sun { display: none; }
html[data-scheme="light"] .scheme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
    html[data-scheme="auto"] .scheme-toggle .icon-sun { display: none; }
    html[data-scheme="auto"] .scheme-toggle .icon-moon { display: block; }
}

/* Phones and tablets: main categories as a scrolling tab bar under the header, current one underlined */
.nav-tabs { display: none; }
@media (max-width: 1180px) {
    .nav-tabs {
        display: block;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs .nav-list { width: max-content; padding: 0 calc(var(--gutter) - 8px); }
    .nav-tabs .nav-item a {
        display: flex;
        align-items: center;
        height: 44px;
        padding: 4px 8px;
        border-bottom: 1px solid transparent;
        color: var(--text-2);
        font-size: 16px;
        white-space: nowrap;
    }
    .nav-tabs .nav-item.is-current a { border-bottom-color: var(--accent); color: var(--text); }
}

.header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { max-height: 28px; width: auto; }
.brand-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
/* Logo A: badge in the button blue, keyhole in the page colour, name in the text colour (follows the scheme) */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo-mark { display: block; flex: none; width: 28px; height: 28px; }
.logo-badge { fill: var(--btn); }
.logo-hole { fill: var(--bg); }
.logo-name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
/* narrow phones: the mark alone, like the store's phone header */
@media (max-width: 400px) { .logo-name { display: none; } }

.nav-list { display: flex; margin: 0; padding: 0; list-style: none; }

.header-nav .nav-list { justify-content: flex-start; flex-wrap: nowrap; gap: 20px; }
/* centred while it fits; when it does not, it starts at its left edge and scrolls instead of spilling under
   the logo or the buttons (auto margins, not justify-content: center, which overflows on both sides) */
@media (min-width: 1181px) {
    .header-nav { overflow-x: auto; scrollbar-width: none; }
    .header-nav::-webkit-scrollbar { display: none; }
    .header-nav .nav-item:first-child { margin-left: auto; }
    .header-nav .nav-item:last-child { margin-right: auto; }
}
.header-nav .nav-item a {
    display: block;
    padding: 6px 0;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.header-nav .nav-item a:hover { color: var(--text); }
.header-nav .nav-item.is-current a { color: var(--accent-text); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.icon-btn:hover { background: var(--surface); }

.menu-toggle { display: none; }

/* The call button is one of the header's icon buttons (.icon-btn): same size, colour and hover as search,
   cart, theme and account, so it never looks selected. The number is in its label and tooltip, the footer,
   the product page and the cart page. */
.header-call span { display: none; }
.header-call .icon { width: 20px; height: 20px; }   /* same size as the other header icons (the partial is 18 px) */


@media (max-width: 1180px) {
    .header-inner { gap: 8px; }
    .menu-toggle { display: inline-flex; margin-left: -8px; }
    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        padding: 8px var(--gutter) 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    .site-header.is-menu-open .header-nav { display: block; }
    .header-nav .nav-list { flex-direction: column; gap: 0; }
    .header-nav .nav-item a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
    .header-nav .nav-item:last-child a { border-bottom: 0; }
}

/* ---------- Category tiles (home) ---------- */
.category-tiles { margin: 20px 0 24px; }
.category-tiles ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-tiles ul::-webkit-scrollbar { display: none; }

/* Store style: small cards (111 x 93 px on the store) with a picture and a short label */
.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 120px;
    min-height: 93px;
    height: 100%;
    padding: 8px 8px 7px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-2);
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.category-tile:hover { background: var(--surface-2); color: var(--text); }
.category-tile-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 44px;
    color: var(--muted);
}
.category-tile-icon img { width: 64px; height: 44px; object-fit: contain; }
.category-tile-label {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;   /* long Bulgarian words must stay inside the tile */
    hyphens: auto;
}

.category-tiles ul { justify-content: flex-start; align-items: stretch; }
.category-tiles li { flex-shrink: 0; }
@media (max-width: 900px) {
    .category-tile { width: 111px; }
}

/* ---------- Hero (store banner) ---------- */
/* Phones: a rounded banner, picture on top, centred button and two short lines under it.
   Wider screens: a wide banner, text left, picture in the middle, button right. */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(90% 120% at 50% 35%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 65%),
        linear-gradient(180deg, #060b16 0%, #0a1733 100%);
    color: #ffffff;
    text-align: center;
    isolation: isolate;
}
.hero-media { display: grid; order: -1; place-items: center; width: 100%; padding: 16px 16px 0; }
.hero-media img { width: 100%; max-height: 200px; object-fit: contain; }
.hero-media .hero-model { width: 100%; height: 200px; background: transparent; --poster-color: transparent; }
.hero-content { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 20px; }
.hero .btn { order: -1; min-height: 40px; margin-bottom: 14px; padding: 0 16px; font-size: 16px; }
.hero-label { display: none; }
.hero-title { color: #ffffff; font-size: 14px; font-weight: 700; line-height: 20px; }
.hero-text { margin-top: 2px; color: rgba(255, 255, 255, 0.72); font-size: 12px; line-height: 16px; }
@media (min-width: 901px) {
    .hero { grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); align-items: center; min-height: 160px; text-align: left; }
    .hero-content { grid-column: 1; grid-row: 1; align-items: flex-start; padding: 24px; }
    .hero-media { grid-column: 2; grid-row: 1; padding: 8px 0; }
    .hero-media img, .hero-media .hero-model { height: 150px; max-height: 150px; }
    .hero .btn { order: 0; margin: 14px 0 0; }
    .hero-title { font-size: 16px; line-height: 22px; }
}
/* Fallback when no post is featured: the site cover image fills the banner */
.hero-cover { min-height: 220px; align-items: end; }
.hero-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { margin-top: clamp(40px, 6vw, 64px); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.section-title span { color: var(--muted); }

.empty-state {
    padding: 48px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.media-placeholder { display: grid; place-items: center; color: var(--muted); }

/* ---------- Category filter row ---------- */
/* Store style: one line that scrolls sideways; plain items, the current one outlined in blue;
   arrows at the ends while there is more to scroll. */
.pill-bar { position: relative; margin: 0 0 16px; }
.listing .pill-bar { margin-top: 16px; }
.pill-track {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pill-track::-webkit-scrollbar { display: none; }
.pill-track li { flex: 0 0 auto; }
.pill {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.pill:hover { background: var(--surface); color: var(--text); }
.pill.is-active { border-color: var(--accent-text); color: var(--accent-text); }
.pill-scroll {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    color: #909090;
    cursor: pointer;
}
.pill-scroll .icon { width: 16px; height: 16px; }
.pill-scroll-next { right: 0; justify-content: flex-end; background: linear-gradient(90deg, transparent, var(--bg) 55%); }
.pill-scroll-prev { left: 0; justify-content: flex-start; background: linear-gradient(270deg, transparent, var(--bg) 55%); }
.pill-scroll-prev .icon { transform: rotate(180deg); }

/* ---------- Product grid & card ---------- */
/* Wider screens: store cards (#1c1e21, 4 px corners, 16 px padding, 24 px gaps). */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: background-color 0.15s ease;
}
.product-card:hover { background: var(--surface-hover); }
.pc-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
    overflow: hidden;
}
.pc-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.product-card:hover .pc-media img { transform: scale(1.03); }
.pc-media .media-placeholder { width: 100%; height: 100%; border-radius: var(--radius-sm); background: var(--surface-2); }
.pc-body { display: flex; flex: 1; flex-direction: column; }
.pc-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: -0.3px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
/* the whole card opens the product; the booking button sits above this layer */
.pc-link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pc-sku { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 20px; letter-spacing: -0.28px; }
.pc-desc {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--text-2);
    font-size: 12px;
    line-height: 16px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pc-buy { margin-top: auto; padding-top: 20px; }
.pc-price { color: var(--text-2); font-size: 18px; line-height: 22px; letter-spacing: -0.36px; }
.pc-cta { position: relative; z-index: 1; width: 100%; min-height: 32px; margin-top: 16px; }
.pc-cta .icon { display: none; }

/* Phones: store list rows (92 px picture left, text right, price and an icon button below) */
@media (max-width: 560px) {
    .product-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .product-card {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        column-gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: transparent;
    }
    .product-card:hover { background: transparent; }
    .pc-media { grid-column: 1; grid-row: 1; width: 92px; height: 92px; aspect-ratio: auto; margin: 0; }
    .pc-body { grid-column: 2; grid-row: 1; }
    .pc-name { font-size: 16px; line-height: 24px; -webkit-line-clamp: 2; }
    .pc-desc { font-size: 14px; line-height: 20px; }
    .pc-buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
    .pc-price { color: var(--text); font-size: 16px; line-height: 24px; letter-spacing: 0; }
    .pc-cta { flex: none; width: 34px; height: 32px; min-height: 32px; margin: 0; padding: 6px; border-radius: 8px; }
    .pc-cta .icon { display: block; }
    .pc-cta span { display: none; }
}

/* ---------- Listing tools: sort button, features ---------- */
.listing-tools { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.listing-tools .pill-bar { flex: 1; min-width: 0; margin: 0; }
.listing .pill-bar { margin-top: 0; }
.sort { position: relative; flex: none; }
.sort-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text-2); cursor: pointer; }
.sort-menu { position: absolute; top: 36px; left: 0; z-index: 30; min-width: 200px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.sort-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 4px; background: none; color: var(--text-2); font-size: 14px; text-align: left; cursor: pointer; }
.sort-menu button:hover { background: var(--surface-2); color: var(--text); }
.sort-menu .icon-check { visibility: hidden; color: var(--muted); }
.sort-menu [aria-checked="true"] .icon-check { visibility: visible; }
.features { margin: 4px 0 4px; }
.features-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; background: none; color: var(--text-2); font-size: 14px; line-height: 20px; cursor: pointer; }
.features-toggle .icon { transform: rotate(90deg); transition: transform 0.15s ease; }
.features-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.features-list { display: none; flex-wrap: wrap; gap: 8px 16px; padding: 4px 8px 8px; }
.features.is-open .features-list { display: flex; }
.feature-check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; line-height: 20px; cursor: pointer; }
.feature-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--btn); }
@media (min-width: 901px) {
    .features-toggle { display: none; }
    .features-list { display: flex; padding: 8px 0; }
}
.pc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pc-specs li { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); font-size: 12px; line-height: 16px; }
.pc-specs li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
@media (max-width: 560px) { .pc-specs { display: none; } }

/* ---------- Homepage (store landing) ---------- */
.home .section { margin-top: 28px; }
.home .section-head { align-items: center; margin-bottom: 16px; }
.home .section-title, .section-title { font-size: 24px; line-height: 1.2; }
@media (min-width: 901px) { .home .section { margin-top: 48px; } .home .section-title, .section-title { font-size: 32px; } }
.row-arrows { display: none; gap: 8px; }
.row-arrow { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.row-arrow:disabled { opacity: 0.35; cursor: default; }
.row-arrow[data-row-prev] .icon { transform: rotate(180deg); }
.pp-more .row-arrows { display: flex; }
@media (min-width: 901px) { .row-arrows { display: flex; } }
.card-row { display: flex; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.card-row::-webkit-scrollbar { display: none; }
.card-row > li { flex: none; scroll-snap-align: start; }
@media (min-width: 901px) { .card-row { gap: 24px; } }

/* "Take a look at what's new" cards */
.tall-card { display: flex; flex-direction: column; width: 256px; height: 340px; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.tall-card-text { display: flex; flex-direction: column; padding: 16px 16px 0; }
.tall-card-label { color: var(--label); font-size: 14px; font-weight: 700; line-height: 20px; }
.tall-card-title { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 20px; font-weight: 700; line-height: 24px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tall-card-desc { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--text-2); font-size: 14px; line-height: 20px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tall-card-media { display: grid; flex: 1; place-items: center; min-height: 0; padding: 12px 16px 16px; }
.tall-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.tall-card:hover .tall-card-media img { transform: scale(1.03); }
@media (min-width: 901px) { .tall-card { width: 380px; height: 470px; } .tall-card-text { padding: 24px 24px 0; } .tall-card-title { font-size: 24px; line-height: 28px; } }

/* "Check out our top 10 accessories" cards (one per category) */
.cat-card { display: flex; flex-direction: column; width: 230px; height: 300px; padding: 16px; overflow: hidden; border-radius: 8px; background: var(--surface); }
.cat-card-title { color: var(--text); font-size: 20px; font-weight: 700; line-height: 24px; }
.cat-card-desc { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--text-2); font-size: 14px; line-height: 20px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--accent-text); font-size: 14px; }
.cat-card-media { display: grid; flex: 1; place-items: center; min-height: 0; padding-top: 12px; color: var(--muted); }
.cat-card-media img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 901px) { .cat-card { width: 280px; height: 340px; padding: 24px; } }

/* Promo banner ("Whole-Home WiFi" style) */
.promo { display: flex; min-height: 0; padding: 16px; overflow: hidden; border-radius: 8px; background: radial-gradient(80% 120% at 80% 100%, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 70%), linear-gradient(180deg, #0b1020 0%, #0d1a38 100%); }
.promo-label { color: var(--label); font-size: 14px; font-weight: 700; line-height: 20px; }
.promo-title { color: #fff; font-size: 24px; font-weight: 700; line-height: 28px; }
.promo-desc { max-width: 460px; margin-top: 6px; color: rgba(255, 255, 255, 0.86); font-size: 14px; line-height: 20px; }
.promo .btn { margin-top: 16px; }
/* CTA + the store's "Learn More" text link, side by side (wrap under each other on narrow phones) */
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
.promo-actions .btn { margin-top: 0; }
.promo-more { display: inline-flex; align-items: center; gap: 2px; color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; }
.promo-more:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 901px) { .promo { min-height: 200px; padding: 32px; } .promo-title { font-size: 32px; line-height: 36px; } }

/* Home: no nav in the header on desktop (the category icon row replaces it); on phones the tiles row
   replaces the tab bar and stays pinned under the header while scrolling */
body:has(.home) .nav-tabs { display: none; }
@media (min-width: 1181px) { body:has(.home) .header-nav { visibility: hidden; } }
@media (max-width: 1180px) {
    body:has(.home) .site-header { position: sticky; top: 0; }
    .home .category-tiles { position: sticky; top: var(--header-h); z-index: 40; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: var(--bg); }
}
.home .category-tiles { margin-top: 8px; margin-bottom: 16px; }
/* phones pin the row with position: sticky (which also anchors the arrows); desktop needs relative.
   Like the store, the phone tile row has no arrows (it is swiped). */
@media (min-width: 1181px) { .home .category-tiles { position: relative; } }
@media (max-width: 900px) { .category-tiles .pill-scroll { display: none; } }
/* mouse: rows can be dragged sideways like on a phone */
.is-dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.is-dragging a { pointer-events: none; }
@media (min-width: 901px) {
    .home .category-tiles ul { justify-content: flex-start; gap: 4px; }
    .home .category-tiles li:first-child { margin-left: auto; }
    .home .category-tiles li:last-child { margin-right: auto; }
    .home .category-tile { width: auto; min-width: 96px; min-height: 76px; padding: 8px 12px; background: transparent; }
    .home .category-tile.is-active, .home .category-tile:hover { background: var(--surface); }
}

/* ---------- Cart (store layout, measured on eu.store.ui.com 2026-11-20) ---------- */
:root { --sheet: #f0f2f3; --qty-bg: #eef0f1; --bar-sep: #d5d8dc; --danger: #e5484d; }
html[data-scheme="dark"] { --sheet: #282b2f; --qty-bg: #282b2f; --bar-sep: #42474d; --danger: #ee6368; }
@media (prefers-color-scheme: dark) { html[data-scheme="auto"] { --sheet: #282b2f; --qty-bg: #282b2f; --bar-sep: #42474d; --danger: #ee6368; } }

/* prices: main line + leva line */
.price-main, .price-sub { display: block; }
.pc-price .price-main { color: var(--text-2); font-size: 18px; line-height: 22px; letter-spacing: -0.36px; }
.pc-price .price-sub, .pp-price .price-sub { color: var(--muted); font-size: 12px; line-height: 16px; }
.pp-price .price-main { color: var(--text); font-size: 16px; line-height: 22px; }
@media (max-width: 560px) { .pc-price .price-main { color: var(--text); font-size: 16px; line-height: 24px; letter-spacing: 0; } }

/* quantity box: − 1 + (94 x 32, 4 px corners) */
.qty { display: inline-flex; flex: none; align-items: center; height: 32px; border-radius: 4px; background: var(--qty-bg); }
.qty button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: none; color: #cbced2; font-size: 16px; line-height: 1; cursor: pointer; }
.qty button:disabled { color: #737c87; cursor: default; }
.qty output { min-width: 26px; color: var(--text); font-size: 14px; text-align: center; }

/* header cart count */
.cart-link { position: relative; }
.cart-count { position: absolute; top: 3px; right: 2px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--btn); color: #fff; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; box-shadow: 0 0 0 1px var(--bg); }

/* bottom bars: product page (price, quantity, add) and listings (count, total, request) */
.buy-bar, .cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--border);
}
.bar-cart { position: relative; display: grid; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.bar-cart .icon { width: 20px; height: 20px; }
.bar-count { position: absolute; top: 0; right: 0; min-width: 10px; height: 10px; padding: 0 2px; border-radius: 10px; background: var(--btn); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; box-shadow: 0 0 0 1px var(--bg); }
.bar-sep { flex: none; width: 1px; height: 14px; background: var(--bar-sep); }
.buy-bar-price { flex: 1; min-width: 0; }
.buy-bar-price .price-main { color: var(--text); font-size: 14px; font-weight: 700; line-height: 20px; }
.buy-bar-price .price-sub { color: #8a8a8b; font-size: 12px; line-height: 16px; }
.buy-bar-btn { flex: none; padding: 0 15px; }
.buy-bar-btn .icon-cart { display: none; }
.cart-bar-info { display: flex; flex: 1; flex-direction: column; min-width: 0; padding-left: 4px; }
.cart-bar-info small { color: var(--muted); font-size: 12px; line-height: 16px; }
.cart-bar-info strong { color: var(--text); font-size: 18px; font-weight: 700; line-height: 22px; }
.cart-bar-btn { flex: none; padding: 0 16px; }
.post-template .site-footer, .has-cart-bar .site-footer { padding-bottom: 80px; }
@media (min-width: 901px) {
    .buy-bar { display: none; }
    .post-template .site-footer { padding-bottom: 28px; }
    .cart-bar { justify-content: flex-end; gap: 16px; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--container)) / 2)); }
    .cart-bar .bar-cart, .cart-bar .bar-sep { display: none; }
    .cart-bar-info { flex: none; align-items: flex-end; text-align: right; }
    .cart-bar-btn { min-width: 128px; }
}

/* "N items in Cart" summary sheet */
.cart-sheet {
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    margin: auto auto 0;
    padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
    border: 0;
    background: var(--sheet);
    color: var(--text);
    box-shadow: 0 12px 48px rgba(33, 35, 39, 0.12), 0 0 1px rgba(33, 35, 39, 0.08);
}
.cart-sheet::backdrop { background: rgba(0, 0, 0, 0.5); }
.cart-sheet-head { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.cart-sheet-head h2 { font-size: 14px; font-weight: 700; line-height: 20px; }
.cart-sheet-head .icon-btn { width: 32px; height: 32px; margin: -6px -6px 0 0; color: var(--muted); }
.cart-sheet-table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.cart-sheet-table th { padding: 12px 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 16px; text-align: left; }
.cart-sheet-table th:nth-child(2), .cart-sheet-table td:nth-child(2) { width: 64px; text-align: center; }
.cart-sheet-table th:last-child, .cart-sheet-table td:last-child { width: 96px; text-align: right; }
.cart-sheet-table td { padding: 10px 0; color: var(--text); font-size: 14px; line-height: 20px; vertical-align: middle; }
.sheet-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sheet-item img, .sheet-item .sheet-ph { flex: none; width: 32px; height: 32px; object-fit: contain; color: var(--muted); }
.sheet-item a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-sheet-total { display: flex; align-items: flex-start; justify-content: space-between; margin: 12px 0 16px; }
.cart-sheet-total > span { padding-top: 8px; font-size: 18px; font-weight: 700; line-height: 22px; }
.cart-sheet-total > div { text-align: right; }
.cart-sheet-total strong { display: block; font-size: 18px; font-weight: 700; line-height: 22px; }
.cart-sheet-total small { color: #c2c6cb; font-size: 11px; line-height: 16px; }
.cart-sheet-buy { display: flex; width: 100%; min-height: 32px; font-size: 14px; }
.cart-sheet-view { display: flex; align-items: center; justify-content: center; height: 32px; margin-top: 8px; color: var(--accent-text); font-size: 14px; }

/* cart page */
.cart-top { border-bottom: 1px solid var(--header-line); }
.cart-back { display: inline-flex; align-items: center; gap: 6px; height: 48px; color: var(--text-2); font-size: 14px; }
.cart-back .icon { width: 18px; height: 18px; }
.cart { padding-bottom: 24px; }
.cart-headrow { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.cart-title { font-size: 16px; font-weight: 700; line-height: 24px; }
.cart-edit { padding: 0; border: 0; background: none; color: var(--accent-text); font-size: 14px; line-height: 20px; cursor: pointer; }
.is-editing .cart-edit { color: #cbced2; }
/* the cart page's call button: the same secondary button as "Обадете се" on the product page */
.cart-call { display: flex; width: 100%; margin: -4px 0 16px; }
@media (min-width: 901px) { .cart-call { display: inline-flex; width: auto; } }
.cart-intro { margin: -8px 0 16px; color: var(--muted); font-size: 12px; line-height: 16px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cart-card { padding: 8px 16px; border: 1px solid var(--header-line); border-radius: 8px; }
.cart-list { margin: 0; padding: 0; list-style: none; }
.ci { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; padding: 12px 36px 12px 0; }
.ci + .ci { border-top: 1px solid var(--header-line); }
.ci-img { display: grid; place-items: center; width: 48px; height: 48px; color: var(--muted); }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-name { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; line-height: 20px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci-sku, .ci-unit { font-size: 14px; line-height: 20px; }
.ci-sku { color: var(--muted); }
.ci-unit { color: var(--text); }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px -36px 0 0; }
.ci-total { color: var(--text); font-size: 14px; font-weight: 700; line-height: 20px; text-align: right; }
.ci-trash, .ci-check { position: absolute; top: 12px; right: 0; }
.ci-trash { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; }
.ci-trash:hover { color: var(--text); }
.ci-check { display: none; width: 20px; height: 20px; margin: 4px; accent-color: var(--btn); }
.is-editing .ci-trash { display: none; }
.is-editing .ci-check { display: block; }
.cart-empty { padding: 32px 0; color: var(--text-2); }
.cart-empty .btn { margin-top: 12px; }

/* pinned summary (store: Total ^, Check Out; Edit mode: "N selected", Remove) */
.cart-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--header-line);
}
.sum-lines > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--header-line); color: var(--text-2); font-size: 14px; line-height: 20px; }
.sum-total { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; padding: 10px 0 12px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.sum-total-label { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 26px; }
.sum-total-label .icon { width: 14px; height: 14px; color: var(--accent-text); transform: rotate(-90deg); transition: transform 0.15s ease; }
.sum-total[aria-expanded="true"] .sum-total-label .icon { transform: rotate(90deg); }
html[data-prices="off"] .sum-total-label .icon { display: none; }   /* nothing to unfold without prices */
html[data-prices="off"] .sum-total { cursor: default; }
.sum-total-val { text-align: right; }
.sum-total-val strong { display: block; font-size: 18px; font-weight: 700; line-height: 26px; }
.sum-total-val small { color: var(--muted); font-size: 12px; line-height: 16px; }
.sum-checkout { display: flex; width: 100%; }
.sum-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--header-line); text-align: center; }
.sum-edit p { color: var(--muted); font-size: 12px; line-height: 16px; }
.sum-remove { margin-top: 4px; padding: 6px; border: 0; background: none; color: var(--danger); font-size: 14px; font-weight: 700; line-height: 20px; cursor: pointer; }
.sum-remove:disabled { opacity: 0.4; cursor: default; }
.basket-page .site-footer { padding-bottom: 220px; }
/* like the store's cart, the page has no site header: just "← Continue Shopping" */
body:has([data-cart-page]) .site-header, body:has([data-cart-page]) .nav-tabs { display: none; }
@media (min-width: 901px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
    .cart-summary { position: sticky; top: 24px; padding: 16px; border: 1px solid var(--header-line); border-radius: 8px; box-shadow: none; }
    .basket-page .site-footer { padding-bottom: 28px; }
}

/* checkout step: the request details */
.checkout { margin-top: 24px; }
.checkout-title { font-size: 16px; font-weight: 700; line-height: 24px; }
.checkout-note { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 16px; }
.cart-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cart-member { color: var(--text-2); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { color: var(--text-2); font-size: 12px; line-height: 16px; }
.field input, .field textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--header-line); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
.field select { width: 100%; min-height: 40px; padding: 8px 36px 8px 12px; border: 1px solid var(--header-line); border-radius: 4px; background: var(--bg) 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='%23b7bcc2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); font: inherit; font-size: 16px; appearance: none; }
.field select:focus { outline: none; border-color: var(--accent-text); }
/* the text is one span, so it wraps as one block; the pin sits on its first line */
.checkout-area { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.checkout-area .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--accent-text); }
.area-warning { padding: 10px 12px; border: 1px solid var(--danger); border-radius: 4px; color: var(--text); font-size: 13px; line-height: 18px; }
.area-warning a { color: var(--accent-text); font-weight: 700; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 13px; line-height: 18px; cursor: pointer; }
.check input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--btn); }
.check.is-invalid span { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-submit { min-height: 40px; }
.cart-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 18px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.form-status.is-error { color: var(--danger); }
.cart-done { max-width: 560px; margin: 24px 0; padding: 24px; border: 1px solid var(--header-line); border-radius: 8px; }
.cart-done h2 { font-size: 18px; font-weight: 700; }
.cart-done p { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.cart-done .btn { margin-top: 16px; }

/* Account pages */
.auth { display: grid; place-items: start center; padding: 40px var(--gutter) 24px; }
.auth-card { width: 100%; max-width: 400px; padding: 24px; border-radius: 8px; background: var(--surface); }
.auth-title { font-size: 22px; font-weight: 700; }
.auth-text { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-btn { width: 100%; min-height: 40px; margin-top: 8px; font-weight: 700; }
.auth-btn-busy, .auth-msg { display: none; }
.auth-form.loading .auth-btn-idle { display: none; }
.auth-form.loading .auth-btn-busy { display: inline; }
.auth-form.success .auth-ok, .auth-form.error .auth-err { display: block; }
.auth-msg { font-size: 13px; line-height: 18px; }
.auth-ok { color: #3ecf8e; }
.auth-err { color: var(--danger); }
.auth-err a, .auth-alt a { color: var(--accent-text); }
.auth-alt { margin-top: 16px; color: var(--text-2); font-size: 13px; text-align: center; }
.auth-details { margin: 16px 0 8px; }
.auth-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.auth-details dt { color: var(--muted); }
.auth-details dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }

/* Add-to-cart buttons: label on cards and the buy box; icon only on phone list rows and mini cards */
.btn .icon-cart { display: none; }
@media (max-width: 560px) { .pc-cta .icon-cart { display: block; } }
.mini-card-btn { min-height: 0; padding: 0; }
.mini-card-btn .icon-cart { display: block; width: 18px; height: 18px; }
.mini-card-btn span { display: none; }
.pp-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
}
.pagination[data-pages="1"] { display: none; }
.pagination-info { color: var(--muted); font-size: 14px; }
.pagination-spacer { min-width: 1px; }

/* ---------- Listing header (tag / author) ---------- */
.listing-header { margin: clamp(28px, 5vw, 48px) 0 20px; }
.listing-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.listing-desc { max-width: 680px; margin-top: 10px; color: var(--text-2); font-size: 16px; }
.author-header { display: flex; align-items: center; gap: 20px; }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }

/* ---------- Product page (store layout) ---------- */
.pp-crumbs {
    display: flex;
    align-items: center;
    margin: 16px 0;
    overflow-x: auto;
    font-size: 11px;
    letter-spacing: -0.22px;
    white-space: nowrap;
    scrollbar-width: none;
}
.pp-crumbs::-webkit-scrollbar { display: none; }
.pp-crumb-cat { flex: none; padding: 4px 4px 4px 0; color: var(--text-2); }
.pp-crumb-sep { flex: none; display: inline-flex; margin-right: 6px; color: var(--text-2); }
.pp-crumb-sep .icon { width: 12px; height: 12px; }
.pp-siblings { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.pp-siblings li { display: flex; align-items: center; }
.pp-siblings li + li::before { content: ""; width: 1px; height: 14px; background: var(--text-2); }
.pp-siblings a { margin: 0 4px; padding: 4px; border-radius: 4px; color: var(--text-2); }
.pp-siblings a:hover { color: var(--text); }
.pp-siblings a.is-current { color: var(--accent-text); }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.pp-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pp-title { color: var(--text); font-size: 18px; font-weight: 700; line-height: 22px; }
.pp-sku { color: var(--muted); font-size: 10px; line-height: 14px; }
.pp-price { margin-top: 8px; color: var(--text); font-size: 16px; line-height: 22px; }
.pp-price-note { color: var(--muted); font-size: 12px; line-height: 16px; }
.pp-qty-label { color: var(--text-2); }   /* in place of the price while prices are hidden */
.pp-media { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.product-image {
    position: relative;
    display: grid;
    place-items: center;
    height: 395px;
    margin: 0;
    overflow: hidden;
    background: transparent;
}
.product-image img, .product-image .media-photo { width: 100%; height: 100%; object-fit: contain; }
/* Photos view: our renders side by side, one per screen, swiped on phones; thumbnails under them, arrows */
/* pinned to the box: inside its grid a percentage height would follow the picture's own size (629 px on a phone) */
.product-image .media-gallery { position: absolute; inset: 0; }
.product-image .media-gallery[hidden] { display: none; }
.mg-track {
    display: flex;
    width: 100%;
    height: calc(100% - 64px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    outline: none;
}
.mg-track::-webkit-scrollbar { display: none; }
.product-image .mg-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.mg-thumbs { display: flex; justify-content: center; gap: 8px; height: 64px; padding-top: 12px; }
.mg-thumbs button {
    width: 52px;
    height: 52px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}
.mg-thumbs button[aria-current="true"] { border-color: var(--accent-text); }
.product-image .mg-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.mg-arrow {
    position: absolute;
    top: calc(50% - 32px);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.mg-prev { left: 12px; }
.mg-prev svg { transform: scaleX(-1); }
.mg-next { right: 12px; }
.mg-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .mg-arrow { display: none; } }
.product-image model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); }
.product-image .media-placeholder { width: 100%; height: 100%; }
.pp-info { padding-top: 8px; }
.pp-desc { color: var(--text-2); font-size: 14px; line-height: 20px; }
.pp-note { margin-top: 16px; color: var(--text-2); font-size: 12px; line-height: 16px; }
.pp-note strong { color: var(--text); }
.pp-note a { color: var(--accent-text); }
.pp-buy { display: none; }

/* "Visualize" button: 40 px, round ends, icon in a circle, bottom right of the model */
.ar-chip {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 2px 12px 2px 2px;
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    color: var(--accent-text);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.ar-chip .icon-wrap { display: grid; place-items: center; width: 36px; height: 36px; }

/* 3D / features / photos switcher: three round icon buttons on a 96 x 32 pill */
.media-switch {
    display: flex;
    gap: 4px;
    width: max-content;
    margin: 12px auto 0;
    padding: 2px;
    border-radius: 20px;
    background: var(--surface);
}
.media-switch button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.media-switch button[aria-selected="true"] { background: var(--text); color: var(--bg); }

/* Feature callouts */
.hotspot {
    display: none;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: var(--btn);
    box-shadow: 0 0 0 4px rgba(71, 151, 255, 0.25);
    cursor: pointer;
}
.product-image[data-mode="features"] .hotspot { display: block; }
.hotspot.is-active { box-shadow: 0 0 0 6px rgba(71, 151, 255, 0.4); }
/* Only the chosen point is full size. The others are small, see-through dots, so they never cover the very
   parts the callouts describe (keys, fingerprint reader, card zone); each grows back when hovered or focused. */
.hotspot:not(.is-active) { width: 9px; height: 9px; border-width: 2px; box-shadow: none; opacity: 0.55; }
.hotspot:not(.is-active):hover, .hotspot:not(.is-active):focus-visible { width: 14px; height: 14px; border-width: 3px; opacity: 1; }
/* a point on a face turned away from the visitor is hidden, never drawn through the device */
.hotspot { transition: opacity 0.2s, width 0.15s, height 0.15s; }
.hotspot[data-visible="false"], .hotspot:not([data-visible]) { opacity: 0; pointer-events: none; }
.product-image[data-mode="features"] .ar-chip { display: none; }
/* the callout card gets its own band at the top (height set by main.js from the tallest card), so the
   model is framed below it and the card never covers the device */
.product-image[data-mode="features"] model-viewer { align-self: end; height: calc(100% - var(--cap-space, 0px)); }
.feature-caption { display: none; position: absolute; top: 12px; left: 12px; z-index: 2; max-width: min(320px, calc(100% - 24px)); padding: 12px 16px; border-radius: 8px; background: color-mix(in srgb, var(--sheet) 96%, transparent); text-align: left; pointer-events: none; }
.product-image[data-mode="features"] .feature-caption { display: block; }
.feature-caption strong { display: block; color: var(--text); font-size: 15px; font-weight: 700; line-height: 20px; }
.feature-caption > span { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.feature-leader { display: none; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* the line belongs to the features view only, whatever the script last drew (it sets an inline display) */
.product-image:not([data-mode="features"]) .feature-leader { display: none !important; }
.feature-leader line { stroke: var(--btn); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.product-image[data-mode="features"] ~ .feature-panel .feature-text { display: none; }
/* feature names under the model, separated by bars; the active one blue (store style) */
.feature-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; }
.feature-list button { min-height: 0; padding: 2px 10px; border: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 15px; line-height: 22px; cursor: pointer; }
.feature-list button + button { border-left: 1px solid var(--bar-sep); }
/* the first name on each wrapped line has no separator in front of it (main.js marks those names; the
   border only turns transparent, so the line breaks stay where they are) */
.feature-list button.row-start { border-left-color: transparent; }
.feature-list button.is-active { background: none; color: var(--accent-text); box-shadow: none; font-weight: 400; }
@media (max-width: 900px) { .feature-list button { font-size: 14px; padding: 2px 8px; } }
.feature-panel { margin-top: 12px; text-align: center; }
.feature-text { max-width: 460px; margin: 10px auto 0; padding: 12px 16px; border-radius: 8px; background: var(--surface); text-align: left; }
.feature-text strong { display: block; margin-bottom: 2px; font-size: 14px; }
.feature-text span { color: var(--text-2); font-size: 14px; line-height: 20px; }

/* "Powerful Accessories (4)" style row */
.pp-more { margin-top: 24px; }
.pp-more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pp-more-title { color: var(--text-2); font-size: 14px; font-weight: 400; }
.pp-more-row { display: flex; gap: 8px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-more-row::-webkit-scrollbar { display: none; }
.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 12px;
    flex: 0 0 calc(50% - 4px);
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    scroll-snap-align: start;
}
.mini-card-media { grid-row: 1; display: grid; place-items: center; width: 40px; height: 56px; color: var(--muted); }
.mini-card-media img { width: 100%; height: 100%; object-fit: contain; }
.mini-card-name { display: -webkit-box; overflow: hidden; color: var(--accent-text); font-size: 14px; font-weight: 700; line-height: 18px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mini-card-name::after { content: ""; position: absolute; inset: 0; }
.mini-card-price { grid-column: 1 / -1; align-self: end; margin-top: 10px; padding-right: 40px; color: var(--text); font-size: 14px; line-height: 32px; white-space: nowrap; }
.mini-card-btn { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 34px; height: 32px; border-radius: 8px; background: var(--btn); color: #fff; }
.mini-card-btn .icon { width: 18px; height: 18px; }

/* Tabs built from the description's sections */
.pp-details { margin-top: 32px; }
.pp-tabs {
    display: flex;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
}
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tab {
    flex: none;
    height: 38px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: var(--text-2);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
    white-space: nowrap;
    cursor: pointer;
}
.pp-tab[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.pp .gh-content { margin-top: 16px; font-size: 15px; line-height: 1.6; }
.pp .gh-content > h2.is-tab-heading { display: none; }
/* the tabs move the text into panels, so the content spacing (.gh-content > * + *) is repeated inside them */
.pp .gh-content .pp-panel > * + * { margin-top: 1.25em; }
.pp .gh-content .pp-panel > h2:not(.is-tab-heading) { margin-top: 1.6em; }
.pp .gh-content table { font-size: 14px; }

/* Phones: sticky price / booking bar (the store's price + Add to Cart bar) */
.buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) 16px;
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--border);
}
.buy-bar-price { min-width: 0; }
.buy-bar-price strong { display: block; color: var(--text); font-size: 14px; font-weight: 700; line-height: 20px; }
.buy-bar-price span { display: block; color: #8a8a8b; font-size: 12px; line-height: 16px; }
.buy-bar-btn { flex: none; min-height: 32px; margin-left: auto; padding: 0 15px; font-weight: 700; }
.post-template .site-footer { padding-bottom: 72px; }

@media (min-width: 901px) {
    .pp-crumbs { font-size: 13px; }
    .pp-grid {
        grid-template-columns: minmax(0, 696fr) minmax(0, 464fr);
        grid-template-areas: "media head" "media info";
        grid-template-rows: auto 1fr;
        column-gap: 36px;
    }
    .pp-head { grid-area: head; padding-bottom: 0; border-bottom: 0; }
    .pp-title { font-size: 22px; }
    .pp-sku { font-size: 12px; line-height: 16px; }
    .pp-media { grid-area: media; margin: 0; }
    .product-image { height: 495px; }
    .pp-info { grid-area: info; padding-top: 12px; }
    .pp-buy { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
    .pp-buy-btn { width: 100%; min-height: 32px; margin-top: 12px; }
    .pp-buy-btn + .pp-buy-btn { margin-top: 8px; }
    .pp-tabs { justify-content: center; }
    .buy-bar { display: none; }
    .post-template .site-footer { padding-bottom: 28px; }
}

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.motion .hero-content > * { animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .hero-content > :nth-child(2) { animation-delay: 0.08s; }
.motion .hero-content > :nth-child(3) { animation-delay: 0.16s; }
.motion .hero-content > :nth-child(4) { animation-delay: 0.24s; }
.motion .hero-media { animation: fade-up 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-content > *, .hero-media { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Static pages ---------- */
.page-header { max-width: calc(760px + 2 * var(--gutter)); margin-top: clamp(32px, 6vw, 64px); margin-bottom: 8px; }
.page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.page-lead { margin-top: 12px; color: var(--text-2); font-size: 18px; }
/* service page (usluga-montazh.hbs): request + call buttons under the lead */
.service-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-image { margin: 28px 0 0; }
.page-image img { width: 100%; border-radius: var(--radius-lg); }
.page-image figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Post content (Koenig) ---------- */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 200px)
        [main-start] min(760px, calc(100% - 2 * var(--gutter)))
        [main-end] minmax(0, 200px)
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    margin-top: 24px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}
.gh-content > * { grid-column: main-start / main-end; margin-top: 0; margin-bottom: 0; }
.gh-content > * + * { margin-top: 1.25em; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { border-radius: 0; }

.gh-content > h2 { margin-top: 1.9em; font-size: 26px; }
.gh-content > h3 { margin-top: 1.6em; font-size: 21px; }
.gh-content > h4 { margin-top: 1.4em; font-size: 18px; }
.gh-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.35em; }
.gh-content strong { font-weight: 700; }
.gh-content blockquote:not([class]) {
    padding-left: 18px;
    border-left: 3px solid var(--accent);
    color: var(--text-2);
    font-style: italic;
}
.gh-content hr { width: 100%; height: 1px; border: 0; background: var(--border); }
.gh-content img { border-radius: var(--radius); }
.gh-content figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.gh-content code {
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.88em;
}
.gh-content pre {
    padding: 16px 18px;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 14px;
    line-height: 1.55;
}
.gh-content pre code { padding: 0; background: none; }
.gh-content table:not(.gist table) {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.gh-content th, .gh-content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.gh-content th { color: var(--muted); font-size: 13px; font-weight: 600; }
.gh-content tr > :first-child { padding-left: 0; }

/* ---------- Product search (theme's own; Ghost's built-in window is worded for blogs) ---------- */
.search-dialog {
    width: min(640px, calc(100% - 32px));
    max-width: none;
    max-height: min(72vh, 640px);
    margin: 72px auto auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.search-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;   /* 16 px keeps iOS from zooming in */
}
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-status { padding: 12px 16px 0; color: var(--muted); font-size: 13px; }
.search-status:empty { display: none; }
.search-results { margin: 0; padding: 8px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.search-results a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 8px; }
.search-results a:hover, .search-results a.is-active { background: var(--surface-2); }
.sr-img { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 6px; background: var(--bg); color: var(--muted); }
.sr-img img { width: 100%; height: 100%; object-fit: contain; }
.sr-name { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-sku { margin-top: 2px; color: var(--muted); font-size: 12px; }
.search-results mark { background: none; color: var(--accent-text); }
@media (max-width: 560px) {
    .search-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); margin-top: 8px; }
}

/* ---------- Error ---------- */
.error-page { padding: clamp(64px, 12vw, 128px) var(--gutter); text-align: center; }
.error-code { color: var(--surface-2); font-size: clamp(72px, 14vw, 140px); font-weight: 800; line-height: 1; }
.error-title { margin-top: 12px; font-size: clamp(24px, 3vw, 32px); }
.error-text { max-width: 480px; margin: 12px auto 28px; color: var(--text-2); }

/* ---------- Footer (store layout) ---------- */
/* Desktop: link columns + "Stay in Touch" on the right; phones: one compact centred block like the store */
.site-footer { margin-top: 40px; padding: 32px 0 24px; background: var(--footer-bg); color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 24px; }
.footer-heading { margin-bottom: 12px; color: var(--text); font-size: 12px; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-phone { color: var(--muted); transition: color 0.15s ease; }
.footer-links a:hover, .footer-phone:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-phone { display: inline-flex; align-items: center; gap: 6px; }
.footer-phone .icon, .footer-touch-contact .icon { width: 14px; height: 14px; }
.footer-company { color: var(--text); font-weight: 700; }
.footer-touch .footer-heading { font-size: 14px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--header-line); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.subscribe-row input::placeholder { color: var(--muted); }
.subscribe-row .btn { flex: none; min-height: 40px; padding: 0 16px; }
.form-msg { display: none; margin-top: 8px; font-size: 12px; }
.subscribe-form.success .form-success { display: block; color: #3ecf8e; }
.subscribe-form.error .form-error { display: block; color: var(--danger); }
.subscribe-form.loading .btn { opacity: 0.6; pointer-events: none; }
.footer-touch-contact { display: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--header-line); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.footer-legal li { display: flex; align-items: center; line-height: 20px; }
.footer-legal li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: var(--bar-sep); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
/* phones: the links wrap onto two lines and a separator would open the second one, so spacing replaces them */
@media (max-width: 560px) {
    .footer-legal { gap: 4px 20px; }
    .footer-legal li + li::before { display: none; }
}
.footer-copy { line-height: 20px; }
@media (max-width: 900px) {
    .site-footer { margin-top: 32px; padding: 24px 0 16px; text-align: center; }
    .footer-grid { display: block; }
    .footer-links-col { display: none; }
    .footer-touch { padding: 0 8px; text-align: left; }
    .footer-touch-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; }
    .footer-touch-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
    .footer-bottom { flex-direction: column; justify-content: center; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Finished installations (#montazh pages) ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.job-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 8px; background: var(--surface); color: var(--text); transition: background-color 0.15s ease; }
.job-card:hover { background: var(--surface-hover); }
.job-card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.job-card-media img { width: 100%; height: 100%; object-fit: cover; }
.job-card-body { display: block; padding: 12px 16px 16px; }
.job-card-title { display: block; font-size: 16px; font-weight: 700; line-height: 22px; }
.job-card-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 18px; }
.jobs-head { margin: 24px 0 8px; }
.jobs-lead { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.job-crumb { margin-bottom: 8px; font-size: 14px; }
.job-crumb a { color: var(--accent-text); }
.job-meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.job-meta a { color: var(--accent-text); }
.job-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; margin-bottom: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.job-cta p { flex-basis: 100%; color: var(--text); font-size: 18px; font-weight: 700; }
.pp-jobs { margin-top: 40px; }
/* videos in installation and product texts: YouTube/Vimeo embeds fill the column at 16:9 */
.gh-content .kg-embed-card iframe, .gh-content iframe[src*="youtube"], .gh-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }
.gh-content > .kg-embed-card, .gh-content > .kg-video-card { width: 100%; justify-self: stretch; }   /* Ghost centres cards; videos fill the text column */
/* a video card is exactly as wide as the photos (the column) and has the page photo's corners; the corners sit on the
   container, so the poster, the video and Ghost's player controls are all clipped to the same shape */
.gh-content .kg-video-card .kg-video-container { overflow: hidden; border-radius: var(--radius-lg); background: #000; }
.gh-content .kg-video-card video { border-radius: 0; }
/* portrait videos (phone clips, 9:16): main.js marks the card .is-portrait and passes --video-ratio (width / height).
   The card keeps the full column width; only its height is capped at 85% of the screen (on phones the visible
   height, svh), and the video and its poster are letterboxed inside it on black. On a phone the cap is rarely
   reached, so the video fills the card edge to edge. Ghost sets the height inline as padding-bottom, hence !important. */
.gh-content .kg-video-card.is-portrait .kg-video-container { width: 100%; height: auto; max-height: 85vh; padding-bottom: 0 !important; aspect-ratio: var(--video-ratio); }
@supports (height: 1svh) { .gh-content .kg-video-card.is-portrait .kg-video-container { max-height: 85svh; } }
.gh-content .kg-video-card.is-portrait video { object-fit: contain; background-size: contain !important; }
/* Ghost cards are <figure>s, and the browser gives a figure 40px side margins, which .gh-content > * does not reset:
   video, embed and bookmark cards span the text column exactly */
.gh-content .kg-video-card, .gh-content .kg-embed-card, .gh-content .kg-bookmark-card { margin-right: 0; margin-left: 0; }
/* products used in an installation (bookmark cards): Ghost draws them white with dark text in both themes; here they
   take the theme's card colours. Phones: a narrow picture column and at most three lines of title. */
.gh-content .kg-bookmark-card a.kg-bookmark-container { border-color: var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover { background: var(--surface-hover); }
@media (max-width: 560px) {
    .gh-content .kg-bookmark-content { padding: 14px 16px; }
    .gh-content .kg-bookmark-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
    .gh-content .kg-bookmark-metadata { margin-top: 12px; }
    .gh-content .kg-bookmark-thumbnail { flex: 0 0 96px; min-width: 96px; }
}
/* the product pictures are our renders on a transparent background: show the whole device, never a slice of it */
.gh-content .kg-bookmark-thumbnail img { box-sizing: border-box; padding: 10px; border-radius: 0; object-fit: contain; }
