/* =========================================================
   Plan Man — Apple-style design layer
   Loaded after styles.css. Remove the <link> to apple.css on each page
   to go back to the previous design.
   ========================================================= */

/* ---------- Tokens ---------- */
:root,
html[data-theme="dark"] {
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
    --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;

    --bg: #000000;
    --bg-elev: #101012;
    --surface: #1c1c1e;
    --surface-2: #232326;
    --border: #2c2c2e;
    --border-strong: #3a3a3c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;

    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-ink: #ffffff;
    --accent-soft: rgba(41, 151, 255, 0.14);
    --accent-text: #2997ff;
    --shimmer: linear-gradient(90deg, #2997ff, #a78bfa, #34d3c9, #2997ff);

    --nav-bg: rgba(22, 22, 23, 0.8);
    --nav-bg-solid: rgba(22, 22, 23, 0.9);
    --mega-bg: #161617;
    --tag-bg: rgba(255, 255, 255, 0.1);
    --media-bg: #0b0b0c;
    --logo-filter: brightness(0) invert(1);

    --spot: rgba(41, 151, 255, 0.16);
    --radius-btn: 980px;
    --radius-card: 24px;
    --nav-h: 56px;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --bg-elev: #f5f5f7;
    --surface: #f5f5f7;
    --surface-2: #ececf0;
    --border: #e5e5ea;
    --border-strong: #d2d2d7;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #6e6e73;

    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-ink: #ffffff;
    --accent-soft: rgba(0, 113, 227, 0.1);
    --accent-text: #0066cc;
    --shimmer: linear-gradient(90deg, #0071e3, #7b5cff, #16a3b8, #0071e3);

    --tag-nvidia: #3d7410;
    --tag-supermicro: #0066cc;
    --tag-asus: #7443c9;

    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-bg-solid: rgba(255, 255, 255, 0.86);
    --mega-bg: #ffffff;
    --tag-bg: rgba(255, 255, 255, 0.92);
    --media-bg: #0b0b0c;
    --logo-filter: none;
    --spot: rgba(0, 113, 227, 0.11);
}

/* Tiles are grey on white sections, white on grey sections */
html[data-theme="light"] .section-alt,
html[data-theme="light"] .cta-band { --surface: #ffffff; --surface-2: #fbfbfd; }

.force-dark {
    --bg: #000000; --bg-elev: #101012; --surface: #1c1c1e; --surface-2: #232326;
    --border: #2c2c2e; --border-strong: #3a3a3c;
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
    --accent: #2997ff; --accent-hover: #47a6ff; --accent-ink: #ffffff; --accent-soft: rgba(41, 151, 255, 0.14); --accent-text: #2997ff;
    --tag-bg: rgba(255, 255, 255, 0.1); --media-bg: #0b0b0c;
    --spot: rgba(41, 151, 255, 0.16);
}

/* Apple-style light footer in the light theme */
html[data-theme="light"] .site-footer.force-dark {
    --bg: #f5f5f7; --bg-elev: #f5f5f7; --surface: #ffffff; --border: #d2d2d7; --border-strong: #d2d2d7;
    --text: #1d1d1f; --text-2: #6e6e73; --text-3: #6e6e73; --accent-text: #0066cc;
    --logo-filter: none;
    --spot: rgba(0, 113, 227, 0.11);
    color-scheme: light;
}

/* ---------- Base type ---------- */
body { font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.display { font-size: clamp(44px, 7vw, 96px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.028em; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; letter-spacing: -0.015em; color: var(--text-2); font-weight: 400; }
.eyebrow {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--accent-text);
    margin-bottom: 10px;
}

/* ---------- Buttons & links ---------- */
.btn { font-size: 17px; font-weight: 500; padding: 12px 24px; letter-spacing: -0.01em; border-radius: 980px; }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 30px -10px rgba(0, 113, 227, .55); }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent-text); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.link-arrow { color: var(--accent-text); font-weight: 500; font-size: 17px; }
.link-arrow i { color: inherit; }
.link-arrow:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.navbar { border-bottom: 1px solid transparent; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.navbar.scrolled { border-bottom-color: var(--border); }
.logo img { height: 44px; }
.nav-links { justify-content: center; }
.nav-links > li > a, .nav-links > li > button { font-size: 14px; font-weight: 400; color: var(--text); opacity: .82; letter-spacing: -0.01em; padding: 0 12px; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > .active { opacity: 1; }
.nav-links > li > a::after, .nav-links > li > button::after { height: 2px; left: 12px; right: 12px; bottom: 10px; border-radius: 2px; }
.nav-cta .btn-ghost { display: none; }
.nav-cta .btn-sm { font-size: 13px; padding: 7px 15px; }
.theme-toggle { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; border-color: var(--border-strong); }
.scroll-progress { height: 2px; background: var(--accent); }

.mega { border-top: 0; border-bottom: 1px solid var(--border); }
.mega-inner { padding: 36px 32px 48px; }
.mega .mega-title { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text-3); margin-bottom: 14px; }
.mega a { font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.mega a:hover { color: var(--accent-text); }
.mega ul { gap: 12px; }

/* ---------- Hero (centered) ---------- */
.hero { min-height: auto; padding: calc(var(--nav-h) + 96px) 0 40px; text-align: center; }
.hero-layout { grid-template-columns: 1fr; justify-items: center; gap: 56px; }
.hero .lead { margin: 0 auto 36px; max-width: 760px; }
.hero-buttons { justify-content: center; }
.hero-visual { width: min(1120px, 100%); transform-origin: center top; }
.hero-bg { background: var(--bg) !important; }
.hero-bg::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -10%;
    width: 900px; height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.hero-cursor { background: radial-gradient(circle, var(--accent-soft), transparent 65%) !important; }

/* Inner page headers */
.page-hero { text-align: center; border-bottom: 0; padding: calc(var(--nav-h) + 96px) 0 72px; }
.page-hero .hero-bg { background: var(--bg) !important; }
.page-hero h1 { margin-left: auto; margin-right: auto; }
.page-hero .lead { margin: 0 auto; }
.breadcrumb { display: none; }
/* Products page: short header so the catalog starts near the top */
.catalog-hero { padding: calc(var(--nav-h) + 56px) 0 40px; }
.catalog-hero .lead { max-width: 760px; font-size: clamp(17px, 1.4vw, 20px); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-head-row { flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 64px; }
.section-head-row .lead { margin-left: auto; margin-right: auto; }

/* Brand strip */
.partner-strip { background: var(--bg); border-color: var(--border); }
.partner-strip .label { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.marquee-track span { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; opacity: .55; }

/* ---------- Tiles ---------- */
.card, .product-card, .contact-panel {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius-card);
    box-shadow: none !important;
    transition: transform .6s var(--ease), background .3s ease;
}
.card:hover, .product-card:hover { background: var(--surface); transform: scale(1.015); }
.js .reveal-stagger.settled > .card:hover { transform: scale(1.015); }
.card { padding: 36px; }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { font-size: 17px; line-height: 1.47; }
.card-icon { background: transparent; width: auto; height: auto; justify-content: start; font-size: 34px; margin-bottom: 18px; color: var(--accent-text); }
.card:hover .card-icon { background: transparent; }
.industry-card img, .hw-card img { width: calc(100% + 72px); margin: -36px -36px 24px; border-bottom: 0; }
.hw-card img { height: 190px; }
a.card:hover .link-arrow i { transform: translateX(4px); }
.brand-list span { border: 0; background: var(--bg); color: var(--text-2); font-weight: 500; }
.section-alt .brand-list span { background: var(--bg-elev); }

/* Dark feature tiles */
.feature-card { border: 0; border-radius: 28px; background: var(--surface); padding: 44px; }
.feature-card h3 { font-size: clamp(26px, 2.4vw, 34px); }
.feature-card .link-arrow { color: var(--accent-text); }

/* Tags */
.tag { border: 0; background: var(--tag-bg); text-transform: none; letter-spacing: -0.01em; font-size: 12px; font-weight: 600; padding: 5px 11px; }
.tag::before { display: none; }

/* ---------- Segmented tabs ---------- */
.tabs { grid-template-columns: 1fr; gap: 40px; }
.tab-list {
    flex-direction: row;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding: 4px;
    border: 0;
    border-radius: 980px;
    background: var(--surface-2);
    scrollbar-width: none;
}
html[data-theme="light"] .section-alt .tab-list { background: #e8e8ed; }
.tab-btn { border: 0 !important; margin: 0; border-radius: 980px; padding: 9px 20px; font-size: 15px; font-weight: 500; font-family: var(--font-body); color: var(--text-2); white-space: nowrap; }
.tab-btn[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tab-panel.active { gap: 56px; align-items: center; }
.tab-art, .split-art { border: 0; border-radius: 28px; }

/* Split sections */
.split { gap: 72px; }
.split p { font-size: 19px; line-height: 1.47; }

/* Steps */
.steps { gap: 20px; }
.step { background: var(--surface); border: 0; border-radius: 22px; padding: 28px 24px; }
.step::after { display: none; }
.step::before { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 12px; }

/* CTA */
.cta-band { text-align: center; border-top: 0; background: var(--bg-elev); }
.cta-band::before { display: none; }
.cta-band .container { flex-direction: column; justify-content: center; }
.cta-band .lead { margin: 0 auto; }

/* ---------- Catalog ---------- */
.catalog-toolbar { border-bottom: 1px solid var(--border); }
.chip { border: 0; background: var(--surface); color: var(--text); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.search input { border: 0; background: var(--surface); }
.cat-nav ul { border-left: 0; }
.cat-nav button { border-left: 0; margin-left: 0; border-radius: 10px; }
.cat-nav button[aria-pressed="true"] { background: var(--surface); }
.product-visual { border-bottom: 0; margin: 8px 8px 0; border-radius: 18px; }
.product-body h3 { font-size: 21px; }
/* Product photos (instead of illustrations): fit inside the panel without distortion */
.product-visual.has-photo img { position: absolute; inset: 0; margin: auto; width: 86%; height: 74%; max-width: none; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.product-card:hover .product-visual.has-photo img { transform: translateY(-3px) scale(1.03); }

/* Brand logo in the products page header (shown for collections such as Supermicro Gold Series) */
.catalog-logo { display: block; height: 72px; width: auto; margin: 0 auto 14px; }
.catalog-logo[hidden] { display: none; }
.catalog-logo[data-brand="asus"] { height: 40px; margin-bottom: 20px; }
html[data-theme="dark"] .catalog-logo[data-brand="asus"] { filter: invert(1); }

/* Grouped collection view (Supermicro Gold Series): sections with sub-category tabs */
.product-grid.is-grouped { display: block; }
.series-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; padding: 16px 18px; border-radius: 18px; background: var(--surface); }
.series-overview-label { font-weight: 600; margin-right: 6px; }
html[data-theme="light"] .series-overview .chip { background: var(--bg); }
.series-group + .series-group { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.series-group { scroll-margin-top: calc(var(--nav-h) + 96px); } /* clears the sticky menu and filter bar */
.series-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.series-head h3 { font-size: 26px; letter-spacing: -0.02em; }
.series-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.series-tabs .chip { cursor: pointer; }
.series-tabs span.chip { cursor: default; }

/* Collection badge (e.g. Supermicro Gold Series "Ready to ship") and its sidebar entry */
.badge-series { background: #b7791f !important; color: #fff !important; }
.cat-nav li.cat-collection { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cat-nav li.cat-collection.is-pinned { margin-top: 0; padding-top: 0; border-top: 0; }
/* Sidebar heading ("Categories") */
.cat-nav .cat-nav-title { color: var(--accent-text); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.cat-nav li.cat-collection button span:first-child { color: #b7791f; font-weight: 600; }
html[data-theme="dark"] .cat-nav li.cat-collection button span:first-child { color: #f0b54a; }
.pd-series { font-size: 13px; font-weight: 600; color: #b7791f; }
.pd-series:hover { text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .pd-series { color: #f0b54a; }

/* Whole card opens the product page: the title link is stretched over the card,
   and the Request Quote button sits above it so it stays separately clickable */
.product-card { position: relative; }
.product-body h3 { transition: color .2s ease; }
.product-body h3 a { color: inherit; }
.product-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product-body h3 a:focus-visible { outline: none; }
.product-body h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-card); }
.product-card:hover .product-body h3, .product-card:focus-within .product-body h3 { color: var(--accent-text); }
.product-actions .btn { position: relative; z-index: 2; }
.modal-dialog { border: 0; border-radius: 28px; }
.modal .product-visual { margin: 0; border-radius: 0; }

/* Forms */
.form-control, .check { border-radius: 12px; }
.card .form-control, .card .check { background: var(--bg); }

/* Footer */
.site-footer { padding: 56px 0 28px; font-size: 12px; border-top: 1px solid var(--border); }
.site-footer .footer-heading { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.site-footer ul { gap: 9px; }
.site-footer ul a { font-size: 12px; color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { font-size: 12px; }
.footer-bottom { font-size: 12px; }

/* Scroll-to-top */
.scroll-to-top { border-radius: 50%; border: 0; background: var(--surface-2); }

/* ---------- Apple-style motion ---------- */
.js .reveal { transform: translateY(40px) scale(.98); }
.js .split .split-art, .js .tab-panel .tab-art { transform: scale(.9); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.js .split.in .split-art, .js .tab-panel.active .tab-art { transform: none; opacity: 1; }
.js .reveal-stagger > .card { transform: translateY(40px) scale(.96); }

@media (max-width: 1024px) {
    .nav-links > li > a, .nav-links > li > button { font-size: 20px; font-weight: 600; opacity: 1; padding: 16px 0; }
    .tab-panel.active { gap: 32px; }
}
@media (max-width: 680px) {
    .hero { padding-top: calc(var(--nav-h) + 56px); }
    .section { padding: 88px 0; }
    .card { padding: 28px; }
    .industry-card img, .hw-card img { width: calc(100% + 56px); margin: -28px -28px 20px; }
    .tab-list { justify-self: stretch; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .js .split .split-art, .js .tab-panel .tab-art { transform: none !important; opacity: 1 !important; }
}

/* Logo sizing and theme switching (Apple layer) */
.force-dark { --logo-l: none; --logo-d: block; }
html[data-theme="light"] .site-footer.force-dark { --logo-l: block; --logo-d: none; }
.logo img { height: 30px; }
.footer-brand .logo img { height: 58px; }
@media (max-width: 680px) { .logo img { height: 26px; } }

/* ---------- Brand / category / collection landing pages (products/<slug>.html) ---------- */
.lp-hero .pd-crumbs { justify-content: center; margin-bottom: 20px; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.lp-intro-section { padding-top: 8px; padding-bottom: 24px; }
.lp-intro-section + .lp-group { padding-top: 32px; }
.lp-intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.lp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.lp-jump a { background: var(--surface); color: var(--text); border-radius: 980px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.lp-jump a span { color: var(--text-3); margin-left: 4px; }
.lp-jump a:hover { color: var(--accent-text); }
.lp-group { scroll-margin-top: calc(var(--nav-h) + 16px); }
.lp-group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.lp-group-head .h2 { margin: 0; }
.lp-count { font-size: .5em; font-weight: 600; color: var(--text-3); vertical-align: middle; margin-left: 6px; }
.lp-sub { margin-top: 6px; color: var(--text-3); font-size: 15px; }
.lp-more, .lp-links a { color: var(--accent-text); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.lp-more:hover, .lp-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 14px; }
.lp-browse-row + .lp-browse-row { margin-top: 28px; }
.lp-browse-row h3 { font-size: 15px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.lp-browse ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.lp-browse li a { display: inline-block; background: var(--surface); color: var(--text); border-radius: 980px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.lp-browse li a:hover { color: var(--accent-text); }
a.tag:hover { text-decoration: none; filter: brightness(1.1); }

/* Footer credit */
.footer-bottom .credit { display: inline-block; margin-top: 4px; }
.footer-bottom .credit a { color: var(--text-2); font-weight: 500; }
.footer-bottom .credit a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- MSI brand ---------- */
:root { --tag-msi: #c8102e; }
html[data-theme="dark"], .force-dark { --tag-msi: #ff6b7d; }
.tag-msi { color: var(--tag-msi); border-color: rgba(228, 0, 43, .35); }
.product-card[data-brand="msi"] { --glow: rgba(255, 90, 110, .14); --glow-solid: var(--tag-msi); }
.pd-hero[data-brand="msi"] { --glow: rgba(255, 90, 110, .16); }

/* ---------- Pre-booking (badge, product page notice, home page banner) ---------- */
.badge-preorder { background: #15803d !important; color: #fff !important; }
.pd-preorder { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 24px; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--text); background: rgba(22, 163, 74, .1); border: 1px solid rgba(22, 163, 74, .3); }
.pd-preorder i { font-size: 20px; color: #16a34a; flex: none; margin-top: 1px; }

.prebook { padding: 48px 0 8px; }
.prebook-panel {
    position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 4vw, 56px); color: var(--text);
    background:
        radial-gradient(circle at 88% 0%, rgba(118, 185, 0, .22), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 113, 227, .28), transparent 55%),
        #050607;
}
.prebook-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 36px; }
.prebook-head .h2 { margin: 16px 0 0; }
.prebook-head .lead { max-width: 660px; margin-top: 12px; color: var(--text-2); }
.prebook-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(118, 185, 0, .16); color: #a3dc55; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.prebook-dot { width: 8px; height: 8px; border-radius: 50%; background: #76b900; animation: prebook-pulse 1.8s infinite; }
@keyframes prebook-pulse { 0% { box-shadow: 0 0 0 0 rgba(118, 185, 0, .6); } 70% { box-shadow: 0 0 0 10px rgba(118, 185, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .prebook-dot { animation: none; } }
.prebook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.prebook-card { display: flex; flex-direction: column; padding: 20px; border-radius: 22px; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: transform .4s var(--ease, ease), border-color .3s, background .3s; }
.prebook-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); }
.prebook-img { height: 190px; display: grid; place-items: center; margin-bottom: 18px; }
.prebook-img img { width: auto; height: auto; max-width: 88%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease, ease); }
.prebook-card:hover .prebook-img img { transform: scale(1.04); }
.prebook-brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.prebook-card h3 { font-size: 20px; line-height: 1.25; margin: 6px 0 8px; }
.prebook-card p { flex: 1; font-size: 15px; color: var(--text-2); }
.prebook-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--accent-text); }
.prebook-card:hover .prebook-cta i { transform: translateX(3px); }
.prebook-cta i { transition: transform .3s; }
@media (max-width: 600px) { .prebook-img { height: 160px; } .prebook-img img { max-height: 160px; } .prebook-panel { border-radius: 24px; } }

/* Wide promo banner under a product page header (data/product-details.js `banner`) */
.pd-banner { padding: 8px 0 40px; }
.pd-banner a { display: block; border-radius: 28px; overflow: hidden; background: #000; transition: transform .4s var(--ease, ease), box-shadow .4s; }
.pd-banner a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.pd-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .pd-banner a { border-radius: 18px; } }

/* Brand logos with a separate dark-theme file (BRAND_LOGOS_DARK): show the one that matches the theme */
.catalog-logo.has-dark { display: var(--logo-l); }
.catalog-logo-dark { display: var(--logo-d); }
.catalog-logo-dark[hidden] { display: none; }
.catalog-logo[data-brand="msi"] { height: 40px; margin-bottom: 20px; }

/* Chip counts: enough contrast to read (WCAG AA 4.5:1) */
.chip .count { opacity: .72; }

/* Long product grids: the browser skips layout and painting of cards until they are near the screen */
.product-grid .product-card, .pd-related .product-card { content-visibility: auto; contain-intrinsic-size: auto 560px; }

/* Inter loads after first paint; until then text uses a local font scaled to Inter's metrics,
   so nothing moves when Inter arrives (no layout shift from the font swap) */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Liberation Sans'), local('Roboto');
    ascent-override: 90.49%;
    descent-override: 22.56%;
    line-gap-override: 0%;
    size-adjust: 107.06%;
}
:root {
    --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Inter', 'Inter Fallback', system-ui, sans-serif;
}
