/*
 Theme Name:   Ecosoap Child
 Theme URI:    https://goalthemes.com
 Description:  Child theme for Ecosoap
 Author:       Goalthemes
 Author URI:   https://goalthemes.com
 Template:     ecosoap
 Version:      1.0.0
 Text Domain:  ecosoap-child
*/

/* CSS Variables are now handled by ecosoap_custom_styles() function in functions.php */
.megamenu>li>a {
    font-size: 12px !important;
}

.footer-logo {
    width: 200px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

a.social-icon {
    margin: 0 10px;
}

.footer-bottom-area {
    background: #d4af531c;
    padding-top: 10px;
}

.goal-breadscrumb {
    background: linear-gradient(to right, #d3ac50, #f7f09d, #d3ac50) !important;
}

.goal-pagination .page-numbers li>span,
.goal-pagination .page-numbers li>a,
.goal-pagination .pagination li>span,
.goal-pagination .pagination li>a {
    font-size: 10px !important;
    width: 30px !important;
    height: 30px !important;
}

/* Breadcrumb overflow handling */
.goal-breadscrumb .breadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    overflow: hidden !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

.goal-breadscrumb .breadcrumb li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.goal-breadscrumb .breadcrumb li:last-child {
    flex-shrink: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
}

.details-product .information .price {
    font-size: 20px !important;
}

.tabs-v1 .nav-tabs>li>a {
    font-size: 15px !important;
}

.add-to-cart-bottom-wrapper .single_variation_wrap .woocommerce-variation-add-to-cart button {
    background: #d3ac50 !important;
}

@media (min-width: 1200px) {
    .megamenu>li {
        padding: 18px 20px !important;
    }

    .widget .widget-title h3,
    .widget .widgettitle h3,
    .widget .widget-heading h3 {
        font-size: 25px !important;
    }
}

@media (min-width: 992px) {
    .goal-breadscrumb .wrapper-breads {
        padding: 100px 0 50px !important;
    }
}

.goal-breadscrumb * {
    color: #3c434a !important;
}

.goal-breadscrumb li .active {
    color: #376044 !important;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    max-width: 170px;
}

.logo img {
    max-height: 100% !important;
}

.goal-footer-mobile>ul>li span {
    font-size: 8px !important;
}

/* Mobile Categories Button Styling */
.goal-footer-mobile .categories-menu-btn i {
    color: #333;
    transition: color 0.3s ease;
}

.goal-footer-mobile .categories-menu-btn:hover i {
    color: #d3ac50;
}

/* Custom styling for categories offcanvas */
.categories-offcanvas-content {
    background: #fff;
}

.categories-header {
    background: linear-gradient(135deg, #d3ac50, #f7f09d);
}

.categories-header h3 {
    color: #333;
}

.category-link:hover,
.subcategory-link:hover {
    color: #d3ac50 !important;
}

.category-toggle:hover {
    color: #d3ac50 !important;
}

/* Custom Price Format Styling */
.price .price-prefix {
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
    margin-right: 3px;
    display: inline-block;
}

/* Product grid price styling */
.woocommerce ul.products li.product .price .price-prefix,
.woocommerce-page ul.products li.product .price .price-prefix {
    color: #888;
    font-size: 0.85em;
    font-weight: 500;
}

.woocommerce .products .product .price,
.woocommerce-page .products .product .price {
    font-weight: 600;
    line-height: 1.4;
}

/* Sale price styling with prefix */
.price .price-prefix+del {
    margin-left: 2px;
    margin-right: 5px;
}

.price .price-prefix+del+ins {
    margin-left: 0;
}

/* Widget price styling */
.widget .price .price-prefix {
    font-size: 0.8em;
    color: #999;
}

/* Related products price styling */
.related.products .price .price-prefix,
.upsells.products .price .price-prefix {
    font-size: 0.85em;
    color: #777;
}

/* Single product page price styling */
.single-product .product .price .price-prefix {
    font-size: 1em;
    color: #555;
    font-weight: 600;
    margin-right: 5px;
}

.single-product .product .summary .price {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.single-product .product .summary .price .price-prefix+del {
    margin-left: 3px;
    margin-right: 8px;
    font-size: 0.9em;
}

.single-product .product .summary .price .price-prefix+del+ins {
    font-size: 1.1em;
    text-decoration: none;
    font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .price .price-prefix {
        font-size: 0.8em;
        margin-right: 2px;
    }

    .woocommerce ul.products li.product .price .price-prefix {
        font-size: 0.75em;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13.5px !important;
    }

    #add_payment_method table.cart td.actions .coupon,
    .woocommerce-cart table.cart td.actions .coupon,
    .woocommerce-checkout table.cart td.actions .coupon {
        border: none;
    }

    .goal-breadscrumb .wrapper-breads {
        padding: 10px 0 !important;
    }

    .cart_item {
        padding-top: 60px;
        font-size: 15px;
    }

    .custom-child-footer .footer-top-area {
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-child-footer .widget-title {
        color: #434343;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 25px;
        position: relative;
    }

    .custom-child-footer a {
        color: #434343;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .custom-child-footer a:hover {
        color: #d3ac50;
        /* Gold/Theme Color */
        padding-left: 5px;
    }

    .custom-child-footer .footer-logo img {
        max-width: 180px;
        height: auto;
    }

    .custom-child-footer .footer-contact-info p {
        margin-bottom: 10px;
        color: #434343;
    }

    .custom-child-footer ul.menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .custom-child-footer ul.menu li {
        margin-bottom: 12px;
    }

    .custom-child-footer .footer-help-box .big-phone a {
        font-size: 24px;
        color: #d3ac50;
        font-weight: 700;
    }

    .custom-child-footer .footer-help-box .opening-hours {
        color: #b0b0b0;
        font-size: 14px;
    }

    .custom-child-footer .footer-social-icons {
        display: flex;
        gap: 15px;
    }


    .custom-child-footer .footer-social-icons .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: #434343;
        font-size: 16px;
        transition: all 0.3s;
    }

    .custom-child-footer .footer-social-icons .social-icon:hover {
        background: #d3ac50;
    }

    /* Responsive Adjustments */
    @media (max-width: 767px) {
        .custom-child-footer .footer-widget-col {
            margin-bottom: 40px;
        }

        .custom-child-footer {
            padding-top: 40px;
        }

        .footer-top-area {
            padding: 10px 0 !important;
        }
    }


}

.footer-top-area {
    padding: 74px 0;
}

/* Homepage Carousel Full Width - Swiper Slider */
.homepage-carousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 30px;
}

.homepage-swiper {
    width: 100%;
    height: auto;
}

.homepage-swiper .swiper-slide {
    width: 100%;
    height: auto;
}

.homepage-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.homepage-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.homepage-swiper .swiper-slide a img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.homepage-swiper .swiper-slide a:hover img {
    transform: scale(1.02);
}

/* Swiper Navigation Buttons */
.homepage-swiper .swiper-button-prev,
.homepage-swiper .swiper-button-next {
    color: #d3ac50;
    background: rgba(211, 172, 80, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.homepage-swiper .swiper-button-prev:after,
.homepage-swiper .swiper-button-next:after {
    font-size: 20px;
}



/* Swiper Pagination */
.homepage-swiper .swiper-pagination {
    bottom: 20px;
}

.homepage-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d3ac50;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.homepage-swiper .swiper-pagination-bullet-active {
    background: #d3ac50;
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* Homepage Category Products Section */
.homepage-category-products-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.homepage-category-products-section .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    color: #31503c;
}

.homepage-category-products-section .section-title a {
    color: #31503c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.homepage-category-products-section .section-title a:hover {
    color: #d3ac50;
}

/* Hide rating on homepage products */
.homepage-category-products-section .product .rating {
    display: none !important;
}

/* Price styling for homepage - match shop style */
.homepage-category-products-section .product .price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #d3ac50 !important;
    margin-top: 8px;
}

.homepage-category-products-section .product .price del {
    color: #999 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    margin-right: 5px;
}

.homepage-category-products-section .product .price ins {
    text-decoration: none !important;
    color: #d3ac50 !important;
    font-weight: 600 !important;
}

.homepage-category-products-section .product .price .price-prefix {
    font-size: 14px !important;
    color: #888 !important;
    font-weight: normal !important;
    display: inline-block !important;
}

/* Fix product width on homepage */
.homepage-category-products-section ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
    list-style: none !important;
    padding: 0 !important;
}

.homepage-category-products-section ul.products li.product {
    width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
    margin: 0 !important;
    padding: 0 10px 20px !important;
    box-sizing: border-box !important;
    float: none !important;
}

.homepage-category-products-section .goal-products-wrapper {
    width: 100% !important;
}

.homepage-category-products-section .row-products-wrapper {
    display: block !important;
    width: 100% !important;
}

.homepage-category-products-section .products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
}

.category-banner {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
}

.category-banner a {
    display: block;
}

.category-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.category-banner a:hover img {
    transform: scale(1.02);
}

.homepage-category-products-section .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.homepage-category-products-section .products.columns-4>.product {
    width: calc(25% - 15px);
}

.view-all-products {
    text-align: center;
    margin-top: 30px;
}

.view-all-products .button {
    background: #d3ac50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-products .button:hover {
    background: #31503c;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .homepage-category-products-section .products.columns-4>.product {
        width: calc(33.333% - 14px);
    }

    .homepage-category-products-section ul.products li.product {
        width: 33.333% !important;
        max-width: 33.333% !important;
        flex: 0 0 33.333% !important;
    }
}

@media (max-width: 992px) {
    .homepage-category-products-section .products.columns-4>.product {
        width: calc(50% - 10px);
    }

    .homepage-category-products-section ul.products li.product {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

@media (max-width: 768px) {
    .homepage-category-products-section .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .category-banner {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .homepage-category-products-section .products.columns-4>.product {
        width: calc(50% - 10px);
    }

    .homepage-category-products-section ul.products li.product {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* Old styles - keeping for backward compatibility */

.homepage-products .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #31503c;
}

.homepage-products .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.homepage-products .products.columns-5>.product {
    width: calc(20% - 16px);
}

@media (max-width: 1200px) {
    .homepage-products .products.columns-5>.product {
        width: calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .homepage-products .products.columns-5>.product {
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .homepage-products .products.columns-5>.product {
        width: calc(50% - 10px);
    }

    .homepage-products .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}


.homepage-categories-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #31503c;
    text-transform: uppercase;
}

/* Category Slider */
.category-swiper {
    padding-bottom: 50px;
}

.category-swiper .swiper-slide {
    height: auto;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 10px;
    text-align: center;
    position: absolute;
    right: 10px;
    background: rgb(255 255 255);

}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: #31503c;
    margin: 0 0 10px 0;
}

.category-count {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* Pagination for category slider */
.category-pagination {
    bottom: 10px;
}

.category-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d3ac50;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.category-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .homepage-categories-section .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .category-swiper {
        padding-bottom: 45px;
    }

    .category-image {
        height: 70px;
    }

    .category-info {
        padding: 5px;
    }

    .category-name {
        font-size: 10px;
        margin-bottom: 0px;
    }

    .category-count {
        font-size: 8px;
    }

    .category-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .category-pagination .swiper-pagination-bullet-active {
        width: 20px;
    }
}

footer {
    background: #d3ac5029;
}