/* ==========================================================================
   Category Description Styling
   ========================================================================== */

/* Main Description Container */
.cro-category-description-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Primary Category Description */
.elementor-widget-wd_shop_archive_archive_description .wd-shop-desc,
.elementor-widget-wd_shop_archive_archive_description .elementor-widget-container {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: center;

}

.elementor-widget-wd_shop_archive_archive_description{
        padding: 0px 30px 0px 30px !important;
}


/* Extra Description - Hidden by default */
.elementor-widget-wd_shop_archive_extra_description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.elementor-widget-wd_shop_archive_extra_description.cro-expanded {
    max-height: 5000px;
    opacity: 1;
    margin-top: 25px;
}

/* Extra Description Content Styling */
.elementor-widget-wd_shop_archive_extra_description .elementor-widget-container {
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px;
    border: 1px solid #eee;
}

.elementor-widget-wd_shop_archive_extra_description h2,
.elementor-widget-wd_shop_archive_extra_description h3,
.elementor-widget-wd_shop_archive_extra_description h4 {
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

.elementor-widget-wd_shop_archive_extra_description h2:first-child,
.elementor-widget-wd_shop_archive_extra_description h3:first-child,
.elementor-widget-wd_shop_archive_extra_description h4:first-child {
    margin-top: 0;
}

.elementor-widget-wd_shop_archive_extra_description p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Show More Button */
.cro-category-show-more {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.cro-category-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cro-category-show-more-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.cro-category-show-more-btn:hover .cro-show-more-icon {
    border-color: #fff;
}

.cro-category-show-more-btn:hover .cro-show-more-icon::before,
.cro-category-show-more-btn:hover .cro-show-more-icon::after {
    background: #fff;
}

/* Plus/Minus Icon */
.cro-show-more-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cro-show-more-icon::before,
.cro-show-more-icon::after {
    content: '';
    position: absolute;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.cro-show-more-icon::before {
    width: 8px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cro-show-more-icon::after {
    width: 2px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Expanded State - Hide vertical line (minus icon) */
.cro-category-show-more-btn.cro-expanded .cro-show-more-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cro-category-description-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    .elementor-widget-wd_shop_archive_archive_description .wd-shop-desc,
    .elementor-widget-wd_shop_archive_archive_description .elementor-widget-container {
        font-size: 15px;
        line-height: 1.7;
    }

    .elementor-widget-wd_shop_archive_extra_description .elementor-widget-container {
        padding: 20px;
        border-radius: 12px;
    }

    .elementor-widget-wd_shop_archive_extra_description p {
        font-size: 14px;
    }

    .cro-category-show-more-btn {
        padding: 10px 22px;
        font-size: 13px;
    }

    .cro-show-more-icon {
        width: 16px;
        height: 16px;
    }
    .elementor-widget-container{
        padding: 5px 4px 5px 4px !important;
    }
}

@media (max-width: 480px) {
    .elementor-widget-wd_shop_archive_extra_description .elementor-widget-container {
        padding: 15px;
    }
}
