/* style.css - Shop Digital Property
   Design tokens are injected as CSS custom properties via site_tokens_css(). */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #101828);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

a {
    color: var(--color-accent, #2563eb);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #1d4ed8);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-muted {
    color: var(--color-text-muted, #5b6472);
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #e3e7ef);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
}

.site-logo__name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--color-text, #101828);
}

.site-logo__tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-accent, #2563eb);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #101828);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #2563eb);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.75em;
}

/* Dropdown: no gap between trigger and panel (top:100%, not calc(+Xrem)) so the
   pointer never leaves the hover/focus region between letting go of the link
   and reaching the menu - this was the recurring "dropdown loses focus" bug. */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    min-width: 210px;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 0.5rem;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-small, 6px);
    box-shadow: var(--shadow-card);
    z-index: -1;
}

.nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.5rem;
    z-index: 200;
}

.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Hamburger + MENU label */
.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__cta {
    white-space: nowrap;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-small, 6px);
}

.nav-hamburger__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text, #101828);
    border-radius: 2px;
}

.nav-hamburger__label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--color-text-muted, #5b6472);
    margin-top: 6px;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────────── */

.breadcrumbs { margin-bottom: 1.5rem; }

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #5b6472);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current { color: var(--color-text, #101828); }

/* ── Sidebar blocks ────────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #5b6472);
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-block__links a { font-size: 0.875rem; }

.sidebar-block--trust .trust-row {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border, #e3e7ef);
}

.sidebar-block--trust .trust-row:last-child { border-bottom: none; }

.sidebar-block--trust .trust-row strong { font-size: 0.85rem; }

.sidebar-block--trust .trust-row span {
    font-size: 0.78rem;
    color: var(--color-text-muted, #5b6472);
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border, #e3e7ef);
    padding: 3rem 0 1.5rem;
    background: var(--color-navy, #0b1d3a);
    color: rgba(255,255,255,0.85);
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }

.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.site-footer__brand { flex: 1 1 220px; }

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.site-footer__contact a { color: rgba(255,255,255,0.75); font-size: 0.875rem; }

.site-footer__social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.site-footer__social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-decoration: none;
}

.site-footer__nav { flex: 1 1 160px; }

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__links a { text-decoration: none; font-size: 0.875rem; }

.site-footer__payments-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn svg { width: 14px; height: 14px; }

.btn--primary {
    background: var(--color-accent, #2563eb);
    color: #fff;
}

.btn--primary:hover { background: var(--color-accent-strong, #1d4ed8); color: #fff; }

.btn--outline {
    border-color: var(--color-accent, #2563eb);
    color: var(--color-accent, #2563eb);
    background: transparent;
    text-decoration: none;
}

.btn--large { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* ── Prose ─────────────────────────────────────────────────────────────────── */

.prose p { margin: 0 0 1.1rem; }
.prose a { text-decoration: underline; }

/* ══ HOME ═════════════════════════════════════════════════════════════════ */

.home-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0 3rem;
}

.home-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent, #2563eb);
    margin-bottom: 0.75rem;
}

.home-hero__headline {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.home-hero__headline-accent { color: var(--color-accent, #2563eb); }

.home-hero__subtext {
    font-size: 1.05rem;
    color: var(--color-text-muted, #5b6472);
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.home-hero__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 0.5rem;
    max-width: 34rem;
}

.home-hero__search-icon { width: 20px; height: 20px; color: var(--color-text-muted); flex-shrink: 0; margin-left: 0.35rem; }

.home-hero__search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 0.5rem;
    min-width: 0;
}

.home-hero__search input:focus { outline: none; }

.home-hero__how-it-works {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.home-hero__how-it-works svg { width: 14px; height: 14px; }

.home-hero__visual-card {
    background: var(--color-navy, #0b1d3a);
    border-radius: var(--radius-large, 16px);
    padding: 2.5rem;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}

.home-hero__visual-bar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--color-accent, #2563eb);
    margin-bottom: 0.5rem;
}

.home-hero__visual-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
    width: 70%;
}

.home-hero__visual-line--wide { width: 90%; background: rgba(255,255,255,0.3); }
.home-hero__visual-line--short { width: 45%; }

.home-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border, #e3e7ef);
    border-bottom: 1px solid var(--color-border, #e3e7ef);
    margin-bottom: 3rem;
    text-align: center;
}

.home-trust-item__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent-soft, #eaf1ff);
    color: var(--color-accent, #2563eb);
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.home-trust-item__icon svg { width: 22px; height: 22px; }

.home-trust-item__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.home-trust-item__body { font-size: 0.82rem; color: var(--color-text-muted, #5b6472); }

.home-section-heading {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

.home-categories, .home-featured, .home-why { margin-bottom: 4rem; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: var(--color-text, #101828);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.15s, transform 0.15s;
}

.category-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.category-card__icon {
    width: 34px;
    height: 34px;
    color: var(--color-accent, #2563eb);
}

.category-card__title { font-weight: 600; font-size: 1rem; }
.category-card__count { font-size: 0.8rem; color: var(--color-text-muted, #5b6472); }

.home-why {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-panel-soft, #f8f9fc);
    border-radius: var(--radius-large, 16px);
    padding: 3rem;
}

.home-why__visual-card {
    background: var(--color-navy, #0b1d3a);
    border-radius: var(--radius-medium, 10px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-why__visual-headline {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.3;
}

.home-why__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.home-why__list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1rem; }
.home-why__check {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-accent-soft, #eaf1ff);
    color: var(--color-accent, #2563eb);
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.home-cta-banner {
    background: var(--color-navy, #0b1d3a);
    border-radius: var(--radius-large, 16px);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #fff;
    margin-bottom: 3rem;
}

.home-cta-banner__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-cta-banner__icon svg { width: 28px; height: 28px; color: #fff; }
.home-cta-banner__copy { flex: 1; }
.home-cta-banner__copy h2 { color: #fff; margin-bottom: 0.25rem; font-size: 1.4rem; }
.home-cta-banner__copy p { margin: 0; color: rgba(255,255,255,0.7); }

/* ══ PRODUCT CARDS / GRID (marketplace + home + category) ═══════════════════ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    position: relative;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}

.product-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

.product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    background: linear-gradient(135deg, var(--color-navy, #0b1d3a), var(--color-accent, #2563eb));
    position: relative;
}

.product-card__media-icon { width: 40px; height: 40px; color: rgba(255,255,255,0.85); }

.product-card__badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(255,255,255,0.92);
    color: var(--color-navy, #0b1d3a);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.product-card__save {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-muted, #5b6472);
    font-size: 0.9rem;
}

.product-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card__title { font-size: 1.05rem; margin: 0; }
.product-card__title a { color: var(--color-text, #101828); text-decoration: none; }
.product-card__title a:hover { color: var(--color-accent, #2563eb); }

.product-card__price { font-weight: 700; font-size: 1.15rem; color: var(--color-success, #1f9d64); }

.product-card__facts { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; color: var(--color-text-muted, #5b6472); }
.product-card__fact { background: var(--color-panel, #f4f6fb); padding: 0.15rem 0.5rem; border-radius: 999px; }

.product-card__cta { margin-top: auto; text-align: center; justify-content: center; }

/* ══ CATEGORY PAGE ════════════════════════════════════════════════════════ */

.category-hero, .directory-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.category-hero__label a, .category-hero__label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted, #5b6472);
    text-decoration: none;
}

.category-hero__icon { width: 40px; height: 40px; color: var(--color-accent); margin: 0.75rem auto; }
.category-hero__intro, .directory-hero__intro { color: var(--color-text-muted, #5b6472); }

.marketplace-empty { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }

/* ══ MARKETPLACE ══════════════════════════════════════════════════════════ */

.marketplace-hero { margin-bottom: 2rem; }
.marketplace-hero p { color: var(--color-text-muted, #5b6472); }

.marketplace-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.marketplace-filters {
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

.marketplace-filters__heading { font-size: 1rem; margin-bottom: 1rem; }

.marketplace-filters__group {
    border: none;
    padding: 0 0 1.1rem;
    margin: 0 0 1.1rem;
    border-bottom: 1px solid var(--color-border, #e3e7ef);
}

.marketplace-filters__group legend {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding: 0;
}

.marketplace-filters__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    cursor: pointer;
}

.marketplace-filters__count { color: var(--color-text-muted); font-size: 0.75rem; margin-left: auto; }

.marketplace-filters select {
    width: 100%;
    padding: 0.45rem;
    border-radius: var(--radius-small, 6px);
    border: 1px solid var(--color-border, #e3e7ef);
    font-size: 0.85rem;
}

.marketplace-filters__apply { width: 100%; justify-content: center; margin-bottom: 0.6rem; }
.marketplace-filters__clear { display: block; text-align: center; font-size: 0.82rem; }

.marketplace-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.marketplace-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-small, 6px);
    padding: 0.4rem 0.7rem;
    flex: 1;
    max-width: 360px;
}

.marketplace-search__icon { width: 16px; height: 16px; color: var(--color-text-muted); flex-shrink: 0; }
.marketplace-search input { border: none; background: transparent; flex: 1; font-size: 0.9rem; min-width: 0; }
.marketplace-search input:focus { outline: none; }

.marketplace-sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.marketplace-sort select { padding: 0.4rem; border-radius: var(--radius-small, 6px); border: 1px solid var(--color-border, #e3e7ef); }

.marketplace-result-count { color: var(--color-text-muted, #5b6472); font-size: 0.85rem; margin-bottom: 1.25rem; }

/* ══ PRODUCT DETAIL ═══════════════════════════════════════════════════════ */

.product-detail__gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.product-detail__gallery-main {
    height: 320px;
    border-radius: var(--radius-large, 16px);
    background: linear-gradient(135deg, var(--color-navy, #0b1d3a), var(--color-accent, #2563eb));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__gallery-main svg { width: 64px; height: 64px; color: rgba(255,255,255,0.85); }

.product-detail__gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.product-detail__gallery-thumbs span {
    height: 64px;
    border-radius: var(--radius-small, 6px);
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
}

.product-detail__badge {
    display: inline-block;
    background: var(--color-accent-soft, #eaf1ff);
    color: var(--color-accent, #2563eb);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.product-detail__price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-success, #1f9d64);
    margin-bottom: 1rem;
}

.product-detail__price-model {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted, #5b6472);
}

.product-detail__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--color-panel, #f4f6fb);
    border-radius: var(--radius-medium, 10px);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.product-detail__stat { text-align: center; }
.product-detail__stat-value { font-size: 1.2rem; font-weight: 700; }
.product-detail__stat-label { font-size: 0.75rem; color: var(--color-text-muted, #5b6472); }

.product-detail__checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.product-detail__checklist li, .product-detail__fact-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem; }
.product-detail__fact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.product-detail__check {
    color: var(--color-success, #1f9d64);
    font-weight: 700;
}

.product-detail__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* CSS-only tabs (radio hack - no JS dependency) */
.product-detail__tabs { margin-top: 2rem; }
.product-tab-input { position: absolute; opacity: 0; pointer-events: none; }

.product-tabs__nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border, #e3e7ef);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-tabs__nav label {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted, #5b6472);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.product-tabs__panel { display: none; }

#tab-overview:checked ~ .product-tabs__nav label[for="tab-overview"],
#tab-traffic:checked ~ .product-tabs__nav label[for="tab-traffic"],
#tab-content:checked ~ .product-tabs__nav label[for="tab-content"],
#tab-monetization:checked ~ .product-tabs__nav label[for="tab-monetization"],
#tab-technical:checked ~ .product-tabs__nav label[for="tab-technical"] {
    color: var(--color-accent, #2563eb);
    border-bottom-color: var(--color-accent, #2563eb);
}

#tab-overview:checked ~ .product-tabs__panel--overview,
#tab-traffic:checked ~ .product-tabs__panel--traffic,
#tab-content:checked ~ .product-tabs__panel--content,
#tab-monetization:checked ~ .product-tabs__panel--monetization,
#tab-technical:checked ~ .product-tabs__panel--technical {
    display: block;
}

/* ══ DIRECTORY ════════════════════════════════════════════════════════════ */

.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.directory-card {
    display: block;
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text, #101828);
    transition: box-shadow 0.15s, transform 0.15s;
}

.directory-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.directory-card__title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.directory-card__desc { font-size: 0.88rem; color: var(--color-text-muted, #5b6472); margin-bottom: 0.75rem; }
.directory-card__meta { font-size: 0.78rem; color: var(--color-accent, #2563eb); font-weight: 600; }

.directory-empty { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }

.directory-listing-list { display: flex; flex-direction: column; gap: 1.25rem; }
.directory-listing-row {
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem 1.5rem;
}
.directory-listing-row__title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.directory-listing-row__excerpt { color: var(--color-text-muted, #5b6472); margin-bottom: 0.5rem; }
.directory-listing-row__meta { font-size: 0.85rem; }

.directory-listing__parent-link { display: inline-block; margin-bottom: 0.75rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.directory-listing__tagline { font-size: 1.1rem; color: var(--color-text-muted, #5b6472); }
.directory-listing__intro { margin: 1rem 0; }
.directory-listing__primary-link { margin: 0.5rem 0 2rem; }
.directory-listing__body-section p { margin-bottom: 1rem; }

/* ══ GLOSSARY ═════════════════════════════════════════════════════════════ */

.glossary-header { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.glossary-header__eyebrow, .glossary-header__eyebrow a {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted, #5b6472);
    text-decoration: none;
}
.glossary-header__lead { color: var(--color-text-muted, #5b6472); }
.glossary-chip {
    display: inline-block;
    background: var(--color-accent-soft, #eaf1ff);
    color: var(--color-accent, #2563eb);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

.glossary-alpha { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 2.5rem; }
.glossary-alpha__letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.glossary-alpha__letter--active { background: var(--color-accent-soft, #eaf1ff); color: var(--color-accent, #2563eb); }
.glossary-alpha__letter--dim { color: var(--color-border, #e3e7ef); }

.glossary-section__letter {
    font-size: 1.1rem;
    color: var(--color-text-muted, #5b6472);
    border-bottom: 1px solid var(--color-border, #e3e7ef);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.glossary-list { display: flex; flex-direction: column; margin-bottom: 2.5rem; }
.glossary-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border, #e3e7ef);
    text-decoration: none;
    color: var(--color-text, #101828);
}
.glossary-entry__term { font-weight: 600; }
.glossary-entry__def { font-size: 0.85rem; color: var(--color-text-muted, #5b6472); }
.glossary-entry__arrow { color: var(--color-accent, #2563eb); flex-shrink: 0; }

.glossary-term-header { margin-bottom: 1rem; }
.glossary-term-header__eyebrow a { text-transform: uppercase; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.glossary-term-header__aka { color: var(--color-text-muted, #5b6472); font-size: 0.9rem; }
.glossary-callout {
    background: var(--color-accent-soft, #eaf1ff);
    border-left: 3px solid var(--color-accent, #2563eb);
    border-radius: var(--radius-small, 6px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.glossary-callout p { margin: 0; font-weight: 500; }
.glossary-body-section { margin-bottom: 1.75rem; }
.glossary-body-section__label { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted, #5b6472); }
.glossary-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.glossary-related-link { display: block; text-decoration: none; padding: 0.6rem 0.9rem; border: 1px solid var(--color-border, #e3e7ef); border-radius: var(--radius-small, 6px); color: var(--color-text, #101828); }
.glossary-related-link__name { display: block; font-weight: 600; }
.glossary-related-link__def { display: block; font-size: 0.8rem; color: var(--color-text-muted, #5b6472); }
.glossary-back-link { font-weight: 600; text-decoration: none; }

/* ══ FAQ ═══════════════════════════════════════════════════════════════════ */

.faq-header { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.faq-header p { color: var(--color-text-muted, #5b6472); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 0.25rem 1.25rem;
}
.faq-item__question {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__chevron { color: var(--color-accent, #2563eb); transition: transform 0.15s; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__answer { padding: 0 0 1.1rem; color: var(--color-text-muted, #5b6472); }

/* ══ LIBRARY ══════════════════════════════════════════════════════════════ */

.library-hero { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.library-hero p { color: var(--color-text-muted, #5b6472); font-size: 1.05rem; }
.library-section { margin-bottom: 3rem; }
.library-article-grid, .library-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.library-article-card, .library-more-card {
    display: block;
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text, #101828);
    transition: box-shadow 0.15s, transform 0.15s;
}
.library-article-card:hover, .library-more-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.library-article-card h3, .library-more-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.library-article-card p, .library-more-card p { font-size: 0.88rem; color: var(--color-text-muted, #5b6472); margin: 0; }

/* ══ SELL ═════════════════════════════════════════════════════════════════ */

.sell-hero { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.sell-hero p { color: var(--color-text-muted, #5b6472); }
.sell-options { margin-bottom: 3rem; }
.sell-options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sell-options__card {
    background: var(--color-panel, #f4f6fb);
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
}
.sell-options__card h3 { font-size: 1.05rem; }
.sell-options__card p { font-size: 0.88rem; color: var(--color-text-muted, #5b6472); margin: 0; }
.sell-form-section { max-width: 640px; margin: 0 auto; }

/* ══ FORMS (inquire + sell) ═══════════════════════════════════════════════ */

.inquire-header { margin-bottom: 1.5rem; }
.inquire-header__asset { color: var(--color-text-muted, #5b6472); }

.inquire-form, .sell-form-section form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.inquire-form label, .sell-form-section label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.inquire-form input,
.inquire-form textarea,
.inquire-form select,
.sell-form-section input,
.sell-form-section textarea,
.sell-form-section select {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border, #e3e7ef);
    border-radius: var(--radius-small, 6px);
    font-family: inherit;
    font-size: 0.92rem;
}

.inquire-form button, .sell-form-section button {
    margin-top: 1.25rem;
    align-self: flex-start;
    justify-content: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ══ Error page ═══════════════════════════════════════════════════════════ */

.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 6rem; font-weight: 200; margin: 0 0 0.5rem; color: var(--color-text-muted, #5b6472); }
.error-page p { font-size: 1.1rem; margin-bottom: 2rem; }
.error-page .btn { margin: 0 0.4rem; }

/* ══ MOBILE ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .home-hero { grid-template-columns: 1fr; }
    .home-hero__visual { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .marketplace-layout { grid-template-columns: 1fr; }
    .marketplace-filters { position: static; }
    .directory-grid, .library-article-grid, .library-more-grid, .sell-options__grid { grid-template-columns: repeat(2, 1fr); }
    .home-why { grid-template-columns: 1fr; padding: 2rem; }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--color-border, #e3e7ef);
        padding: 1rem 1.5rem;
        z-index: 99;
        max-height: calc(100vh - var(--header-height, 64px));
        overflow-y: auto;
    }

    .site-nav.is-open { display: block; }

    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

    .nav-dropdown {
        position: static;
        padding-top: 0;
    }
    .nav-dropdown::before { display: none; }
    .site-nav__item--has-dropdown:hover .nav-dropdown { display: none; }
    .site-nav.is-open .site-nav__item--has-dropdown .nav-dropdown { display: block; }

    .site-header__cta { display: none; }
    .nav-hamburger { display: flex; }

    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }

    .home-trust-row, .category-grid, .product-grid,
    .directory-grid, .library-article-grid, .library-more-grid, .sell-options__grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail__stats { grid-template-columns: 1fr; }

    /* Footer: single column, all text/links at 2x size */
    .site-footer__top { flex-direction: column; gap: 2rem; }
    .site-footer__nav, .site-footer__brand { flex: 1 1 auto; }
    .site-footer__brand-name { font-size: 2.2rem; }
    .site-footer__tagline,
    .site-footer__contact a,
    .site-footer__links a,
    .site-footer__col-heading,
    .site-footer__payments-note { font-size: 1.6rem; }
    .site-footer__col-heading { font-size: 1.4rem; }
    .site-footer__links { gap: 0.9rem; }
    .site-footer__bottom { font-size: 1.2rem; }
}

@media (max-width: 560px) {
    .home-hero__headline { font-size: 2.1rem; }
    .category-grid, .product-grid, .directory-grid,
    .library-article-grid, .library-more-grid, .sell-options__grid,
    .home-trust-row {
        grid-template-columns: 1fr;
    }
    .home-cta-banner { flex-direction: column; text-align: center; padding: 2rem; }
    .product-detail__actions { flex-direction: column; }
    .product-detail__actions .btn { width: 100%; justify-content: center; }
}
