.wd-product.wd-hover-fw-button .product-wrapper:not(.scalla-merathon-card) {
    border-radius: 30px;
    border: 1px solid #F15A48;
    background: #FFF;
    box-shadow: 0 4px 7.4px 5px rgba(0, 0, 0, 0.04);
    padding: 24px 27px;
}

/* Custom Product Loop Enhancements */
.wd-product-wrapper .product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
    gap: 10px;
}

.wd-product-wrapper .product-top .product-labels.wd-labels {
    width: auto;
}

.wd-product-wrapper .product-labels.wd-labels .product-label.new {
    background: var(--wd-primary-color);
    color: #fff;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 30px;
}

.wd-product-wrapper .product-title {
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    color: var(--wd-primary-color);
    min-height: 90px;
    display: flex;
    align-items: center;
    text-wrap: balance;
}

.wd-product-wrapper .wd-product-lecturer {
    font-size: 15px;
    color: #000;
    font-weight: bold;
}

.wd-product-rotation-details.wd-loop-details {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    margin: 10px 0;
    direction: rtl;
    text-align: right;
}

.wd-product-rotation-details.wd-loop-details li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #000;
    font-weight: 300;
    margin: 0;
}

.wd-product-rotation-details.wd-loop-details li img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.product-categories {
    flex: 1;
}

.wd-product-rotation-details.wd-shortcode-details {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 16px;
    direction: rtl;
    text-align: right;
    flex-wrap: wrap;
    margin: 0;
}

.wd-product-rotation-details.wd-shortcode-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #000;
    font-weight: 300;
    margin: 0;
}

.wd-product-rotation-details.wd-shortcode-details li img {
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
    display: inline-block;
    vertical-align: middle;
}

.wd-product-wrapper .custom-details-btn-wrapper {
    margin-top: auto;
}

.wd-product-wrapper .custom-details-btn-wrapper .button.btn-color-primary {
    width: auto;
    text-align: center;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    padding: 0 12px;
    min-height: 28px;
    border-radius: 30px;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .wd-product-wrapper .product-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .wd-product-wrapper .product-title {
        font-size: 24px;
        min-height: auto;
    }

    .wd-product.wd-hover-fw-button .product-wrapper {
        padding: 16px;
    }

    .wd-product-wrapper .product-labels.wd-labels .product-label.new {
        min-height: 22px;
        font-size: 14px;
    }

    .wd-product-rotation-details.wd-loop-details li img {
        width: 18px;
        height: 18px;
    }
}


#tab-description {
    font-size: 24px;
    line-height: 1.2;
}

@media (max-width: 1200px) {

    .wd-product-wrapper .product-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {

    .wd-product-rotation-details.wd-shortcode-details li img {
        width: 24px;
        height: 24px;
    }

    .single_add_to_cart_button {
        min-width: 170px;
        font-size: 20px;
        height: 40px;
        width: 100%;
    }
}

.woocommerce-product-gallery img {
    aspect-ratio: 3/2;
    object-fit: contain;
}

.product_title {
    text-wrap: balance;
}

.single-product-rotation .wd-product-rotation-details.wd-shortcode-details li {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

.product_meta a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    border-radius: 30px;
    font-weight: bold;
    color: #000;
    font-size: 24px;
    line-height: 1;
    padding: 0 24px;
}

.product_meta a[href*="/product-category/all/"],
.product_meta :is(.meta-label, .meta-sep) {
    display: none;
}

/* Portrait story video player styling */
.portrait-story-video {
    width: fit-content;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #FFF;
    box-shadow: 0 4px 10.4px 9px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.portrait-story-video video {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Course Rotation Header Bar */
.course-rotation-header-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.course-rotation-header-bar .header-item {
    font-size: 20px;
    font-weight: bold;
}

.course-rotation-header-bar .header-item .label {
    color: var(--wd-primary-color, #F15A48);
    margin-left: 5px;
}

.course-rotation-header-bar .header-item .value {
    color: #000;
}

@media (max-width: 768px) {
    .course-rotation-header-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .course-rotation-header-bar .header-item {
        font-size: 16px;
    }

    .product_meta a {
        font-size: 16px;
        padding: 0 16px;
    }
}

/* Course Rotation Table */
.course-rotation-table-wrapper {
    width: 100%;
    direction: rtl;
    text-align: right;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.course-rotation-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.course-rotation-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    margin: 0;
}

.course-rotation-table th {
    background-color: var(--wd-primary-color, #F15A48);
    color: #FFF;
    font-size: 16px;
    font-weight: bold;
    padding: 16px 20px;
    text-align: center;
}

.course-rotation-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
}

.course-rotation-table tr:hover td {
    background-color: #fafafa;
}

/* Meeting column with red circles */
.course-rotation-table .meeting-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--wd-primary-color, #F15A48);
    color: #FFF;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

/* ZOOM capsule badge */
.course-rotation-table .type-badge {
    display: inline-block;
    padding: 4px 14px;
    background-color: #FFF0ED;
    color: var(--wd-primary-color, #F15A48);
    border-radius: 20px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-rotation-table .location-badge {
    background-color: #f0f0f0;
    color: #555;
}

/* Footer disclaimer */
.course-rotation-table-footer {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    padding: 0 20px;
    font-weight: 500;
}

.wd-accordion:where(.wd-style-shadow)>.wd-accordion-item {
    border: 1px solid #F1F2F9;
}

span.wd-accordion-opener {
    background-color: var(--wd-primary-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scalla-already-enrolled-banner {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 15px rgba(241, 90, 72, 0.03);
}

.scalla-already-enrolled-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.scalla-already-enrolled-banner-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: bold;
}

.scalla-already-enrolled-banner-text {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.scalla-already-enrolled-banner-text a {
    color: var(--wd-primary-color, #F15A48);
    font-weight: bold;
    text-decoration: underline;
}

/* Remove body bottom padding if sticky add-to-cart is not present */
body.single-product:not(:has(.wd-sticky-btn.wd-sticky-btn-shown)) {
    padding-bottom: 0 !important;
}

.merathon-icon-box.elementor-widget-image-box .elementor-image-box-img {
    border-radius: 50%;
    aspect-ratio: 1/1;
    background-color: var(--wd-primary-color);
    display: inline-flex;
    align-items: center;
}

.wd-merathon-card .wd-cat-image {
    margin-bottom: 15px !important;
}

/* Merathon Custom Card Design (Matches .cat-design-mask-subcat) */
.scalla-merathon-card {
    display: block;
    text-align: center;
}

.marathon-card-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scalla-merathon-inner {
    background-color: #F0F0F0;
    border-radius: 30px;
    padding: 35px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scalla-merathon-image {
    margin-bottom: 15px;
}

.scalla-merathon-image img {
    height: 155px;
    object-fit: contain;
    width: 100%;
}

.scalla-merathon-content {
    padding: 0;
    align-items: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}


.scalla-merathon-title {
    color: var(--wd-primary-color);
    font-size: 40px !important;
    text-align: center;
    margin-bottom: 15px;
    text-wrap: balance;
    line-height: 1.1;
}



@media (max-width: 1024px) {
    .scalla-merathon-title {
        font-size: 24px !important;
    }
}

.wd-products .wd-cat.first:first-child {
    display: none;
}

.wd-single-title .product_title {
    text-wrap: balance;
}