/* ============================================
   TOP PICKS - Homepage Cards
   ============================================ */

.home-top-picks {
    padding-bottom: 40px;
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card */
.top-pick-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 20px;
    transition: box-shadow 0.3s ease;
}
.top-pick-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

/* Recommendation Badge */
.top-pick-badge {
    position: absolute;
    top: 15px;
    left: -5px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px 6px 12px;
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.3px;
}
.top-pick-badge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 5px;
    height: 5px;
    background: rgba(0,0,0,0.3);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Product Image */
.top-pick-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.top-pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brand + Rating */
.top-pick-brand-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 0;
    min-height: 40px;
}
.top-pick-brand img {
    max-height: 28px;
    width: auto;
}
.top-pick-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-pick-rating .star-rating {
    font-size: 13px;
}
.top-pick-rating .rating-count {
    font-size: 12px;
    color: #888;
}

/* Title */
.top-pick-title {
    padding: 8px 20px 0;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #13385d;
}
.top-pick-title a {
    color: inherit;
    text-decoration: none;
}
.top-pick-title a:hover {
    color: #b8955a;
}

/* Short Description + Services (side by side) */
.top-pick-desc-services {
    display: flex;
    gap: 16px;
    padding: 12px 20px 0;
    flex-grow: 1;
}
.top-pick-short-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}
.top-pick-short-desc ul {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: disc;
}
.top-pick-short-desc li {
    margin-bottom: 2px;
    font-size: 13px;
}
.top-pick-services {
    flex: 1;
    font-size: 13px;
}
.top-pick-services h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #13385d;
    font-style: italic;
}
.top-pick-services ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.top-pick-services li {
    margin-bottom: 3px;
    font-size: 12.5px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}
.service-check {
    color: #b8955a;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* Offers */
.top-pick-offers {
    padding: 12px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.top-pick-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}
.top-pick-offer:last-child {
    border-bottom: none;
}
.offer-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.offer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Comfort Indicator */
.top-pick-comfort {
    padding: 10px 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comfort-label {
    font-size: 13px;
    color: #555;
}
.comfort-dots {
    display: flex;
    gap: 4px;
}
.comfort-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: #e8e8e8;
    color: #999;
    transition: all 0.2s;
}
.comfort-dot.active {
    background: #b8955a;
    color: #fff;
}

/* Price Section */
.top-pick-price {
    padding: 14px 20px 0;
}
.price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-from {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}
.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #b8955a;
}
.price-was-save {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
}
.price-was {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.price-save {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #c0392b;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Visit Product Button */
.top-pick-button {
    padding: 14px 20px 0;
    margin-top: auto;
}
.top-pick-button a {
    display: block;
    text-align: center;
    background: #16212F;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}
.top-pick-button a:hover {
    background: #2a3a4a;
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .top-picks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-picks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 15px;
    }
    .top-pick-desc-services {
        flex-direction: column;
        gap: 10px;
    }
    .top-pick-title {
        font-size: 16px;
    }
    .price-current {
        font-size: 24px;
    }
}

@media (min-width: 1201px) {
    /* If 4 products selected, show 4 columns */
    .top-picks-grid:has(.top-pick-card:nth-child(4):last-child) {
        grid-template-columns: repeat(4, 1fr);
    }
    /* If 3 products selected, show 3 columns */
    .top-picks-grid:has(.top-pick-card:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }
}
