/*
Theme Name: Emall Child
Theme URI: https://demo.theme-sky.com/emall/
Author: Theme Sky Team
Author URI: http://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: emall
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: emall-child
*/

/* =========================================================
   1. Custom Fonts
   ========================================================= */

@font-face {
    font-family: 'UrbanistFlock';
    src: url('/wp-content/themes/emall-child/assets/fonts/UrbanistFlock-Medium.woff2') format('woff2'),
    url('/wp-content/themes/emall-child/assets/fonts/UrbanistFlock-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UrbanistFlock';
    src: url('/wp-content/themes/emall-child/assets/fonts/UrbanistFlock-Bold.woff2') format('woff2'),
    url('/wp-content/themes/emall-child/assets/fonts/UrbanistFlock-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   2. Global Layout & Basic Elements
   ========================================================= */

/* Center logo in header */
.logo {
    display: flex;
    align-items: center;
}

/* Tag cloud widget title */
.elementor-widget-wp-widget-tag_cloud h5 {
    font-size: 26px !important;
}

/* Tracking section (desktop hidden, mobile visible) */
.fl-tracking {
    display: none;
}

/* First column in WooCommerce tables – remove padding for bulk/wholesale tables */
.woocommerce table.shop_table th:first-child {
    padding: 0 !important;
}

/* =========================================================
   3. Product Highlight Cards
   ========================================================= */

.fl-highlight {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.fl-highlight__image {
    background-color: #f0f0f0;
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fl-highlight__image img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.fl-highlight__description {
    margin-left: 15px;
}

.fl-highlight__description h6 {
    font-size: 18px;
    margin: 0 0 5px;
}

/* =========================================================
   4. WhatsApp Buttons
   ========================================================= */

/* Inline “Buy on WhatsApp” button (e.g. on product page) */
.flock-whatsapp-btn {
    background-color: #128C7E !important;
    border-color: transparent !important;
    color: white !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px 0 !important;
    width: 100%;
}

.flock-whatsapp-btn:hover {
    background-color: #0e6b60 !important;
    border-color: transparent !important;
    color: white !important;
}

.flock-whatsapp-btn svg {
    width: 20px;
    fill: white;
    margin-right: 10px;
}

/* Floating WhatsApp CTA button (bottom-right circle) */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    background-color: #000;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #0e6b60;
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   5. WooCommerce Product Summary & Variations
   ========================================================= */

/* Remove default table borders/padding around variation selectors */
.summary table {
    border-width: 0 !important;
}

.summary td {
    padding: 0 !important;
}

.summary .variations .iconic-wlv-terms__term {
    padding: 0 !important;
}

/* Iconic variation labels/value containers */
.variations .iconic-wlv-variations__label {
    border: none !important;
    margin-bottom: 15px !important;
}

.variations .iconic-wlv-variations__value {
    border: none !important;
    padding: 0 !important;
}

/* Individual variation term styles */
.iconic-wlv-terms__term {
    margin: 0 !important;
    margin-right: 20px !important;
}

/* Active variation term */
.iconic-wlv-terms__term--current .iconic-wlv-terms__term-content {
    border: 1px solid var(--ts-btn-hover-bg) !important;
}

/* =========================================================
   6. Header & Account Area
   ========================================================= */

/* Hide account control block in header templates */
.header-template .account-control {
    display: none;
}

/* =========================================================
   7. Payment Gateways & Checkout Styling
   ========================================================= */

/* Payment method container */
.wc_payment_method {
    background-color: white;
    margin-bottom: 15px !important;
    padding: 15px 20px !important;
}

/* Payment method logos */
.wc-payment-gateway-icon {
    width: 40px;
}

/* Standard payment description box spacing */
.payment_box {
    margin-top: 10px !important;
}

/* Hide text labels for specific gateways – show only logos */
.payment_method_addi label,
.payment_method_wcsistecredito label {
    font-size: 0;
}

.payment_method_addi label img,
.payment_method_wcsistecredito label img {
    font-size: initial;
    vertical-align: middle;
}

/* Radio button custom styling on checkout */
.woocommerce-checkout input[type="radio"].input-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 6px;
}

.woocommerce-checkout input[type="radio"].input-radio:hover {
    border-color: rgba(255, 79, 0, 0.7);
}

.woocommerce-checkout input[type="radio"].input-radio:checked {
    border-color: rgba(255, 79, 0, 1);
    background-color: rgba(255, 79, 0, 1);
}

.woocommerce-checkout input[type="radio"].input-radio:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Payment method logos in add_payment_method/cart/checkout */

/* Main rule (final priority coming from the second CSS) */
#add_payment_method #payment ul.payment_methods li img,
.woocommerce-cart #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li img {
    max-width: 300px !important;
}

/* Fallback for add_payment_method when #payment wrapper is absent */
#add_payment_method ul.payment_methods li img {
    max-width: 80% !important;
}

/* =========================================================
   8. YITH “Frequently Bought Together”
   ========================================================= */

/* Hide checkboxes – rely on whole item click */
.yith-wfbt-section .yith-wfbt-item input[type="checkbox"] {
    display: none;
}

/* Section title sizing */
.yith-wfbt-section h2 {
    font-size: 30px;
    margin-bottom: 2px;
}

/* =========================================================
   9. Wholesale & Bulk Pricing Blocks
   ========================================================= */

.price-wholesale {
    font-weight: 300;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    background: black;
    color: white;
    padding: 5px 20px;
    margin-top: 10px;
}

.price-wholesale .amount {
    font-weight: 700;
}

.price-wholesale i {
    margin-right: 15px;
}

/* Stack regular price and wholesale price vertically */
.price-stack--both {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   10. Role Slider (Swiper-based)
   ========================================================= */

.emc-role-slider {
    width: 100%;
}

.emc-role-slider .swiper-wrapper {
    align-items: stretch;
}

.emc-role-slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.emc-role-slide-card {
    width: 100%;
    background: rgba(244, 244, 244, 1);
    padding: 24px;
    box-sizing: border-box;
}

/* Max-width container for slide card on larger screens */
.emc-role-slider .emc-role-slide-card {
    max-width: 900px;
    margin: 0 auto;
}

/* Pagination styling */
.emc-role-slider .swiper-pagination {
    position: relative;
    margin-top: 16px;
    text-align: center;
}

.emc-role-slider .swiper-pagination-bullet {
    opacity: 0.4;
}

.emc-role-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* =========================================================
   11. Split Offer Badge & Popup
   ========================================================= */

.fl-split-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.fl-split-offer__badge {

    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;

    border: none;
    color: #fff;
    padding: 5px 20px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.fl-split-offer__badge span {
    display: inline-block;
}

/* “More info” / icon button next to badge */
.fl-split-offer__info {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Popup base styles – hidden by default */
.ts-popup {
    display: none;
}

.ts-popup.mfp-hide {
    display: none;
}

/* Popup content area */
.ts-popup .ts-popup-content {
    padding: 16px;
    max-width: 420px;
    font-size: 14px;
}

/* “?” trigger button beside the badge (when using Magnific Popup, etc.) */
.fl-split-offer-popup-trigger {
    border: none;
    font-size: 16px;
    margin-left: 0;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 100px;
    width: 32px;
    height: 32px;
    text-align: center;
    color: black;
    line-height: 2;
}

@media (max-width: 768px) {
    .product-wrapper .product-label.has-split-offer-label + .product-group-button {
        top: auto !important;
        bottom: 20px !important;
    }
}

.woocommerce del,
.woocommerce span.price del,
.widget_shopping_cart_content del,
.fl-split-price-wrapper del {
    font-weight: 700 !important;
    opacity: 0.6;
    margin-right: 8px;
    text-decoration: line-through;
}

.fl-split-price-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1.2;
}

.fl-split-new-price,
.fl-split-checkout-price {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.fl-split-new-price i,
.fl-split-checkout-price i {
    margin: 0 5px;
    border: 2px solid currentColor;
    border-radius: 3px;
    font-size: 10px;
    padding: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-checkout .product-total .fl-split-checkout-price {
    justify-content: flex-end;
    width: 100%;
}

.widget_shopping_cart_content .total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.widget_shopping_cart_content .total .fl-split-mini-total {
    font-weight: 700;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .fl-split-price-wrapper {
        justify-content: flex-start;
    }
}

/* =========================================================
   12. Responsive Adjustments
   ========================================================= */

/* Cart buy-now button full width on mobile */
@media screen and (max-width: 768px) {
    .cart .ts-buy-now-button {
        width: 100% !important;
        margin: 10px 0 0 0 !important;
    }
}

/* Show tracking block only on mobile */
@media (max-width: 768px) {
    .fl-tracking {
        display: block;
    }
}

/* =========================================================
   13. Category Banners
   ========================================================= */

/* Estilos base para el banner */
.flock-category-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: transparent;

    /* Por defecto en escritorio ocupa 1 celda (auto) */
    grid-column: auto;
}

/* Asegurar que el contenido interno de Elementor llene el espacio */
.flock-category-banner .elementor,
.flock-category-banner .elementor-section {
    width: 100%;
    height: 100%;
}

/*
   MOBILE BREAKPOINT
   Asegúrate de que este media query coincida con el punto donde tu tema
   cambia la grilla de productos a 2 columnas (normalmente 767px o 768px).
*/
@media only screen and (max-width: 767px) {

    /* Forzar al banner a ocupar todas las columnas disponibles (desde la 1 hasta el final) */
    .woocommerce .products .flock-category-banner,
    .flock-category-banner {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px; /* Espacio visual debajo del banner */
    }

    /* Correcciones opcionales si Elementor agrega márgenes extraños */
    .flock-category-banner .elementor-section-wrap {
        margin-bottom: 0;
    }
}

/* Deposit button inherits primary button look */
.woocommerce .fl-deposit-wrapper .ts-buy-now-button{
    display:inline-flex; align-items:center; justify-content:center;
    padding:.7em 1.2em;
}
