﻿
:root {
    --text: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-2: #06b6d4;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 16px;
    --radius-md: 12px;
    --deal: #0ea5e9;
    --rollback: #e11d48;
    --price-green: #16a34a;
    --gap: .75rem;
    --search-btn: #a40f6a;
    --search-btn-hover: #8a0d59;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: var(--text);
  /*  background: #eeeeee;*/
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit
}

img {
    display: block;
    max-width: 100%
}


/* Link lists */
.m-list a {
    display: block;
    padding: .45rem .5rem;
    border-radius: 10px;
    font-weight: 800;
    color: #111827;
}

    .m-list a:hover {
        background: rgba(0,0,0,.06);
    }

/* Medical variation: “service cards” */
.service-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.45);
    overflow: hidden;
    display: flex;
    gap: .75rem;
    padding: .75rem;
    align-items: center;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15,23,42,.14);
        border-color: rgba(37,99,235,.35);
    }

.svc-ico {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.12);
    font-weight: 950;
}

.svc-copy b {
    font-weight: 950;
}

.svc-copy span {
    display: block;
    font-size: .82rem;
    color: rgba(17,24,39,.72);
    margin-top: .15rem;
    line-height: 1.3;
}

.svc-img {
    margin-left: auto;
    width: 88px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.10);
    background: #e5e7eb;
    flex: 0 0 auto;
}

    .svc-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===== Main ===== */
main {
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1.25rem;
}

.section {
    margin-top: 1rem;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: .9rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
}

.section-title {
    font-size: .9rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #374151;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.section-sub {
    font-size: .82rem;
    color: #9ca3af
}

/* ===== Hero (full-bleed) ===== */
.hero-wrap {
    position: relative;
    /* FIX: remove unwanted gap between catbar and hero */
    margin-top: 0; /* changed from .85rem */

    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226,232,240,.9);
    border-left: none;
    border-right: none;
    background: #0b1220;
    border-radius: 0;
}

.hero-slider {
    position: relative;
    height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 360ms ease, transform 500ms ease;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
}

    .hero-slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
    }

.hero-left {
    padding: 2.4rem 0;
    display: flex;
  /*  margin-left: 10%;*/
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
    position: relative;
    z-index: 2;
    color: #e5e7eb;
}

    .hero-left > * {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }

.hero-kicker {
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
    color: rgba(255,255,255,.86);
}

.hero-left h2 {
    font-size: 3.05rem;
    line-height: 1.02;
    letter-spacing: -.03em;
    font-weight: 950;
    color: #ffffff;
    max-width: 21ch;
}

.hero-left p {
    max-width: 62ch;
    font-size: .98rem;
    color: rgba(255,255,255,.88);
    line-height: 1.45;
}

.hero-cta-row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: .2rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .55rem 1.05rem;
    font-weight: 950;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    color: #fff;
    transition: transform 80ms ease, background 120ms ease;
}

    .hero-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.16);
    }

    .hero-btn.primary {
        background: #fbbf24;
        border-color: transparent;
        color: #111827;
    }

        .hero-btn.primary:hover {
            background: #f59e0b;
        }

.hero-right {
    position: relative;
    overflow: hidden;
    min-height: 440px;
}

    .hero-right::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(2,6,23,.55), rgba(2,6,23,.08) 40%, rgba(2,6,23,.0));
        pointer-events: none;
    }

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.03);
}

.hero-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 18px 40px rgba(15,23,42,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    backdrop-filter: blur(8px);
}

    .hero-arrow:hover {
        background: rgba(255,255,255,.22);
    }

    .hero-arrow.left {
        left: 14px;
    }

    .hero-arrow.right {
        right: 14px;
    }

.hero-dots {
    position: absolute;
    left: 18px;
    bottom: 14px;
    display: flex;
    gap: .4rem;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.22);
}

    .hero-dot.active {
        background: rgba(255,255,255,.92);
    }

/* ===== Top Shelf Cards ===== */
.top-shelf {
    margin-top: -88px;
    position: relative;
    z-index: 5;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    align-items: stretch;
}

.shelf-card {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
    padding: .95rem;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.shelf-title {
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: -.01em;
    line-height: 1.15;
    margin-bottom: .8rem;
    color: #0f172a;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .1rem;
}

.mini-item {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}

.mini-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid rgba(226,232,240,.95);
    background: #f8fafc;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
}

    .mini-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.single-row-carousel
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    min-width: 150px;
    min-height: 150px;
    border: 1px solid rgba(226,232,240,.95);
    background: #f8fafc;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
    object-fit: contain;
}

.mini-cap {
    font-size: .82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
    padding: .25rem .1rem 0;
}

.mini-price {
    margin-top: .15rem;
    font-weight: 950;
    font-size: .95rem;
    line-height: 1.1;
    color: var(--price-green, #16a34a);
    padding: 0 .1rem .25rem;
}

.shelf-link {
    margin-top: auto;
    padding-top: .9rem;
    font-weight: 950;
    font-size: .85rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .shelf-link:hover {
        color: #1d4ed8;
    }

.promo-card {
    background: radial-gradient(circle at 0% 0%, rgba(37,99,235,.18), transparent 55%), radial-gradient(circle at 100% 0%, rgba(6,182,212,.18), transparent 45%), linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    position: relative;
    overflow: hidden;
}

.promo-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.promo-copy p {
    margin-top: .5rem;
    color: #475569;
    font-size: .92rem;
    line-height: 1.35;
    max-width: 22rem;
}

.promo-cta {
    margin-top: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 950;
    color: var(--accent);
    font-size: .9rem;
}

    .promo-cta:hover {
        color: #1d4ed8;
    }

.promo-art {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    border: 1px solid rgba(226,232,240,.85);
    background: #eef2ff;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(15,23,42,.10);
    flex: 0 0 auto;
}

    .promo-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.promo-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .22rem .55rem;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(15,23,42,.06);
    border: 1px solid rgba(148,163,184,.35);
}

/* ===== Category Launchpad ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .75rem;
}

.tile {
    border-radius: var(--radius-md);
    border: 1px solid rgba(226,232,240,.95);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.95));
    padding: .8rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    min-height: 130px;
}

    .tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px rgba(15,23,42,.14);
        border-color: rgba(37,99,235,.35);
    }

    .tile .icon {
        width: 36px;
        height: 36px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(37,99,235,.10);
        color: var(--accent);
        font-size: 1rem;
        font-weight: 900;
    }

    .tile h3 {
        font-size: .95rem;
        font-weight: 950
    }

    .tile p {
        font-size: .82rem;
        color: #6b7280;
        line-height: 1.4
    }

    .tile .link {
        margin-top: auto;
        font-size: .82rem;
        font-weight: 950;
        color: var(--accent);
        display: inline-flex;
        align-items: center;
        gap: .25rem;
    }

/* ===== Single row carousel styling moved to the section view ===== */


/* ===== Horizontal scroll cards ===== */
.h-scroll {
    display: flex;
    gap: .15rem;
    overflow-x: auto;
    padding-bottom: .1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.7) transparent;
}

    .h-scroll::-webkit-scrollbar {
        height: 6px
    }

    .h-scroll::-webkit-scrollbar-thumb {
        background: rgba(148,163,184,.7);
        border-radius: 999px
    }

.card {
    min-width: 230px;
    max-width: 260px;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226,232,240,.95);
    background: #fff;
    padding: .65rem;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 34px rgba(15,23,42,.14);
        border-color: rgba(37,99,235,.35)
    }

.img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: .75rem;
    background: #eef2ff;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226,232,240,.95);
}

    .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.chip {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: .65rem;
    font-weight: 950;
    letter-spacing: .08em;
    padding: .14rem .45rem;
    border-radius: 999px;
    background: rgba(15,23,42,.75);
    color: #e5e7eb;
    text-transform: uppercase;
}

.card h4 {
    font-size: .9rem;
    font-weight: 950;
    min-height: 2.2em
}

.meta {
    font-size: .78rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    gap: .4rem
}

.price {
    font-weight: 950;
    color: #111827
}

.rating {
    color: #f59e0b;
    font-weight: 950
}

.mini {
    margin-top: .15rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 950;
    padding: .4rem .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

    .mini:hover {
        background: #1d4ed8
    }

/* ===== Carousels ===== */
.carousel-shell {
    --visible: 2;
    --gap: .75rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    gap: var(--gap);
    width: 100%;
    transition: transform 280ms ease;
    will-change: transform;
}

.carousel-panel {
    flex: 0 0 calc((100% - (var(--gap) * (var(--visible) - 1))) / var(--visible));
    min-width: 0;
}

.carousel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .6rem;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

    .carousel-btn:hover {
        border-color: rgba(37, 99, 235, 0.35);
    }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin-top: .6rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
    transition: transform 120ms ease, background 120ms ease;
}

    .dot.active {
        background: rgba(37, 99, 235, 0.85);
        transform: scale(1.15);
    }

.shop-panel {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    padding: .75rem;
    height: 100%;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
}

    .panel-head h3 {
        font-size: 1.02rem;
        font-weight: 950;
        line-height: 1.15;
        color: #111827;
    }

    .panel-head .view-all {
        font-size: .8rem;
        font-weight: 950;
        color: #111827;
        text-decoration: underline;
        text-underline-offset: 3px;
        opacity: .85;
        white-space: nowrap;
    }

        .panel-head .view-all:hover {
            opacity: 1
        }

.slide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}


.pill {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: .18rem .48rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .08em;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(15,23,42,.12);
}

    .pill.deal {
        background: var(--deal);
    }

    .pill.rollback {
        background: var(--rollback);
    }

.wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148,163,184,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(15,23,42,.10);
    transition: transform 80ms ease, border-color 120ms ease;
    user-select: none;
}

    .wish:hover {
        transform: translateY(-1px);
        border-color: rgba(37,99,235,.35);
    }

    .wish[data-liked="true"] {
        color: var(--rollback);
    }

.prod-tile {
    border-radius: var(--radius-md, 12px);
    border: 1px solid rgba(226,232,240,.95);
    background: #fff;
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

    .prod-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(15,23,42,.12);
    }

.product-card-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.prod-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

    .prod-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.prod-body {
    padding: .55rem .6rem .65rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-height: 86px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}

.now {
    font-weight: 950;
    color: var(--price-green);
    font-size: .98rem;
    white-space: nowrap;
}

.old {
    font-size: .78rem;
    color: #9ca3af;
    text-decoration: line-through;
    white-space: nowrap;
}

.prod-title {
    font-size: .82rem;
    font-weight: 950;
    color: #111827;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

/* ===== Feature Grid ===== */
.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    padding: .95rem;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

    .feature-card h3 {
        font-size: 1.12rem;
        font-weight: 950;
        letter-spacing: -.01em;
        line-height: 1.15;
        margin-bottom: .75rem;
    }

.feature-big {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226,232,240,.95);
    background: #eef2ff;
    aspect-ratio: 4/3;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
}

    .feature-big img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.feature-mini {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226,232,240,.95);
    background: #eef2ff;
    aspect-ratio: 4/3;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
}

    .feature-mini img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.caption {
    margin-top: .35rem;
    font-size: .85rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-link {
    margin-top: auto;
    padding-top: .9rem;
    font-weight: 950;
    font-size: .9rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .feature-link:hover {
        color: #1d4ed8;
    }

/* ===== Footer ===== */
footer {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(209,213,219,.8);
    background: rgba(248,250,252,.95);
    padding: .9rem 1.25rem 1.2rem;
    font-size: .78rem;
    color: #6b7280;
}

.footer-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

/* ===== Modal ===== */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.modal {
    width: min(420px, calc(100% - 24px));
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 28px 72px rgba(15,23,42,.35);
    padding: 1rem;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem
}

.modal h5 {
    font-size: .95rem;
    font-weight: 950
}

.modal p {
    font-size: .82rem;
    color: #6b7280;
    margin-top: .2rem
}

.x {
    font-size: 1rem;
    color: #9ca3af
}

.field {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .3rem
}

    .field label {
        font-size: .78rem;
        color: #6b7280
    }

    .field input {
        border-radius: .75rem;
        border: 1px solid #d1d5db;
        background: #f9fafb;
        padding: .55rem .65rem;
        font-size: .9rem;
        outline: none;
    }

        .field input:focus {
            border-color: var(--accent);
            background: #fff;
            box-shadow: 0 0 0 1px rgba(37,99,235,.25)
        }

.modal-actions {
    margin-top: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap
}

.link-btn {
    font-size: .85rem;
    color: var(--accent);
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    gap: .3rem
}

.btn-sm {
    border-radius: 999px;
    padding: .48rem .92rem;
    font-size: .85rem;
    font-weight: 950;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
}

    .btn-sm.secondary {
        background: #f9fafb;
        color: #111827;
        border-color: #d1d5db
    }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .shelf-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .cards-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .top-shelf {
        margin-top: -52px;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-right {
        min-height: 400px;
    }

    .hero-left h2 {
        font-size: 2.55rem;
    }

    .mega-grid-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        row-gap: .5rem;
        background-color: #fff;
    }

    .search-wrap {
        grid-column: 1/-1;
        order: 3
    }

    main {
        padding: 0 .75rem
    }

    .header-inner {
        padding: .6rem .75rem; 
        background-color:#fff;
    }

    .catbar-inner {
        padding: .45rem .75rem
    }

    .grid-4 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 2rem 0;
    }

        .hero-left > * {
            margin-left: .75rem;
            margin-right: .75rem;
        }

        .hero-left h2 {
            font-size: 2.2rem;
        }

    .hero-slider {
        height: 360px;
    }

    .carousel-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-controls {
        align-self: flex-end;
    }

    .mega-inner {
        padding: .75rem .75rem 1rem;
    }

    .mega-grid-3 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mega-grid-2-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .carousel-shell {
        --visible: 1 !important;
    }
}

@media (max-width: 620px) {
    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .cards-4 {
        grid-template-columns: 1fr;
    }

    .top-shelf {
        margin-top: -38px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .mega-grid-4, .mega-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .slide-grid {
        grid-template-columns: 1fr;
    }

    .hero-arrow {
        display: none;
    }

    .hero-left h2 {
        font-size: 2.0rem;
    }

    .search-amz button {
        width: 60px;
    }

    .search-select {
        padding: 0 .45rem;
    }
}
