/* ============ Section ============ */
.why-shop-section {
    max-width: var(--main-width);
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl) var(--spacing-3xl) var(--spacing-3xl);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft decorative glow behind the grid */
.why-shop-section::before {
    content: "";
    position: absolute;
    inset: -30% 20% auto;
    height: 60%;
    background: radial-gradient(closest-side, var(--primary-color), transparent);
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

/* ============ Header ============ */
.why-shop-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--spacing-4xl);
}

.why-shop-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-bottom: var(--spacing-lg);
}

.why-shop-eyebrow svg {
    width: 14px;
    height: 14px;
}

.why-shop-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md);
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.why-shop-subtitle {
    color: var(--text-light);
    font-size: var(--font-size-md);
    margin: 0;
    text-wrap: pretty;
}

/* ============ Grid ============ */
.why-shop-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--spacing-xl);
}

/* AOS lives here, and only here */
.why-shop-item {
    display: flex;
    min-width: 0;
}

/* ============ Card ============ */
.why-shop-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-2xl);
    box-shadow: var(--shadow-light);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.why-shop-card:focus-within {
    border-color: var(--primary-color);
}

/* ============ Icon + orbit ring ============ */
.why-shop-icon-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: var(--spacing-xl);
}

/* One element: rotating ring with a gap (mask) and an orbiting dot (::after) */
.why-shop-icon-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    animation: why-shop-orbit 14s linear infinite;
    will-change: transform;
}

.why-shop-icon-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.7;
    /* solid arc from 0° to 300°, then a 60° gap */
    -webkit-mask-image: conic-gradient(#000 0deg 300deg, transparent 300deg 360deg);
            mask-image: conic-gradient(#000 0deg 300deg, transparent 300deg 360deg);
}

.why-shop-icon-ring::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px var(--bg-card);
}

.why-shop-icon-circle {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    border-radius: var(--radius-full);
    background: var(--svg-gradient-end);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-shop-icon-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

@keyframes why-shop-orbit {
    to { transform: rotate(360deg); }
}

/* ============ Text ============ */
.why-shop-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-sm);
    text-wrap: balance;
}

.why-shop-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.55;
    margin: 0 0 var(--spacing-lg);
    text-wrap: pretty;
}

.why-shop-dash {
    width: 24px;
    height: 3px;
    margin-top: auto;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Hover (only on devices that can hover) ============ */
@media (hover: hover) {
    .why-shop-card:hover {
        box-shadow: var(--shadow-medium);
    }

    .why-shop-card:hover .why-shop-icon-circle {
        transform: scale(1.06);
    }

    .why-shop-card:hover .why-shop-icon-ring {
        animation-duration: 4s; /* ring speeds up on hover */
    }

    .why-shop-card:hover .why-shop-dash {
        width: 44px;
    }
}

/* ============ Trust bar ============ */
.why-shop-trust-bar {
    margin: var(--spacing-3xl) auto 0;
    background: var(--bg-tertiary);
    border-radius: 50px;
    width: fit-content;
    max-width: 100%;
    padding: var(--spacing-lg) var(--spacing-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-2xl);
}

.why-shop-trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 500;
}

.why-shop-trust-item svg {
    width: 17px;
    height: 17px;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.why-shop-trust-divider {
    width: 1px;
    height: 16px;
    background: var(--border-primary);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .why-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .why-shop-section {
        padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-2xl);
        border-radius: var(--radius-lg);
    }

    .why-shop-header h1 {
        font-size: var(--font-size-2xl);
    }

    .why-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-md);
    }

    .why-shop-card {
        padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl);
    }

    .why-shop-trust-bar {
        border-radius: var(--radius-lg);
    }

    .why-shop-trust-divider {
        display: none;
    }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    .why-shop-icon-ring {
        animation: none;
    }

    .why-shop-card,
    .why-shop-icon-circle,
    .why-shop-dash {
        transition: none;
    }

    /* Make sure AOS never leaves items hidden */
    .why-shop-item[data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}