/**
 * Shop Recommendations Frontend Styles
 * shadcn/ui design system
 * 
 * @package GoodVibesOnly
 */

.gvo-recommendations-widget {
    margin: 48px 0;
    padding: 32px 0;
    border-top: 1px solid #e4e4e7;
}

.gvo-recommendations-header {
    margin-bottom: 24px;
}

.gvo-recommendations-title {
    font-size: 24px;
    font-weight: 600;
    color: #18181b;
    margin: 0;
}

.gvo-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.gvo-recommendation-card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gvo-recommendation-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.gvo-recommendation-image-link {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}

.gvo-recommendation-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gvo-recommendation-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d8;
}

.gvo-recommendation-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gvo-badge-ai {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.gvo-recommendation-details {
    padding: 16px;
}

.gvo-recommendation-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.gvo-recommendation-name a {
    color: #18181b;
    text-decoration: none;
    transition: color 0.2s;
}

.gvo-recommendation-name a:hover {
    color: #3f3f46;
}

.gvo-recommendation-price {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gvo-price {
    font-size: 16px;
    font-weight: 600;
    color: #18181b;
}

.gvo-price-regular {
    font-size: 14px;
    color: #71717a;
    text-decoration: line-through;
}

.gvo-price-sale {
    font-size: 16px;
    font-weight: 600;
    color: #ef4444;
}

.gvo-recommendation-add-to-cart {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: #18181b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.gvo-recommendation-add-to-cart:hover {
    background: #27272a;
    color: white;
}

.gvo-recommendations-compact .gvo-recommendations-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.gvo-recommendations-compact .gvo-recommendation-details {
    padding: 12px;
}

.gvo-recommendations-compact .gvo-recommendation-name {
    font-size: 13px;
}

.gvo-recommendations-compact .gvo-price,
.gvo-recommendations-compact .gvo-price-sale {
    font-size: 14px;
}

.gvo-recommendations-compact .gvo-recommendation-add-to-cart {
    padding: 6px 12px;
    font-size: 13px;
}

.gvo-recommendations-cart {
    background: #fafafa;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
}

.gvo-recommendations-checkout {
    background: white;
    padding: 24px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    margin-bottom: 24px;
}

.gvo-recommendations-thankyou {
    margin-top: 48px;
}

@media (max-width: 768px) {
    .gvo-recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gvo-recommendations-compact .gvo-recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .gvo-recommendations-title {
        font-size: 20px;
    }
    
    .gvo-recommendation-details {
        padding: 12px;
    }
    
    .gvo-recommendation-name {
        font-size: 13px;
    }
    
    .gvo-price,
    .gvo-price-sale {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gvo-recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .gvo-recommendations-compact .gvo-recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gvo-recommendation-card {
        display: flex;
        flex-direction: row;
    }
    
    .gvo-recommendation-image-link {
        width: 100px;
        flex-shrink: 0;
        padding-top: 0;
        height: 100px;
    }
    
    .gvo-recommendation-image {
        position: static;
    }
}
