/* Layout general */
.cdpd-wrapper {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "gallery content"
        "cta     cta";
}

.cdpd-gallery {
    grid-area: gallery;
}

.cdpd-content {
    grid-area: content;
}

.cdpd-cta {
    grid-area: cta;
}

/* Galería */
.cdpd-main-image img {
    max-width: 100%;
    border-radius: 8px;
}

.cdpd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cdpd-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

/* Contenido */
.cdpd-title {
    font-size: 30px !important;
    font-weight: 500 !important;
    margin-top: 0;
    color: #122;
}

.cdpd-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.cdpd-description {
    color: #555;
    line-height: 1.6;
}

.cdpd-categories {
    font-size: 14px;
    color: #333;
}

.cdpd-rating {
    margin: 6px 0 10px;
}

/* CTA inferior */
.cdpd-cta {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cdpd-cta-texts {
    flex: 1 1 420px;
    min-width: 280px;
}

.cdpd-cta-title {
    margin: 0 0 4px;
    font-size: 22px;
    color: #0a2a66;
    font-weight: 700;
}

.cdpd-cta-subtitle {
    margin: 0;
    color: #6b7280;
}

.cdpd-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cdpd-cta-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-right: 8px;
}

.cdpd-btn {
    display: inline-block;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center !important;
    border: 0;
    cursor: pointer !important;
	color: #fff !important;
	border: 0 !important;
}

.cdpd-btn-primary {
    background: #518AD9;
    color: #fff;
}

.cdpd-btn-primary:hover {
    background: #341498;
}

.cdpd-btn-secondary {
    background: #518AD9;
    color: #fff;
}

.cdpd-btn-secondary:hover {
    background: #341498;
}

/* Responsive */
@media (max-width: 960px) {
    .cdpd-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "content"
            "cta";
    }

    .cdpd-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cdpd-cta-actions {
        justify-content: stretch;
    }

    .cdpd-btn {
        width: 100%;
    }
}