.ds-products-section {
    background: var(--bg);
    color: var(--text);
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.ds-products-section__inner {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
}

.ds-products-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.ds-products-section__header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 3.45rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.ds-products-section__header p {
    max-width: 58ch;
    margin: .65rem 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.ds-products-section__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    padding: .7rem 1rem;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    transition: border-color .2s ease, transform .2s ease;
}

.ds-products-section__link:hover,
.ds-products-section__link:focus-visible {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ds-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.85rem, 2vw, 1.35rem);
}

.ds-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), .035), transparent 38%),
        var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-md);
    isolation: isolate;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.ds-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 22% 0%, rgba(var(--secondary-rgb), .10), transparent 34%);
    opacity: 0;
    transition: opacity .25s ease;
}

.ds-product-card:hover,
.ds-product-card:focus-within {
    border-color: rgba(var(--primary-rgb), .42);
    box-shadow: 0 18px 46px rgba(var(--primary-rgb), .14);
    transform: translateY(-5px);
}

.ds-product-card:hover::before,
.ds-product-card:focus-within::before {
    opacity: 1;
}

.ds-product-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    background: var(--bg);
}

.ds-product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.ds-product-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.ds-product-card:hover .ds-product-card__image-link img,
.ds-product-card:focus-within .ds-product-card__image-link img {
    transform: scale(1.075);
}

.ds-product-card__badges {
    position: absolute;
    inset-block-start: .7rem;
    inset-inline-start: .7rem;
    inset-inline-end: .7rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    pointer-events: none;
}

.ds-product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .05em;
    line-height: 1;
}

.ds-product-badge--primary {
    background: var(--primary);
    color: var(--text-hover);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), .26);
}

.ds-product-badge--discount {
    margin-inline-start: auto;
    background: var(--error);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(var(--error-rgb), .22);
}

.ds-product-wishlist {
    position: absolute;
    inset-block-end: .7rem;
    inset-inline-end: .7rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), .10);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.ds-product-wishlist:hover,
.ds-product-wishlist:focus-within {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.ds-product-card__view {
    position: absolute;
    inset-inline-start: .7rem;
    inset-block-end: .7rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--surface);
    color: var(--text);
    padding: .55rem .75rem;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), .10);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}

.ds-product-card__view svg {
    width: 16px;
    height: 16px;
}

.ds-product-card:hover .ds-product-card__view,
.ds-product-card:focus-within .ds-product-card__view {
    opacity: 1;
    transform: translateY(0);
}

.ds-product-card__view:hover,
.ds-product-card__view:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
}

.ds-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .72rem;
    padding: clamp(.85rem, 2vw, 1.05rem);
}

.ds-product-card__meta {
    min-height: 1.1rem;
}

.ds-product-card__title {
    display: -webkit-box;
    min-height: 2.75em;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    font-size: clamp(.88rem, 1.4vw, 1rem);
    font-weight: 900;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}

.ds-product-card__title:hover,
.ds-product-card__title:focus-visible {
    color: var(--primary);
}

.ds-product-rating {
    display: flex;
    align-items: center;
    gap: .22rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 800;
}

.ds-product-rating__star {
    width: 13px;
    height: 13px;
    color: var(--border);
}

.ds-product-rating__star.is-filled {
    color: var(--warning);
}

.ds-product-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    margin-top: auto;
}

.ds-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .55rem;
    min-width: 0;
}

.ds-product-price strong {
    color: var(--primary);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 950;
    line-height: 1.1;
}

.ds-product-price span {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: line-through;
}

.ds-product-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    width: 100%;
    border: 0;
    border-radius: var(--border-radius);
    background: var(--primary);
    color: var(--text-hover);
    padding: .72rem .8rem;
    cursor: pointer;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 950;
    line-height: 1;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ds-product-card__cart svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.ds-product-card__cart:hover,
.ds-product-card__cart:focus-visible {
    filter: brightness(.95);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), .20);
    transform: translateY(-1px);
}

.ds-product-card__cart--link {
    background: var(--text);
    color: var(--surface);
}

.ds-product-card__cart--disabled {
    background: var(--text-muted);
    color: var(--surface);
    cursor: not-allowed;
    opacity: .72;
}

.ds-product-card__cart--disabled:hover {
    box-shadow: none;
    filter: none;
    transform: none;
}

.ds-product-stock {
    display: grid;
    gap: .35rem;
}

.ds-product-stock__bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--border-rgb), .35);
}

.ds-product-stock__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width .6s ease;
}

.ds-product-stock__fill.is-low {
    background: var(--warning);
}

.ds-product-stock__fill.is-critical {
    background: var(--error);
}

.ds-product-stock p {
    margin: 0;
    font-size: .68rem;
    font-weight: 900;
}

.ds-product-stock p.is-low {
    color: var(--warning);
}

.ds-product-stock p.is-critical {
    color: var(--error);
}

.ds-product-card :focus-visible,
.ds-products-section :focus-visible,
.ds-social-proof :focus-visible,
.ds-store-cta :focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), .35);
    outline-offset: 2px;
}

.ds-social-proof {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 0%, rgba(var(--primary-rgb), .08), transparent 30%),
        radial-gradient(circle at 90% 100%, rgba(var(--secondary-rgb), .08), transparent 34%),
        var(--surface);
    color: var(--text);
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.ds-social-proof__inner {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
}

.ds-social-proof__header {
    display: grid;
    gap: .7rem;
    max-width: 760px;
    margin: 0 auto clamp(1.6rem, 4vw, 2.8rem);
    text-align: center;
}

.ds-social-proof__header span {
    color: var(--primary);
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ds-social-proof__header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.85rem, 4.4vw, 4rem);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1;
}

.ds-social-proof__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(.98rem, 1.6vw, 1.14rem);
    line-height: 1.8;
}

.ds-social-proof__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.85rem, 2vw, 1.35rem);
}

.ds-feedback-card {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 1.35rem;
    min-height: 270px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), .04), transparent 56%),
        var(--bg);
    padding: clamp(1rem, 2.4vw, 1.5rem);
    box-shadow: var(--shadow-md);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.ds-feedback-card::before {
    content: "\201C";
    position: absolute;
    inset-block-start: .35rem;
    inset-inline-end: 1rem;
    color: rgba(var(--primary-rgb), .14);
    font-size: 6rem;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.ds-feedback-card:hover,
.ds-feedback-card:focus-within {
    border-color: rgba(var(--primary-rgb), .42);
    box-shadow: 0 18px 46px rgba(var(--primary-rgb), .13);
    transform: translateY(-5px);
}

.ds-feedback-card__stars {
    display: flex;
    align-items: center;
    gap: .25rem;
    color: var(--border);
}

.ds-feedback-card__stars svg {
    width: 17px;
    height: 17px;
}

.ds-feedback-card__stars svg.is-filled {
    color: var(--warning);
}

.ds-feedback-card__quote {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    font-weight: 700;
    line-height: 1.85;
}

.ds-feedback-card__author {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text);
}

.ds-feedback-card__author span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--text-hover);
    font-size: .9rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ds-feedback-card__author strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: .88rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-store-cta {
    background: var(--bg);
    color: var(--text);
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.ds-store-cta__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .24);
    border-radius: var(--border-radius);
    background:
        radial-gradient(circle at 10% 20%, rgba(var(--text-hover-rgb), .16), transparent 28%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-hover);
    padding: clamp(1.35rem, 4.8vw, 3.5rem);
    box-shadow: 0 26px 70px rgba(var(--primary-rgb), .22);
}

.ds-store-cta__panel::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(var(--text-hover-rgb), .18);
    border-radius: calc(var(--border-radius) - 4px);
    pointer-events: none;
}

.ds-store-cta__content,
.ds-store-cta__action {
    position: relative;
    z-index: 1;
}

.ds-store-cta__content h2 {
    max-width: 760px;
    margin: 0;
    color: var(--text-hover);
    font-size: clamp(2rem, 5.6vw, 5.5rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .96;
}

.ds-store-cta__content p {
    max-width: 58ch;
    margin: 1rem 0 0;
    color: rgba(var(--text-hover-rgb), .86);
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    font-weight: 700;
    line-height: 1.8;
}

.ds-store-cta__action {
    display: grid;
    gap: 1rem;
}

.ds-store-cta__action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 1px solid rgba(var(--text-hover-rgb), .28);
    border-radius: 999px;
    background: var(--text-hover);
    color: var(--primary);
    padding: .95rem 1.25rem;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 950;
    transition: transform .2s ease, filter .2s ease;
}

.ds-store-cta__action a:hover,
.ds-store-cta__action a:focus-visible {
    filter: brightness(.98);
    transform: translateY(-2px);
}

.ds-store-cta__signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.ds-store-cta__signals span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid rgba(var(--text-hover-rgb), .20);
    border-radius: 999px;
    background: rgba(var(--text-hover-rgb), .10);
    color: rgba(var(--text-hover-rgb), .86);
    padding: .45rem .72rem;
    font-size: .7rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

@media (max-width: 1024px) {
    .ds-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ds-social-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-store-cta__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ds-products-section__inner {
        width: min(100% - 1rem, 1280px);
    }

    .ds-products-section__header {
        align-items: stretch;
        flex-direction: column;
    }

    .ds-products-section__link {
        width: 100%;
    }

    .ds-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .ds-social-proof__inner,
    .ds-store-cta__panel {
        width: min(100% - 1rem, 1280px);
    }

    .ds-social-proof__grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .ds-social-proof__header {
        text-align: start;
    }

    .ds-feedback-card {
        min-height: auto;
    }

    .ds-store-cta__panel {
        padding: 1.25rem;
    }

    .ds-store-cta__panel::before {
        inset: .65rem;
    }

    .ds-store-cta__action a {
        width: 100%;
    }

    .ds-product-card {
        border-radius: var(--border-radius);
    }

    .ds-product-card:hover,
    .ds-product-card:focus-within {
        transform: none;
    }

    .ds-product-card__media {
        aspect-ratio: 1 / 1.02;
    }

    .ds-product-card__body {
        gap: .58rem;
        padding: .72rem;
    }

    .ds-product-card__view {
        display: none;
    }

    .ds-product-wishlist {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .ds-product-badge {
        min-height: 24px;
        padding: .3rem .5rem;
        font-size: .58rem;
    }

    .ds-product-card__title {
        min-height: 2.65em;
        font-size: .82rem;
    }

    .ds-product-price strong {
        font-size: .94rem;
    }

    .ds-product-card__cart {
        min-height: 40px;
        padding: .64rem .5rem;
        font-size: .66rem;
    }
}

@media (max-width: 380px) {
    .ds-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds-products-section *,
    .ds-products-section *::before,
    .ds-products-section *::after,
    .ds-social-proof *,
    .ds-social-proof *::before,
    .ds-social-proof *::after,
    .ds-store-cta *,
    .ds-store-cta *::before,
    .ds-store-cta *::after,
    .ds-product-card,
    .ds-product-card *,
    .ds-product-card *::before,
    .ds-product-card *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
