/**
 * Kod Pendule — homepage (Frontend Phase 3)
 */

.shop-home {
    --shop-home-section-y: var(--shop-space-8);
}

@media (min-width: 992px) {
    .shop-home {
        --shop-home-section-y: var(--shop-space-10);
    }
}

/* —— Shared section layout —— */
.shop-section {
    padding-block: var(--shop-home-section-y);
}

.shop-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--shop-space-4);
    margin-bottom: var(--shop-space-6);
}

.shop-section__header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
    margin-bottom: var(--shop-space-8);
}

.shop-section__title {
    font-size: var(--shop-font-size-xl);
    font-weight: var(--shop-font-weight-bold);
    margin-bottom: var(--shop-space-2);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .shop-section__title {
        font-size: var(--shop-font-size-2xl);
    }
}

.shop-section__subtitle {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    max-width: 32rem;
    line-height: var(--shop-line-height-relaxed);
}

/* —— Hero —— */
.shop-hero {
    background: linear-gradient(165deg, var(--shop-color-primary-soft) 0%, var(--shop-color-bg) 55%);
    border-bottom: 1px solid var(--shop-color-primary-muted);
    padding-block: var(--shop-space-5);
}

@media (min-width: 992px) {
    .shop-hero {
        padding-block: var(--shop-space-6);
    }
}

.shop-hero__inner {
    display: grid;
    gap: var(--shop-space-6);
    align-items: center;
}

@media (min-width: 992px) {
    .shop-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--shop-space-10);
    }
}

.shop-hero__eyebrow {
    font-size: var(--shop-font-size-xs);
    font-weight: var(--shop-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--shop-color-primary);
    margin-bottom: var(--shop-space-2);
}

.shop-hero__title {
    font-size: var(--shop-font-size-2xl);
    margin-bottom: var(--shop-space-3);
    max-width: 16ch;
}

@media (min-width: 768px) {
    .shop-hero__title {
        font-size: var(--shop-font-size-3xl);
    }
}

.shop-hero__lead {
    font-size: var(--shop-font-size-md);
    color: var(--shop-color-text-muted);
    line-height: var(--shop-line-height-relaxed);
    margin-bottom: var(--shop-space-5);
    max-width: 38ch;
}

.shop-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-3);
    margin-bottom: var(--shop-space-5);
}

.shop-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-2) var(--shop-space-4);
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-quiet);
}

.shop-hero__meta a {
    color: var(--shop-color-primary);
    text-decoration: none;
    font-weight: var(--shop-font-weight-medium);
}

.shop-hero__meta a:hover {
    text-decoration: underline;
}

.shop-hero__media-link {
    display: block;
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
}

.shop-hero__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-color-border-subtle);
    box-shadow: var(--shop-shadow-md);
}

.shop-hero__media {
    min-width: 0;
}

.shop-hero__placeholder {
    aspect-ratio: 4 / 3;
    border-radius: var(--shop-radius-lg);
    background: var(--shop-color-surface);
    border: 1px solid var(--shop-color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* If a hero image is used later, never let it blow up the layout */
.shop-hero__logo {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 220px;
    margin-inline: auto;
    object-fit: contain;
}

.shop-hero__mark {
    width: 4rem;
    height: 4rem;
    border-radius: var(--shop-radius-full);
    background: var(--shop-color-primary);
    opacity: 0.15;
}

/* Extra CMS banners — horizontal scroll, no carousel */
.shop-hero-banners {
    padding-block: var(--shop-space-4) var(--shop-space-6);
    border-bottom: 1px solid var(--shop-color-border-subtle);
    background: var(--shop-color-surface);
}

.shop-hero-banners__scroll {
    display: flex;
    gap: var(--shop-space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--shop-space-1);
    scrollbar-width: thin;
}

.shop-hero-banner-card {
    flex: 0 0 min(85%, 18rem);
    scroll-snap-align: start;
    border: 1px solid var(--shop-color-border-subtle);
    border-radius: var(--shop-radius-md);
    overflow: hidden;
    background: var(--shop-color-bg);
}

.shop-hero-banner-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-hero-banner-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.shop-hero-banner-card__body {
    padding: var(--shop-space-3) var(--shop-space-4);
}

.shop-hero-banner-card__title {
    font-size: var(--shop-font-size-sm);
    font-weight: var(--shop-font-weight-semibold);
    margin-bottom: var(--shop-space-1);
}

.shop-hero-banner-card__text {
    font-size: var(--shop-font-size-xs);
    color: var(--shop-color-text-muted);
    margin-bottom: 0;
}

/* Trust strip: see footer.css (Phase 7) */

/* —— Category tiles —— */
.shop-categories-home__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--shop-space-3);
}

@media (min-width: 576px) {
    .shop-categories-home__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .shop-categories-home__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--shop-space-4);
    }
}

.shop-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--shop-space-2);
    padding: var(--shop-space-3);
    text-decoration: none;
    color: var(--shop-color-text);
    background: var(--shop-color-surface);
    border: 1px solid var(--shop-color-border-subtle);
    border-radius: var(--shop-radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: var(--shop-touch-target);
}

.shop-category-tile:hover {
    border-color: var(--shop-color-primary-muted);
    box-shadow: var(--shop-shadow-sm);
    color: var(--shop-color-primary-active);
}

.shop-category-tile__img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--shop-radius-full);
    border: 1px solid var(--shop-color-border-subtle);
}

.shop-category-tile__img--placeholder {
    display: block;
    background: var(--shop-color-primary-soft);
}

.shop-category-tile__name {
    font-size: var(--shop-font-size-sm);
    font-weight: var(--shop-font-weight-semibold);
    text-align: center;
    line-height: 1.3;
}

/* —— Product sections on home —— */
.shop-products-section {
    background: var(--shop-color-bg);
}

.shop-products-section:nth-of-type(even) {
    background: var(--shop-color-surface);
}

/* —— Promo cards —— */
.shop-promo-card {
    border: 1px solid var(--shop-color-border-subtle);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    background: var(--shop-color-surface);
    transition: box-shadow 0.15s ease;
}

.shop-promo-card:hover {
    box-shadow: var(--shop-shadow-sm);
}

.shop-promo-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.shop-promo-card__img {
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .shop-promo-card__img {
        max-height: 14rem;
    }
}

.shop-promo-card__body {
    padding: var(--shop-space-5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-promo-card__title {
    font-size: var(--shop-font-size-lg);
    font-weight: var(--shop-font-weight-semibold);
    margin-bottom: var(--shop-space-2);
}

.shop-promo-card__text {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    margin-bottom: var(--shop-space-3);
    flex-grow: 1;
}

.shop-promo-card__cta {
    font-size: var(--shop-font-size-sm);
    font-weight: var(--shop-font-weight-semibold);
    color: var(--shop-color-primary);
}

/* —— Trust details —— */
.shop-trust-details {
    background: var(--shop-color-surface-subtle);
    border-block: 1px solid var(--shop-color-border-subtle);
}

.shop-trust-card {
    height: 100%;
    padding: var(--shop-space-5);
    background: var(--shop-color-surface);
    border: 1px solid var(--shop-color-border-subtle);
    border-radius: var(--shop-radius-md);
}

.shop-trust-card__title {
    font-size: var(--shop-font-size-base);
    font-weight: var(--shop-font-weight-semibold);
    margin-bottom: var(--shop-space-2);
    color: var(--shop-color-primary-active);
}

.shop-trust-card__text {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    line-height: var(--shop-line-height-relaxed);
    margin-bottom: 0;
}

.shop-trust-details__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--shop-space-3);
    margin-top: var(--shop-space-8);
}

/* —— CTA band —— */
.shop-cta-band {
    background: var(--shop-color-primary);
    color: var(--shop-color-on-primary);
    padding-block: var(--shop-space-8);
}

.shop-cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--shop-space-5);
}

@media (min-width: 768px) {
    .shop-cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.shop-cta-band__title {
    font-size: var(--shop-font-size-xl);
    font-weight: var(--shop-font-weight-bold);
    margin-bottom: var(--shop-space-2);
    color: inherit;
}

.shop-cta-band__text {
    font-size: var(--shop-font-size-sm);
    opacity: 0.9;
    max-width: 28rem;
}

.shop-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-3);
    width: 100%;
}

@media (min-width: 768px) {
    .shop-cta-band__actions {
        width: auto;
        flex-shrink: 0;
    }
}

.shop-cta-band .shop-btn--primary {
    background: var(--shop-color-surface);
    border-color: var(--shop-color-surface);
    color: var(--shop-color-primary-active);
}

.shop-cta-band .shop-btn--primary:hover {
    background: var(--shop-color-primary-soft);
    border-color: var(--shop-color-primary-soft);
    color: var(--shop-color-primary-active);
}

.shop-cta-band .shop-btn--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--shop-color-on-primary);
}

.shop-cta-band .shop-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--shop-color-on-primary);
    color: var(--shop-color-on-primary);
}

/* —— Admin empty hint —— */
.shop-home-empty {
    padding-block: var(--shop-space-6);
}

.shop-home-empty__inner {
    text-align: center;
    padding: var(--shop-space-6);
    background: var(--shop-color-surface);
    border: 1px dashed var(--shop-color-border);
    border-radius: var(--shop-radius-md);
}

.shop-home-empty__text {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    margin-bottom: 0;
}

/* —— Scroll reveal motion —— */
.shop-reveal,
.shop-reveal-child,
.shop-reveal-stagger > .shop-reveal-child,
.shop-reveal-stagger .shop-product-grid__item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.shop-reveal--delay-2 {
    transition-delay: 0.12s;
}

.shop-reveal.is-revealed,
.shop-reveal-stagger.is-revealed > .shop-reveal-child,
.shop-reveal-stagger.is-revealed .shop-reveal-child,
.shop-reveal-stagger.is-revealed .shop-product-grid__item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(1),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(1) {
    transition-delay: 0.04s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(2),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(2) {
    transition-delay: 0.08s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(3),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(3) {
    transition-delay: 0.12s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(4),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(4) {
    transition-delay: 0.16s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(5),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(5) {
    transition-delay: 0.2s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(6),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(6) {
    transition-delay: 0.24s;
}

.shop-reveal-stagger.is-revealed .shop-reveal-child:nth-child(n + 7),
.shop-reveal-stagger.is-revealed .shop-product-grid__item:nth-child(n + 7) {
    transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
    .shop-reveal,
    .shop-reveal-child,
    .shop-reveal-stagger .shop-product-grid__item,
    .shop-hero__orb,
    .shop-hero__card--float {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* —— Section eyebrow —— */
.shop-section__eyebrow {
    font-size: var(--shop-font-size-xs);
    font-weight: var(--shop-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--shop-color-primary);
    margin-bottom: var(--shop-space-2);
}

.shop-section__eyebrow--sale {
    color: var(--shop-color-sale);
}

/* —— Rich hero —— */
.shop-hero--rich {
    position: relative;
    overflow: hidden;
    padding-block: var(--shop-space-5);
    background: linear-gradient(
        155deg,
        var(--shop-color-primary-muted) 0%,
        var(--shop-color-primary-soft) 22%,
        #dce8e3 48%,
        var(--shop-color-primary-soft) 72%,
        var(--shop-color-bg) 100%
    );
}

.shop-hero--rich::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 70% at 8% 20%,
        rgba(11, 53, 40, 0.22),
        transparent 62%
    );
    pointer-events: none;
}

@media (min-width: 992px) {
    .shop-hero--rich {
        padding-block: var(--shop-space-6);
        min-height: unset;
    }
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shop-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: shop-hero-float 14s ease-in-out infinite;
}

.shop-hero__orb--1 {
    width: 18rem;
    height: 18rem;
    background: var(--shop-color-primary);
    opacity: 0.28;
    top: -5rem;
    right: 8%;
}

.shop-hero__orb--2 {
    width: 16rem;
    height: 16rem;
    background: var(--shop-color-accent);
    opacity: 0.2;
    bottom: -4rem;
    left: -2rem;
    animation-delay: -4s;
}

.shop-hero__orb--3 {
    width: 10rem;
    height: 10rem;
    background: var(--shop-color-primary-active);
    opacity: 0.24;
    top: 40%;
    left: 35%;
    animation-delay: -7s;
}

.shop-hero__cta {
    min-width: min(100%, 14rem);
}

#home-categories {
    scroll-margin-top: var(--shop-space-4);
}

@keyframes shop-hero-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.05);
    }
}

.shop-hero--rich .shop-hero__inner {
    position: relative;
    z-index: 1;
}

.shop-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-4) var(--shop-space-6);
    margin: var(--shop-space-6) 0 0;
    padding: 0;
}

.shop-hero__stat {
    margin: 0;
}

.shop-hero__stat-value {
    font-size: var(--shop-font-size-xl);
    font-weight: var(--shop-font-weight-bold);
    color: var(--shop-color-primary-active);
    line-height: 1.1;
    margin-bottom: var(--shop-space-1);
}

.shop-hero__stat-label {
    font-size: var(--shop-font-size-xs);
    color: var(--shop-color-text-muted);
    margin: 0;
}

.shop-hero__visual {
    position: relative;
    min-height: 14rem;
    max-width: 22rem;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .shop-hero__visual {
        min-height: 16rem;
        max-width: none;
        margin-inline: 0;
    }
}

.shop-hero__card {
    border-radius: var(--shop-radius-lg);
    border: 1px solid rgba(11, 53, 40, 0.12);
    background: var(--shop-color-surface);
    box-shadow: var(--shop-shadow-md);
}

.shop-hero__card--back {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(
        165deg,
        var(--shop-color-primary-soft) 0%,
        var(--shop-color-surface) 100%
    );
}

.shop-hero__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-hero__card-logo {
    display: block;
    width: 52%;
    margin: auto;
    padding-block: 22%;
    object-fit: contain;
}

.shop-hero__card--float {
    position: absolute;
    padding: var(--shop-space-3) var(--shop-space-4);
    font-size: var(--shop-font-size-sm);
    max-width: 11rem;
    animation: shop-hero-card-float 6s ease-in-out infinite;
}

.shop-hero__card--accent {
    top: 8%;
    right: -4%;
    background: var(--shop-color-primary);
    color: var(--shop-color-on-primary);
    border-color: transparent;
    animation-delay: -1.5s;
}

.shop-hero__card--trust {
    bottom: 6%;
    left: -6%;
    animation-delay: -3s;
}

.shop-hero__card--trust span {
    font-size: var(--shop-font-size-xs);
    color: var(--shop-color-text-muted);
    font-weight: var(--shop-font-weight-normal);
}

.shop-hero__chip {
    display: inline-block;
    font-size: var(--shop-font-size-xs);
    font-weight: var(--shop-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--shop-space-1);
    opacity: 0.9;
}

.shop-hero__chip-text {
    font-size: var(--shop-font-size-sm);
    line-height: 1.35;
}

.shop-hero__mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--shop-radius-full);
    background: var(--shop-color-primary-soft);
    color: var(--shop-color-primary);
    font-size: 0.75rem;
    margin-bottom: var(--shop-space-2);
}

@keyframes shop-hero-card-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.shop-home-trust {
    border-bottom: 1px solid var(--shop-color-border-subtle);
}

.shop-trust-strip--home {
    background: var(--shop-color-surface);
}

/* —— Editorial split —— */
.shop-home-editorial {
    background: var(--shop-color-surface);
    border-block: 1px solid var(--shop-color-border-subtle);
}

.shop-home-editorial__grid {
    display: grid;
    gap: var(--shop-space-8);
    align-items: center;
}

@media (min-width: 992px) {
    .shop-home-editorial__grid {
        grid-template-columns: 1fr 1.05fr;
        gap: var(--shop-space-10);
    }
}

.shop-home-editorial__text {
    font-size: var(--shop-font-size-md);
    color: var(--shop-color-text-muted);
    line-height: var(--shop-line-height-relaxed);
    margin-bottom: var(--shop-space-5);
    max-width: 36ch;
}

.shop-home-editorial__list {
    margin: 0 0 var(--shop-space-6);
    padding-left: 1.2rem;
    color: var(--shop-color-text);
    font-size: var(--shop-font-size-sm);
}

.shop-home-editorial__list li + li {
    margin-top: var(--shop-space-2);
}

.shop-home-editorial__frame {
    display: block;
    position: relative;
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shop-shadow-md);
    border: 1px solid var(--shop-color-border-subtle);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shop-home-editorial__frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg, var(--shop-shadow-md));
}

.shop-home-editorial__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.shop-home-editorial__frame--brand {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--shop-color-primary-soft), var(--shop-color-bg));
}

.shop-home-editorial__logo {
    width: min(55%, 14rem);
    object-fit: contain;
}

.shop-home-editorial__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: var(--shop-space-5);
    background: linear-gradient(transparent, rgba(6, 31, 24, 0.88));
    color: var(--shop-color-on-primary);
    display: flex;
    flex-direction: column;
    gap: var(--shop-space-1);
}

.shop-home-editorial__caption-label {
    font-size: var(--shop-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.shop-home-editorial__caption-title {
    font-size: var(--shop-font-size-lg);
    font-weight: var(--shop-font-weight-semibold);
}

.shop-home-editorial__caption-price {
    font-size: var(--shop-font-size-sm);
    opacity: 0.9;
}

/* —— How it works —— */
.shop-home-steps {
    background: var(--shop-color-bg);
}

.shop-home-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--shop-space-4);
}

@media (min-width: 768px) {
    .shop-home-steps__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .shop-home-steps__list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shop-home-steps__item {
    position: relative;
    padding: var(--shop-space-5);
    padding-top: var(--shop-space-6);
    background: var(--shop-color-surface);
    border: 1px solid var(--shop-color-border-subtle);
    border-radius: var(--shop-radius-md);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-home-steps__item:hover {
    border-color: var(--shop-color-primary-muted);
    box-shadow: var(--shop-shadow-sm);
}

.shop-home-steps__num {
    position: absolute;
    top: var(--shop-space-4);
    right: var(--shop-space-4);
    font-size: var(--shop-font-size-2xl);
    font-weight: var(--shop-font-weight-bold);
    color: var(--shop-color-primary-soft);
    line-height: 1;
}

.shop-home-steps__title {
    font-size: var(--shop-font-size-base);
    font-weight: var(--shop-font-weight-semibold);
    margin-bottom: var(--shop-space-2);
    color: var(--shop-color-primary-active);
}

.shop-home-steps__text {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    line-height: var(--shop-line-height-relaxed);
    margin-bottom: 0;
}

.shop-home-steps__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--shop-space-3);
    margin-top: var(--shop-space-8);
}

.shop-home-promo {
    position: relative;
}

.shop-home-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(89, 15, 55, 0.06), transparent 55%);
    pointer-events: none;
}

.shop-category-tile {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.25s ease;
}

.shop-category-tile:hover {
    transform: translateY(-3px);
}

.shop-trust-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-trust-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-sm);
}

/* —— Homepage product carousels (recommended + promo) —— */
.shop-home-recommended {
    background: var(--shop-color-surface);
    border-block: 1px solid var(--shop-color-border-subtle);
}

.shop-product-carousel {
    position: relative;
    padding-inline: 0.25rem;
}

.shop-product-carousel__viewport {
    container-type: inline-size;
    container-name: product-carousel;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    min-width: 0;
    padding-block: var(--shop-space-1);
    touch-action: pan-x;
}

.shop-product-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.shop-product-carousel__viewport:focus-visible {
    outline: 2px solid var(--shop-color-primary);
    outline-offset: 2px;
}

.shop-product-carousel__track {
    display: flex;
    gap: var(--shop-space-4);
}

.shop-product-carousel__slide {
    flex: 0 0 78cqi;
    width: 78cqi;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
}

@container product-carousel (min-width: 576px) {
    .shop-product-carousel__slide {
        flex-basis: calc(50cqi - (var(--shop-space-4) / 2));
        width: calc(50cqi - (var(--shop-space-4) / 2));
    }
}

@container product-carousel (min-width: 768px) {
    .shop-product-carousel__slide {
        flex-basis: calc(33.333cqi - (2 * var(--shop-space-4) / 3));
        width: calc(33.333cqi - (2 * var(--shop-space-4) / 3));
    }
}

@container product-carousel (min-width: 992px) {
    .shop-product-carousel__slide {
        flex-basis: calc(25cqi - (3 * var(--shop-space-4) / 4));
        width: calc(25cqi - (3 * var(--shop-space-4) / 4));
    }
}

@container product-carousel (min-width: 1200px) {
    .shop-product-carousel__slide {
        flex-basis: calc(20cqi - (4 * var(--shop-space-4) / 5));
        width: calc(20cqi - (4 * var(--shop-space-4) / 5));
    }
}

.shop-product-carousel__slide .shop-product-card {
    height: 100%;
}

.shop-product-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--shop-radius-full);
    border: 1px solid var(--shop-color-border);
    background: rgba(255, 255, 255, 0.94);
    color: var(--shop-color-primary-active);
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    box-shadow: var(--shop-shadow-md);
}

.shop-product-carousel__arrow--prev {
    left: 0;
}

.shop-product-carousel__arrow--next {
    right: 0;
}

.shop-product-carousel__arrow:hover:not(:disabled) {
    background: var(--shop-color-primary-soft);
    border-color: var(--shop-color-primary-muted);
}

.shop-product-carousel__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.shop-product-carousel:not(.is-scrollable) .shop-product-carousel__arrow {
    display: none;
}

@media (max-width: 575.98px) {
    .shop-product-carousel {
        padding-inline: 0;
    }

    .shop-product-carousel__arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: var(--shop-shadow-sm);
    }

    .shop-product-carousel__arrow--prev {
        left: 0.25rem;
    }

    .shop-product-carousel__arrow--next {
        right: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-product-carousel__viewport {
        scroll-behavior: auto;
    }
}
