/*
 Theme Name:  Cloudseven child theme
 Theme URI:    https://cloudseven.bg
 Description:  Child Theme for Divi
 Author:       AN Digital Studio
 Author URI:   https://andigital.bg
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

/*custom add to card button bellow product*/
.woocommerce ul.products li.product .button {
    display: inline-block;
    margin-top: 1em;
    background: #006F94;
    color: white;
    border: 0px;
    border-radius: 15px; 
}

/*remove view card text from shop page next to add to card*/

.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/*show only 1 product on mobile*/
@media (max-width: 767px) {
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-1 li.product, 
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-2 li.product, 
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-3 li.product, 
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-4 li.product, 
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-5 li.product, 
    body.et-db #et-boc .et-l .et_pb_shop ul.products.columns-6 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-1 li.product,  
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-2 li.product,  
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-3 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-4 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-5 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_related_products ul.products.columns-6 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-1 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-2 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-3 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-4 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-5 li.product, 
    body.et-db #et-boc .et-l .et_pb_wc_upsells ul.products.columns-6 li.product {
           width: 100%!important;
           margin-right: 0%!important;
       }
   }

/* move social media on one line*/
.social_media_links {
    display: inline-flex;
}

.cloudseven {
    color: #006f94;
    font-weight: bold;
}

.registered {
    font-size: 16px;
    vertical-align: text-bottom;
}

@media all and (max-width: 980px) {

    /*** wrap row in a flex box ***/
    .custom_row {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    /*** custom classes that will designate the order of columns in the flex box row ***/
    .first-on-mobile {
        -webkit-order: 1;
        order: 1;
    }

    .second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }

    .third-on-mobile {
        -webkit-order: 3;
        order: 3;
    }

    .fourth-on-mobile {
        -webkit-order: 4;
        order: 4;
    }

    /*** add margin to last column ***/
    .custom_row:last-child .et_pb_column:last-child {
        margin-bottom: 50px;
        margin-top: 50px;
    }

}

/* Checkout page*/

/*promo code info*/
.woocommerce .woocommerce-info {
    background: transparent;
    color: #121212 !important;
}

.woocommerce form.checkout_coupon p {
    font-size: 18px;
    color: #121212;
}

.woocommerce form.checkout_coupon .button[type="submit"] {
    background-color: transparent;
    border: 1px solid #121212;
    border-radius: 5px;
    width: 100%;
    color: #121212;
    transition: background-color 0.3s ease;
}

.woocommerce-checkout .button[type="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .order-review h3 {
    font-size: 18px;
    font-weight: bold;
    color: #121212;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.woocommerce form .form-row input.input-text{
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

.select2-container .select2-selection--single {
    height: auto;
    font-size: 16px;
}

.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label {
    font-size: 17px;
    color: #121212;
    font-weight: normal;
    margin-bottom: 5px;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .order-review {
    margin-bottom: 30px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background-color: #121212;
    border: 1px solid #121212;
    border-left: 4px solid #d9534f;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 20px;
    color: #121212 !important;
}

.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
    color: #121212;
    padding: 10px;
    font-size: 16px;
}

.woocommerce-checkout .order-discount-field input {
    background-color: #121212;
    padding: 10px;
    font-size: 16px;
    width: 100%;
}

.woocommerce-checkout .order-discount-field input:focus {
    border-color: #007cba;
}

.woocommerce table.shop_table {
    border: 1px solid 121212
}

.woocommerce table.shop_table th {
    color: #121212;
    font-size: 16px;
}

.woocommerce table.shop_table td {
    color: #121212;
    font-size: 16px;
    padding: 20px;
}
.woocommerce-checkout-payment {
    color: #121212;
    font-size: 16px;
    border: 1px solid #121212;
}

.woocommerce-page button.button.alt {
    width: 100%;
    margin-top: 20px;
    color: #121212;
}

.woocommerce .woocommerce-error {
    background-color: transparent;
}

#shipping_method .woo-bg--speedy-delivery .woo-bg-multiselect--additional-field {
    padding: 15px;
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    width: 100% !important;
}

.selectable-blurb.active {
  background-color: #f9f6e2 !important;  
  border-color: #ede4ab !important;
}

.selectable-blurb {
  background-color: #ffffff;
  border: 2px solid #01a9e0;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#cartpops-drawer .cpops-drawer-footer .cpops-cart-total .cpops-cart-line-items .includes_tax {
    display: -webkit-box !important;
}

.badge {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.save-money-badge {
    background-color: #2596be; 
    color: #ffffff;
    border-radius: 10px;
    padding: 3px 10px; 
}

.free-delivery-badge {
    background-color: #ede4ab;
    color: #000000; 
    border-radius: 10px;
    padding: 3px 10px; 
}

@media (max-width: 600px) {
  .badge {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*remove saving from cart pops*/
.cpops-cart-item__actions--pricing small {
    display: none !important;
}

/*remove on sale babge*/
.single-product .onsale {
    display: none !important;
}

/* Pricing badge row */
.custom-badge-row {
    position: relative;
    overflow: visible;
}

.custom-badge-row::before {
    content: "от 1200 €";
    position: absolute;
    top: 12px;
    left: -8px;
    background: #d0021b;
    color: #ffffff;
    font-family: 'Assistant', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: line-through;
    transform: rotate(-6deg);
    transform-origin: left center;
}

.custom-badge-row .et_pb_column_inner_2_tb_body {
    position: relative;
    border-right: 1px solid #d0d0d0;
}

.custom-badge-row .et_pb_column_inner_2_tb_body::after {
    content: "Поръчай";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    background: #ffffff;
    font-family: 'Assistant', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #363636;
    padding: 4px 6px;
    white-space: nowrap;
    z-index: 1;
}

@media (max-width: 767px) {
    .custom-badge-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }
    .custom-badge-row .et_pb_column_inner {
        width: 50% !important;
        float: none !important;
    }
}

/*woo product galery on left*/
@media (min-width: 992px) {

    .et_section_specialty .width-65 {
        width: 58% !important;
    }

    .et_section_specialty .width-30 {
        width: 35% !important;
    }

    .left-gallery-product .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 10px; 
    }


    .left-gallery-product .woocommerce-product-gallery .flex-viewport {
        width: calc(100% - 120px) !important; 
        margin: 0 !important;
        float: none !important;
    }

    .left-gallery-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        width: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        float: none !important;
    }

    .left-gallery-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 100% !important; 
        margin: 0 0 10px 0 !important;
        float: none !important;
    }

    .left-gallery-product .woocommerce-product-gallery .flex-control-thumbs img {
        width: 100% !important;
        height: auto !important;
        cursor: pointer;
        border-radius: 5px;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .left-gallery-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
        opacity: 1;
        border: 2px solid #2ea3f2;
    }
}

@media (max-width: 991px) {
    .left-gallery-product .woocommerce-product-gallery {
        display: block !important;
    }
    
    .left-gallery-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        margin-top: 15px !important;
        flex-wrap: wrap;
    }
    
    .left-gallery-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 25% !important;
        padding: 5px !important;
    }
}

.custom-marker-h2 h2.et_pb_module_heading {
    display: inline !important;
    background-image: linear-gradient(to top, #EDE4AB 40%, transparent 40%); 
    padding: 0 5px;
    line-height: 1.5em;
}

.custom-marker-h2 .et_pb_heading_container {
    text-align: center !important;
}

/**
 * .custom-tabs
 */

.custom-tabs.et_pb_tabs {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important; 
}

/* 2. Стилизиране на лентата с навигационни бутони (Tabs Controls) */
.custom-tabs .et_pb_tabs_controls {
    background-color: transparent !important;
    border-bottom: 1px solid #e2e2e2 !important;
    display: flex !important;
    flex-wrap: wrap;
}

.custom-tabs .et_pb_tabs_controls:after,
.custom-tabs .et_pb_tabs_controls:before {
    display: none !important;
}

.custom-tabs .et_pb_tabs_controls li {
    background-color: transparent !important;
    border: none !important;
    margin: 0 40px 0 0 !important;
    position: relative;
    padding: 0 !important;
    float: none !important;
}

.custom-tabs .et_pb_tabs_controls li a {
    color: #888888 !important; 
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 15px;
    padding: 12px 0 !important;
    display: block;
    transition: color 0.3s ease;
}

/* Ховър ефект при преминаване с мишката */
.custom-tabs .et_pb_tabs_controls li a:hover {
    color: #333333 !important;
}

/* 5. Дефиниране на АКТИВНО СЪСТОЯНИЕ (Active State) */
.custom-tabs .et_pb_tabs_controls li.et_pb_tab_active {
    border-bottom: 3px solid #01A9E0 !important; 
    margin-bottom: -1px;
}

.custom-tabs .et_pb_tabs_controls li.et_pb_tab_active a {
    color: #333333 !important;
}

/* 6. Стилизиране на контейнера със съдържанието (Tab Content) */
.custom-tabs .et_pb_all_tabs_content {
    padding: 40px 0 !important;
}

/* 7. Адаптивност за мобилни устройства */
@media (max-width: 767px) {
    .custom-tabs .et_pb_tabs_controls li {
        margin-right: 20px !important;
    }
    
    .custom-tabs .et_pb_tabs_controls li a {
        font-size: 14px;
    }
}