/* Master Wrapper */
.custom-single-product-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    color: #111827;
}

.custom-single-product-wrapper * {
    box-sizing: border-box;
}

/* --- Top Section Layout --- */
.csp-top-section {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.csp-image-column {
    flex: 0 0 50%;
    width: 50%;
}

.csp-info-column {
    flex: 0 0 50%;
    width: 50%;
    padding-top: 20px;
}

/* Image Box (Creamy background matching reference) */
.csp-image-box {
    background-color: #fdfbf7;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.csp-image-box img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Breadcrumbs */
.csp-breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.csp-breadcrumb a {
    color: #06D11B;
    text-decoration: none;
}

.csp-breadcrumb a:hover {
    text-decoration: underline;
}

.csp-breadcrumb span {
    color: #111827;
}

/* Product Title */
.csp-title {
    font-family:'Space Grotesk', sans-serif; 
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.3;
    color: #111827;
}

/* WhatsApp Button */
.custom-whatsapp-btn-wrapper {
    margin-top: 10px;
}

.whatsapp-quote-btn {
    display: inline-flex;
    align-items: center;
    background-color: #00C853; /* Orbit Foods Green */
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-quote-btn:hover {
    background-color: #05b217;
    transform: translateY(-2px);
}

/* --- Bottom Section (Related Products) --- */
.csp-related-section {
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
}

.csp-related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Related Products Grid */
.csp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.csp-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.csp-product-card:hover {
    transform: translateY(-3px);
}

.csp-card-image {
    background: #fdfbf7; /* Matching single image bg */
    padding: 15px;
    text-align: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-card-image img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.csp-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: center;
}

.csp-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.csp-card-title a {
    color: #111827;
    text-decoration: none;
}

.csp-view-btn {
    display: block;
    text-align: center;
    background: #111;
    color: #ffffff !important;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.csp-view-btn:hover {
    background: #05b217;
}

/* --- Responsiveness --- */
@media (max-width: 991px) {
    .csp-top-section {
        flex-direction: column;
        gap: 30px;
    }
    .csp-image-column, .csp-info-column {
        width: 100%;
        flex: 0 0 100%;
    }
    .csp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .csp-title {
        font-size: 26px;
    }
    .csp-image-box {
        min-height: 250px;
        padding: 20px;
    }
    .csp-image-box img {
        max-height: 250px;
    }
    .csp-products-grid {
        gap: 15px;
    }
    .csp-card-image {
        height: 140px;
    }
    .csp-card-image img {
        max-height: 110px;
    }
}