/*
 Theme Name:   Twenty Twenty-Four Child
 Theme URI:    https://coursde.org
 Description:  Child theme of Twenty Twenty-Four
 Author:       Cours de ASBL
 Template:     twentytwentyfour
 Version:      1.0.0
 Text Domain:  twentytwentyfour-child
*/


/* === coursdecouture.org — Product Page Enhancement === */

.single-product .woocommerce-product-gallery img {
    border-radius: 12px;
}

.single-product p.price {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
}

.single-product .woocommerce-product-details__short-description ul {
    list-style: none;
    padding-left: 0;
    margin: 1.2em 0;
}

.single-product .woocommerce-product-details__short-description li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(247, 141, 167, 0.15);
    font-size: 1.05em;
}

.single-product .woocommerce-product-details__short-description li:last-child {
    border-bottom: none;
}

.single-product .single_add_to_cart_button {
    background-color: #b0345d !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #8e2649 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 141, 167, 0.4);
}

.single-product .quantity .qty {
    border-radius: 8px;
    border: 2px solid #eee;
    padding: 12px;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #f78da7 !important;
}

.single-product .wp-block-media-text__media img {
    border-radius: 12px;
}

.single-product .wp-block-embed-youtube {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.single-product .star-rating span::before {
    color: #f78da7 !important;
}

.single-product .wp-block-button__link {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.single-product .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-product .wp-block-separator {
    border-color: rgba(247, 141, 167, 0.2) !important;
}

html {
    scroll-behavior: smooth;
}


/* === Blog post CTA banner === */

.cdc-blog-cta {
    margin: 3em 0 2em;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf2f4 0%, #fce8ed 100%);
    border: 1px solid rgba(247, 141, 167, 0.2);
    overflow: hidden;
}

.cdc-blog-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    padding: 2.5em;
}

.cdc-blog-cta__label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e5718f;
    font-weight: 700;
    margin: 0 0 0.5em;
}

.cdc-blog-cta__title {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.4em;
    line-height: 1.3;
}

.cdc-blog-cta__desc {
    font-size: 1em;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.cdc-blog-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    flex-shrink: 0;
}

.cdc-blog-cta__btn {
    display: inline-block;
    background: #b0345d;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cdc-blog-cta__btn:hover {
    background: #8e2649;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 141, 167, 0.4);
}

.cdc-blog-cta__link {
    font-size: 0.9em;
    color: #e5718f !important;
    text-decoration: none !important;
    font-weight: 600;
    white-space: nowrap;
}

.cdc-blog-cta__link:hover {
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .cdc-blog-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 2em 1.5em;
    }
    .cdc-blog-cta__title {
        font-size: 1.3em;
    }
}


/* === Reviews Section Enhancement === */

/* Reviews container */
.single-product #reviews.woocommerce-Reviews {
    max-width: 800px;
    margin: 0 auto;
}

.single-product .woocommerce-Reviews-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5em;
    color: #1a1a1a;
}

/* Review cards */
.single-product ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-product ol.commentlist li.review {
    margin-bottom: 1.2em;
    padding: 0;
    border: none;
}

.single-product ol.commentlist .comment_container {
    display: flex;
    gap: 1.2em;
    padding: 1.5em;
    background: #fdf8f9;
    border-radius: 14px;
    border: 1px solid rgba(247, 141, 167, 0.12);
    transition: box-shadow 0.2s ease;
}

.single-product ol.commentlist .comment_container:hover {
    box-shadow: 0 4px 16px rgba(247, 141, 167, 0.12);
}

.single-product ol.commentlist .comment_container > img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(247, 141, 167, 0.25);
}

.single-product ol.commentlist .comment-text {
    flex: 1;
    min-width: 0;
}

.single-product ol.commentlist .comment-text .star-rating {
    margin-bottom: 0.4em;
    font-size: 0.85em;
}

.single-product ol.commentlist .comment-text .meta {
    font-size: 0.9em;
    margin-bottom: 0.6em;
    color: #666;
}

.single-product ol.commentlist .woocommerce-review__author {
    color: #1a1a1a;
    font-weight: 700;
}

.single-product ol.commentlist .woocommerce-review__dash {
    display: none;
}

.single-product ol.commentlist .woocommerce-review__published-date {
    display: block;
    font-size: 0.85em;
    color: #999;
    margin-top: 0.15em;
}

.single-product ol.commentlist .description p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #444;
}

/* Pagination */
.single-product .woocommerce-pagination {
    text-align: center;
    margin-top: 1.5em;
}

.single-product .woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
}

.single-product .woocommerce-pagination .page-numbers:hover,
.single-product .woocommerce-pagination .page-numbers.current {
    background: #b0345d;
    color: #fff;
}

/* Review form */
.single-product #review_form_wrapper {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 2px solid rgba(247, 141, 167, 0.15);
}

.single-product #review_form .comment-reply-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1.2em;
}

.single-product #review_form .comment-form {
    background: #fdf8f9;
    border-radius: 16px;
    padding: 2em;
    border: 1px solid rgba(247, 141, 167, 0.12);
}

.single-product #review_form .comment-notes {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    margin-bottom: 1.5em;
}

/* Star rating selector */
.single-product #review_form .comment-form-rating {
    text-align: center;
    margin-bottom: 1.5em;
}

.single-product #review_form .comment-form-rating label {
    display: block;
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.single-product #review_form .comment-form-rating select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 2px solid rgba(247, 141, 167, 0.3);
    border-radius: 10px;
    padding: 10px 40px 10px 16px;
    font-size: 1em;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 200px;
}

.single-product #review_form .comment-form-rating select:focus {
    outline: none;
    border-color: #f78da7;
    box-shadow: 0 0 0 3px rgba(247, 141, 167, 0.15);
}

/* Form fields */
.single-product #review_form .comment-form-comment,
.single-product #review_form .comment-form-author,
.single-product #review_form .comment-form-email {
    margin-bottom: 1.2em;
}

.single-product #review_form .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 0.4em;
}

.single-product #review_form .comment-form textarea,
.single-product #review_form .comment-form input[type="text"],
.single-product #review_form .comment-form input[type="email"] {
    width: 100%;
    border: 2px solid rgba(247, 141, 167, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95em;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.single-product #review_form .comment-form textarea:focus,
.single-product #review_form .comment-form input[type="text"]:focus,
.single-product #review_form .comment-form input[type="email"]:focus {
    outline: none;
    border-color: #f78da7;
    box-shadow: 0 0 0 3px rgba(247, 141, 167, 0.15);
}

.single-product #review_form .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Newsletter checkbox */
.single-product #review_form .tnp-comments {
    margin: 1.2em 0;
}

.single-product #review_form .tnp-comments label {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
}

.single-product #review_form .tnp-comments input[type="checkbox"] {
    accent-color: #f78da7;
    width: 18px;
    height: 18px;
}

/* Submit button */
.single-product #review_form .form-submit {
    text-align: center;
    margin-top: 1.5em;
}

.single-product #review_form .form-submit .submit {
    background: #b0345d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 36px !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.single-product #review_form .form-submit .submit:hover {
    background: #8e2649 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 141, 167, 0.4);
}

/* Required asterisk */
.single-product #review_form .required {
    color: #f78da7;
}

/* Mobile */
@media (max-width: 600px) {
    .single-product ol.commentlist .comment_container {
        flex-direction: column;
        gap: 0.8em;
        padding: 1.2em;
    }

    .single-product #review_form .comment-form {
        padding: 1.5em 1.2em;
    }
}
