/* Cart drawer items + small additions for the dynamic tech theme */
#techCartItems.tc-has-items {
    display: block;
    overflow-y: auto;
    padding: 12px;
    align-items: stretch;
}

.tc-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
    position: relative;
}

.tc-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.tc-info {
    flex: 1;
    min-width: 0;
}

.tc-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
    padding-right: 14px;
}

.tc-name:hover {
    color: #0a84dc;
}

.tc-variant {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.tc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.tc-row strong {
    font-size: 13px;
    color: #111;
}

.tc-qty {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.tc-qty button {
    width: 26px;
    height: 26px;
    border: 0;
    background: #f5f5f5;
    cursor: pointer;
}

.tc-qty span {
    width: 28px;
    display: grid;
    place-items: center;
    font-size: 13px;
}

.tc-remove {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.tc-remove:hover {
    color: #e11d48;
}

.tc-checkout {
    display: block;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    background: #0a84dc;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.tc-checkout:hover {
    background: #0668b8;
    color: #fff;
}

.tc-view-all {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.tc-view-all:hover {
    color: #0a84dc;
}

.ls-menu a.ls-row {
    text-decoration: none;
    color: inherit;
}

/* Homepage announcement bar (keeps the template's pill design) */
.announce-viewport {
    overflow: hidden;
    white-space: nowrap;
}

.announce-track {
    display: inline-flex;
    white-space: nowrap;
    animation: tech-announce 35s linear infinite;
}

.sliding-text-box:hover .announce-track {
    animation-play-state: paused;
}

.announce-track span {
    padding-right: 18px;
}

.announce-track b {
    padding-left: 18px;
    font-weight: 400;
    opacity: .6;
}

@keyframes tech-announce {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .announce-track { animation: none; }
}

/* Section heading with "View All" on the top-right */
.tc-heading {
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.tc-view-all-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    background: #0a84dc;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}

.tc-view-all-btn:hover {
    background: #0668b8;
    color: #fff;
}

.tc-view-all-btn i {
    font-size: 11px;
}

@media (max-width: 767px) {
    .tc-heading {
        text-align: left;
        padding-right: 104px;
    }

    .tc-view-all-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Navbar: all 13 categories visible on every desktop width (the row scrolls sideways if the screen is too narrow) */
.cat-nav-list > li { flex: 0 0 auto; }
@media (min-width: 992px) and (max-width: 1399px) {
    .cat-nav-inner { padding: 0 12px; }
    .cat-nav-list > li > a { padding: 15px 7px; font-size: 12.5px; gap: 4px; }
}
@media (min-width: 1400px) and (max-width: 1599px) {
    .cat-nav-list > li > a { padding: 16px 8px; font-size: 13.5px; }
}

/* Home product sections: heading on the left, exactly 2 rows of products
   (grid is 5 / 4 / 2 columns, server sends 10) */
.featured-section .tc-heading {
    text-align: left;
    padding-right: 140px;
}

@media (max-width: 1199px) {
    .featured-section .product-grid > :nth-child(n+9) { display: none; }
}

@media (max-width: 767px) {
    .featured-section .tc-heading { padding-right: 104px; }
    .featured-section .product-grid > :nth-child(n+5) { display: none; }
}

/* Notice bar: sits right under the banner as part of the hero block */
.banner-section {
    padding-bottom: 0;
}

.sliding-text-wrap {
    background: #f5f5f5;
    padding: 10px 0 18px;
}

.sliding-text-box {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 16px 6px 6px;
    box-shadow: 0 1px 3px rgba(15, 17, 21, .04);
}

.sliding-text-box .announce-viewport {
    flex: 1;
    min-width: 0;
}

.announce-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 7px;
    background: #0a84dc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Quick links: now just above the customer reviews */
.quick-links-wrap {
    padding: 36px 0;
    background: #f5f5f5;
}

@media (max-width: 575px) {
    .announce-label { padding: 6px 9px; font-size: 0; gap: 0; }
    .announce-label i { font-size: 13px; }
    .quick-links-wrap { padding: 24px 0; }
}

/* ══════════════════════════════════════════
   PRODUCT CARD — more breathing room (taller, calmer card)
══════════════════════════════════════════ */
.p-card {
    border-color: #e9ebef;
    border-radius: 14px;
}

/* image sits inside a soft margin instead of touching the edges */
.p-img {
    padding: 34px 18px 14px;
}

.p-body {
    padding: 16px 18px 20px;
    gap: 14px;
}

.p-name {
    font-size: 14.5px;
    line-height: 1.6;
    color: #1f2328;
    min-height: calc(1.6em * 2);
}

.p-prices {
    padding-top: 12px;
    border-top: 1px dashed #eceef2;
    gap: 2px 10px;
}

.p-price {
    font-size: 19px;
    letter-spacing: -.01em;
}

@media (max-width: 767px) {
    .p-img {
        padding: 28px 10px 8px;
    }

    .p-body {
        padding: 12px 12px 14px;
        gap: 10px;
    }

    .p-name {
        font-size: 13px;
        line-height: 1.5;
        min-height: calc(1.5em * 2);
    }

    .p-prices {
        padding-top: 9px;
    }

    .p-price {
        font-size: 16px;
    }
}

/* ══════════════════════════════════════════
   SECTION HEADINGS — left on desktop; on phones the title sits centered
   on top and "View All" moves below the items
══════════════════════════════════════════ */
.feat-cat-section .tc-heading {
    padding-right: 140px;
}

.feat-cat-section .tc-heading h2,
.feat-cat-section .tc-heading .sub-blurb {
    text-align: left;
}

@media (max-width: 767px) {
    .feat-cat-section > .container,
    .featured-section {
        display: flex;
        flex-direction: column;
    }

    .feat-cat-section .tc-heading,
    .featured-section .tc-heading {
        display: contents;
    }

    .feat-cat-section .tc-heading h2,
    .featured-section .tc-heading h2 {
        order: 0;
        text-align: center;
        margin-bottom: 4px;
    }

    .feat-cat-section .tc-heading .sub-blurb,
    .featured-section .tc-heading p {
        order: 0;
        text-align: center;
        margin-bottom: 18px;
    }

    .feat-cat-section .cat-items-wrap,
    .featured-section .product-grid {
        order: 1;
        width: 100%;
    }

    .feat-cat-section .tc-view-all-btn,
    .featured-section .tc-view-all-btn {
        order: 2;
        position: static;
        transform: none;
        align-self: center;
        margin-top: 18px;
        padding: 10px 22px;
        font-size: 13px;
    }
}

/* Vue-only pages (product, category, checkout…): keep the footer below the fold
   while the page script loads, instead of jumping up under the header. */
#app:empty {
    min-height: 100vh;
}

/* Category nav: items grouped in the centre with an even, tighter gap
   (instead of being stretched edge to edge). */
.cat-nav-list {
    justify-content: center;
    gap: 6px;
}

.cat-nav-list > li > a {
    padding: 16px 12px;
}

.cat-nav-list > li > a::after {
    left: 12px;
    right: 12px;
}

@media (min-width: 992px) and (max-width: 1399px) {
    .cat-nav-list { gap: 2px; }
    .cat-nav-list > li > a { padding: 15px 8px; }
    .cat-nav-list > li > a::after { left: 8px; right: 8px; }
}

/* Page-loading bar (Inertia progress): above the fixed header, slightly thicker */
#nprogress .bar {
    z-index: 10001 !important;
    height: 3px !important;
}

/* Product sections line up exactly with .container content (1400px − 2 × 16px gutter) */
.featured-section {
    padding-left: 16px;
    padding-right: 16px;
}

.featured-section .tc-heading,
.featured-section .product-grid {
    max-width: 1368px;
}

/* ══════════════════════════════════════════
   Homepage side banners: two equal fixed boxes that are always exactly as tall
   as the main slider; the WHOLE uploaded image is shown, resized to the box
   (it may be squeezed a little if its shape differs — nothing is cut off).
══════════════════════════════════════════ */
.side-banners-col {
    position: relative;
    min-height: 0;
}

.side-banners-col .side-banner-col {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: auto;
}

.side-banners-col .side-banner-item {
    position: relative;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ebef;
}

.side-banners-col .side-banner-item a {
    position: absolute;
    inset: 0;
}

.side-banners-col .side-banner-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0;
}
