/* Product Recommendations Styles */

.product-recommendations {
    margin-top: 3rem;
}

.recommendation-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommendation-section h2 {
    color: #232f3e;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-section h2 i {
    color: #ff9900;
    font-size: 1.2rem;
}

/* Frequently Bought Together Styles */
.bought-together-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.bought-together-items {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bought-together-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 160px;
    flex: 1;
    max-width: 200px;
    transition: all 0.3s ease;
}

.bought-together-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bought-together-item.current-product {
    border-color: #ff9900;
    background: #fff8e1;
}

.bought-together-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.bought-together-item .item-info h4 {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
}

.bought-together-item .item-info h4 a {
    color: #232f3e;
    text-decoration: none;
}

.bought-together-item .item-info h4 a:hover {
    color: #ff9900;
}

.bought-together-item .price {
    font-weight: 600;
    color: #B12704;
    font-size: 1rem;
}

.product-checkbox {
    margin-bottom: 0.5rem;
}

.product-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.product-checkbox label {
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.plus-sign {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.bought-together-summary {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.total-price {
    font-size: 1.1rem;
    font-weight: 600;
}

.total-price .price {
    color: #B12704;
    font-size: 1.2rem;
}

.btn-add-all-to-cart {
    background: #ff9900;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-all-to-cart:hover {
    background: #e68900;
    transform: translateY(-1px);
}

/* Recommendation Grid Styles */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.recommendation-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ff9900;
}

.recommendation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-item:hover img {
    transform: scale(1.05);
}

.item-content {
    padding: 1rem;
}

.item-content h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
}

.item-content h3 a {
    color: #232f3e;
    text-decoration: none;
}

.item-content h3 a:hover {
    color: #ff9900;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating .stars {
    color: #ffa41c;
    font-size: 0.9rem;
}

.rating .rating-count {
    color: #666;
    font-size: 0.8rem;
}

.item-content .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #B12704;
    margin-bottom: 0.75rem;
}

.view-count {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-view-amazon {
    display: inline-block;
    background: #ff9900;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-view-amazon:hover {
    background: #e68900;
    color: white;
    text-decoration: none;
}

/* Trending Products Specific Styles */
.trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.trending-item {
    position: relative;
}

.trending-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(45deg, #ff6b35, #ff9900);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.trending-badge i {
    font-size: 0.6rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recommendation-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .recommendation-section h2 {
        font-size: 1.3rem;
    }
    
    .bought-together-items {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bought-together-item {
        max-width: none;
        min-width: auto;
    }
    
    .plus-sign {
        transform: rotate(90deg);
        align-self: center;
    }
    
    .bought-together-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .trending-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .recommendation-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .recommendation-item img {
        height: 150px;
    }
    
    .item-content {
        padding: 0.75rem;
    }
    
    .item-content h3 {
        font-size: 0.85rem;
        height: 2.4rem;
    }
} 