:root {
    --black: #111111;
    --dark: #1c1c1c;
    --light: #f5f5f5;
    --white: #ffffff;
    --border: #dddddd;
    --accent: #e30613;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--black);
    background: var(--white);
}

.container {
    width: min(1200px, 92%);
    margin: auto;
}

.site-header {
    background: var(--black);
    color: white;
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    color: white;
    text-decoration: none;

    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
}

.search-wrap {
    flex: 1;
}

.search-wrap input {
    width: 100%;

    padding: 14px 18px;

    border: none;
    border-radius: 4px;

    font-size: 15px;
}

.cart-button {
    background: white;
    border: none;

    padding: 12px 18px;
    border-radius: 4px;

    cursor: pointer;
}

#cart-count,
#wishlist-count {
    font-weight: bold;
    margin-left: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.category-bar {
    border-bottom: 1px solid var(--border);
    background: white;
}

.category-inner {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 15px 0;
}

.category-inner a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
}

.category-inner a:hover {
    color: var(--accent);
}

.hero {
    background: var(--dark);
    color: white;
}

.hero-inner {
    min-height: 390px;

    display: flex;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;

    margin: 18px 0;
}

.hero p {
    font-size: 18px;
    max-width: 600px;

    color: #dddddd;
}

.primary-button,
.secondary-button {
    border: none;
    cursor: pointer;

    padding: 14px 24px;

    font-weight: bold;
    border-radius: 3px;
}

/* All the hero buttons (Shop Products + every collection shortcut) in a
   single non-wrapping row (site owner, 2026-09-02) -- shrinks padding/
   font-size so the full set fits on a normal desktop width, and falls
   back to horizontal scroll rather than wrapping or clipping on anything
   narrower, so every button stays reachable at any viewport width. */
.hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;

    margin-top: 25px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.hero-buttons .primary-button,
.hero-buttons .secondary-button {
    flex: 0 0 auto;
    white-space: nowrap;

    margin: 0 !important;
    padding: 11px 16px;
    font-size: 0.92em;
}

.hero-buttons .gaming-solutions-button {
    padding: 13px 20px !important;
}

.primary-button {
    background: var(--accent);
    color: white;
}

.secondary-button {
    background: var(--black);
    color: white;

    margin: 35px auto;
    display: block;
}

.hero-inner .load-shedding-button {
    background: #f5a623;
    color: var(--black);

    margin: 15px 8px 0 0;
    display: inline-block;
}

.hero-inner .printing-solutions-button {
    /* Darkened from the original #2e86de -- that shade only hit a 3.76:1
       contrast ratio against white text, below WCAG AA's 4.5:1 minimum
       for normal-size text (caught by a Lighthouse accessibility audit,
       2026-09-03). This shade hits ~4.85:1. */
    background: #1f73c6;
    color: white;

    margin: 15px 8px 0 0;
    display: inline-block;
}

.hero-inner .gaming-solutions-button {
    background: linear-gradient(135deg, #8e44ad, #b83280);
    color: white;

    margin: 15px 8px 0 0;
    display: inline-block;

    /* Gaming is the site's current priority push -- deliberately larger
       and set off with a glow/border so it reads as the featured option,
       not just first in the row (site owner, 2026-09-01). */
    padding: 18px 30px;
    font-size: 1.08em;
    border: 2px solid #d896e8;
    box-shadow: 0 0 18px rgba(142, 68, 173, 0.55);
}

.hero-inner .gaming-solutions-button:hover {
    box-shadow: 0 0 26px rgba(142, 68, 173, 0.8);
}

.hero-inner .gaming-desktops-button {
    background: #c0392b;
    color: white;

    margin: 15px 8px 0 0;
    display: inline-block;
}

.hero-inner .gaming-laptops-button {
    background: #16697a;
    color: white;

    margin: 15px 8px 0 0;
    display: inline-block;
}

.hero-inner .security-solutions-button {
    background: #1a7a3c;
    color: white;

    margin: 15px 0 0;
    display: inline-block;
}

.products-section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 34px;
}

.category-intro-copy {
    max-width: 640px;
    margin: 10px 0 0;

    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.category-intro-copy:empty {
    display: none;
}

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 24px;
}

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    background: white;

    cursor: pointer;

    transition:
        transform .15s,
        box-shadow .15s;
}

/* A real, crawlable <a href> stretched over the whole card -- Googlebot
   (and any other crawler) can only discover/follow an actual <a href>
   element, not a click handler on a non-anchor element, so this exists
   purely so category/product pages have real internal links to every
   product, not just the sitemap. Sits BELOW the interactive controls
   (add to cart, wishlist, category tag), which get position+z-index of
   their own below so they stay clickable on top of it. JS still
   intercepts the click and does the fast client-side navigation instead
   of a full page reload -- see renderProducts() in storefront.js. */
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.10);
}

.product-image {
    width: 100%;
    height: 220px;

    object-fit: contain;

    padding: 18px;

    background: #fafafa;
}

/* Right-click-save/drag-out deterrent (site owner, 2026-09-03) -- applies
   to every product photo on the site (grid/related/ink-finder cards via
   .product-image, the product detail page's own image, the screensaver).
   Paired with the contextmenu/dragstart JS listeners in storefront.js
   and nginx's Referer-based hotlink check on /assets/ and /images/. This
   stops casual right-click-save and iOS's long-press "Save Image" menu,
   nothing more -- it can't stop a browser screenshot, devtools, or a
   motivated scraper fetching the (still-public) image URL directly;
   nothing rendered in a browser can be made truly uncopyable. */
.product-image,
.detail-product img,
.screensaver-product img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px;
}

.product-brand {
    position: relative;
    z-index: 2;

    display: inline-block;

    font-size: 12px;
    color: #777;

    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

a.product-brand {
    cursor: pointer;
}

a.product-brand:hover {
    color: var(--accent);
    text-decoration: underline;
}

.product-category-tag {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;

    /* min-height/min-width (not just padding) guarantee a real >=24px CSS-px
       hit area even for a short label like "RAM"/"SSD" -- a Lighthouse
       accessibility audit flagged the old 3px/9px padding as an
       insufficient touch target, 2026-09-03. */
    min-height: 24px;
    min-width: 24px;
    padding: 5px 12px;

    background: var(--light);
    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;

    cursor: pointer;
}

.product-category-tag:hover {
    background: var(--accent);
    color: white;
}

.product-name {
    min-height: 48px;

    margin-top: 7px;

    font-size: 15px;
    line-height: 1.35;
}

.product-price {
    /* pushes price + label + stock + buttons as one group to the
       bottom of the card, so this cluster lines up across a row of
       cards regardless of how many lines the brand/name/category tag
       above it take up */
    margin-top: auto;
    padding-top: 18px;

    font-size: 22px;
    font-weight: 800;

    text-align: left;
}

/* "Was / Now" promo badge (site owner, 2026-09-03) -- only rendered when
   priceBadgeHtml() gets a real original_price from the API (currently
   Graphics Cards only). .price-was carries the same margin-top:auto
   .product-price normally uses on its own, since it's now the FIRST
   element of the "push this cluster to the card's bottom" group when
   present -- .product-price right after it drops back to a plain small
   gap rather than double-pushing. */
.price-was {
    margin-top: auto;
    padding-top: 18px;

    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.price-savings {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 8px;

    background: var(--accent);
    color: white;
    border-radius: 3px;

    font-size: 11px;
    font-weight: 700;
}

.price-savings + .product-price {
    margin-top: 4px;
    padding-top: 0;
}

.price-label {
    font-size: 11px;
    color: #777;

    margin-top: 3px;
}

.product-stock {
    margin-top: 10px;

    font-size: 12px;
}

.in-stock {
    color: #16833a;
}

.out-stock {
    color: #a00;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #777;
}

footer {
    background: var(--black);
    color: white;

    margin-top: 50px;
}

.footer-inner {
    padding: 50px 0;

    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    border-top: 1px solid #333;

    text-align: center;

    padding: 18px;

    color: #aaa;

    font-size: 12px;
}

.modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    background:
        rgba(0,0,0,.75);

    padding: 40px;

    overflow: auto;
}

.modal-content {
    background: white;

    max-width: 900px;

    margin: auto;

    padding: 35px;

    position: relative;
}

.modal-close {
    position: absolute;

    right: 15px;
    top: 10px;

    border: none;
    background: none;

    font-size: 32px;

    cursor: pointer;
}

.product-page-section {
    padding: 40px 0 70px;
}

.back-to-results {
    background: none;
    border: none;

    color: var(--accent);
    font-weight: bold;
    font-size: 14px;

    padding: 0;
    margin-bottom: 25px;

    cursor: pointer;
}

.back-to-results:hover {
    text-decoration: underline;
}

.detail-breadcrumb {
    font-size: 13px;
    color: #777;

    margin-bottom: 20px;
}

.detail-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.detail-breadcrumb span {
    color: var(--black);
}

.detail-product {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;
}

.detail-product-title {
    font-size: 1.5em;
    margin: 0.83em 0;
}

/* --- Product reviews --- */
.star-rating {
    display: inline-flex;
    gap: 1px;
    color: #ccc;
    font-size: 16px;
    line-height: 1;
}
.star-rating .star-filled {
    color: #f5a623;
}
.detail-review-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px;
}
.review-summary-text {
    font-size: 13px;
    color: #666;
}
.detail-reviews-section {
    margin-top: 50px;
    padding-top: 35px;

    border-top: 1px solid var(--border);
    max-width: 700px;
}
.detail-reviews-section h2 {
    margin: 0 0 20px;
}
.reviews-empty {
    color: #777;
    margin-bottom: 20px;
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
}
.review-item {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-title {
    font-weight: 600;
    margin-top: 6px;
}
.review-body {
    margin: 6px 0;
    color: #333;
    white-space: pre-line;
}
.review-meta {
    font-size: 12px;
    color: #888;
}
.review-login-prompt {
    color: #666;
}
.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}
.review-form h3 {
    margin: 0;
}
.review-form input,
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.review-star-input {
    font-size: 26px;
    color: #ccc;
    cursor: pointer;
}
.review-star-input .star-input {
    cursor: pointer;
}
.review-star-input .star-filled {
    color: #f5a623;
}
.review-thanks {
    color: #333;
}

.detail-related {
    margin-top: 50px;
    padding-top: 35px;

    border-top: 1px solid var(--border);
}

.detail-related h2 {
    margin: 0 0 20px;
}

.related-products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.related-product-card {
    cursor: pointer;
}

.spec-filter-panel {
    margin-bottom: 25px;
}

.spec-filter-panel-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 20px;

    background: var(--light);
    border: 1px solid var(--border);
}

.spec-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    flex: 1;
}

.spec-filter-clear-all {
    flex-shrink: 0;

    background: none;
    border: none;
    padding: 4px 0;

    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.spec-filter-clear-all:hover {
    opacity: .75;
}

.spec-filter-group {
    min-width: 160px;
}

.spec-filter-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #666;

    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

/* Default browser disclosure triangles render inconsistently across
   browsers -- hide them and draw one chevron ourselves so every
   filter dropdown looks the same regardless of engine. */
.spec-filter-group-title::-webkit-details-marker {
    display: none;
}
.spec-filter-group-title::marker {
    content: "";
}

.spec-filter-group-title::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform .15s ease;
    flex-shrink: 0;
}

.spec-filter-group[open] > .spec-filter-group-title::before {
    transform: rotate(180deg);
}

.spec-filter-active-count {
    color: var(--accent, #e30613);
    font-weight: 700;
}

.spec-filter-options {
    margin-top: 8px;
}

.spec-filter-option {
    display: block;

    font-size: 14px;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.spec-filter-option input {
    margin-right: 6px;
}

.spec-filter-count {
    color: #999;
    font-size: 12px;
}

.detail-specs {
    margin-top: 50px;
    padding-top: 35px;

    border-top: 1px solid var(--border);
}

.detail-video {
    margin-top: 50px;
    padding-top: 35px;

    border-top: 1px solid var(--border);
}

.detail-video h2 {
    margin: 0 0 20px;
}

.detail-video-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-top: 45%;
}

.detail-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-specs h2 {
    margin: 0 0 20px;
}

.spec-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.spec-group {
    border: 1px solid var(--border);
}

.spec-group h3 {
    margin: 0;
    padding: 10px 15px;

    background: var(--light);
    border-bottom: 1px solid var(--border);

    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr:not(:last-child) th,
.spec-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--light);
}

.spec-table th,
.spec-table td {
    text-align: left;
    vertical-align: top;

    padding: 8px 15px;

    font-weight: normal;
    font-size: 14px;
}

.spec-table th {
    width: 45%;
    color: #666;
}

.detail-product img {
    width: 100%;
    max-height: 450px;

    object-fit: contain;
}

/* Multi-image gallery thumbnail strip (site owner, 2026-09-03) -- only
   ever rendered when a product has real extra angles in product_images
   (currently Graphics Cards only). Selector is deliberately more
   specific than the plain ".detail-product img" rule above (3 classes +
   element vs. 1 class + element) so its own fixed thumbnail size wins
   regardless of source order, rather than inheriting the main image's
   100%-width/450px-max-height sizing. */
.detail-gallery-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 10px;
}

.detail-product .detail-gallery-strip img.detail-gallery-thumb {
    width: 64px;
    height: 64px;
    max-height: 64px;

    object-fit: contain;
    padding: 4px;

    background: #fafafa;
    border: 2px solid transparent;
    border-radius: 4px;

    cursor: pointer;
}

.detail-gallery-thumb.active {
    border-color: var(--accent);
}

.detail-price {
    font-size: 32px;
    font-weight: 800;

    margin: 20px 0 5px;
}

.price-was + .detail-price {
    margin-top: 4px;
}

.detail-price-label {
    color: #777;
    font-size: 12px;
}

.add-cart {
    background: var(--accent);
    color: white;

    border: none;

    padding: 15px 25px;

    cursor: pointer;

    font-weight: bold;

    margin-top: 20px;
}

/* Base (hidden) state for the mobile category select -- MUST appear
   before the @media(max-width:700px) block below, not after it. CSS
   resolves two equal-specificity rules by source order, so an
   unconditional rule declared LATER than a media-query override always
   wins even when the media query matches -- that exact ordering bug
   (base rule placed after the override) is why the original
   accordion-drawer mobile nav silently never showed anything on real
   mobile viewports, and it's worth remembering for any future
   >700px-vs-<=700px toggle in this file: declare the "hidden by
   default" base rule first, the override inside the media query
   second. */
.mobile-category-select {
    display: none;
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    color: inherit;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;

    padding: 11px 16px;
}

@media(max-width:700px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .search-wrap {
        order: 3;
        flex-basis: 100%;
    }

    .hero-inner {
        min-height: 330px;
    }

    /* On desktop these 7 buttons deliberately stay in one non-wrapping
       row with horizontal scroll as the overflow fallback (see the
       .hero-buttons comment above its base rule). On a phone that just
       reads as buttons running off the right edge of the screen with no
       obvious way to reach them -- wrap onto multiple rows instead so
       every button is visible without scrolling (site owner, 2026-09-03). */
    .hero-buttons {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .products-section {
        padding: 45px 0;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    /* The desktop nav (a "Home" dropdown plus one dropdown button per
       top-level category -- 15+ of them) has no room to breathe on a
       phone screen: crammed into a horizontal scroll or wrapped into a
       messy multi-row block of tiny buttons, with no visual cue that
       there's more to scroll to. Replaced below 700px with a single
       "Categories" button opening a full accordion drawer (built in
       storefront.js's loadCategoryMenu(), reusing the same category
       data) -- one tap target, one familiar mobile nav pattern, full
       list of categories and subcategories with room for real tap
       targets. Desktop/tablet (>700px) keeps the hover/click dropdown
       bar exactly as before. */
    #home-dropdown,
    #category-menu {
        display: none;
    }

    .mobile-category-select {
        display: block;
    }

    .category-inner {
        padding: 10px 0;
    }
}

.stock-unknown {
    color: #996600;
}


/* =========================
   DATABASE CATEGORY MENU
   ========================= */

.dynamic-category-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-dropdown {
    position: relative;
}

.category-menu-button {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 600;
}

.category-menu-button::after {
    content: " ▾";
    font-size: 10px;
}

.category-dropdown-content {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 6px 0;
}

.category-dropdown:hover .category-dropdown-content,
.category-dropdown.open .category-dropdown-content {
    display: block;
}

.category-dropdown-content a {
    display: block;
    padding: 9px 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.category-dropdown-content a:hover {
    background: #f5f6f8;
}

.category-loading {
    padding: 9px 12px;
    opacity: .6;
}

@media (max-width: 900px) {

    .dynamic-category-menu {
        flex-wrap: wrap;
    }

    .category-dropdown-content {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
}


/* =========================
   PRODUCT FILTERS
   ========================= */

.product-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-filters select,
.product-filters input {
    height: 40px;
    padding: 0 11px;
    border: 1px solid #d9dde3;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.product-filters select {
    min-width: 170px;
    cursor: pointer;
}

.product-filters input {
    width: 125px;
}

.product-filters input:focus,
.product-filters select:focus {
    outline: none;
    border-color: #111;
}

.product-filters .secondary-button {
    height: 40px;
    margin: 0;
    padding: 0 14px;
}


/* =========================
   BACK TO TOP
   ========================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
}


/* =========================
   FLOATING CART BUTTON
   ========================= */

.floating-cart-button {
    position: fixed;
    right: 82px;
    bottom: 24px;
    z-index: 2000;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--accent);
    color: #fff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;

    box-shadow: 0 5px 18px rgba(0,0,0,.18);
}

.floating-cart-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cart-button:hover {
    transform: translateY(-2px);
}

.floating-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;

    min-width: 18px;
    height: 18px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;
    color: #fff;

    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


/* =========================
   MOBILE FILTERS
   ========================= */

@media (max-width: 900px) {

    .product-filters {
        justify-content: flex-start;
        width: 100%;
    }

    .product-filters select,
    .product-filters input {
        flex: 1 1 140px;
        min-width: 0;
        width: auto;
    }

    .product-filters .secondary-button {
        flex: 0 0 auto;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }

    .floating-cart-button {
        right: 70px;
        bottom: 16px;
    }

}



/* =========================
   TOTAL ITEMS
   ========================= */

.total-items-banner {
    padding: 18px 0;
    background: #f5f6f8;
    border-bottom: 1px solid #e5e7eb;
}

.total-items-text {
    text-align: center;
    font-size: 15px;
    color: #555;
}

.total-items-text strong {
    color: #111;
    font-size: 17px;
    margin-left: 4px;
}

.total-items-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 20px;
}

.eft-discount-note {
    font-size: 13px;
    color: #666;
}

.warranty-callout {
    margin-top: 12px;
    padding: 12px 14px;

    background: #fff8e6;
    border: 1px solid #f0dfa8;
    border-radius: 6px;

    font-size: 13px;
    line-height: 1.5;
    color: #5c4a12;
}

.warranty-callout a {
    display: inline-block;
    margin-left: 4px;

    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.warranty-callout a:hover {
    text-decoration: underline;
}



/* =========================
   PRODUCT SHARING
   ========================= */

.product-share-wrap {
    position: relative;
    margin-top: 10px;
}

.product-share-button {
    width: 100%;
    height: 38px;

    border: 1px solid #d9dde3;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.product-share-button:hover {
    background: #f5f6f8;
    border-color: #bfc4cc;
}

.product-share-menu {
    position: absolute;
    z-index: 3000;

    left: 0;
    right: 0;
    bottom: calc(100% + 7px);

    background: #fff;

    border: 1px solid #d9dde3;
    border-radius: 9px;

    box-shadow: 0 10px 30px rgba(0,0,0,.15);

    padding: 6px;
}

.product-share-menu button {
    display: block;

    width: 100%;

    border: 0;
    border-radius: 6px;

    background: transparent;

    padding: 10px 11px;

    text-align: left;

    font: inherit;
    font-size: 14px;

    cursor: pointer;
}

.product-share-menu button:hover {
    background: #f5f6f8;
}




/* =========================
   PRODUCT CARD DESCRIPTION
   ========================= */

.product-description {
    margin-top: 7px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================
   DETAIL WINDOW SHARE
   ========================= */

.detail-share-button {
    display: block;

    margin: 20px 0 0 auto;

    min-width: 110px;
    height: 40px;

    padding: 0 16px;

    border: 1px solid #d9dde3;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.detail-share-button:hover {
    background: #f5f6f8;
    border-color: #bfc4cc;
}

/* Share menu opens from the detail-window button */
.detail-share-button + .product-share-menu {
    position: relative;
    width: 210px;
    margin: 8px 0 0 auto;
    left: auto;
    right: auto;
    bottom: auto;
}




/* =========================
   PRODUCT DETAIL ACTIONS
   ========================= */

.detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.detail-share-wrap {
    position: relative;
}

.detail-share-button {
    height: 40px;
    padding: 0 16px;

    border: 1px solid #d9dde3;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}

.detail-share-button:hover {
    background: #f5f6f8;
    border-color: #bfc4cc;
}


/* Share menu belongs to the popup button */

.detail-share-wrap .product-share-menu {
    left: auto;
    right: 0;
    bottom: calc(100% + 8px);
    width: 210px;
}


@media (max-width: 600px) {

    .detail-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .detail-share-wrap .product-share-menu {
        right: 0;
        width: 190px;
    }

}


.site-footer {
    background: var(--dark);
    color: var(--light);
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 0 30px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    margin: 0 0 14px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--light);
    margin: 0;
}
.footer-legal-name {
    margin-top: 12px !important;
    font-size: 12px !important;
    color: #aaaaaa !important;
    line-height: 1.6 !important;
}
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.9;
}
.footer-list a {
    color: var(--light);
    text-decoration: none;
}
.footer-list a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 0;
    font-size: 12px;
    color: #aaaaaa;
}

.cart-line {
    display: grid;
    grid-template-columns: 60px 1fr 70px 100px 70px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-line-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--light);
}
.cart-line-name {
    font-weight: 600;
    font-size: 14px;
}
.cart-line-price {
    font-size: 12px;
    color: #666;
}
.cart-line-qty {
    width: 55px;
    padding: 6px;
    border: 1px solid var(--border);
}
.cart-line-total {
    font-weight: 600;
    text-align: right;
}
.cart-line-remove {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
}
.cart-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--black);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.cart-summary-total {
    font-weight: 700;
    font-size: 18px;
}
.checkout-button {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.checkout-button:hover {
    opacity: 0.9;
}
.grid-add-cart {
    position: relative;
    z-index: 2;

    margin-top: 8px;
    width: 100%;
    padding: 8px;
    background: var(--black);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
}
.grid-add-cart:hover {
    background: var(--accent);
}
.wishlist-toggle {
    position: relative;
    z-index: 2;

    margin-top: 6px;
    width: 100%;
    padding: 7px;
    background: white;
    color: var(--black);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
}
.wishlist-toggle:hover {
    border-color: var(--accent);
}
.wishlist-toggle.wishlisted {
    color: var(--accent);
    border-color: var(--accent);
}
.wishlist-icon {
    display: inline-block;
}
.detail-wishlist-toggle {
    width: auto;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    margin-top: 20px;
    margin-left: 10px;
    flex: 0 0 auto;
}
.detail-wishlist-toggle.wishlisted {
    color: var(--accent);
    border-color: var(--accent);
}
#cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--black);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
}
#cart-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Account / Menu panel --- */
.menu-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}
.menu-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}
.menu-error {
    color: #c0392b;
    font-size: 13px;
}
.menu-error:empty {
    display: none;
}
.menu-greeting {
    color: #666;
    margin-top: -8px;
}
.menu-section {
    margin: 28px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.menu-section h3 {
    margin-bottom: 12px;
    font-size: 15px;
}
.menu-info-list {
    list-style: none;
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.menu-info-list a {
    color: var(--accent);
    text-decoration: none;
}
.account-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.account-row span:first-child {
    color: #888;
}
.order-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.order-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.order-date {
    color: #888;
    font-size: 12px;
    margin-left: 10px;
}
.order-status {
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 600;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 3px;
}
.order-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #555;
}
.order-item-row {
    display: flex;
    justify-content: space-between;
}
.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* --- Account / Menu panel: mobile fixes --- */
@media (max-width: 420px) {
    .btn-label {
        display: none;
    }
    .cart-button {
        padding: 10px 12px;
    }
}
@media (max-width: 480px) {
    .modal {
        padding: 16px;
    }
    .modal-content {
        padding: 22px 18px;
    }
}

.menu-link-button {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0 0;
}
.menu-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.menu-form-actions .secondary-button {
    margin: 0;
    padding: 14px 20px;
}


/* =========================
   MOBILE OPTIMIZATION PASS
   ========================= */

@media (max-width: 600px) {

    /* Stack the add-to-cart / share buttons full-width so they're
       easy to tap and never get squeezed side by side. */
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .add-cart,
    .detail-share-wrap,
    .detail-share-button {
        width: 100%;
    }

    .detail-share-wrap .product-share-menu {
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* The fixed-width cart-line grid (60+70+100+70px + gaps) doesn't
       fit inside the cart modal on small phones and forces horizontal
       overflow. Re-lay it out as two rows using grid-template-areas --
       the same child elements, just repositioned. */
    .cart-line {
        grid-template-columns: 48px 1fr auto;
        grid-template-areas:
            "image info qty"
            "image total remove";
        row-gap: 6px;
    }

    .cart-line-image {
        grid-area: image;
        width: 48px;
        height: 48px;
    }

    .cart-line-info {
        grid-area: info;
    }

    .cart-line-qty {
        grid-area: qty;
        width: 100%;
        max-width: 56px;
        justify-self: end;
    }

    .cart-line-total {
        grid-area: total;
    }

    .cart-line-remove {
        grid-area: remove;
        justify-self: end;
    }

    /* Inputs under 16px trigger an unwanted auto-zoom on iOS Safari
       when focused -- bump them all to 16px on small screens. */
    .search-wrap input,
    .product-filters select,
    .product-filters input,
    .menu-form input,
    .cart-line-qty {
        font-size: 16px;
    }
}


/* =========================
   ASK AN EXPERT
   ========================= */

/* Stacked directly above the "Need help?" AI chat toggle, same left
   offset so the two line up as a vertical pair rather than colliding --
   mirrors how the floating cart button sits beside back-to-top. */
.ask-expert-toggle {
    position: fixed;
    left: 24px;
    bottom: 90px;
    z-index: 4000;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 14px 20px;

    border: 0;
    border-radius: 30px;

    background: var(--accent);
    color: white;

    font: inherit;
    font-weight: 600;
    font-size: 14px;

    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ask-expert-toggle:hover {
    background: var(--black);
}

/* Mobile-only: moved from bottom-left to top-right (site owner,
   2026-09-03) -- resets the base rule's left/bottom offsets and anchors
   top-right instead. Fades in/out based on scroll position via
   storefront.js's updateAskExpertScrollVisibility() -- visible by
   default including right at the top of the page, fades out once the
   visitor scrolls down, back in near the top (site owner, 2026-09-03,
   after briefly trying the opposite -- hidden at top, shown once past
   the header -- the same day). Gated to the same 700px breakpoint so
   desktop/tablet keeps the original always-visible, bottom-left
   placement untouched. Placed after the base .ask-expert-toggle rule
   above -- see the .ai-chat-toggle cascade-order comment further down
   in this file for why that ordering matters here. */
@media (max-width: 700px) {
    .ask-expert-toggle {
        left: auto;
        bottom: auto;
        top: 12px;
        right: 12px;

        transition:
            opacity .2s ease,
            visibility .2s ease,
            transform .2s ease;
    }

    .ask-expert-toggle.scroll-hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }
}

.ask-expert-panel {
    position: fixed;
    left: 24px;
    bottom: 156px;
    z-index: 4000;

    width: 340px;
    max-width: calc(100vw - 32px);

    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
    overflow: hidden;
}

.ask-expert-intro {
    padding: 14px 16px 0;
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.ask-expert-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
}

.ask-expert-form input,
.ask-expert-form textarea {
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    resize: vertical;
}

.ask-expert-status {
    font-size: 13px;
    min-height: 18px;
}

.ask-expert-status.success {
    color: #1a7a3c;
}

.ask-expert-status.error {
    color: #c0392b;
}

@media (max-width: 480px) {
    /* left/bottom deliberately NOT repeated here -- the top-right
       placement above (2026-09-03) already applies at this width too;
       redeclaring left/bottom here (this rule is declared later in the
       file, so it would win the cascade tie) would silently drag the
       button back to the old bottom-left spot on the smallest phones
       only. Padding is still narrowed for a tight screen. */
    .ask-expert-toggle {
        padding: 12px 16px;
    }
    .ask-expert-panel {
        left: 8px;
        right: 8px;
        bottom: 138px;
        width: auto;
        max-width: none;
    }
}

/* =========================
   AI SHOPPING ASSISTANT
   ========================= */

.ai-chat-toggle {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 4000;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 14px 20px;

    border: 0;
    border-radius: 30px;

    background: var(--black);
    color: white;

    font: inherit;
    font-weight: 600;
    font-size: 14px;

    cursor: pointer;

    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ai-chat-toggle:hover {
    background: var(--accent);
}

/* MUST appear after the unconditional .ai-chat-toggle/.ai-chat-panel
   rules above, not inside the earlier @media(max-width:700px) block --
   this file has already been bitten once by the "equal-specificity, base
   rule declared later wins regardless of a matching media query" cascade
   trap (see the .mobile-category-select comment further up), and putting
   this hide rule earlier in the file hit the exact same bug: the later,
   unconditional display:flex rule silently overrode it on real mobile
   viewports. The floating "Need help?" shopping-assistant button sits on
   top of page content and competes for space with the floating cart/
   back-to-top buttons on a small screen -- hidden on mobile per the site
   owner's request (2026-09-03); still fully available on desktop/tablet. */
@media (max-width: 700px) {
    .ai-chat-toggle,
    .ai-chat-panel {
        display: none;
    }
}

/* The stock/price-sort/min-max/clear filter bar makes sense once a
   visitor has actually narrowed down to a category, collection, or
   search -- but on the plain homepage ("Featured Products") it was just
   clutter above the grid on a small screen. Hidden on mobile only when
   nothing is narrowed yet (storefront.js's updateFilterBarVisibility()
   toggles this body class every time search/category/collection
   changes); desktop/tablet always shows it, and mobile still shows it
   the moment a category/collection/search is active (site owner,
   2026-09-03). Placed after the base .product-filters rule (line 1104)
   for the same cascade-order reason as the rule above. */
@media (max-width: 700px) {
    body.is-homepage-view .product-filters {
        display: none;
    }
}

.ai-chat-panel {
    position: fixed;
    left: 24px;
    bottom: 90px;
    z-index: 4000;

    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 120px);

    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-header {
    background: var(--black);
    color: white;

    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-weight: 700;
    font-size: 14px;
}

.ai-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;

    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    background: #f9f9f9;
}

.ai-chat-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.ai-chat-msg.user {
    align-self: flex-end;
    background: var(--black);
    color: white;
    border-bottom-right-radius: 3px;
}

.ai-chat-msg.assistant {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-bottom-left-radius: 3px;
}

.ai-chat-msg.typing {
    color: #888;
    font-style: italic;
}

.ai-chat-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ai-chat-product {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: white;
    font-size: 12px;
}

.ai-chat-product img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--light);
    flex-shrink: 0;
}

.ai-chat-product-info {
    flex: 1;
    min-width: 0;
}

/* The image and name/price block open the product in a new tab; the
   checkbox (outside this class) is the only part that selects it for a
   quote - keeping the two controls visually and behaviorally separate. */
.ai-chat-product-link {
    cursor: pointer;
}

.ai-chat-product-link:hover .ai-chat-product-name {
    text-decoration: underline;
}

.ai-chat-product-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-chat-product-price {
    color: #666;
    margin-top: 2px;
}

.ai-chat-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 14px;

    border-top: 1px solid var(--border);
    background: #fff8e6;

    font-size: 13px;
}

.ai-chat-quote-bar .secondary-button {
    margin: 0;
    padding: 8px 14px;
    font-size: 13px;
}

.ai-chat-form {
    display: flex;
    gap: 8px;

    padding: 12px;

    border-top: 1px solid var(--border);
}

.ai-chat-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font: inherit;
    font-size: 13px;
}

.ai-chat-form button {
    margin: 0;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
}

.quote-form label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 14px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    margin-top: 6px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.quote-form button {
    margin-top: 18px;
}

.quote-line-list {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 480px) {

    .ai-chat-toggle {
        left: 12px;
        bottom: 12px;
        padding: 12px 16px;
    }

    .ai-chat-panel {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        height: calc(100vh - 90px);
        max-height: none;
    }

    .ai-chat-form input,
    .quote-form input,
    .quote-form textarea {
        font-size: 16px;
    }

}


/* ---------------------------------------------------------------- Ink Finder */

/* Lives inside a .category-dropdown-content, one item among others
   (e.g. "All Products") -- styled like its sibling links, with a
   relatively-positioned wrapper just for the tooltip anchor. */
.ink-finder-dropdown-wrap {
    position: relative;
}

.ink-finder-dropdown-wrap > a {
    display: block;
    padding: 9px 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ink-finder-dropdown-wrap > a:hover {
    background: #f5f6f8;
}

.ink-finder-tooltip {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    z-index: 1000;

    background: var(--dark);
    color: white;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;

    padding: 8px 12px;
    border-radius: 6px;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
}

.ink-finder-tooltip::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: var(--dark);
}

.ink-finder-dropdown-wrap:hover .ink-finder-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ink-finder-section {
    padding: 40px 0 70px;
}

.ink-finder-hero {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.ink-finder-hero h1 {
    margin: 0 0 12px;
}

.ink-finder-hero p {
    color: #555;
    margin: 0 0 25px;
}

.ink-finder-search-wrap {
    position: relative;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ink-finder-search-wrap input {
    flex: 1 1 320px;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}

.ink-finder-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    z-index: 500;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
}

.ink-finder-suggestions.open {
    display: block;
}

.ink-finder-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.ink-finder-suggestion:last-child {
    border-bottom: none;
}

.ink-finder-suggestion:hover,
.ink-finder-suggestion.active {
    background: #f5f6f8;
}

.ink-finder-suggestion .suggestion-brand {
    font-weight: 700;
    margin-right: 6px;
}

.ink-finder-status {
    text-align: center;
    color: #666;
    padding: 30px 0;
}

.ink-finder-results-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
}

.ink-finder-group {
    margin-bottom: 40px;
}

.ink-finder-group h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #666;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {

    /* The dropdown itself goes full-width/fixed on mobile (see the
       .category-dropdown-content rule above), so a tooltip flying out
       to the right would run off-screen -- shown below the link instead. */
    .ink-finder-tooltip {
        top: 100%;
        left: 0;
        margin-left: 0;
        margin-top: 8px;
        white-space: normal;
        width: 220px;
        transform: translateY(-4px);
    }

    .ink-finder-dropdown-wrap:hover .ink-finder-tooltip {
        transform: translateY(0);
    }

    .ink-finder-tooltip::before {
        top: auto;
        right: auto;
        bottom: 100%;
        left: 18px;
        border-right-color: transparent;
        border-bottom-color: var(--dark);
    }

}

/* Gaming screensaver -- full-screen idle overlay showing one random
   in-stock, real-photo Gaming product at a time, swapped every 5s. */
.gaming-screensaver-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    text-align: center;
    padding: 24px;
}

.gaming-screensaver-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.gaming-screensaver-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    max-width: 90vw;
}

.gaming-screensaver-img {
    width: 640px;
    height: 640px;
    max-width: 80vw;
    max-height: 60vh;
    object-fit: contain;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 24px;
}

.gaming-screensaver-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.gaming-screensaver-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff4d4d;
}

.gaming-screensaver-hint {
    margin-top: 40px;
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 700px) {
    .gaming-screensaver-img {
        width: 440px;
        height: 440px;
    }
}
