/**
 * Product Recommendations Styles
 *
 * @package PrintShopStudio
 */

/* Recommendations Section */
.pss-product-recommendations {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid #e2e4e7;
}

.pss-product-recommendations h2 {
    text-align: center;
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

/* Recommendations Grid */
.pss-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Recommendation Card */
.pss-recommendation-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pss-recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Image Container */
.pss-recommendation-image {
    position: relative;
    overflow: hidden;
}

.pss-recommendation-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.pss-recommendation-card:hover .pss-recommendation-image img {
    transform: scale(1.05);
}

/* Quick View Button */
.pss-quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
}

.pss-recommendation-card:hover .pss-quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.pss-quick-view-btn:hover {
    background: #2271b1;
    color: #fff;
}

.pss-quick-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Sale Badge */
.pss-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Content */
.pss-recommendation-content {
    padding: 15px;
}

.pss-recommendation-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.pss-recommendation-title:hover {
    color: #2271b1;
}

.pss-recommendation-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 10px;
}

.pss-recommendation-price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.pss-recommendation-price ins {
    text-decoration: none;
    color: #d63638;
}

/* Type Badge */
.pss-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.pss-type-custom {
    background: #d4edda;
    color: #155724;
}

/* Quick View Modal */
.pss-quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pss-quick-view-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.pss-quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pss-quick-view-close:hover {
    background: #d63638;
    color: #fff;
}

.pss-quick-view-body {
    padding: 30px;
}

/* Quick View Product */
.pss-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pss-qv-gallery img {
    width: 100%;
    border-radius: 12px;
}

.pss-qv-details h2 {
    margin: 0 0 15px;
    font-size: 24px;
}

.pss-qv-price {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 15px;
}

.pss-qv-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pss-qv-view-full {
    display: inline-block;
    padding: 12px 25px;
}

.pss-qv-out-of-stock {
    display: inline-block;
    background: #f8d7da;
    color: #721c24;
    padding: 10px 20px;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .pss-recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pss-recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pss-quick-view-product {
        grid-template-columns: 1fr;
    }

    .pss-quick-view-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .pss-recommendations-grid {
        grid-template-columns: 1fr;
    }
}

