/* Recommendations Slider Section Styles */

.rec-section {
    background: #ffffff;
    padding: 2.5rem 0;
}

/* Slider Title Styles */
.rec-slider-header-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    text-align: center !important;
}

.rec-slider-title-group {
    display: block !important;
    margin-bottom: 0.1rem !important;
}

.rec-slider-label-modern {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #6b7280;
    /* Neutral Gray modern tag */
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rec-slider-title-modern {
    display: block !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: clamp(2.25rem, 4vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    margin: 0.5rem 0 0 0 !important;
}

@media (max-width: 480px) {
    .rec-slider-title-modern {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
}

/* Slider Wrapper */
.rec-slider-wrapper {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .rec-slider-wrapper {
        padding: 0 1.5rem;
    }
}

/* Nav Buttons */
.rec-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    z-index: 10;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    color: #111827;
}

.rec-slider-nav-btn:hover {
    background: #f9fafb;
    transform: translateY(-50%) scale(1.05);
}

.rec-slider-nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rec-slider-nav-left {
    left: 1rem;
}

.rec-slider-nav-right {
    right: 1rem;
}

@media (min-width: 1024px) {
    .rec-slider-nav-left {
        left: -1rem;
    }

    .rec-slider-nav-right {
        right: -1rem;
    }
}

/* Slider Track */
.rec-slider-track {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem 2.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}

.rec-slider-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .rec-slider-track {
        padding: 0.5rem 0 2.5rem;
        max-width: 100%;
        margin: 0;
        scroll-padding: 0;
    }
}

/* Premium Card Styles */
.rec-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    width: clamp(240px, 45vw, 280px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.rec-card-img-wrap {
    position: relative;
    background: #fcfcfc;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.rec-card-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.rec-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rec-card-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.rec-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
}

.rec-star {
    font-size: 0.9rem;
    color: #fbbf24;
    font-variation-settings: 'FILL' 1;
}

.rec-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Swatches */
.rec-swatches {
    display: flex;
    gap: 6px;
    margin-top: 0.25rem;
}

.rec-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    box-shadow: 0 0 0 1px #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rec-swatch.active {
    box-shadow: 0 0 0 1.5px #111827;
}

/* Badge */
.rec-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #111827;
    color: #ffffff;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive 5-Column Grid calculations for Large Desktop Slider */
@media (min-width: 1024px) {
    .rec-slider-track .rec-card {
        width: calc((100% - (4 * 1.5rem)) / 5);
        min-width: 220px;
    }
}