/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    padding: 0;
    margin: 20px auto 0;
    width: calc(100% - 40px);
    min-height: clamp(460px, 38vw, 760px);
    border-radius: 28px;
    background: #F9E9D2;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(253,243,228,.55) 0%, rgba(253,243,228,.15) 38%, rgba(253,243,228,0) 55%);
    z-index: 1;
    pointer-events: none;
}

.hero .container { width: 100%; }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
}

.hero-grid {
    width: min(42rem, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 30rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.hero-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========== SECTION STYLES (base; breakpoints are in responsive.css) ========== */
.section {
    padding: 72px 0;
}

/* =====================================================
   SHOP BY CATEGORY — photo-style cards (live inside .tb-carousel--cats)
   ===================================================== */
.category-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

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

.category-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-navy);
    border-bottom: 4px solid var(--primary);
}

/* tone variants so neighbouring cards feel like different photos */
.category-card--tone-1 .category-card-img { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); }
.category-card--tone-2 .category-card-img { background: linear-gradient(135deg, #FDBA74 0%, #F97316 100%); }
.category-card--tone-3 .category-card-img { background: linear-gradient(135deg, #334155 0%, #F97316 140%); }
.category-card--tone-4 .category-card-img { background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%); }

/* soft light blobs for a photographic feel */
.category-card-img--icon::before,
.category-card-img--icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.category-card-img--icon::before {
    width: 70%;
    aspect-ratio: 1;
    top: -25%;
    right: -15%;
}

.category-card-img--icon::after {
    width: 40%;
    aspect-ratio: 1;
    bottom: -18%;
    left: -8%;
}

/* categories without a photo show a big icon */
.category-card-img--icon i {
    position: relative;
    z-index: 1;
    font-size: clamp(2.4rem, 4vw, 4rem);
    color: var(--white);
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.35));
    transition: transform .3s ease;
}

.category-card--tone-4 .category-card-img--icon i {
    color: var(--secondary);
    filter: none;
}

.category-card:hover .category-card-img--icon i {
    transform: scale(1.12) rotate(-4deg);
}

.category-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-card-body {
    position: relative;
    padding: 30px 16px 16px;
}

.category-card-badge {
    position: absolute;
    top: -20px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.category-card:hover .category-card-badge {
    background: var(--gradient-primary);
}

.category-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 4px;
    line-height: 1.3;
}

.category-card small {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

/* ========== PRODUCTS GRID + PRODUCT CARD (base) ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.bestseller {
    background: #ff4757;
    color: white;
}

.product-badge.eco {
    background: var(--primary);
    color: white;
}

.product-badge.new {
    background: #3742fa;
    color: white;
}

.product-image {
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background: linear-gradient(145deg, #f5f5f5, #eaeaea);
    transition: background .25s ease;
}

.product-image-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

.product-card:hover .product-image-placeholder {
    background: linear-gradient(145deg, #F1F5F9, #F1F5F9);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist:hover {
    color: #ff4757;
}

.product-wishlist:focus-visible {
    opacity: 1;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price .save {
    font-size: 0.75rem;
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* =====================================================
   CAROUSEL (generic) — Shop by use, Best Sellers, every category row
   Items per screen come from --pv (set per breakpoint below);
   arrows hide themselves (.is-static) when everything already fits.
   ===================================================== */
.tb-carousel {
    --pv: 5;
    --gap: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tb-carousel--cats { --pv: 4.2; --gap: 20px; }

.tb-carousel-track {
    display: flex;
    gap: var(--gap);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.tb-carousel-track::-webkit-scrollbar { display: none; }

.tb-carousel-track > * {
    flex: 0 0 calc((100% - (var(--pv) - 1) * var(--gap)) / var(--pv));
    min-width: 0;
    scroll-snap-align: start;
}

.tb-carousel.is-static .tb-carousel-btn { display: none; }

.tb-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--border-light, #F1F5F9);
    background: #fff;
    color: var(--primary, #C2410C);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
    z-index: 2;
}

.tb-carousel-btn:hover {
    background: var(--primary, #C2410C);
    color: #fff;
    border-color: var(--primary, #C2410C);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .28);
}

.tb-carousel-btn:active { transform: translateY(0); }

.tb-carousel-btn:disabled {
    opacity: .35;
    pointer-events: none;
}

/* =====================================================
   SHOP BY CATEGORY — one product row per category
   ===================================================== */
.catshop-group + .catshop-group { margin-top: 56px; }

.catshop-group-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.catshop-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.catshop-group-title span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 99px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.catshop-block + .catshop-block { margin-top: 40px; }

.catshop-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.catshop-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .22);
}

.catshop-head-text {
    flex: 1;
    min-width: 0;
}

.catshop-head-text h3 {
    font-size: 1.35rem;
    letter-spacing: -.02em;
    margin-bottom: 2px;
}

.catshop-head-text p {
    margin: 0;
    color: var(--text-light);
    font-size: .92rem;
}

.catshop-head-link {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: .9rem;
}

/* last card of every row: "View All · N products" */
.view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    padding: 24px 12px;
    background: #fff;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    text-align: center;
    color: var(--primary-dark);
    transition: var(--transition);
}

.view-all-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.view-all-card strong {
    font-size: 1.05rem;
    color: var(--secondary);
}

.view-all-card small {
    font-size: .8rem;
    color: var(--text-light);
}

.view-all-card:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

.view-all-card:hover .view-all-circle {
    transform: translateX(4px);
    box-shadow: 0 8px 18px rgba(249, 115, 22, .3);
}

/* ========== CTA BANNER ========== */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F1F5F9 100%);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    display: grid;
    align-items: center;
    margin: 20px 0;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, .12);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.home-section--cta .container .cta-banner .cta-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
    z-index: 0;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.cta-banner-content h1 {
    font-weight: bolder;
}

.cta-banner-content > h1 > span {
    color: var(--primary-dark);
}

.cta-banner-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 600;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 247, 237, 0.7) 45%, rgba(255, 247, 237, 0) 80%);
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .32);
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #F1F5F9;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
    min-height: fit-content;
    gap: 20px;
}

.feature-card:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, .08);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   HOMEPAGE SECTION SYSTEM
   ===================================================== */
.home-section {
    position: relative;
}

.home-section--categories {
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.home-section--products {
    background: #fff;
}

.home-section--catshop {
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
}

.home-section--features {
    background: #F8FAFC;
}

.home-section--cta {
    background: #F8FAFC;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary);
}

.section-header--center {
    justify-content: center;
    text-align: center;
}

.section-heading {
    max-width: 650px;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -.035em;
    margin-bottom: 8px;
}

.section-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

.hero-section {
    overflow: hidden;
}

.trust-bar {
    background: #F8FAFC;
}

.hero-image-note {
    font-size: .85rem;
    opacity: .68;
}

/* =====================================================
   RESPONSIVE — max-width, largest to smallest
   1200 > 1050 > 1024 > 900 > 768 > 700 > 640 > 480 > 360
   ===================================================== */

@media (max-width: 1200px) {
    /* Carousels: 4 product cards / 4 category cards visible */
    .tb-carousel--cards { --pv: 4; }
    .tb-carousel--cats  { --pv: 4; }
}

@media (max-width: 1050px) {
    .hero .container {
        min-height: 490px;
    }

    .hero-grid {
        min-height: 490px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 2.55rem);
    }

    .hero-content > p:not(.home-eyebrow) {
        max-width: 430px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-features {
        max-width: 500px;
        gap: 9px;
        margin-top: 26px;
    }

    .hero-feature {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 0.82rem;
    }

    /* Category cards: 3.4 visible */
    .tb-carousel--cats { --pv: 3.4; }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .cta-banner--essentials .cta-banner-img {
        opacity: 0.2;
    }
}

@media (max-width: 1024px) {
    .cta-banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px 28px;
        min-height: 240px;
    }
}

@media (max-width: 900px) {
    /* Hero: text on top, banner artwork underneath */
    .hero {
        min-height: 560px;
        align-items: flex-start;
        padding: 36px 0 0;
    }

    .hero-bg-img {
        object-position: 72% bottom;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(253,243,228,.96) 0%, rgba(253,243,228,.85) 48%, rgba(253,243,228,0) 78%);
    }

    /* Carousels: 3 product cards / 2.8 category cards visible */
    .tb-carousel--cards { --pv: 3; }
    .tb-carousel--cats  { --pv: 2.8; }
}

@media (max-width: 768px) {
    /* CTA banner: text on top, picture underneath (no text-over-picture) */
    .cta-banner {
        display: block;
        padding: 28px 22px 0;
        min-height: 0;
        border-radius: 20px;
    }

    .cta-banner::before,
    .cta-banner::after {
        display: none;
    }

    .cta-banner-content {
        max-width: 100%;
    }

    .cta-banner-content h1 {
        font-size: clamp(1.55rem, 6.6vw, 2rem);
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .cta-banner-content p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .home-section--cta .container .cta-banner .cta-banner-img {
        position: relative;
        inset: auto;
        display: block;
        width: calc(100% + 44px);
        max-width: none;
        height: clamp(180px, 56vw, 300px);
        margin: 22px -22px 0;
        opacity: 1;
        object-fit: cover;
        object-position: 78% bottom;
    }
}

@media (max-width: 700px) {
    .hero .container {
        min-height: auto;
        display: block;
    }

    .hero-grid {
        max-width: 650px;
        min-height: auto;
        margin: 0 auto;
        display: block;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero-content .home-eyebrow {
        justify-content: center;
    }

    .hero-content h1 {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2rem, 6vw, 2.5rem);
        line-height: 1.18;
    }

    .hero-content > p:not(.home-eyebrow) {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-content .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        justify-content: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Carousels: 2 product cards / 2.2 category cards visible */
    .tb-carousel { gap: 8px; }
    .tb-carousel--cards { --pv: 2; --gap: 16px; }
    .tb-carousel--cats  { --pv: 2.2; --gap: 12px; }
    .tb-carousel-track { padding-bottom: 14px; }
    .tb-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .catshop-head { gap: 12px; }
    .catshop-icon { width: 44px; height: 44px; font-size: 1.05rem; border-radius: 12px; }
    .catshop-head-text h3 { font-size: 1.15rem; }
    .view-all-card { min-height: 220px; }
}

@media (max-width: 640px) {
    /* ---------- hero + ticker ---------- */
    .hero {
        width: calc(100% - 24px);
        margin-top: 12px;
        border-radius: 20px;
    }

    .ticker-bar {
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .home-eyebrow {
        margin-bottom: 6px;
        font-size: 0.66rem;
    }

    /* ---------- carousels on phones ----------
       - product rows (Best Sellers + every category row): exactly 2 cards
         per screen, a swipe / arrow moves 2 cards at a time
       - "Shop by Category": 4 categories per screen, a swipe moves to the next 4 */

    /* product cards: 2 per screen */
    .tb-carousel--cards {
        --pv: 2;
        --gap: 12px;
        gap: 0;
    }

    .tb-carousel--cards .tb-carousel-track {
        padding: 6px 2px 14px;
        scroll-snap-type: x mandatory;
    }

    /* snap only on every 2nd card so a swipe lands on a pair */
    .tb-carousel--cards .tb-carousel-track > * {
        scroll-snap-align: none;
    }

    .tb-carousel--cards .tb-carousel-track > *:nth-child(odd) {
        scroll-snap-align: start;
    }

    /* arrows stay, but small and floating over the edges (they take no width from the cards) */
    .tb-carousel--cards > .tb-carousel-btn,
    .tb-carousel--cats > .tb-carousel-btn {
        position: absolute;
        top: 42%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
        z-index: 3;
    }

    .tb-carousel--cards > .tb-prev,
    .tb-carousel--cats > .tb-prev { left: -6px; }

    .tb-carousel--cards > .tb-next,
    .tb-carousel--cats > .tb-next { right: -6px; }

    /* compact card text inside the 2-card carousels */
    .tb-carousel--cards .product-info { padding: 10px; }
    .tb-carousel--cards .product-info h3 { font-size: 0.85rem; }
    .tb-carousel--cards .product-price { margin-bottom: 8px; }
    .tb-carousel--cards .product-price .current { font-size: 1rem; }
    .tb-carousel--cards .product-actions .btn { padding: 8px 6px; font-size: 0.78rem; }

    /* categories: 4 per screen in ONE row (compact tiles) */
    .tb-carousel--cats {
        --pv: 4;
        --gap: 8px;
        gap: 0;
    }

    .tb-carousel--cats .tb-carousel-track {
        padding: 6px 2px 12px;
        scroll-snap-type: x mandatory;
    }

    .tb-carousel--cats .tb-carousel-track > * {
        scroll-snap-align: none;
    }

    /* every 4th tile starts a new screen, so a swipe moves 4 at a time */
    .tb-carousel--cats .tb-carousel-track > *:nth-child(4n + 1) {
        scroll-snap-align: start;
    }

    /* compact tile: square picture + centred name */
    .tb-carousel--cats .category-card {
        border-radius: 12px;
        text-align: center;
    }

    .tb-carousel--cats .category-card:hover {
        transform: none;
    }

    .tb-carousel--cats .category-card-img {
        aspect-ratio: 1 / 1;
        border-bottom-width: 2px;
    }

    .tb-carousel--cats .category-card-img--icon i {
        font-size: 1.5rem;
    }

    .tb-carousel--cats .category-card-img--icon::before,
    .tb-carousel--cats .category-card-img--icon::after {
        display: none;
    }

    .tb-carousel--cats .category-card-badge,
    .tb-carousel--cats .category-card small {
        display: none;
    }

    .tb-carousel--cats .category-card-body {
        padding: 8px 4px 9px;
    }

    .tb-carousel--cats .category-card h4 {
        margin: 0;
        font-size: 0.68rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.5em;
        overflow-wrap: normal;
    }

    /* ---------- "Explore every category" rows ---------- */
    .catshop-group + .catshop-group { margin-top: 24px; }
    .catshop-block + .catshop-block { margin-top: 20px; }
    .catshop-head { gap: 10px; margin-bottom: 10px; }
    .catshop-head-text h3 { font-size: 1.05rem; }
    .catshop-head-text p { font-size: 0.8rem; }

    /* ---------- feature cards ---------- */
    .feature-card { display: flex; flex-direction: column; text-align: center; gap: 10px; padding: 16px; }

    /* ---------- CTA banner ---------- */
    .cta-banner { padding: 28px 16px 0; }

    .home-section--cta .container .cta-banner .cta-banner-img {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
    }
}

@media (max-width: 480px) {
    .catshop-head-link { display: none; }

    .hero-grid {
        max-width: 100%;
    }

    .hero-content .home-eyebrow {
        gap: 6px;
        margin-bottom: 9px;
        font-size: 0.62rem;
        letter-spacing: 0.10em;
    }

    .hero-content .home-eyebrow::before {
        width: 16px;
    }

    .hero-content h1 {
        max-width: 360px;
        margin: 0 auto 14px;
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: -0.04em;
    }

    .hero-content > p:not(.home-eyebrow) {
        max-width: 350px;
        margin: 0 auto 22px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 250px;
        min-height: 46px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
        margin-top: 24px;
    }

    .hero-feature {
        width: 100%;
        min-height: 48px;
        padding: 8px 7px;
        border-radius: 12px;
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .hero-feature i {
        font-size: 0.9rem;
    }

    .ticker-item {
        font-size: 0.68rem;
        letter-spacing: 0.10em;
    }

    .cta-banner { padding-top: 24px; }

    .home-section--cta .container .cta-banner .cta-banner-img {
        margin-top: 18px;
    }

    .cta-banner-content .btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .hero-content .home-eyebrow {
        font-size: 0.58rem;
    }

    .hero-content h1 {
        max-width: 320px;
        font-size: 1.72rem;
    }

    .hero-content > p:not(.home-eyebrow) {
        max-width: 310px;
        font-size: 0.84rem;
    }

    .hero-content .btn {
        max-width: 220px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hero-feature {
        min-height: 40px;
        border-radius: 10px;
        font-size: 0.72rem;
    }
}

/* =====================================================
   EXTRA-LARGE SCREENS — min-width, smallest to largest.
   The container and root font size already grow (core.css); show more
   items per row so cards keep a comfortable size.
   ===================================================== */
@media (min-width: 1700px) {
    .tb-carousel--cards { --pv: 6; }
    .tb-carousel--cats  { --pv: 5; }
}

@media (min-width: 2200px) {
    .tb-carousel--cards { --pv: 7; }
    .tb-carousel--cats  { --pv: 5.5; }
}

@media (min-width: 3000px) {
    .tb-carousel--cards { --pv: 9; }
    .tb-carousel--cats  { --pv: 6.5; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }

    .tb-carousel-track { scroll-behavior: auto; }
}