/* Spotlight Products - Modern Editorial Style */

:root {
    --spotlight-primary: var(--primary, #6366f1);
    --spotlight-text: #0a0a0a;
    --spotlight-text-muted: #737373;
    --spotlight-bg: #ffffff;
    --spotlight-border: #e5e5e5;
    --spotlight-radius: 1.25rem;
}

/* Section */
.spotlight-products {
    font-family: var(--shop-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    padding: 5rem 0;
    background: transparent;
}

.spotlight-products__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.spotlight-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--spotlight-border);
}

.spotlight-products__header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spotlight-products__label {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--spotlight-primary);
    padding: 0.5rem 1rem;
    background: color-mix(in srgb, var(--spotlight-primary) 10%, transparent);
    border-radius: 2rem;
}

.spotlight-products__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0;
    color: var(--spotlight-text);
    letter-spacing: -0.03em;
}

.spotlight-products__subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--spotlight-text-muted);
    max-width: 300px;
    text-align: right;
}

/* Grid */
.spotlight-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Card */
.spotlight-card {
    position: relative;
    background: var(--spotlight-bg);
    border-radius: var(--spotlight-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card:hover {
    transform: translateY(-8px);
}

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

.spotlight-card__link:focus-visible {
    outline: 3px solid var(--spotlight-primary);
    outline-offset: 4px;
    border-radius: var(--spotlight-radius);
}

/* Visual Section */
.spotlight-card__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: var(--spotlight-radius);
}

.spotlight-card__image-wrapper {
    position: absolute;
    inset: 0;
}

.spotlight-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card:hover .spotlight-card__image {
    transform: scale(1.08);
}

.spotlight-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
}

.spotlight-card__placeholder svg {
    width: 48px;
    height: 48px;
    color: #c4c4c4;
}

/* Overlay */
.spotlight-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.spotlight-card:hover .spotlight-card__overlay {
    background: rgba(0, 0, 0, 0.2);
}

.spotlight-card__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--spotlight-bg);
    border-radius: 50%;
    color: var(--spotlight-text);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.spotlight-card:hover .spotlight-card__view-btn {
    opacity: 1;
    transform: scale(1);
}

/* Badge */
.spotlight-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--spotlight-text);
    padding: 0.5rem 0.875rem;
    background: var(--spotlight-bg);
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Content */
.spotlight-card__content {
    padding: 1.25rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spotlight-card__info {
    min-height: 2.8em;
}

.spotlight-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--spotlight-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.spotlight-card:hover .spotlight-card__title {
    color: var(--spotlight-primary);
}

/* Footer */
.spotlight-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spotlight-card__price-wrapper {
    display: flex;
    flex-direction: column;
}

.spotlight-card__price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--spotlight-text);
    letter-spacing: -0.02em;
}

.spotlight-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--spotlight-border);
    border-radius: 50%;
    color: var(--spotlight-text-muted);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card:hover .spotlight-card__arrow {
    background: var(--spotlight-primary);
    border-color: var(--spotlight-primary);
    color: white;
}

.spotlight-card__arrow svg {
    transition: transform 0.3s ease;
}

.spotlight-card:hover .spotlight-card__arrow svg {
    transform: translateX(3px);
}

/* Decorative Line */
.spotlight-card__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--spotlight-primary);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.spotlight-card:hover .spotlight-card__line {
    width: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .spotlight-products {
        padding: 4rem 0;
    }

    .spotlight-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 991px) {
    .spotlight-products__container {
        padding: 0 1.5rem;
    }

    .spotlight-products__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .spotlight-products__subtitle {
        text-align: left;
        max-width: none;
    }

    .spotlight-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spotlight-products {
        padding: 3rem 0;
    }

    .spotlight-products__header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .spotlight-products__grid {
        gap: 1rem;
    }

    .spotlight-card__visual {
        aspect-ratio: 3 / 4;
    }

    .spotlight-card__content {
        padding: 1rem 0.25rem 0.25rem;
    }

    .spotlight-card__badge {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .spotlight-card__view-btn {
        width: 48px;
        height: 48px;
    }

    .spotlight-card:hover .spotlight-card__view-btn {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .spotlight-products__container {
        padding: 0 1rem;
    }

    .spotlight-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .spotlight-card__title {
        font-size: 0.9rem;
    }

    .spotlight-card__price {
        font-size: 1.125rem;
    }

    .spotlight-card__arrow {
        width: 36px;
        height: 36px;
    }

    .spotlight-card__arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .spotlight-card,
    .spotlight-card__image,
    .spotlight-card__overlay,
    .spotlight-card__view-btn,
    .spotlight-card__title,
    .spotlight-card__arrow,
    .spotlight-card__line {
        transition: none;
    }

    .spotlight-card:hover {
        transform: none;
    }

    .spotlight-card:hover .spotlight-card__image {
        transform: none;
    }

    .spotlight-card:hover .spotlight-card__view-btn {
        opacity: 1;
        transform: scale(1);
    }
}
