/*
Theme Name: Unicom Theme
Theme URI: https://storeunicom.local
Author: Antigravity AI
Description: DiseÃ±o Minimalista estilo Google (Material Design).
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: unicom
*/

/* CSS Variables for Softer, Modern Marketplace (Slate & Yellow) */
:root {
    --bg-color: #f8fafc; /* Very light slate gray to make white cards pop */
    --surface-color: #ffffff; /* White surfaces */
    --card-bg: #ffffff;
    --text-primary: #0f172a; /* Slate 900 (Softer almost black) */
    --text-secondary: #64748b; /* Slate 500 (Softer gray) */
    --header-bg: #facc15; /* Yellow header */
    --header-text: #0f172a; /* Slate 900 for header text */
    --accent-color: #facc15; /* Vibrant Yellow */
    --accent-hover: #eab308; /* Darker yellow */
    --accent-text: #0f172a; /* Slate 900 text on yellow buttons */
    --border-color: #e2e8f0; /* Slate 200 border */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text-primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-hover); }
p a, .woocommerce-MyAccount-content a:not(.button):not(.edit), .user-greeting a { color: var(--text-primary) !important; border-bottom: 2px solid var(--accent-color) !important; padding-bottom: 1px !important; transition: all 0.2s !important; font-weight: 600 !important; }
p a:hover, .woocommerce-MyAccount-content a:not(.button):not(.edit):hover, .user-greeting a:hover { border-bottom-color: var(--text-primary) !important; color: var(--text-primary) !important; }
img { max-width: 100%; height: auto; border-radius: 12px; }
ul { list-style: none; }

/* Utilities */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.btn { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    background: var(--accent-color); 
    color: var(--accent-text) !important; 
    font-weight: 600; 
    padding: 12px 28px; 
    border-radius: 100px; 
    text-align: center; 
    border: none; 
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.25px;
}

/* --- EFECTO HOVER GLOBAL PARA TODOS LOS BOTONES --- */
button, 
input[type="button"], 
input[type="submit"], 
.btn, 
.button, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.btn-outline-white,
.btn-yellow {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    will-change: transform, box-shadow;
}

button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover, 
.btn:hover, 
.button:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.btn-outline-white:hover,
.btn-yellow:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Sombra amarilla especÃ­fica para botones de acento (Yellow) */
.btn:hover, 
.btn-yellow:hover, 
.woocommerce a.checkout-button:hover, 
.woocommerce div.product form.cart .button:hover,
.woocommerce-MyAccount-content form button.button:hover {
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.45) !important;
}

.btn-outline { background: transparent; border: 2px solid var(--text-primary); color: var(--text-primary) !important; }
.btn-outline:hover { background: var(--text-primary); color: white !important; box-shadow: none; }

/* --- HEADER --- */
.promo-banner { background-color: var(--text-primary); color: #ffffff; text-align: center; padding: 12px 20px; font-size: 0.875rem; font-weight: 600; }
.promo-banner a { color: #ffffff; text-decoration: underline; margin-left: 10px; }

.site-header {
    background-color: var(--header-bg);
    padding: 16px 0;
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding .site-title { font-size: 1.5rem; font-weight: 700; color: var(--header-text); letter-spacing: -0.5px; display: flex; align-items: center; }

/* Center Nav */
.header-nav { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-grow: 1; margin: 0 20px; }
.header-nav > a,
.nav-dropdown-trigger { color: var(--header-text) !important; font-size: 0.95rem; font-weight: 700 !important; transition: color 0.2s; opacity: 0.9; text-decoration: none !important; display: flex; align-items: center; }
.header-nav > a:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger { color: var(--header-text) !important; opacity: 1; }

/* Header Actions */
.header-actions { display: flex; gap: 20px; align-items: center; }
.header-actions a { color: var(--header-text); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: 0.2s; position: relative;}
.header-actions > a:hover, .header-cart-wrapper > a:hover { background-color: rgba(0,0,0,0.05); }
.cart-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: #ffffff; font-size: 0.75rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--header-bg); }
.user-avatar-small img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-color); }

/* Mini Cart Dropdown (Hover) */
.header-cart-wrapper { position: relative; display: flex; align-items: center; }
.mini-cart-dropdown { position: absolute; top: 100%; right: -10px; width: 380px; background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border-radius: 16px; padding: 24px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 200; border: 1px solid var(--border-color); text-align: left; }
.header-cart-wrapper:hover .mini-cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-cart-dropdown::before { content: ''; position: absolute; top: -10px; right: 20px; border-width: 0 10px 10px 10px; border-style: solid; border-color: transparent transparent white transparent; }

/* Nuke WooCommerce Default Widget Styles */
.mini-cart-dropdown ul.cart_list { margin: 0 !important; padding: 0 !important; list-style: none !important; max-height: 350px !important; overflow-y: auto !important; overflow-x: hidden !important; scrollbar-width: thin; }
.mini-cart-dropdown ul.cart_list li { display: block !important; padding: 16px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--border-color) !important; position: relative !important; width: 100% !important; box-sizing: border-box !important;}
.mini-cart-dropdown ul.cart_list li.empty { padding: 20px 0 !important; text-align: center !important; color: var(--text-secondary) !important; border: none !important; }

/* Image and Title Wrapper */
.mini-cart-dropdown ul.cart_list li a:not(.remove) { display: flex !important; align-items: flex-start !important; gap: 16px !important; color: var(--text-primary) !important; font-weight: 500 !important; font-size: 0.95rem !important; line-height: 1.3 !important; padding-right: 40px !important; text-decoration: none !important; width: 100% !important; box-sizing: border-box !important; }
.mini-cart-dropdown ul.cart_list li a:not(.remove) img { width: 64px !important; height: 64px !important; min-width: 64px !important; border-radius: 8px !important; object-fit: contain !important; mix-blend-mode: multiply !important; background: var(--surface-color) !important; padding: 4px !important; margin: 0 !important; float: none !important; position: static !important; }

/* Remove Button */
.mini-cart-dropdown ul.cart_list li a.remove { position: absolute !important; right: 0 !important; top: 16px !important; left: auto !important; margin: 0 !important; color: #dc2626 !important; font-size: 1.2rem !important; font-weight: bold !important; width: 28px !important; height: 28px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 6px !important; transition: background 0.2s !important; border: 1px solid #fca5a5 !important; background: #fef2f2 !important; z-index: 10 !important; text-decoration: none !important;}
.mini-cart-dropdown ul.cart_list li a.remove:hover { background: #fee2e2 !important; }

/* Quantity and Price */
.mini-cart-dropdown .quantity { color: var(--text-secondary) !important; font-size: 0.9rem !important; display: block !important; font-weight: 600 !important; padding-left: 80px !important; margin-top: 8px !important; float: none !important; width: 100% !important; text-align: left !important;}

/* Bottom actions */
.mini-cart-dropdown .total { border-top: 2px solid var(--surface-color) !important; padding-top: 16px !important; margin-top: 16px !important; margin-bottom: 20px !important; display: flex !important; justify-content: space-between !important; font-weight: 700 !important; color: var(--text-primary) !important; font-size: 1.1rem !important; }
.mini-cart-dropdown .buttons { display: flex !important; gap: 12px !important; margin: 0 !important; padding: 0 !important; }
.mini-cart-dropdown .buttons .button { flex: 1 !important; text-align: center !important; font-size: 0.95rem !important; padding: 12px !important; border-radius: 100px !important; font-weight: 600 !important; text-decoration: none !important; display: block !important; margin: 0 !important;}
.mini-cart-dropdown .buttons a.button:not(.checkout) { background: var(--surface-color) !important; color: var(--text-primary) !important; border: none !important;}
.mini-cart-dropdown .buttons a.button:not(.checkout):hover { background: #e8eaed !important; }
.mini-cart-dropdown .buttons a.checkout { background: #facc15 !important; color: #000 !important; border: none !important;}
.mini-cart-dropdown .buttons a.checkout:hover { background: #eab308 !important; }

/* --- HEADER SEARCH INLINE --- */
.header-search-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 20px;
}
.header-search-form {
    width: 100%;
}
.header-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff !important;
    border: 2px solid #dc2626;
    border-radius: 100px;
    padding: 0 16px;
    height: 40px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}
.header-search-input-wrapper:focus-within {
    background: #ffffff !important;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.header-search-icon {
    margin-right: 10px;
    color: #6b7280;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-search-input-wrapper input[type="search"] {
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    outline: none !important;
}
.header-search-input-wrapper input[type="search"]::placeholder {
    color: #9ca3af;
}

/* Floating Live Search Results Panel */
.header-search-container .live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 45px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 8px 0;
    box-sizing: border-box;
    display: none;
}
.live-search-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
    gap: 12px;
}
.live-search-item:last-child {
    border-bottom: none;
}
.live-search-item:hover {
    background: #f9fafb;
}
.live-search-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2px;
    flex-shrink: 0;
}
.live-search-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
.live-search-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.live-search-price {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #eab308 !important;
}
.live-search-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* --- FRONT PAGE (Kemik Style Hero + Categories) --- */
.kemik-hero-section { padding: 20px 0; }

@media (max-width: 768px) {
    .kemik-hero-section { padding: 12px 0; }
}
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; height: 450px; }
.banner-content { padding: 40px; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;}
.main-slider-banner { border-radius: 24px; text-decoration: none; position: relative; overflow: hidden; display: block; color: var(--text-primary); transition: transform 0.2s; }
.main-slider-banner:hover { transform: scale(0.99); }
.main-slider-banner h2 { font-size: 3rem; font-weight: 700; margin-bottom: 16px; line-height: 1.1; letter-spacing: -1px; }
.main-slider-banner p { font-size: 1.2rem; margin-bottom: 32px; opacity: 0.8; }
.btn-yellow { background: #facc15; color: #000; padding: 12px 24px; border-radius: 100px; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.2s; border:none;}
.btn-yellow:hover { background: #eab308; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4); }
.side-banners { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.side-banner { border-radius: 24px; text-decoration: none; position: relative; overflow: hidden; display: block; transition: transform 0.2s; }
.side-banner:hover { transform: scale(0.98); }
.side-banner .banner-content { padding: 32px; }
.side-banner h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; line-height: 1.1; }
.btn-outline-white { border: 2px solid white; color: white; padding: 8px 20px; border-radius: 100px; font-weight: 600; display: inline-block; transition: 0.2s; }
.btn-outline-white:hover { background: white; color: #000; }

/* Categories Carousel */
.categories-section { padding: 0 0 5px 0; }
.categories-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 32px; padding-bottom: 10px; scrollbar-width: none; }
.categories-carousel::-webkit-scrollbar { display: none; }
.cat-circle { scroll-snap-align: start; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; width: 120px; }
.cat-circle-img { width: 120px; height: 120px; border-radius: 50%; background: #fff3e0; display: flex; align-items: center; justify-content: center; padding: 20px; transition: 0.3s; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.cat-circle-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius:0; background:transparent;}
.cat-circle:hover .cat-circle-img { background: #ffe0b2; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cat-circle:hover .cat-circle-img img { transform: scale(1.1); }
.cat-circle span { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); text-align: center; line-height: 1.2; transition: color 0.2s;}
.cat-circle:hover span { color: var(--accent-color); }

/* --- WOOCOMMERCE PRODUCT GRID (Google Store Style) --- */
.products-section { padding: 10px 0 30px 0; }
.woocommerce-products-header { margin-bottom: 16px; text-align: center; }
.woocommerce-products-header__title { font-size: 1.6rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.5px; }

.woocommerce ul.products.google-grid { 
    display: flex !important; 
    overflow-x: auto !important; 
    scroll-snap-type: x mandatory !important; 
    gap: 32px !important; 
    margin: 0; 
    padding-bottom: 12px !important; 
    scrollbar-width: none; 
}

@media (max-width: 1024px) {
    .products-section { padding: 10px 0 25px 0 !important; }
    .woocommerce-products-header { margin-bottom: 14px !important; }
    .woocommerce-products-header__title { font-size: 1.4rem !important; }
}

@media (max-width: 768px) {
    .products-section { padding: 8px 0 16px 0 !important; }
    .woocommerce-products-header { margin-bottom: 10px !important; }
    .woocommerce-products-header__title { font-size: 1.2rem !important; }
}
.woocommerce ul.products.google-grid::-webkit-scrollbar { display: none; }
.woocommerce ul.products.google-grid li.product { 
    flex: 0 0 calc(20% - 16px) !important; 
    scroll-snap-align: start !important; 
    background: transparent; 
    padding: 0; 
    text-align: left; 
    border: none; 
    box-shadow: none; 
    margin: 0 !important; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s; 
    height: auto !important;
}
.woocommerce ul.products.google-grid li.product:hover { transform: translateY(-4px); box-shadow: none; }
.woocommerce ul.products.google-grid li.product img { width: 100%; border-radius: 24px; margin-bottom: 24px; background: var(--surface-color); padding: 40px; mix-blend-mode: multiply; object-fit: contain; height: 300px; }
.woocommerce ul.products.google-grid li.product .woocommerce-loop-product__title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.woocommerce ul.products.google-grid li.product .price { color: var(--text-secondary); font-weight: 400; font-size: 1rem; margin-bottom: 16px; padding: 0; }
.woocommerce ul.products.google-grid li.product .button { background: transparent; color: var(--accent-color); border: none; border-radius: 0; font-weight: 500; font-size: 1rem; width: auto; padding: 0; text-align: left; display: inline-flex; align-items: center; }
.woocommerce ul.products.google-grid li.product .button:hover { background: transparent; text-decoration: underline; box-shadow: none; transform: none; }
.woocommerce ul.products.google-grid li.product .button::after { content: ' \2192'; font-size: 1.5rem; margin-left: 4px; line-height: 1; }

/* Arrows */
.carousel-nav-arrows { display: flex; gap: 12px; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #111; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.nav-arrow:hover { background: #facc15; border-color: #facc15; }

/* Hide standard WC elements that add noise */
.woocommerce .star-rating { display: none; }

/* ============================================================ */
/* --- PRODUCTOS EN OFERTA (SALE BADGE + PRECIO DESTACADO) --- */
/* ============================================================ */

/* Ocultar el "¡Oferta!" nativo de WooCommerce */
.woocommerce span.onsale { display: none !important; }

/* --- Badge "X% off" en la TARJETA de producto (grilla) ---
   Se posiciona encima de la imagen, esquina superior izquierda */
.woocommerce ul.products li.product { position: relative; }

.unicom-sale-badge-loop {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 5px 11px;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(225,29,72,0.4);
    pointer-events: none;
    animation: unicom-sale-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes unicom-sale-appear {
    from { opacity: 0; transform: scale(0.7) translateY(-4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Badge "Agotado" en la GRILLA — compacto, no full-width */
.unicom-out-of-stock-badge.unicom-oos-loop {
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start !important;
    margin-bottom: 4px !important;
}

/* La línea de ahorro tampoco debe estirarse */
.unicom-savings-line {
    display: block;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 500;
    color: #e11d48;
    margin-top: -8px;
    margin-bottom: 8px;
}
.unicom-savings-line strong {
    font-weight: 700;
}

/* Precio en grilla con oferta: precio original tachado en gris, precio sale en rojo */
.woocommerce ul.products.google-grid li.product .price del {
    color: #9ca3af !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    margin-right: 4px !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}
.woocommerce ul.products.google-grid li.product .price ins {
    color: #e11d48 !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
}

/* --- Bloque de precio en FICHA DE PRODUCTO (single) con oferta --- */
.unicom-sale-price-block {
    background: linear-gradient(135deg, #fff1f2 0%, #fff8f0 100%);
    border: 1.5px solid #fecdd3;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}
.unicom-sale-price-block::before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(225,29,72,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.unicom-sale-price-block .sale-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e11d48;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.unicom-sale-price-block .sale-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e11d48;
    animation: unicom-pulse-red 1.6s ease-in-out infinite;
}
.unicom-sale-price-block .sale-price-main {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.unicom-sale-price-block .sale-price-main .current-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #e11d48;
    line-height: 1;
    letter-spacing: -1px;
}
.unicom-sale-price-block .sale-price-main .original-price {
    font-size: 1.1rem;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1;
}
.unicom-sale-price-block .sale-percent-badge {
    display: inline-flex;
    align-items: center;
    background: #e11d48;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(225,29,72,0.35);
    margin-left: 2px;
    align-self: center;
}

/* --- Precio normal (sin oferta) en single product --- */
/* Ya estilizado globalmente; solo aseguramos que no aparezca el bloque de oferta */

/* ============================================================ */
/* --- PRODUCTOS SIN EXISTENCIAS (OUT OF STOCK) --- */


/* Dot de pulso rojo para el badge */
@keyframes unicom-pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* Badge "Agotado" rojo con punto pulsante */
.unicom-out-of-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px 5px 8px;
    border-radius: 100px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
.unicom-out-of-stock-badge .oos-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: unicom-pulse-red 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* Imagen desaturada cuando no hay stock */
.woocommerce ul.products.google-grid li.product.outofstock img,
.woocommerce ul.products li.product.outofstock img {
    opacity: 0.4 !important;
    filter: grayscale(70%) !important;
    transition: opacity 0.3s, filter 0.3s !important;
}

/* Deshabilitar hover lift en productos sin stock */
.woocommerce ul.products.google-grid li.product.outofstock:hover { transform: none !important; }

/* ---- Formulario "Avisame" en GRILLA de productos ---- */
.unicom-notify-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}
.unicom-notify-form .notify-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.1px;
}
.unicom-notify-form .notify-label svg {
    color: #ef4444;
    stroke: #ef4444;
    flex-shrink: 0;
}
/* Fila email + botón con contenedor unificado */
.unicom-notify-form .notify-input-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 100px;
    padding: 3px 3px 3px 12px;
    gap: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.unicom-notify-form .notify-input-row:focus-within {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.2);
}
.unicom-notify-form input[type="email"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 0.8rem;
    font-family: var(--font-family);
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-primary);
    min-width: 0;
    padding: 6px 6px 6px 0 !important;
}
.unicom-notify-form input[type="email"]:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}
.unicom-notify-form input[type="email"]::placeholder {
    color: #9ca3af;
}
.unicom-notify-form button.notify-btn {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 7px 14px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: opacity 0.2s, transform 0.15s !important;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3) !important;
    letter-spacing: 0.2px !important;
    flex-shrink: 0 !important;
}
.unicom-notify-form button.notify-btn:hover {
    opacity: 0.9 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4) !important;
}
.unicom-notify-form button.notify-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
.unicom-notify-msg {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 2px 0 2px;
    display: none;
    display: none;
    align-items: center;
    gap: 4px;
}
.unicom-notify-msg.success { color: #059669; display: flex; }
.unicom-notify-msg.error   { color: #dc2626; display: flex; }

/* ---- Bloque "Sin stock" en PÁGINA DE PRODUCTO INDIVIDUAL ---- */
.unicom-single-notify-wrap {
    margin-top: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff9f0 100%);
    border: 1.5px solid #fecaca;
    border-radius: 16px;
    padding: 20px 24px 22px 24px;
    position: relative;
    overflow: hidden;
}
/* Acento decorativo esquina */
.unicom-single-notify-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.unicom-single-notify-wrap .out-of-stock-headline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.unicom-single-notify-wrap .oos-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px 5px 10px;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(239,68,68,0.3);
}
.unicom-single-notify-wrap .oos-badge .oos-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: inline-block;
    animation: unicom-pulse-red 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.unicom-single-notify-wrap .oos-description {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.55;
    margin-top: 6px;
}

/* Formulario grande en single product — fila unificada */
.unicom-single-notify-wrap .unicom-notify-form {
    max-width: 440px;
    gap: 8px;
}
.unicom-single-notify-wrap .unicom-notify-form .notify-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
}
.unicom-single-notify-wrap .unicom-notify-form .notify-input-row {
    padding: 4px 4px 4px 18px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(239,68,68,0.07);
}
.unicom-single-notify-wrap .unicom-notify-form .notify-input-row:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.2);
}
.unicom-single-notify-wrap .unicom-notify-form input[type="email"] {
    font-size: 0.93rem;
    padding: 10px 8px 10px 0;
}
.unicom-single-notify-wrap .unicom-notify-form button.notify-btn {
    padding: 11px 22px !important;
    font-size: 0.88rem !important;
}
.unicom-single-notify-wrap .unicom-notify-msg {
    font-size: 0.84rem;
}

/* Ocultar texto nativo "Sin existencias" de WooCommerce (lo reemplaza nuestro badge) */
.woocommerce div.product .stock.out-of-stock,
.woocommerce ul.products li.product .button.disabled,
.woocommerce ul.products li.product .out-of-stock { 
    display: none !important; 
}

/* --- WOOCOMMERCE SINGLE PRODUCT --- */
.woocommerce div.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0 60px; margin-bottom: 64px; margin-top: 8px; align-items: start;}

.woocommerce div.product div.images { grid-column: 1; grid-row: 1; width: 100% !important; float: none !important; margin: 0 0 32px 0 !important; background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; box-sizing: border-box !important;}
.woocommerce div.product div.images .woocommerce-product-gallery__image { aspect-ratio: 1 / 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden !important; border-radius: 12px !important; background: #ffffff !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; border-radius: 12px !important; mix-blend-mode: normal !important; border: none; transition: transform 0.3s ease !important; margin: 0 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__image:hover img { transform: scale(1.02); }
.woocommerce div.product div.summary { grid-column: 2; grid-row: 1 / span 3; width: 100% !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; justify-content: flex-start;}
.woocommerce div.product .product_title { font-size: 2rem !important; font-weight: 700 !important; margin-bottom: 12px !important; line-height: 1.25 !important; letter-spacing: -0.5px !important; color: var(--text-primary) !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #000000 !important; font-size: 2.25rem !important; font-weight: 800 !important; margin-bottom: 12px !important; line-height: 1 !important; display: block; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none !important; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: 1.25rem !important; color: #9ca3af !important; margin-right: 8px; font-weight: 400 !important; }
.woocommerce div.product form.cart { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 12px !important; margin-top: 20px !important; padding-top: 20px !important; border-top: 1px solid var(--border-color) !important; }
.woocommerce div.product form.cart .variations_button { display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important; }
.woocommerce div.product form.cart .quantity { margin: 0 !important; display: inline-flex !important; }
.woocommerce div.product form.cart .button { flex: 1 !important; width: auto !important; background: var(--accent-color) !important; color: var(--accent-text) !important; font-size: 1.125rem !important; font-weight: 700 !important; padding: 16px 32px !important; border-radius: 100px !important; transition: 0.2s !important; border: none !important; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important; display: inline-block !important; }
.woocommerce div.product form.cart .button:hover { background: var(--accent-hover) !important; box-shadow: 0 8px 12px rgba(0,0,0,0.1) !important; transform: translateY(-1px) !important; }

/* --- TRUST BADGES (SINGLE PRODUCT) --- */
.unicom-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}
.trust-badge-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}
.trust-badge-icon {
    width: 22px;
    height: 22px;
    color: #eab308; /* Yellow accent color */
    flex-shrink: 0;
}
.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.trust-badge-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.trust-badge-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- STOCK STATUS BADGE (SINGLE PRODUCT) --- */
.woocommerce div.product .stock.in-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 14px !important;
    align-self: flex-start;
    line-height: 1.4;
}
.woocommerce div.product .stock.in-stock::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: unicom-pulse-green 1.8s infinite ease-in-out;
}
@keyframes unicom-pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}


/* Stacked Specs & Description — ancho completo con tarjetas premium */
.unicom-product-info-stack {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
}
.stacked-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    box-shadow: none;
    box-sizing: border-box;
}
.stacked-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    border-bottom: 3px solid #facc15;
    padding-bottom: 6px;
    display: inline-block;
}
.stacked-section p, .stacked-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.stacked-section ul, .stacked-section ol {
    padding-left: 20px;
    margin-bottom: 0;
}

/* --- TABLA DE ESPECIFICACIONES (SHOP ATTRIBUTES) --- */
.woocommerce table.shop_attributes {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}
.woocommerce table.shop_attributes tr {
    border-bottom: 1px solid #f1f5f9 !important;
}
.woocommerce table.shop_attributes tr:last-child {
    border-bottom: none !important;
}
.woocommerce table.shop_attributes tr:nth-child(even) {
    background-color: #f8fafc !important;
}
.woocommerce table.shop_attributes th {
    width: 160px !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    text-align: left !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.woocommerce table.shop_attributes td {
    padding: 12px 18px !important;
    color: var(--text-secondary) !important;
    font-style: normal !important;
    font-size: 0.88rem !important;
    border: none !important;
}
.woocommerce table.shop_attributes td p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.88rem !important;
}

/* ====================================================== */
/* --- SECCIÓN PRODUCTOS RELACIONADOS (ANCHO COMPLETO) --- */
/* ====================================================== */
.unicom-related-products-section {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 48px auto 60px auto;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

/* Header de la sección */
.related-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border-color);
}
.related-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0;
}
.related-section-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 100px;
}

/* Grilla de relacionados adaptada al estilo de la pantalla de inicio (Google Store Style) */
.woocommerce ul.products.google-grid.unicom-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    overflow-x: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    scrollbar-width: auto;
}
.woocommerce ul.products.google-grid.unicom-related-grid li.product {
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    scroll-snap-align: none !important;
}

/* Ajustes de tamaño y padding para uniformidad de las imágenes */
.woocommerce ul.products.google-grid.unicom-related-grid li.product img {
    height: 220px !important;
    padding: 24px !important;
    border-radius: 20px !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products.google-grid.unicom-related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    .woocommerce ul.products.google-grid.unicom-related-grid li.product img {
        height: 180px !important;
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products.google-grid.unicom-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .woocommerce ul.products.google-grid.unicom-related-grid li.product img {
        height: 160px !important;
        padding: 16px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    .woocommerce ul.products.google-grid.unicom-related-grid li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
    }
    .woocommerce ul.products.google-grid.unicom-related-grid li.product .price {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products.google-grid.unicom-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .woocommerce ul.products.google-grid.unicom-related-grid li.product img {
        height: 130px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .unicom-related-products-section {
        padding: 0 10px;
    }
}



/* Sticky Buy Bar */
.sticky-buy-bar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--border-color); z-index: 101; transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sticky-buy-bar.visible { transform: translateY(0); }
.sticky-bar-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.sticky-product-info { display: flex; align-items: center; gap: 16px; }
.sticky-product-title { font-weight: 500; font-size: 1rem; color: var(--text-primary); }
.sticky-product-price { font-size: 1.125rem; font-weight: 500; color: var(--text-primary); }
.sticky-buy-btn { background: var(--accent-color); color: white; padding: 10px 24px; border-radius: 100px; font-weight: 500; border: none; cursor: pointer; }

/* --- WOOCOMMERCE CHECKOUT (Kemik Style) --- */
/* Distraction-free mode */
.woocommerce-checkout .header-nav, 
.woocommerce-checkout .header-actions, 
.woocommerce-checkout .site-footer { display: none !important; }
.woocommerce-checkout .site-header { border-bottom: 1px solid var(--border-color); }

.woocommerce-checkout .woocommerce { max-width: 1200px; margin: 0 auto; }
.woocommerce-checkout .checkout-back-arrow {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}
.woocommerce-checkout .checkout-back-arrow:hover {
    color: var(--text-primary) !important;
    opacity: 1;
}
.woocommerce-checkout .checkout-back-arrow:hover svg {
    transform: translateX(-4px);
}
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 450px; gap: 60px; align-items: start; margin-top: 40px; margin-bottom: 80px; }

/* Left Column (Forms) */
.woocommerce-checkout #customer_details { display: flex; flex-direction: column-reverse; padding-right: 20px; }
.woocommerce-checkout h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 24px; color: var(--text-primary); border-bottom: 2px solid var(--surface-color); padding-bottom: 10px; }

/* Form Fields */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 4px;
}

.woocommerce-checkout .form-row {
    grid-column: span 2;
    margin-bottom: 24px;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

/* Split specific fields into 2 columns on desktop */
#billing_first_name_field,
#billing_last_name_field,
#billing_city_field,
#billing_state_field,
#billing_phone_field,
#billing_email_field,
#shipping_first_name_field,
#shipping_last_name_field,
#shipping_city_field,
#shipping_state_field {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    
    .woocommerce-checkout .form-row.form-row-first,
    .woocommerce-checkout .form-row.form-row-last,
    #billing_first_name_field,
    #billing_last_name_field,
    #billing_city_field,
    #billing_state_field,
    #billing_phone_field,
    #billing_email_field,
    #shipping_first_name_field,
    #shipping_last_name_field,
    #shipping_city_field,
    #shipping_state_field {
        grid-column: span 1;
    }
}

.woocommerce-checkout .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.woocommerce-checkout .form-row.woocommerce-validated label {
    color: #059669;
}

.woocommerce-checkout .form-row.woocommerce-invalid label {
    color: #dc2626;
}

.woocommerce-checkout .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
    text-decoration: none;
    font-weight: 700;
}

.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row textarea, 
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: #94a3b8;
}

.woocommerce-checkout .form-row input.input-text:hover, 
.woocommerce-checkout .form-row textarea:hover, 
.woocommerce-checkout .form-row select:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.woocommerce-checkout .form-row input.input-text:focus, 
.woocommerce-checkout .form-row textarea:focus, 
.woocommerce-checkout .form-row select:focus {
    border-color: #eab308;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid textarea,
.woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: #fca5a5 !important;
    background-color: #fef2f2 !important;
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text:focus,
.woocommerce-checkout .form-row.woocommerce-invalid textarea:focus,
.woocommerce-checkout .form-row.woocommerce-invalid select:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

/* Right Column (Order Review) */
.woocommerce-checkout #order_review_heading { display: none; } /* Hide heading to match Kemik */
.woocommerce-checkout #order_review { background: var(--surface-color); padding: 40px; border-radius: 24px; position: sticky; top: 100px; }
.woocommerce-checkout table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.woocommerce-checkout table.shop_table th, 
.woocommerce-checkout table.shop_table td { padding: 16px 0; border-bottom: 1px solid var(--border-color); text-align: left; }
.woocommerce-checkout table.shop_table tbody td { color: var(--text-secondary); font-size: 0.95rem; }
.woocommerce-checkout table.shop_table tfoot th { font-weight: 500; color: var(--text-primary); }
.woocommerce-checkout table.shop_table tfoot tr.order-total th, 
.woocommerce-checkout table.shop_table tfoot tr.order-total td { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); border-top: 2px solid var(--border-color); border-bottom: none; padding-top: 24px; }

/* Payment Methods (Kemik Boxes) */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; padding: 0; margin-top: 30px; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; margin: 0 0 30px 0; border: none; }
.woocommerce-checkout #payment ul.payment_methods li {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    border-color: #eab308;
    background: #fffbeb;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.12);
}
.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.25);
    cursor: pointer;
    accent-color: #eab308;
}
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 500; color: var(--text-primary); cursor: pointer; display: inline-block; width: calc(100% - 30px); }
.woocommerce-checkout #payment div.payment_box { background: var(--surface-color); padding: 16px; border-radius: 8px; margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); position: relative; }
.woocommerce-checkout #payment div.payment_box::before { display: none; } /* Remove standard WooCommerce arrow */

/* Kemik Yellow Button */
.woocommerce-checkout #place_order {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
    color: #000000 !important;
    font-weight: 750 !important;
    font-size: 1.125rem !important;
    padding: 18px 24px !important;
    border-radius: 100px !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45) !important;
    background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%) !important;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3) !important;
}

.woocommerce-checkout #place_order svg {
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.woocommerce-checkout #place_order:hover svg {
    transform: scale(1.1) !important;
}

/* Footer */
.site-footer { background: white; padding: 64px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-secondary); margin-top: 80px; }

/* --- CART MODAL (AJAX Pop-up) --- */
.cart-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-modal-overlay.active { opacity: 1; visibility: visible; }
.cart-modal-box { background: white; border-radius: 24px; width: 90%; max-width: 500px; padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); position: relative; transform: translateY(20px); transition: 0.3s; max-height: 90vh; overflow-y: auto; }
.cart-modal-overlay.active .cart-modal-box { transform: translateY(0); }
.cart-modal-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; transition: 0.2s; }
.cart-modal-close:hover { color: var(--text-primary); transform: scale(1.1); }
.cart-modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-weight: 600; font-size: 1.2rem; color: var(--text-primary); }
.cart-modal-product { display: flex; gap: 20px; margin-bottom: 32px; align-items: center; }
.cart-modal-product img { width: 80px; height: 80px; object-fit: contain; background: var(--surface-color); border-radius: 12px; padding: 8px; mix-blend-mode: multiply;}
.cart-modal-product-info h4 { margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.cart-modal-product-info .price { color: var(--text-secondary); font-weight: 500; font-size: 1.1rem; }
.cart-modal-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cart-modal-actions .btn { width: 100%; text-align: center; font-size: 1.1rem; padding: 14px; }
.btn-checkout-yellow { background: #facc15 !important; color: #000 !important; font-weight: 600; }
.btn-checkout-yellow:hover { background: #eab308 !important; }
.cart-modal-cross-sells h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.cross-sells-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cross-sell-item { display: flex; flex-direction: column; text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 8px; transition: 0.2s; }
.cross-sell-item:hover { border-color: var(--border-color); background: var(--surface-color); }
.cross-sell-item img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; mix-blend-mode: multiply;}
.cross-sell-item h5 { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); margin: 0 0 4px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cross-sell-item .price { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }

/* --- WOOCOMMERCE MY ACCOUNT DASHBOARD --- */
.woocommerce-account .entry-title { display: none; } /* Ocultar tÃ­tulo duplicado */
.woocommerce-account-header { text-align: center; margin: 40px 0 20px 0; }
.woocommerce-account-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }

/* User Dashboard Greeting Card */
.user-greeting { 
    display: flex !important; 
    align-items: center !important; 
    gap: 20px !important; 
    background: white !important; 
    border: 1px solid var(--border-color) !important; 
    padding: 24px 32px !important; 
    border-radius: 24px !important; 
    max-width: 1200px !important; 
    margin: 0 auto 40px auto !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important; 
}
.user-greeting .user-avatar { 
    width: 56px !important; 
    height: 56px !important; 
    background: var(--bg-color) !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}
.user-greeting .user-info h3 { 
    font-size: 1.3rem !important; 
    font-weight: 700 !important; 
    color: var(--text-primary) !important; 
    margin: 0 0 4px 0 !important; 
}

/* My Account Main Layout (Grid) */
.woocommerce-account .my-account-grid { 
    display: grid !important; 
    grid-template-columns: 280px 1fr !important; 
    gap: 40px !important; 
    max-width: 1200px !important; 
    margin: 0 auto 60px auto !important; 
    align-items: start !important; 
    float: none !important;
    width: 100% !important;
}

/* Notices wrapper spans full grid columns */
.woocommerce-account .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation { background: transparent !important; float: none !important; width: 100% !important; margin: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 0 !important; padding: 0 !important; border: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block !important; padding: 16px 24px !important; color: var(--text-secondary) !important; font-weight: 500 !important; text-decoration: none !important; border-radius: 100px !important; transition: 0.2s !important; font-size: 1.05rem !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: rgba(0,0,0,0.05) !important; color: var(--text-primary) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--text-primary) !important; color: var(--accent-color) !important; font-weight: 600 !important; border-radius: 100px !important; }



/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content { background: white !important; border: 1px solid var(--border-color) !important; border-radius: 32px !important; padding: 48px !important; box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important; float: none !important; width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
.woocommerce-account .woocommerce-MyAccount-content h3, 
.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: 1.8rem !important; font-weight: 600 !important; color: var(--text-primary) !important; margin-bottom: 24px !important; letter-spacing: -0.5px !important; margin-top: 0 !important;}
.woocommerce-account .woocommerce-MyAccount-content p { font-size: 1.1rem !important; color: var(--text-secondary) !important; line-height: 1.7 !important; margin-bottom: 20px !important; }
.woocommerce-account .woocommerce-MyAccount-content strong { color: var(--text-primary) !important; }

/* Account Tables & Forms */
.woocommerce-account .woocommerce-MyAccount-content table { width: 100% !important; border-collapse: collapse !important; margin-bottom: 32px !important; }
.woocommerce-account .woocommerce-MyAccount-content table th { text-align: left !important; padding: 16px !important; border-bottom: 2px solid var(--border-color) !important; color: var(--text-primary) !important; font-weight: 600 !important; }
.woocommerce-account .woocommerce-MyAccount-content table td { padding: 16px !important; border-bottom: 1px solid var(--border-color) !important; color: var(--text-secondary) !important; }
.woocommerce-account .woocommerce-MyAccount-content table td a.button { background: var(--bg-color) !important; color: var(--text-primary) !important; padding: 8px 16px !important; border-radius: 100px !important; font-size: 0.9rem !important; text-decoration: none !important; transition: 0.2s !important; display: inline-block !important; border: 1px solid var(--border-color) !important;}
.woocommerce-account .woocommerce-MyAccount-content table td a.button:hover { background: var(--text-primary) !important; color: white !important; }

/* Dashboard Forms */
.woocommerce-account .woocommerce-MyAccount-content form .form-row { margin-bottom: 16px !important; }
.woocommerce-account .woocommerce-MyAccount-content form label { display: block !important; font-weight: 700 !important; margin-bottom: 6px !important; color: var(--text-primary) !important; font-size: 0.85rem !important; }
.woocommerce-account .woocommerce-MyAccount-content form input.input-text,
.woocommerce-account .woocommerce-MyAccount-content form select,
.woocommerce-account .woocommerce-MyAccount-content form textarea { width: 100% !important; padding: 12px 14px !important; border: 1px solid #e2e8f0 !important; border-radius: 8px !important; background: #f8fafc !important; outline: none !important; transition: all 0.2s ease !important; font-family: var(--font-family) !important; font-size: 0.95rem !important; color: var(--text-primary) !important; }
.woocommerce-account .woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus,
.woocommerce-account .woocommerce-MyAccount-content form textarea:focus { border-color: #facc15 !important; background: #ffffff !important; box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15) !important; }
.woocommerce-account .woocommerce-MyAccount-content form span.description,
.woocommerce-account .woocommerce-MyAccount-content form em { display: block !important; font-size: 0.8rem !important; color: var(--text-secondary) !important; margin-top: 6px !important; font-style: normal !important; line-height: 1.4 !important; }
.woocommerce-account .woocommerce-MyAccount-content form button.button { background: var(--accent-color) !important; color: var(--accent-text) !important; padding: 14px 28px !important; border-radius: 100px !important; font-weight: 700 !important; font-size: 0.95rem !important; border: none !important; cursor: pointer !important; transition: all 0.2s ease !important; margin-top: 8px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }

/* Address Cards */
.woocommerce-account .woocommerce-Address {
    background: #ffffff !important;
    padding: 24px !important;
    border-radius: 20px !important;
    margin-bottom: 24px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
}
.woocommerce-account .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    border-bottom: 1px dashed #f1f5f9 !important;
    padding-bottom: 12px !important;
}
.woocommerce-account .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-Address-title h2 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}
.woocommerce-account .woocommerce-Address-title a.edit {
    background: #f8fafc !important;
    padding: 8px 18px !important;
    border-radius: 100px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}
.woocommerce-account .woocommerce-Address-title a.edit:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* --- MY ACCOUNT ADDRESS DISPLAY ENHANCEMENTS --- */
.woocommerce-Address address {
    font-style: normal !important;
    line-height: 1.65 !important;
    color: var(--text-secondary) !important;
    margin-top: 10px !important;
}

.woocommerce-Address address br {
    display: none !important;
}

.woocommerce-Address .address-name {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: capitalize !important;
}

.woocommerce-Address .address-nit {
    display: inline-flex !important;
    align-items: center !important;
    background: #fef08a !important;
    color: #854d0e !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    border: 1px solid #fef08a !important;
}

.woocommerce-Address .address-nit .address-label {
    color: var(--text-secondary) !important;
    margin-right: 4px !important;
    font-weight: 500 !important;
}

.woocommerce-Address .address-street,
.woocommerce-Address .address-city,
.woocommerce-Address .address-state,
.woocommerce-Address .address-phone,
.woocommerce-Address .address-email {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    vertical-align: middle !important;
}

.woocommerce-Address .address-street,
.woocommerce-Address .address-phone,
.woocommerce-Address .address-email {
    display: flex !important;
    margin-bottom: 6px !important;
}

.woocommerce-Address .address-street::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"/><path stroke-linecap="round" stroke-linejoin="round" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

.woocommerce-Address .address-city::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

.woocommerce-Address .address-phone::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.94.725l.548 2.2a1 1 0 01-.321.988l-1.305.98a10.582 10.582 0 004.872 4.872l.98-1.305a1 1 0 01.988-.321l2.2.548a1 1 0 01.725.94V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

.woocommerce-Address .address-email::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
}

/* --- ORDER PRODUCTS COLUMN STYLES --- */
.woocommerce-account table.shop_table td.woocommerce-orders-table__cell-order-items {
    text-align: left !important;
}

.unicom-order-thumbnails {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.order-thumb-wrapper {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    background: #f8fafc !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.order-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 5px !important;
}

.order-thumb-qty {
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    background: var(--text-primary) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.order-thumb-more {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: #e2e8f0 !important;
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px dashed var(--border-color) !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products.google-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 20px !important;
    }
    .woocommerce ul.products.google-grid li.product {
        flex: 0 0 calc(33.333% - 13.33px) !important;
        height: auto !important;
    }
    .header-nav { display: none; } /* Hide center nav on mobile, needs hamburger */
    
    /* Kemik Hero Tablet */
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .main-slider-banner { min-height: 350px; }
    .side-banners { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
    .side-banner { min-height: 200px; }
}

@media (max-width: 768px) {
    .woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 40px; }
    .woocommerce-checkout #customer_details { padding-right: 0; }
    .woocommerce-checkout #order_review { position: static; }
    .woocommerce ul.products.google-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
    }
    .woocommerce ul.products.google-grid li.product {
        flex: 0 0 calc(50% - 24px) !important;
    }
    .carousel-nav-arrows {
        display: none !important;
    }
    .woocommerce div.product { grid-template-columns: 1fr !important; gap: 32px !important; }
    .woocommerce div.product div.images { grid-column: 1 !important; grid-row: 1 !important; }
    .woocommerce div.product div.summary { grid-column: 1 !important; grid-row: 2 !important; }
    .woocommerce div.product .unicom-product-info-stack { grid-column: 1 !important; grid-row: 3 !important; }
    .woocommerce div.product .woocommerce-tabs { grid-column: 1 !important; grid-row: 4 !important; }
    .woocommerce div.product .related.products,
    .woocommerce div.product .upsells.products { grid-column: 1 !important; grid-row: 5 !important; }
    .sticky-product-info { display: none; } 
    
    /* Kemik Hero Mobile */
    .main-slider-banner h2 { font-size: 2rem; }
    .side-banners { display: none !important; }
    
    /* Categories Carousel Mobile */
    .categories-carousel { gap: 16px; padding: 0 20px 10px; margin: 0 -20px; width: calc(100% + 40px); }
    .cat-circle { width: 90px; gap: 12px; }
    .cat-circle-img { width: 90px; height: 90px; padding: 16px; }
    .cat-circle span { font-size: 0.8rem; }
    
    /* Fix Modal Cross-sells for mobile */
    .cross-sells-grid { grid-template-columns: 1fr; gap: 12px; }
    .cross-sell-item { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
    .cross-sell-item img { width: 60px; height: 60px; margin-bottom: 0; }
    
    /* Fix Mini-cart dropdown for mobile */
    .mini-cart-dropdown { width: 300px; right: -20px; }
    
    /* Adjust Single Product Image padding */
    .woocommerce div.product div.images { padding: 0 !important; border-radius: 0 !important; }
    .woocommerce div.product .product_title { font-size: 2rem; }
    
    /* My Account Mobile */
    .woocommerce-account .my-account-grid { grid-template-columns: 1fr !important; gap: 24px !important; margin: 24px auto !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: row !important; overflow-x: auto !important; padding-bottom: 16px !important; scroll-snap-type: x mandatory !important; margin: 0 -20px !important; padding: 0 20px 16px !important; width: calc(100% + 40px) !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li { scroll-snap-align: start !important; white-space: nowrap !important; }
    .woocommerce-account .woocommerce-MyAccount-content { padding: 24px !important; border-radius: 24px !important; }
    .woocommerce-account .woocommerce-Addresses .woocommerce-Address,
    .woocommerce-account .woocommerce-Address {
        background: #ffffff !important;
        padding: 20px 24px !important;
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    .woocommerce-account .woocommerce-Address-title {
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .woocommerce-account .woocommerce-Address-title h3,
    .woocommerce-account .woocommerce-Address-title h2 {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        margin: 0 !important;
    }
    .woocommerce-account .woocommerce-Address-title a.edit {
        background: #f8fafc !important;
        color: var(--text-primary) !important;
        border: 1px solid #e2e8f0 !important;
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 100px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    .woocommerce-account .woocommerce-Address-title a.edit:hover {
        background: #e2e8f0 !important;
        border-color: #cbd5e1 !important;
    }
    .woocommerce-Address address {
        line-height: 1.6 !important;
        margin-top: 8px !important;
    }
    .woocommerce-Address .address-name {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        margin-bottom: 6px !important;
    }
    .woocommerce-Address .address-nit {
        display: inline-flex !important;
        align-items: center !important;
        background: #fef08a !important;
        color: #854d0e !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        border: 1px solid #fef08a !important;
    }
    .woocommerce-Address .address-street,
    .woocommerce-Address .address-city,
    .woocommerce-Address .address-state,
    .woocommerce-Address .address-phone,
    .woocommerce-Address .address-email {
        font-size: 0.88rem !important;
        gap: 8px !important;
        color: var(--text-secondary) !important;
    }
    .woocommerce-Address .address-street,
    .woocommerce-Address .address-phone,
    .woocommerce-Address .address-email {
        margin-bottom: 6px !important;
        display: flex !important;
    }

    /* Mobile Header Layout & Ordering (Kemik Style) */
    .header-actions .mobile-search-toggle {
        display: flex !important;
    }
    
    .site-header {
        padding: 10px 0 !important;
        height: 60px !important;
        box-sizing: border-box !important;
    }
    .header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        height: 40px !important;
        padding: 0 16px !important;
        gap: 0 !important;
    }
    
    /* Logo Positioned Left Next to Menu */
    .site-branding {
        position: static !important;
        transform: none !important;
        order: 2 !important;
        margin: 0 0 0 8px !important;
        padding: 0 !important;
        z-index: 10 !important;
        margin-right: auto !important;
    }
    .site-branding .site-title {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    /* Left Hamburger Menu (using Categories trigger) */
    .header-nav {
        margin: 0 !important;
        padding: 0 !important;
        flex-grow: 0 !important;
        order: 1 !important;
    }
    .nav-dropdown-trigger {
        font-size: 0 !important; /* Hide text "Categorías" */
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        transition: background 0.2s !important;
        background: transparent !important;
    }
    .nav-dropdown-trigger:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    .nav-dropdown-trigger svg:first-child {
        margin: 0 !important;
        width: 22px !important;
        height: 22px !important;
    }
    .nav-dropdown-trigger svg:last-child {
        display: none !important; /* Hide down arrow */
    }
    
    /* Dropdown Categories Menu full screen overlay on Mobile */
    .nav-dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 80% !important;
        max-width: 300px !important;
        height: calc(100vh - 60px) !important;
        background: #111827 !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        padding: 20px 24px !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.3) !important;
        display: block !important;
        visibility: hidden !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s !important;
        box-sizing: border-box !important;
    }
    .nav-dropdown-wrapper.active .nav-dropdown-menu {
        visibility: visible !important;
        transform: translateX(0) !important;
    }
    
    /* Reset dropdown items inside mobile menu */
    .nav-dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        color: #ffffff !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-transform: none !important;
        transition: color 0.2s !important;
    }
    .nav-dropdown-menu a:hover {
        color: var(--accent-color) !important;
    }
    
    /* Subcategories indicator */
    .nav-dropdown-item.has-children > a {
        justify-content: space-between !important;
    }
    .nav-sub-dropdown-menu {
        position: static !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 8px !important;
        padding: 4px 16px !important;
        margin-top: 4px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important; /* Always show subcategories expanded inside menu */
    }
    .nav-sub-dropdown-menu a {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: #d1d5db !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        padding: 10px 0 !important;
    }
    .nav-sub-dropdown-menu a:last-child {
        border-bottom: none !important;
    }
    
    /* Desktop Search Inline style hidden on Mobile */
    .header-nav .header-search-container {
        display: none !important;
    }
    /* Hide desktop ofertas button */
    .header-nav .header-ofertas-btn {
        display: none !important;
    }
    
    /* Mobile Actions on the Right */
    .header-actions {
        order: 2 !important;
        gap: 8px !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-actions a,
    .mobile-search-toggle {
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    /* Full-width Dropdown Search Bar on Mobile */
    .header-search-container {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 16px !important;
        background: #111827 !important;
        box-sizing: border-box !important;
        z-index: 99999 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
        display: none !important;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }
    .header-search-container.active {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    /* Barra de búsqueda móvil: fondo blanco, texto oscuro (máxima compatibilidad) */
    .header-search-input-wrapper {
        background: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    }
    .header-search-input-wrapper:focus-within {
        border-color: var(--accent-color) !important;
        box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !important;
    }
    #live-search-input {
        color: #111827 !important;
        background-color: transparent !important;
    }
    #live-search-input::placeholder {
        color: #9ca3af !important;
    }
    #live-search-input::-webkit-search-cancel-button {
        -webkit-appearance: auto;
        cursor: pointer;
    }
    .header-search-icon {
        stroke: #6b7280 !important;
    }
    .header-search-container .live-search-results {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 350px !important;
        overflow-y: auto !important;
        background: #1f2937 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-top: none !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
    }
    .live-search-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 12px 16px !important;
    }
    .live-search-title {
        color: #ffffff !important;
    }
    .live-search-price {
        color: var(--accent-color) !important;
    }

}

.header-actions .mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.2s;
    position: relative;
    background: transparent;
    border: none;
    color: var(--header-text);
    padding: 0;
    cursor: pointer;
    outline: none;
}
.header-actions .mobile-search-toggle svg {
    stroke: var(--header-text) !important;
    fill: none !important;
    width: 20px !important;
    height: 20px !important;
}
.header-actions .mobile-search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.header-actions .mobile-search-toggle.active {
    background-color: var(--accent-color) !important;
    color: #000000 !important;
}
.header-actions .mobile-search-toggle.active svg {
    stroke: #000000 !important;
}


/* --- FREE SHIPPING PROGRESS BAR --- */
.unicom-free-shipping-progress-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    width: 100%;
}
.mini-cart-dropdown .unicom-free-shipping-progress-wrapper {
    background: var(--bg-color) !important;
    padding: 16px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    border: none !important;
    box-shadow: none !important;
}
.unicom-progress-bar-container {
    background: #e5e7eb;
    height: 10px;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    width: 100%;
}
.unicom-progress-bar-fill {
    background: var(--text-primary); /* Dark grey / black to match the style */
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.unicom-progress-bar-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 !important;
    line-height: 1.4;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.unicom-progress-bar-text strong {
    color: var(--text-primary);
}

@keyframes unicom-truck-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) translateX(1px) rotate(-1deg); }
}


/* Reducir espacio superior en páginas de carrito y checkout */
.woocommerce-cart main.site-main,
.woocommerce-checkout main.site-main {
    padding-top: 15px !important;
}

.woocommerce-cart h1.entry-title,
.woocommerce-checkout h1.entry-title {
    font-size: 1.6rem !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* --- CLASSIC CART PAGE (KEMIK STYLE) --- */
.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: 1fr 370px !important; /* Sidebar un poco más angosto */
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 10px auto 60px auto !important; /* Menor margen superior */
    align-items: start !important;
}

/* Full-width notices wrapper to keep left and right columns aligned */
.woocommerce-cart .woocommerce-notices-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Left Column: Cart Form */
.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1 !important;
}

/* Right Column: Cart Totals */
.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    width: 100% !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    padding: 24px !important; /* Más compacto */
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
}

/* Blended progress bar inside white cart totals */
.woocommerce-cart .cart-collaterals .unicom-free-shipping-progress-wrapper {
    background: var(--bg-color) !important;
    padding: 16px !important; /* Más compacto */
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Table styling reset */
.woocommerce-cart table.cart {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}
.woocommerce-cart table.cart thead {
    display: none !important; /* Minimalist clean design: no table headers */
}
.woocommerce-cart table.cart tr.cart_item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 0 !important; /* Altura de fila optimizada y compacta */
    border-bottom: 1px solid var(--border-color) !important;
    gap: 16px !important;
}
.woocommerce-cart table.cart td {
    border: none !important;
    padding: 0 !important;
}

/* Product Thumbnail */
.woocommerce-cart table.cart td.product-thumbnail {
    width: 70px !important;
    min-width: 70px !important;
}
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 4px !important;
}

/* Product Name */
.woocommerce-cart table.cart td.product-name {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
}
.woocommerce-cart table.cart td.product-name a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Product Price */
.woocommerce-cart table.cart td.product-price {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    min-width: 90px !important;
}

/* Product Quantity — pastilla gris con botones blancos */
.woocommerce-cart table.cart td.product-quantity {
    min-width: 140px !important;
    vertical-align: middle !important;
}

/* Pastilla contenedora */
.woocommerce-cart table.cart td.product-quantity .unicom-qty-wrapper,
.woocommerce-cart table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    border-radius: 100px !important;
    padding: 3px 6px !important;
    gap: 2px !important;
    border: none !important;
}

/* Botones − y + */
.woocommerce-cart table.cart td.product-quantity .unicom-qty-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.woocommerce-cart table.cart td.product-quantity .unicom-qty-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* Número en el centro */
.woocommerce-cart table.cart td.product-quantity .quantity input,
.woocommerce-cart table.cart td.product-quantity input.qty {
    width: 34px !important;
    height: 32px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--text-primary) !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Product Subtotal */
.woocommerce-cart table.cart td.product-subtotal {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    min-width: 100px !important;
    text-align: right !important;
}

/* Remove button */

.woocommerce-cart table.cart td.product-remove {
    min-width: 36px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.woocommerce-cart table.cart td.product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    position: relative !important;
}

.woocommerce-cart table.cart td.product-remove a.remove::after {
    content: "" !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16' /%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #fee2e2 !important;
}



/* Action buttons & Coupon input */
.woocommerce-cart table.cart td.actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    gap: 16px !important;
    border: none !important;
}
.woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}
.woocommerce-cart table.cart td.actions .coupon input[type="text"] {
    padding: 10px 16px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 100px !important;
    outline: none !important;
    font-size: 0.9rem !important;
    min-width: 160px !important;
}
.woocommerce-cart table.cart td.actions .coupon button {
    background: var(--text-primary) !important;
    color: white !important;
    border-radius: 100px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
}
.woocommerce-cart table.cart td.actions > button[name="update_cart"] {
    background: var(--bg-color) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 100px !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* Totals Box Styling */
.woocommerce-cart .cart_totals h2 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.5px !important;
    margin-top: 0 !important;
}
.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 16px !important;
}
.woocommerce-cart .cart_totals table.shop_table tr th,
.woocommerce-cart .cart_totals table.shop_table tr td {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-align: left !important;
}
.woocommerce-cart .cart_totals table.shop_table tr th {
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
}
.woocommerce-cart .cart_totals table.shop_table tr td {
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    text-align: right !important;
}

/* Shipping Methods list */
.woocommerce-cart .cart_totals ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 8px 0 0 0 !important;
    text-align: right !important;
}
.woocommerce-cart .cart_totals ul#shipping_method li {
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
}
.woocommerce-cart .cart_totals ul#shipping_method li input {
    margin-right: 8px !important;
}
.woocommerce-cart .shipping-calculator-button {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border-bottom: 2px solid var(--accent-color) !important;
    padding-bottom: 2px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Grand Total styling */
.woocommerce-cart .cart_totals tr.order-total th {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    border-bottom: none !important;
}
.woocommerce-cart .cart_totals tr.order-total td {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    border-bottom: none !important;
}

/* Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 30px !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    text-align: center !important;
    padding: 18px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media (max-width: 768px) {
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin: 24px auto !important;
    }
    .woocommerce-cart table.cart tr.cart_item {
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative !important;
        padding-bottom: 50px !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail {
        text-align: center !important;
        margin: 0 auto !important;
    }
    .woocommerce-cart table.cart td.product-name {
        text-align: center !important;
    }
    .woocommerce-cart table.cart td.product-price,
    .woocommerce-cart table.cart td.product-quantity,
    .woocommerce-cart table.cart td.product-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-width: 0 !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }
    .woocommerce-cart table.cart td.product-price::before {
        content: "Precio:" !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
    }
    .woocommerce-cart table.cart td.product-quantity::before {
        content: "Cantidad:" !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
    }
    .woocommerce-cart table.cart td.product-subtotal::before {
        content: "Subtotal:" !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
    }
    .woocommerce-cart table.cart td.product-remove {
        position: absolute !important;
        top: 20px !important;
        right: 0 !important;
    }
    .woocommerce-cart table.cart td.actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .woocommerce-cart table.cart td.actions .coupon {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .woocommerce-cart table.cart td.actions .coupon input[type="text"] {
        width: 100% !important;
    }
    .woocommerce-cart .cart-collaterals {
        padding: 24px !important;
        grid-column: 1 !important;
    }
}

/* --- LOGIN SLIDE-OUT DRAWER (KEMIK STYLE) --- */
.login-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(4px);
}
.login-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-drawer {
    position: fixed;
    top: 0;
    right: -480px; /* Hidden off-screen on the right */
    width: 440px;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.login-drawer.active {
    right: 0;
}

/* Responsive for smaller screens */
@media (max-width: 480px) {
    .login-drawer {
        width: 100% !important;
        right: -100% !important;
    }
    .login-drawer.active {
        right: 0 !important;
    }
}

/* Close Button */
.login-drawer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}
.login-drawer-close:hover {
    background: var(--text-primary);
    color: white;
    transform: rotate(90deg);
}

/* Content Container */
.login-drawer-content {
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* Mascot Illustration */
.login-drawer-mascot-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 24px;
    margin-top: 20px;
}
.login-drawer-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.login-drawer-badge {
    position: absolute;
    top: 15px;
    right: -10px;
    background: var(--accent-color);
    color: var(--accent-text);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
}

/* Title */
.login-drawer-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

/* Social Buttons */
.login-drawer-social-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-login-btn:hover {
    transform: translateY(-3px);
    border-color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.social-login-btn svg {
    flex-shrink: 0;
}

/* Email Form */
.login-drawer-email-form-container {
    width: 100%;
    animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-drawer-email-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.login-drawer-email-form-container label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-drawer-email-form-container input.input-text {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-sizing: border-box;
    outline: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.login-drawer-email-form-container input.input-text:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(17,24,39,0.06);
}

.login-drawer-email-form-container .form-row-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.login-drawer-email-form-container .lost-password-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.login-drawer-email-form-container .lost-password-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.login-drawer-email-form-container button[name="login"] {
    width: 100%;
    background: var(--text-primary) !important;
    color: #ffffff !important;
    padding: 16px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.login-drawer-email-form-container button[name="login"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.3) !important;
}

.back-to-social-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
    transition: 0.2s;
}
.back-to-social-btn:hover {
    color: var(--text-primary);
}

/* Footer disclaimer */
.login-drawer-footer {
    margin-top: auto !important;
    padding-top: 40px;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}
.login-drawer-footer a {
    color: #6b7280;
    text-decoration: underline;
}
.login-drawer-footer a:hover {
    color: var(--text-primary);
}

/* --- MY ACCOUNT LOGIN / REGISTER PAGE (KEMIK STYLE) --- */
.woocommerce-account .woocommerce {
    max-width: 1200px !important;
    margin: 60px auto 100px auto !important;
    padding: 0 20px !important;
}

/* Error/Message Boxes styling in WooCommerce */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: #fdf2f2 !important; /* Soft rose background */
    border: 1px solid #fde2e2 !important;
    border-radius: 12px !important;
    padding: 12px 16px 12px 38px !important;
    list-style: none !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #9b1c1c !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.woocommerce-message {
    background: #f3faf7 !important; /* Soft green */
    border: 1px solid #def7ec !important;
    color: #03543f !important;
}

.woocommerce-info {
    background: #f0f5ff !important; /* Soft blue */
    border: 1px solid #e0ebff !important;
    color: #1e40af !important;
}

.woocommerce-error::before {
    content: "\26A0" !important; /* Warning Icon */
    font-size: 1.1rem !important;
    color: #de350b !important;
    line-height: 1 !important;
    position: absolute !important;
    left: 14px !important;
    top: 13px !important;
}

.woocommerce-message::before {
    content: "\2713" !important; /* Check Icon */
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #0e9f6e !important;
    line-height: 1 !important;
    position: absolute !important;
    left: 14px !important;
    top: 13px !important;
}

.woocommerce-info::before {
    content: "\2139" !important; /* Info Icon */
    font-size: 1.1rem !important;
    color: #3f83f8 !important;
    line-height: 1 !important;
    position: absolute !important;
    left: 14px !important;
    top: 13px !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    text-align: left !important;
}

/* Wrapper for columns */
.woocommerce-account .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: start !important;
}

/* If single column (login only), center it and make it elegant width */
.woocommerce-account form.login:not(.col2-set form.login),
.woocommerce-account .woocommerce-form-login:not(.col2-set .woocommerce-form-login) {
    max-width: 480px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 32px !important;
    padding: 48px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

/* Grid columns for side-by-side */
.woocommerce-account .col-1,
.woocommerce-account .col-2 {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 32px !important;
    padding: 48px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    float: none !important;
}

/* Titles */
.woocommerce-account h2 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.75px !important;
    color: var(--text-primary) !important;
    margin: 0 auto 32px auto !important;
    text-align: left !important;
    margin-top: 0 !important;
    max-width: 480px !important; /* Align with centered single card */
}
.woocommerce-account:has(.col2-set) h2 {
    max-width: 100% !important; /* Full width if two columns */
}

/* Form layouts */
.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Form input rows */
.woocommerce-account form .form-row {
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.woocommerce-account form label {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 8px !important;
}

.woocommerce-account form input.input-text {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 100px !important;
    background: #ffffff !important;
    outline: none !important;
    font-size: 1rem !important;
    font-family: var(--font-family) !important;
    color: var(--text-primary) !important;
    transition: 0.2s !important;
    box-sizing: border-box !important;
}

.woocommerce-account form input.input-text:focus {
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06) !important;
}

/* Styling for WooCommerce Edit Account Password Change Fieldset */
.woocommerce-account form.woocommerce-EditAccountForm fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 24px 0 0 0 !important;
    background: transparent !important;
}

.woocommerce-account form.woocommerce-EditAccountForm fieldset legend {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    padding: 0 0 12px 0 !important;
    margin-bottom: 20px !important;
    border-bottom: 1px dashed #f1f5f9 !important;
    display: block !important;
    width: 100% !important;
}


/* Remember me & lost password row */
.woocommerce-account form .form-row-actions,
.woocommerce-account form.login .form-row:last-of-type {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: -8px !important;
    margin-bottom: 24px !important;
    font-size: 0.9rem !important;
    width: 100% !important;
}

.woocommerce-account form label.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

.woocommerce-account form label.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--accent-color) !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.woocommerce-account form .lost-password-link,
.woocommerce-account form a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--accent-color) !important;
    padding-bottom: 1px !important;
}

.woocommerce-account form .lost-password-link:hover,
.woocommerce-account form a:hover {
    color: var(--text-primary) !important;
    border-bottom-color: var(--text-primary) !important;
}

/* Submit Button */
.woocommerce-account form button.woocommerce-form-login__submit,
.woocommerce-account form button.woocommerce-form-register__submit,
.woocommerce-account form button.button {
    width: 100% !important;
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    font-weight: 700 !important;
    padding: 16px !important;
    border-radius: 100px !important;
    font-size: 1.05rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-align: center !important;
    display: block !important;
    margin-top: 10px !important;
}

.woocommerce-account form button.woocommerce-form-login__submit:hover,
.woocommerce-account form button.woocommerce-form-register__submit:hover,
.woocommerce-account form button.button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.45) !important;
}

/* Responsive side-by-side columns */
@media (max-width: 991px) {
    .woocommerce-account .col2-set {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* Hide Country field for Guatemala */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}

/* Custom Checkout Billing Grouping (Kemik Style) */
.unicom-checkout-saved-billing-container {
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Tarjeta 2: Datos de Facturación ── */

/* Email field in fiscal card */
.unicom-checkout-saved-card-email {
    font-size: 0.88rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    margin-top: 4px;
    word-break: break-all;
}

/* NIT row with icon */
.unicom-checkout-saved-card-nit {
    font-size: 0.92rem;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

/* Company row with icon */
.unicom-checkout-saved-card-company {
    font-size: 0.88rem;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}



.unicom-checkout-saved-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 12px;
}

.unicom-checkout-saved-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.unicom-checkout-saved-card.active {
    border-color: var(--accent-color, #facc15) !important;
    background: #fffbeb !important;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15) !important;
}

.unicom-checkout-saved-card input[type="radio"] {
    margin-top: 4px !important;
    accent-color: #111827 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.unicom-checkout-saved-card-content {
    flex-grow: 1;
}

/* Etiqueta "Datos de Facturación" */
.unicom-checkout-billing-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.unicom-checkout-saved-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Razón Social */
.unicom-checkout-saved-card-company {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 4px;
}





.unicom-checkout-saved-card-address {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 4px;
}

.unicom-checkout-saved-card-phone {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 12px;
    margin-top: 2px;
}

.unicom-checkout-saved-card-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.unicom-checkout-card-action-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 2px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.unicom-checkout-card-action-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 000-1.41l-2.34-2.34a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.unicom-checkout-card-action-btn:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Botón "Guardar cambios" — aparece al editar */
.unicom-checkout-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color, #facc15);
    color: #111827;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    outline: none;
    letter-spacing: 0.2px;
}

.unicom-checkout-save-btn:hover {
    background: var(--accent-hover, #eab308);
    transform: translateY(-1px);
}

.unicom-checkout-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Fila de acciones: Editar + Guardar en la misma línea */
.unicom-checkout-saved-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}


.unicom-checkout-add-new-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #ef4444 !important; /* red highlighting like Kemik */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.unicom-checkout-add-new-trigger:hover {
    color: #dc2626 !important;
    text-decoration: underline;
}

/* Accordion Smooth Height Transitions */
.unicom-checkout-fields-wrapper {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    width: 100%;
}

.unicom-checkout-fields-wrapper.unicom-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Kemik sat notice label styles */
.unicom-checkout-sat-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 14px;
    font-weight: 500;
}

.unicom-checkout-sat-notice::before {
    content: "\25CF ";
    color: #ef4444;
    font-size: 1rem;
}

/* Fix alignment: all address edit form fields should be full width */
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row,
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row-first,
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .form-row input,
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row select {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Force full width on address field by ID - overrides any WooCommerce inline/class width */
#billing_address_1_field,
#shipping_address_1_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

#billing_address_1_field input,
#shipping_address_1_field input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Force full width on phone fields */
#billing_phone_field,
#shipping_phone_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

#billing_phone_field input,
#shipping_phone_field input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ========================================
   SELECT2 STYLING â€” Match premium inputs
   ======================================== */

/* The main select2 "input" container (pill shape -> modern rounded) */
.select2-container .select2-selection--single {
    height: auto !important;
    padding: 13px 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    outline: none !important;
    font-size: 0.95rem !important;
    font-family: var(--font-family) !important;
    color: var(--text-primary) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.select2-container .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

/* Focus state â€” yellow glow like other inputs */
.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single {
    border-color: #eab308 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    outline: none !important;
}

/* Hide the ugly default arrow and replace it */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 18px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-secondary) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-top: 0 !important;
}

/* Selected text inside */
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
}

/* Placeholder text color */
.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

/* Dropdown panel */
.select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    margin-top: 4px !important;
}

/* Search box inside dropdown */
.select2-search--dropdown {
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    font-family: var(--font-family) !important;
    outline: none !important;
    width: 100% !important;
    background: #f8fafc !important;
    transition: all 0.2s !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #eab308 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15) !important;
}

/* Individual options */
.select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    font-family: var(--font-family) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

/* Highlighted/hovered option */
.select2-results__option--highlighted[aria-selected],
.select2-results__option:hover {
    background-color: var(--accent-color) !important;
    color: #000000 !important;
}

/* Currently selected option in the list */
.select2-results__option[aria-selected="true"] {
    background-color: rgba(250, 204, 21, 0.15) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Hide fields safely instead of unsetting them to prevent WooCommerce validation errors */
.unicom-hidden-field {
    display: none !important;
}

/* Empty Cart Custom Kemik-Style Design */
.unicom-empty-cart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.unicom-empty-cart-icon svg {
    margin-bottom: 20px;
}

.unicom-empty-cart-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 10px !important;
    border: none !important;
    padding: 0 !important;
}

.unicom-empty-cart-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.unicom-empty-cart-btn {
    display: inline-block;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border: 2px solid #e5e7eb !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.unicom-empty-cart-btn:hover {
    border-color: var(--text-primary) !important;
    background-color: #f9fafb !important;
}

/* Hide WooCommerce default empty message */
.cart-empty.woocommerce-info {
    display: none !important;
}

.unicom-empty-cart-cross-sells { 
    margin-top: 50px; 
    border-top: 1px solid #e5e7eb; 
    padding-top: 40px; 
}

.unicom-empty-cart-cross-sells-title { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 25px; 
    text-align: left; 

}

/* Empty Cart Grid Fix */
.unicom-empty-cart-cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    margin: 0;
}
@media (max-width: 768px) {
    .unicom-empty-cart-cross-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Override Flex layout for empty cart */
body.woocommerce-cart .woocommerce:has(.unicom-empty-cart-page) {
    display: block !important;
}

/* Wishlist Button Core Styles */
.unicom-wishlist-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

/* Loop Specific (Absolute position on top right of product card) */
ul.products li.product {
    position: relative;
}

ul.products li.product .unicom-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Single Product Specific (Inline next to Add to Cart / Notificarme) */
.summary .unicom-wishlist-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    vertical-align: middle !important;
}

/* States */
.unicom-wishlist-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
    border-color: #fca5a5;
}

.unicom-wishlist-btn.in-wishlist {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.unicom-wishlist-btn.loading svg {
    animation: unicom-heart-pulse 1s infinite alternate;
}

@keyframes unicom-heart-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Custom Wishlist Grid in My Account */
.woocommerce ul.products.unicom-wishlist-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products.unicom-wishlist-grid li.product {
    flex: none !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

@media (max-width: 991px) {
    .woocommerce ul.products.unicom-wishlist-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products.unicom-wishlist-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}


/* --- KEMIK STYLE REVIEWS --- */
.unicom-reviews-wrapper {
    margin-top: 40px;
}

.unicom-reviews-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.unicom-reviews-summary-left {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.unicom-opiniones-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
}

.unicom-average-rating-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.unicom-average-rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.unicom-average-rating-stars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unicom-average-rating-stars .star-rating {
    font-size: 1.4rem !important;
    width: 7.5em !important;
    color: #facc15 !important;
}

.unicom-total-reviews-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.unicom-write-review-btn {
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.unicom-write-review-btn:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.unicom-reviews-summary-right {
    flex: 1 1 350px;
}

.unicom-rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.unicom-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.unicom-rating-bar-label {
    width: 100px;
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
    line-height: 1;
}

.unicom-rating-bar-label .gold-star {
    color: #facc15;
}

.unicom-rating-bar-label .gray-star {
    color: #e5e7eb;
}

.unicom-rating-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 100px;
    overflow: hidden;
}

.unicom-rating-bar-fill {
    height: 100%;
    background: #facc15;
    border-radius: 100px;
}

.unicom-rating-bar-percentage {
    width: 45px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Review Form Styling */
.unicom-review-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.unicom-rating-selector-wrapper {
    margin-bottom: 24px;
}

.unicom-rating-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.unicom-stars-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.unicom-stars-picker .star-item {
    font-size: 2.5rem;
    cursor: pointer;
    color: #e5e7eb;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.unicom-stars-picker .star-item.active,
.unicom-stars-picker .star-item.hover {
    color: #facc15;
}

.unicom-rating-label-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-block;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.unicom-rating-label-text.selected {
    color: #000000;
    background: #fef3c7;
    border: 1px solid #fde68a;
    font-weight: 600;
}

/* Comment Form Layout */
.comment-form-comment label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.comment-form-comment textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 1rem;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.comment-form-comment textarea:focus {
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.unicom-review-form-card .comment-form-author,
.unicom-review-form-card .comment-form-email {
    margin-bottom: 16px;
}

.unicom-review-form-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.unicom-review-form-card input[type="text"],
.unicom-review-form-card input[type="email"] {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s;
}

.unicom-review-form-card input[type="text"]:focus,
.unicom-review-form-card input[type="email"]:focus {
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.unicom-submit-review-btn {
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.unicom-submit-review-btn:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Individual Reviews List */
.unicom-reviews-list-container {
    margin-top: 40px;
}

.commentlist {
    margin: 0 !important;
    padding: 0 !important;
}

.commentlist li.review {
    list-style: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 32px 0 !important;
    margin: 0 !important;
}

.commentlist li.review:last-child {
    border-bottom: none !important;
}

.commentlist li.review .comment_container {
    display: flex;
    gap: 20px;
}

.commentlist li.review img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
    object-fit: cover;
}

.commentlist li.review .comment-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.commentlist li.review .comment-text .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 !important;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1;
}

.commentlist li.review .comment-text .meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.commentlist li.review .comment-text .meta time {
    color: #9ca3af;
    font-size: 0.85rem;
}

.woocommerce-review__verified {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    border: 1px solid #a7f3d0 !important;
}

/* Redesign WooCommerce Star Rating inside comment list */
.comment-text .star-rating {
    float: none !important;
    margin: 4px 0 0 0 !important;
    font-size: 0.95rem !important;
    color: #facc15 !important;
    width: 5.4em !important;
}

.comment-text .description {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 8px 0 0 0 !important;
}

/* --- WOOCOMMERCE PRODUCT PAGE KEMIK ENHANCEMENTS --- */
.unicom-product-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.unicom-badge-free-shipping {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.unicom-badge-online-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.85rem;
}

.unicom-badge-online-available .green-dot {
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

/* Payment Info Box (Cuotas) */
.unicom-product-payment-info {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.unicom-cuotas-text strong {
    color: #000000;
    font-weight: 700;
}

.unicom-payment-cards-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.unicom-payment-cards-icons .card-icon {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.unicom-view-cuotas-link {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    font-size: 0.85rem;
}

.unicom-view-cuotas-link:hover {
    color: #1d4ed8 !important;
}

/* Delivery Options Panel */
.unicom-delivery-options-panel {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unicom-delivery-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.unicom-delivery-icon {
    color: #4b5563;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unicom-delivery-icon svg {
    display: block;
}

.unicom-delivery-details {
    flex: 1;
}

.unicom-delivery-row-title {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 0 4px 0 !important;
    font-size: 0.95rem !important;
}

.unicom-delivery-row-desc {
    color: var(--text-secondary) !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
}

/* Redesign inline review summary next to title */
.woocommerce-product-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

.woocommerce-product-rating .star-rating {
    display: inline-block !important;
    color: #facc15 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    float: none !important;
    width: 5.4em !important;
}

.woocommerce-product-rating .woocommerce-review-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
    text-decoration: underline !important;
}

/* Responsiveness for single product grid */
@media (max-width: 991px) {
    .woocommerce div.product {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-top: 20px !important;
    }
    .woocommerce div.product div.images {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    .woocommerce div.product div.summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    .woocommerce div.product .unicom-product-info-stack {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }
    .woocommerce div.product .related.products,
    .woocommerce div.product .upsells.products {
        grid-column: 1 !important;
        grid-row: 5 !important;
    }
}

/* --- WOOCOMMERCE GALLERY LEFT THUMBNAILS (KEMIK STYLE) --- */
@media (min-width: 768px) {
    .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse !important;
        gap: 20px !important;
        align-items: flex-start !important;
        width: 100% !important;
    }
    .woocommerce-product-gallery__wrapper {
        flex: 1 !important;
        margin: 0 !important;
    }
    .flex-control-thumbs {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 80px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }
    .flex-control-thumbs li {
        width: 100% !important;
        margin: 0 !important;
    }
}
@media (max-width: 767px) {
    .flex-control-thumbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-top: 12px !important;
        padding: 4px !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        list-style: none !important;
    }
    .flex-control-thumbs::-webkit-scrollbar {
        display: none !important;
    }
    .flex-control-thumbs li {
        width: 60px !important;
        min-width: 60px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        font-size: 0 !important;
        color: transparent !important;
    }
}

.flex-control-thumbs li img {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 4px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    opacity: 0.7 !important;
}

.flex-control-thumbs li img:hover,
.flex-control-thumbs li img.flex-active {
    border-color: var(--accent-color) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2) !important;
}

/* --- ELEGANT QUANTITY INPUT (KEMIK STYLE) --- */
.woocommerce .quantity .qty {
    width: 68px !important;
    height: 52px !important;
    padding: 0 4px !important;
    text-align: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 100px !important;
    background: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    -moz-appearance: textfield !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.woocommerce .quantity .qty:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2) !important;
}


/* ===================================================
   MINI-CART: Layout imagen + nombre (canonical)
   =================================================== */

/* Cada item: flex row */
.mini-cart-dropdown ul.cart_list li.mini_cart_item,
.mini-cart-dropdown ul.cart_list li.woocommerce-mini-cart-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 12px 16px !important;
    overflow: visible !important;
    max-height: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Enlace del producto y wrapper sin permalink: flex row con imagen + nombre */
.mini-cart-dropdown ul.cart_list li .unicom-mini-cart-link,
.mini-cart-dropdown ul.cart_list li .unicom-mini-cart-item-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 28px !important;
}

/* Imagen: cuadrado fijo */
.unicom-mini-cart-thumb {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.unicom-mini-cart-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

/* Nombre: 2 líneas máximo */
.unicom-mini-cart-name {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* Ocultar imagen nativa de WooCommerce (la manejamos en .unicom-mini-cart-thumb) */
.mini-cart-dropdown ul.cart_list li a:not(.remove) > img {
    display: none !important;
}


/* ===================================================
   MINI-CART: Cantidad y precio del item
   =================================================== */

.mini-cart-dropdown ul.cart_list li .quantity {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    padding-left: 68px !important;   /* Alineado bajo el nombre, no bajo la imagen */
    margin-top: 2px !important;
    font-weight: 500 !important;
}


/* ===================================================
   PRODUCT GRID: Kemik Style (Compact & Yellow Button)
   =================================================== */

/* Ajustar el contenedor de la cuadricula para que no sea tan espacioso */
.woocommerce ul.products.google-grid,
.woocommerce ul.products {
    gap: 20px !important;
}

/* Carousel horizontal: todos los items deben tener la misma altura */
.woocommerce ul.products.google-grid {
    align-items: stretch !important;
}

/* Tarjeta de producto compacta — flex column para empujar acciones al fondo */
.woocommerce ul.products li.product {
    padding: 16px !important;
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid #f3f4f6 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    transform: translateY(-4px) !important;
}

/* Reducir tamaño de la imagen — altura fija para uniformidad */
.woocommerce ul.products li.product img {
    height: 180px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    background: #ffffff !important;
    width: 100% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important; /* la imagen nunca se comprime */
}

/* Titulo del producto: altura fija exacta de 2 lineas */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.8em !important; /* FIJO: siempre 2 lineas */
    color: var(--text-primary) !important;
    flex-shrink: 0 !important;
}

/* Precio: altura estandar */
.woocommerce ul.products li.product .price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 4px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Badge ENVÍO GRATIS — altura fija garantizada */
.woocommerce ul.products li.product .shipping-badge {
    min-height: 28px; /* espacio reservado aunque no haya badge */
    flex-shrink: 0;
}

/* Empujador: todo lo que va DEBAJO de precio/envio se pega al fondo */
/* Savings line, badge agotado, botón agregar → margin-top auto */
.unicom-savings-line,
.unicom-out-of-stock-badge.unicom-oos-loop,
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
}

/* El savings line no debe empujar dos veces — reset para el agotado después */
.unicom-out-of-stock-badge.unicom-oos-loop {
    margin-top: 8px !important;
}
/* Cuando hay savings AND agotado, el savings ya empujó todo */
.unicom-savings-line + .unicom-out-of-stock-badge.unicom-oos-loop {
    margin-top: 8px !important;
}
/* Cuando hay savings y NO hay agotado, savings empuja al fondo */
.woocommerce ul.products li.product .price + .unicom-savings-line {
    margin-top: auto !important;
}

/* Separador invisible para reservar espacio de savings si no existe */
.woocommerce ul.products li.product .price:not(:has(~ .unicom-savings-line)) {
    margin-bottom: auto !important; /* empuja el siguiente elemento al fondo */
}

/* Boton amarillo redondeado al estilo Kemik/Unicom */
.woocommerce ul.products li.product .button {
    background: #facc15 !important;
    color: #000 !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    transition: background 0.2s !important;
    text-transform: none !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #eab308 !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ocultar la flechita que tenia el boton por defecto */
.woocommerce ul.products li.product .button::after {
    display: none !important;
}




/* ===================================================
   PRODUCT GRID: Forzar columnas en todas las vistas
   =================================================== */

/* Forzar cuadricula en todas las listas de productos (Busqueda, Categorias, etc) */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* En paginas con barra lateral (categorias, busqueda), limitar a 4 columnas en escritorio */
.unicom-shop-content ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* El boton ya no debe estirarse a lo loco, maximo de ancho */
.woocommerce ul.products li.product .button {
    max-width: 100% !important;
    margin-top: auto !important; /* Empuja el boton hacia abajo si hay espacio */
}

/* El interior de la tarjeta debe ser flex para empujar el boton abajo */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Responsivo: Pantallas medianas (Tablets) */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Responsivo: Celulares */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .woocommerce ul.products li.product {
        padding: 12px !important;
    }
    .woocommerce ul.products li.product img {
        height: 140px !important;
        padding: 8px !important;
        margin-bottom: 12px !important;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
    }
    .woocommerce ul.products li.product .button {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
}

/* Celulares muy pequeños */
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* Badge Envio Gratis en Cuadricula — espacio SIEMPRE reservado (min-height) */
.woocommerce ul.products li.product .unicom-loop-badge {
    min-height: 28px !important; /* espacio fijo aunque no haya badge */
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.woocommerce ul.products li.product .unicom-badge-free-shipping {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}

/* Espaciador automático entre precio y acciones (agotado/botón) */
.woocommerce ul.products li.product .price {
    margin-bottom: 0 !important; /* el espacio lo maneja el flex gap */
}

/* Fuerza todo el bloque de acciones al fondo */
.woocommerce ul.products li.product .unicom-savings-line,
.woocommerce ul.products li.product .unicom-out-of-stock-badge.unicom-oos-loop,
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}
.woocommerce ul.products li.product .unicom-out-of-stock-badge.unicom-oos-loop {
    margin-top: 8px !important; /* después de savings */
}
.woocommerce ul.products li.product .unicom-savings-line {
    margin-top: auto !important;
    margin-bottom: 8px !important;
}




/* ===================================================
   SHOP LAYOUT & SIDEBAR FILTERS
   =================================================== */

.unicom-shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.unicom-sidebar-mobile-toggle {
    display: none;
}

.unicom-sidebar-widgets .widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.unicom-sidebar-widgets .widget-title {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    color: #111 !important;
    border-bottom: 3px solid #facc15;
    padding-bottom: 8px;
    display: inline-block;
}

/* Custom Free Shipping Switch */
.unicom-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 8px;
}
.unicom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.unicom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.unicom-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 24px;
}
.unicom-switch .slider:before {
    position: absolute;
    content: "\25CF ";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.unicom-switch input:checked + .slider {
    background-color: #10b981;
}
.unicom-switch input:checked + .slider:before {
    transform: translateX(22px);
}
.switch-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
}

/* Categories List Styling */
.widget_product_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.widget_product_categories ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.widget_product_categories ul li:last-child {
    border-bottom: none;
}
.widget_product_categories ul li a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: inline-block;
    width: calc(100% - 40px);
}
.widget_product_categories ul li a:hover {
    color: var(--text-primary);
}
.widget_product_categories ul li .count {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
    float: right;
    margin-top: 2px;
}
/* Nested categories */
.widget_product_categories ul ul {
    margin-top: 8px !important;
    padding-left: 16px !important;
    border-left: 2px solid #f3f4f6;
}
.widget_product_categories ul ul li {
    border-bottom: none;
    padding: 4px 0;
}

/* Price Slider Styling (WooCommerce Default Overrides) */
.price_slider_wrapper .ui-slider {
    position: relative !important;
    background: #e5e7eb !important;
    height: 6px !important;
    border-radius: 100px !important;
    border: none !important;
    margin-bottom: 24px !important;
}
.price_slider_wrapper .ui-slider-range {
    position: absolute !important;
    background: #facc15 !important;
    height: 100% !important;
}
.price_slider_wrapper .ui-slider-handle {
    position: absolute !important;
    background: #ffffff !important;
    border: 3px solid #facc15 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    top: -7px !important;
    margin-left: -10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    outline: none !important;
    cursor: grab !important;
}
.price_slider_wrapper .ui-slider-handle:active {
    cursor: grabbing !important;
}
.price_slider_amount {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.price_slider_amount button {
    background: #111 !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
}
.price_slider_amount .price_label {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .unicom-shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .unicom-sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        border: 2px solid #e5e7eb;
        padding: 14px 24px;
        border-radius: 100px;
        font-weight: 800;
        font-size: 1rem;
        cursor: pointer;
        margin-bottom: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        color: #111;
        transition: 0.2s;
    }
    .unicom-sidebar-mobile-toggle:hover {
        border-color: #facc15;
    }
    .unicom-sidebar-widgets {
        display: none;
    }
    .unicom-shop-sidebar.active .unicom-sidebar-widgets {
        display: block;
        animation: fadeInDown 0.3s ease;
    }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===================================================
   MINIMALIST PAGINATION
   =================================================== */
.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}

.woocommerce-pagination ul {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.woocommerce-pagination ul li {
    display: inline-block !important;
}

.woocommerce-pagination ul li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 100px !important;
    background: #f9fafb !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-pagination ul li .page-numbers:hover {
    background: #e5e7eb !important;
    color: #111 !important;
}

.woocommerce-pagination ul li span.current {
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.woocommerce-pagination ul li .next, 
.woocommerce-pagination ul li .prev {
    background: transparent !important;
    font-size: 1.2rem !important;
}

.woocommerce-pagination ul li .next:hover, 
.woocommerce-pagination ul li .prev:hover {
    background: #f3f4f6 !important;
}


/* ===================================================
   HEADER DROPDOWN MENU
   =================================================== */
.header-nav { display: flex; align-items: center; } /* Ensure flex context for nav items */

.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
}
.nav-dropdown-wrapper > a {
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 16px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
/* Invisible bridge so the mouse doesn't lose hover */
.nav-dropdown-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 24px !important;
    color: #374151 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: background 0.2s, color 0.2s, padding-left 0.2s !important;
    text-align: left;
    margin: 0 !important;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-color) !important;
    color: var(--text-primary) !important;
    padding-left: 28px !important;
}

/* Nested Sub-Dropdown */
.nav-dropdown-item.has-children {
    position: relative;
}
.nav-sub-dropdown-menu {
    position: absolute;
    top: -16px;
    left: 100%;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 16px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    margin-left: 2px;
}
.nav-dropdown-item.has-children:hover > .nav-sub-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
/* Invisible bridge to prevent hover loss between menus */
.nav-dropdown-item.has-children::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100%;
    z-index: 1;
}

/* Single Product Add to Cart Icon */
.single_add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: -4px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>') no-repeat center center;
    background-size: contain;
}

/* Checkout Order Review Product Item Layout */
.woocommerce-checkout-review-order-table td.product-name {
    display: flex;
    align-items: center;
    border: none;
    padding: 16px 20px 16px 0 !important;
}
.woocommerce-checkout-review-order-table td.product-name .product-quantity {
    margin-left: auto !important;
    color: #9ca3af !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}
.woocommerce-checkout-review-order-table td.product-total {
    vertical-align: middle !important;
    padding: 16px 0 !important;
}
.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

/* Fix Product Page Layout for Bottom Sections */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
    grid-column: 1 / -1;
    width: 100%;
}
.woocommerce div.product > .clear {
    display: none !important;
}

.woocommerce div.product .related.products {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Single Product Payments and Shipping Trust Badges Card */
.unicom-single-trust-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.unicom-single-trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #10b981, #3b82f6);
}

.trust-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.trust-header-icon {
    color: #10b981;
}

.trust-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-card-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.row-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.envios-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.pagos-icon {
    background: #ecfdf5;
    color: #10b981;
}

.soporte-icon {
    background: #fdf2f8;
    color: #ec4899;
}

.trust-card-row:hover .row-icon-wrapper {
    transform: scale(1.05);
}

.row-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.row-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.row-description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.payment-type-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
    border-left: 2px solid #e2e8f0;
}

.payment-type-name {
    font-size: 0.825rem;
    font-weight: 650;
    color: var(--text-primary);
}

.payment-type-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.35;
}

/* Bank & Shipping Logos Pills */
.bank-logos-pills,
.shipping-logos-pills {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.bank-pill,
.shipping-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    height: 32px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.bank-pill:hover,
.shipping-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    border-color: #d1d5db !important;
}

.bank-logo-img {
    height: 20px;
    max-height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
}

.shipping-logo-img {
    height: 18px;
    max-height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* WhatsApp Button inside Card */
.trust-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 8px;
    align-self: flex-start;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

.trust-whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-icon {
    flex-shrink: 0;
}

/* Single Product Sticky Purchase Bar */
.unicom-sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95); /* Dark premium glassmorphic background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.unicom-sticky-product-bar.visible {
    transform: translateY(0);
}
.sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sticky-bar-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.sticky-bar-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px;
    flex-shrink: 0;
}
.sticky-bar-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sticky-bar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-bar-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #facc15;
    margin-top: 2px;
}
.sticky-bar-price del {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-right: 6px;
    font-weight: 400;
}
.sticky-bar-price ins {
    text-decoration: none;
    color: #facc15;
}
.sticky-bar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.sticky-nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.sticky-nav-link:hover {
    color: #ffffff;
}
.sticky-nav-link svg {
    opacity: 0.8;
}
.sticky-bar-actions {
    flex-shrink: 0;
}
.sticky-bar-actions .btn-yellow {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
    border: none;
    background: var(--accent-color, #eab308);
    color: var(--accent-text, #000);
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sticky-bar-actions .btn-yellow:hover {
    background: #facc15;
    transform: translateY(-1px);
}
.sticky-bar-actions .btn-yellow:active {
    transform: translateY(0);
}

/* Adjust WhatsApp and other floating buttons when sticky bar is active on single product pages */
body.single-product .joinchat,
body.single-product .ht-ctc-chat,
body.single-product #whatsapp-button,
body.single-product .joinchat.joinchat--show {
    bottom: 84px !important;
    transition: bottom 0.3s ease !important;
}

/* Responsive Sticky Bar */
@media (max-width: 768px) {
    .sticky-bar-product {
        display: none;
    }
    .sticky-bar-nav {
        gap: 16px;
        justify-content: center;
        flex: 1;
    }
    .sticky-nav-link {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #e5e7eb !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        transition: all 0.2s ease !important;
    }
    .sticky-nav-link:active {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #facc15 !important;
    }
    .sticky-nav-link svg {
        display: none;
    }
    .sticky-bar-actions .btn-yellow {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* WooCommerce Star Rating Display System */
.star-rating {
    display: inline-block !important;
    position: relative;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    height: 1.2em;
    width: 5.4em !important;
    letter-spacing: 2px !important;
    overflow: hidden;
    vertical-align: middle;
    color: transparent !important; /* Hide text nodes */
}
.star-rating::before {
    content: "☆☆☆☆☆" !important;
    color: #d1d5db !important; /* Light gray empty stars */
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1 !important;
}
.star-rating span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    color: transparent !important; /* Hide text nodes inside span */
}
.star-rating span::before {
    content: "★★★★★" !important;
    color: #facc15 !important; /* Yellow filled stars */
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1 !important;
}

/* Eye-catching Ofertas Button in Header */
.header-ofertas-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 6px 16px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-ofertas-btn svg {
    fill: currentColor;
    animation: flame-flicker 1.5s infinite alternate ease-in-out;
}
.header-ofertas-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), 0 0 8px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #f87171 0%, #fb923c 100%) !important;
}
.header-ofertas-btn:active {
    transform: translateY(0) scale(1);
}

@keyframes flame-flicker {
    0% {
        transform: scale(0.92) rotate(-2deg);
        filter: drop-shadow(0 0 1px rgba(255,255,255,0.2));
    }
    100% {
        transform: scale(1.08) rotate(2deg);
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.6));
    }
}

/* Fix mini-cart product thumbnails and prevent any shrinking/squashing */
.mini-cart-dropdown ul.cart_list li .unicom-mini-cart-thumb,
.mini-cart-dropdown ul.cart_list li a .unicom-mini-cart-thumb {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: var(--surface-color) !important;
    border: 1px solid var(--border-color) !important;
}

.mini-cart-dropdown ul.cart_list li .unicom-mini-cart-thumb img,
.mini-cart-dropdown ul.cart_list li a .unicom-mini-cart-thumb img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* ===================================================
   VISTA DE BÚSQUEDA EN MÓVILES (Estilo Kemik compacto)
   =================================================== */
@media (max-width: 768px) {
    .search ul.products,
    .search-results ul.products,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .search ul.products li.product,
    .search-results ul.products li.product,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        gap: 4px 12px !important;
        align-items: start !important;
        padding: 12px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #f3f4f6 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        height: auto !important;
        position: relative !important;
    }

    /* Forzar a los enlaces a comportarse como display contents para que sus hijos sean hijos directos del grid */
    .search ul.products li.product a.woocommerce-LoopProduct-link,
    .search-results ul.products li.product a.woocommerce-LoopProduct-link,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product a.woocommerce-LoopProduct-link {
        display: contents !important;
    }

    /* Imagen a la izquierda */
    .search ul.products li.product img,
    .search-results ul.products li.product img,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product img {
        grid-column: 1 !important;
        grid-row: 1 / span 10 !important;
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        background: #f9fafb !important;
        padding: 6px !important;
        margin: 0 !important;
        align-self: center !important;
        mix-blend-mode: multiply !important;
    }

    /* Título compacto */
    .search ul.products li.product .woocommerce-loop-product__title,
    .search-results ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .woocommerce-loop-product__title {
        grid-column: 2 !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #1f2937 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: auto !important;
        padding-right: 24px !important; /* Espacio para botón de favoritos */
    }

    /* Estrellas de valoración */
    .search ul.products li.product .star-rating,
    .search-results ul.products li.product .star-rating,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .star-rating {
        grid-column: 2 !important;
        margin: 2px 0 0 0 !important;
        font-size: 0.8rem !important;
    }

    /* Envío gratis / Badges */
    .search ul.products li.product .unicom-loop-badge,
    .search-results ul.products li.product .unicom-loop-badge,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-loop-badge {
        grid-column: 2 !important;
        margin: 2px 0 0 0 !important;
    }
    .search ul.products li.product .unicom-badge-free-shipping,
    .search-results ul.products li.product .unicom-badge-free-shipping,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-badge-free-shipping {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    /* Precio */
    .search ul.products li.product .price,
    .search-results ul.products li.product .price,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .price {
        grid-column: 2 !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #111111 !important;
        margin: 4px 0 0 0 !important;
    }

    /* Ahorros */
    .search ul.products li.product .unicom-savings-line,
    .search-results ul.products li.product .unicom-savings-line,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-savings-line {
        grid-column: 2 !important;
        margin: 2px 0 0 0 !important;
        font-size: 0.8rem !important;
        display: inline-block !important;
    }

    /* Agotado badge */
    .search ul.products li.product .unicom-out-of-stock-badge.unicom-oos-loop,
    .search-results ul.products li.product .unicom-out-of-stock-badge.unicom-oos-loop,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-out-of-stock-badge.unicom-oos-loop {
        grid-column: 2 !important;
        margin: 4px 0 0 0 !important;
        align-self: start !important;
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }

    /* Ocultar botón de agregar en listado móvil */
    .search ul.products li.product .button,
    .search-results ul.products li.product .button,
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .button {
        display: none !important;
    }

    /* Posición botón favoritos específico de mis-favoritos */
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-wishlist-btn {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
    }

    /* Título de resultados compacto y gris en móvil */
    .search .woocommerce-products-header__title,
    .search-results .woocommerce-products-header__title {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: #6b7280 !important;
        margin: 8px 0 12px 0 !important;
        letter-spacing: normal !important;
    }

    /* Ficha de producto móvil: alineación y espaciados */
    .woocommerce div.product div.summary,
    .woocommerce div.product .unicom-product-info-stack,
    .woocommerce div.product .unicom-related-sidebar {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* Evitar desborde horizontal de tablas de atributos */
    .woocommerce div.product table.shop_attributes {
        width: 100% !important;
        display: table !important;
        table-layout: fixed !important;
        word-wrap: break-word !important;
    }
    .woocommerce div.product table.shop_attributes td,
    .woocommerce div.product table.shop_attributes th {
        padding: 8px !important;
        word-break: break-word !important;
    }

    /* Prevenir scroll horizontal accidental del canvas */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Reducir tamaño del título del producto en móviles */
    .woocommerce div.product .product_title {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    /* Forzar botón Añadir al carrito en una sola fila (sin saltos de línea) */
    .woocommerce div.product form.cart .button {
        white-space: nowrap !important;
        font-size: 0.95rem !important;
        padding: 12px 16px !important;
        text-align: center !important;
        flex: 1 !important;
    }
    
    /* Ocultar icono de carrito dentro del botón en móviles para ganar espacio horizontal */
    .woocommerce div.product form.cart .button::before,
    .single_add_to_cart_button::before {
        display: none !important;
    }

    /* Ajustar botón favoritos en móviles */
    .summary .unicom-wishlist-btn {
        width: 48px !important;
        height: 48px !important;
    }

    /* Quitar números (1., 2., etc.) de los thumbnails de la galería de fotos */
    .flex-control-thumbs,
    .flex-control-thumbs li {
        list-style: none !important;
        list-style-type: none !important;
    }

    /* Above-the-fold mobile optimization */
    .woocommerce div.product {
        gap: 16px !important;
        padding-top: 0 !important;
    }
    .woocommerce div.product div.images {
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 24px !important;
    }
    .woocommerce-product-gallery {
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    /* Imagen principal: relación de aspecto cuadrada estricta para evitar saltos en layout */
    .woocommerce-product-gallery .woocommerce-product-gallery__image {
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }
    .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 auto !important;
    }
    .woocommerce-product-gallery__wrapper {
        margin-bottom: 0 !important;
    }
    .flex-control-thumbs {
        margin-top: 16px !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }
    .flex-control-thumbs li {
        width: 60px !important;
        min-width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
    }
    .flex-control-thumbs li img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        opacity: 0.7 !important;
        transition: all 0.2s ease !important;
    }
    .flex-control-thumbs li img.flex-active {
        border-color: var(--accent-color) !important;
        box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25) !important;
        transform: scale(1.05) !important;
        opacity: 1 !important;
    }

    .woocommerce div.product div.summary {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    /* SKU + categoría debajo del botón de carrito */
    .woocommerce div.product .product_meta {
        font-size: 0.7rem !important;
        margin-top: 8px !important;
        color: #9ca3af !important;
    }
    .woocommerce div.product .product_title {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-top: 4px !important;
        margin-bottom: 8px !important;
    }
    .woocommerce div.product .price {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
    }
    .woocommerce div.product .stock.in-stock {
        font-size: 0.72rem !important;
        margin-bottom: 10px !important;
        gap: 5px !important;
        color: #16a34a !important;
    }
    .woocommerce div.product form.cart {
        margin-top: 12px !important;
        padding-top: 12px !important;
        gap: 8px !important;
        border-top: 1px solid #f0f0f0 !important;
    }
}

/* ===================================================
   GLOBAL PRODUCT GALLERY ADJUSTMENTS (Desktop & Mobile)
   =================================================== */
/* Ocultar el número en los thumbnails a nivel global */
.flex-control-thumbs,
.flex-control-thumbs li {
    list-style: none !important;
    list-style-type: none !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* Ocultar lupa de zoom antigua/anticuada de WooCommerce */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* ===================================================
   UNICOM STORE CUSTOM PORTAL CUSTOM STYLES (Desktop)
   =================================================== */

/* User navigation profile card */
.unicom-nav-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}
.unicom-nav-profile-card .profile-avatar-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #eab308 100%);
    color: var(--accent-text);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.2);
}
.unicom-nav-profile-card .profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.unicom-nav-profile-card .profile-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.unicom-nav-profile-card .profile-email {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Custom dashboard styles */
.unicom-dashboard-welcome h3 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 12px 0 !important;
}
.unicom-dashboard-welcome p {
    font-size: 1.05rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 0 40px 0 !important;
}

.unicom-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.unicom-dashboard-card {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-sizing: border-box;
}
.unicom-dashboard-card:hover {
    background: #ffffff !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
}
.unicom-dashboard-card .card-icon {
    color: var(--text-primary);
    background: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s;
}
.unicom-dashboard-card:hover .card-icon {
    background: var(--accent-color);
    color: var(--accent-text);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}
.unicom-dashboard-card h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 0 8px 0 !important;
}
.unicom-dashboard-card p {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.55 !important;
    margin: 0 0 24px 0 !important;
    flex-grow: 1;
}
.unicom-dashboard-card .card-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.unicom-dashboard-card:hover .card-link {
    color: var(--accent-hover);
    padding-left: 4px;
}

/* ===================================================
   RESPONSIVE MY ACCOUNT PORTAL (Logged In Mobile View)
   =================================================== */
@media (max-width: 768px) {
    /* Si estamos en el escritorio (dashboard), ocultamos el contenedor de texto de bienvenida */
    .woocommerce-account .my-account-grid.is-dashboard .woocommerce-MyAccount-content {
        display: none !important;
    }
    
    /* Si estamos en una sub-sección (endpoint), ocultamos el menú principal de navegación */
    .woocommerce-account .my-account-grid.is-endpoint .woocommerce-MyAccount-navigation {
        display: none !important;
    }

    /* Ajustes generales del grid en Mi Cuenta */
    .woocommerce-account .my-account-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 16px auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Navegación premium estilo lista/tarjeta vertical (Estilo Kemik) */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    /* Centrar tarjeta de perfil en móvil */
    .unicom-nav-profile-card {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 24px 16px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .unicom-nav-profile-card .profile-avatar-initial {
        margin-bottom: 12px !important;
    }
    .unicom-nav-profile-card .profile-meta {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .unicom-nav-profile-card .profile-name {
        font-size: 1.15rem !important;
        white-space: normal !important;
    }
    .unicom-nav-profile-card .profile-email {
        font-size: 0.85rem !important;
        white-space: normal !important;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        padding: 8px 0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.01) !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
        white-space: normal !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
        border-bottom: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        display: flex !important;
        align-items: center !important;
        padding: 16px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        text-align: left !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
        background: #f8fafc !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #f1f5f9 !important;
        color: var(--text-primary) !important;
    }



    /* Indicador flecha/chevron a la derecha del enlace */
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a::after {
        content: '';
        display: inline-block !important;
        width: 16px !important;
        height: 16px !important;
        margin-left: auto !important;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        flex-shrink: 0 !important;
    }

    /* Caja de Contenido */
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 0 !important;
        padding-bottom: 80px !important;
        border-radius: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }


    /* Tablas de pedidos y descargas responsivas estilo tarjetas */
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) thead {
        display: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) tbody {
        display: block !important;
        width: 100% !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) tr {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        padding: 16px 20px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px dashed #f1f5f9 !important;
        font-size: 0.88rem !important;
        color: var(--text-primary) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        text-align: right !important;
    }
    /* Style the first row (Order Number) as a header */
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) tr td:first-child {
        border-bottom: 1.5px solid #f1f5f9 !important;
        padding-bottom: 12px !important;
        margin-bottom: 4px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) tr td:first-child a {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #eab308 !important;
        border-bottom: 2px solid #fef08a !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td:last-child,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell:last-child {
        border-bottom: none !important;
        padding-top: 14px !important;
        padding-bottom: 0 !important;
        justify-content: center !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td:first-child,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell:first-child {
        padding-top: 0 !important;
    }
    /* Dynamic data-title labels */
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td::before,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell::before {
        content: attr(data-title) !important;
        font-weight: 700 !important;
        color: var(--text-secondary) !important;
        margin-right: 16px !important;
        text-align: left !important;
        flex-shrink: 0 !important;
        font-size: 0.85rem !important;
    }
    /* Action buttons styled as full width primary/secondary button */
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td a.button,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell a.button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background: #f8fafc !important;
        color: var(--text-primary) !important;
        border: 1px solid #e2e8f0 !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        border-radius: 100px !important;
        box-shadow: none !important;
        margin: 0 !important;
        transition: all 0.2s ease !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) td a.button:hover,
    .woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) th.woocommerce-orders-table__cell a.button:hover {
        background: #e2e8f0 !important;
        border-color: #cbd5e1 !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .order-thumb-wrapper,
    .order-thumb-more {
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
    .order-thumb-img {
        border-radius: 4px !important;
    }
    .order-thumb-qty {
        font-size: 0.6rem !important;
        padding: 0.5px 3px !important;
    }

    /* Apilado de direcciones y formularios con estilo de tarjeta */
    .woocommerce-account .col2-set {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        display: grid !important;
    }
    .woocommerce-account .col-1,
    .woocommerce-account .col-2,
    .woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
        background: #ffffff !important;
        padding: 24px 20px !important;
        border-radius: 20px !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.01) !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
    }

    /* Optimizar el espacio superior en Mi Cuenta en móvil */
    .woocommerce-account main#primary.site-main.container {
        padding-top: 15px !important;
        padding-bottom: 20px !important;
    }
    .woocommerce-account .woocommerce-account-header {
        margin: 10px 0 15px 0 !important;
        text-align: left !important;
    }
    .woocommerce-account .woocommerce-account-header h2 {
        font-size: 1.6rem !important;
    }
    .woocommerce-account .user-greeting {
        margin-bottom: 20px !important;
        padding: 16px 20px !important;
        border-radius: 16px !important;
    }
}

/* ===================================================
   UNICOM STORE CUSTOM FOOTER DESIGN
   =================================================== */
.site-footer {
    background-color: #0f172a !important;
    color: #9ca3af !important;
    font-family: var(--font-family) !important;
    padding: 0 !important;
    margin-top: 60px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.site-footer a {
    color: #d1d5db !important;
    transition: color 0.2s !important;
    border: none !important; /* Remove generic links border-bottom override */
    padding-bottom: 0 !important;
    font-weight: 500 !important;
}
.site-footer a:hover {
    color: var(--accent-color) !important;
}

.footer-container {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* 1. Trust Badges Bar */
.footer-trust-bar {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 40px 0 !important;
}
.footer-trust-bar .footer-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}
.trust-badge {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}
.trust-badge .badge-icon {
    color: var(--accent-color) !important;
    background-color: rgba(250, 204, 21, 0.08) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.trust-badge .badge-text h4 {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 6px 0 !important;
}
.trust-badge .badge-text p {
    color: #9ca3af !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* 2. Main Footer columns */
.footer-main {
    padding: 60px 0 !important;
}
.footer-main .footer-container {
    display: grid !important;
    grid-template-columns: 2.2fr 1fr 1fr 1.8fr !important;
    gap: 40px !important;
}
.footer-column h4 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 0 24px 0 !important;
    position: relative !important;
}
.footer-column h4::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -8px !important;
    width: 30px !important;
    height: 2px !important;
    background-color: var(--accent-color) !important;
}
.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Brand Column */
.brand-column .footer-brand {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 16px !important;
}
.brand-column .brand-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #9ca3af !important;
    margin-bottom: 24px !important;
}
.footer-socials {
    display: flex !important;
    gap: 12px !important;
}
.footer-socials a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: all 0.2s !important;
    border: none !important;
    padding: 0 !important;
}
.footer-socials a:hover {
    background-color: var(--accent-color) !important;
    color: var(--accent-text) !important;
    transform: translateY(-2px) !important;
}

/* Links Columns */
.links-column ul li a {
    font-size: 0.92rem !important;
}

/* Contact Column */
.contact-column ul li.contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #9ca3af !important;
}
.contact-column ul li.contact-item svg {
    color: var(--accent-color) !important;
    flex-shrink: 0 !important;
    margin-top: 3px !important;
}
.contact-column ul li.contact-item a {
    color: #d1d5db !important;
}

/* 3. Footer Bottom Copyright & payments */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 30px 0 !important;
}
.footer-bottom .footer-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}
.footer-bottom .copyright {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}
.footer-bottom .secure-checkout {
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    color: #9ca3af !important;
}
.footer-bottom .payment-partners {
    display: flex !important;
    gap: 8px !important;
}
.payment-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    letter-spacing: 0.5px !important;
}
.payment-badge.visa {
    color: #3b82f6 !important;
}
.payment-badge.mastercard {
    color: #f97316 !important;
}
.payment-badge.cash {
    color: #10b981 !important;
}

/* Responsive Footer overrides */
@media (max-width: 1024px) {
    .footer-trust-bar .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    .footer-main .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px !important;
    }
}
@media (max-width: 640px) {
    .footer-trust-bar .footer-container {
        grid-template-columns: 1fr !important;
    }
    .footer-main .footer-container {
        grid-template-columns: 1fr !important;
    }
    .footer-bottom .footer-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .trust-badge {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .footer-column h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .footer-socials {
        justify-content: center !important;
    }
    .contact-column ul {
        align-items: center !important;
    }
    .contact-column ul li.contact-item {
        justify-content: center !important;
        text-align: left !important;
        width: fit-content !important;
    }
}

/* ===================================================
   HEADER USER PROFILE HOVER DROPDOWN MENU
   =================================================== */
.header-user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 280px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    z-index: 1000;
    border: 1px solid var(--border-color);
    text-align: left;
}
.header-user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}
.header-user-dropdown-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100%;
    height: 15px;
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.user-dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.user-dropdown-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 0;
}
.user-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-dropdown-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px 16px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}
.user-dropdown-links a:hover {
    background-color: var(--bg-color) !important;
    padding-left: 20px !important;
}
.user-dropdown-links a svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.user-dropdown-links a:hover svg {
    color: var(--text-primary);
}
.user-dropdown-links a.user-logout-link:hover {
    background-color: #fef2f2 !important;
}

/* ===================================================
   CUSTOMER PORTAL AUTHENTICATION TABS
   =================================================== */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 460px;
    margin: 40px auto 20px auto;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}
.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s ease-in-out;
    text-align: center;
}
.auth-tab-btn:hover {
    color: var(--text-primary);
}
.auth-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.woocommerce-account #customer_login.auth-tabbed-container {
    max-width: 460px !important;
    margin: 0 auto 80px auto !important;
    display: block !important; /* Force override grid */
}
.woocommerce-account #customer_login.auth-tabbed-container .col-1,
.woocommerce-account #customer_login.auth-tabbed-container .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 32px 36px !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
}
.auth-tabbed-container form {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.auth-tabbed-container form .form-row {
    margin-bottom: 20px !important;
}
.auth-tabbed-container form label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--text-primary) !important;
    margin-bottom: 8px !important;
    display: block !important;
}
.auth-tabbed-container form input.input-text {
    height: 48px !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    border: 1px solid var(--border-color) !important;
    font-size: 0.95rem !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.auth-tabbed-container form input.input-text:focus {
    background-color: #ffffff !important;
    border-color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
    outline: none !important;
}
.auth-tabbed-container .woocommerce-form-login__submit,
.auth-tabbed-container .woocommerce-form-register__submit {
    height: 48px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    background-color: var(--text-primary) !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}
.auth-tabbed-container .woocommerce-form-login__submit:hover,
.auth-tabbed-container .woocommerce-form-register__submit:hover {
    background-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
}
.auth-tabbed-container .woocommerce-form-login__rememberme {
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}
.auth-tabbed-container .lost_password {
    margin-top: 20px !important;
    text-align: center !important;
}
.auth-tabbed-container .lost_password a {
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}
.auth-tabbed-container .lost_password a:hover {
    color: var(--text-primary) !important;
}
@media (max-width: 480px) {
    .auth-tabs {
        margin: 20px 16px;
    }
    .auth-tabbed-container {
        padding: 0 16px;
    }
    .woocommerce-account #customer_login.auth-tabbed-container .col-1,
    .woocommerce-account #customer_login.auth-tabbed-container .col-2 {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}

/* ===================================================
   SOCIAL LOGIN BUTTON OVERRIDES (GOOGLE & FACEBOOK)
   =================================================== */
.woocommerce-account #customer_login .social-login-btn,
.woocommerce-account #customer_login .social-login-btn:hover {
    border-bottom: none !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: auto !important;
    border-radius: 100px !important;
}

.woocommerce-account #customer_login .google-btn {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.woocommerce-account #customer_login .google-btn:hover {
    color: var(--text-primary) !important;
    background: #f8fafc !important;
    border-color: var(--text-primary) !important;
}

.woocommerce-account #customer_login .facebook-btn {
    background: #1877f2 !important;
    border: 1px solid #1877f2 !important;
    color: #ffffff !important;
}
.woocommerce-account #customer_login .facebook-btn:hover {
    color: #ffffff !important;
    background: #166fe5 !important;
    border-color: #166fe5 !important;
}

/* Mini-cart thumbnail styles are defined in the canonical block above (~line 3968). */


/* Centrado de botones en el mini-carrito */
.mini-cart-dropdown .buttons,
.mini-cart-dropdown .woocommerce-mini-cart__buttons {
    display: flex !important;
    gap: 12px !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mini-cart-dropdown .buttons .button,
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button,
.mini-cart-dropdown ul.cart_list + p.buttons a.button {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    height: 48px !important; /* Altura fija standard */
    line-height: 1 !important; /* Flexbox controls vertical centering */
    padding: 0 16px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
}

/* --- WOOCOMMERCE MOBILE CART CARDS --- */
@media (max-width: 768px) {
    /* Hide default headers and make table layout block/grid */
    .woocommerce-cart-form table.shop_table.cart thead {
        display: none !important;
    }
    .woocommerce-cart-form table.shop_table.cart,
    .woocommerce-cart-form table.shop_table.cart tbody,
    .woocommerce-cart-form table.shop_table.cart tr.cart_item {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Turn each row into a clean card */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item {
        display: grid !important;
        grid-template-columns: 86px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 16px !important;
        padding: 12px 16px !important;
        background: #ffffff !important;
        border: 1px solid #eef0f2 !important;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
        position: relative !important;
    }
    
    /* Reset all columns to block */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        width: auto !important;
        text-align: left !important;
        background: none !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td::before {
        display: none !important; /* Hide WooCommerce responsive labels */
    }
    
    /* Product Image (Left Column) */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: center !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f5f5f7 !important;
        border-radius: 12px !important;
        padding: 8px !important;
        border: 1px solid #eef0f2 !important;
        width: 86px !important;
        height: 86px !important;
        box-sizing: border-box !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }
    
    /* Product Title (Right Column, Top) */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-name {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-right: 12px !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-name a {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Product Price (Right Column, Bottom) */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-price {
        grid-column: 2 !important;
        grid-row: 2 !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #ef4444 !important;
        margin-top: 4px !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-price del {
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
        margin-right: 6px !important;
        font-weight: normal !important;
        display: inline-block !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-price ins {
        text-decoration: none !important;
        color: #ef4444 !important;
        font-weight: 700 !important;
        display: inline-block !important;
    }
    
    /* Subtotal Column (Hidden to prevent clutter) */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-subtotal {
        display: none !important;
    }
    
    /* ─── Fila inferior del ítem del carrito ─── */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity {
        grid-column: 1 / 3 !important;
        grid-row: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f3f4f6 !important;
    }

    /* "Mover a favoritos" — izquierda */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity::before {
        content: "Mover a favoritos" !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        color: #9ca3af !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    /* Grupo derecho: botón eliminar + stepper */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-remove {
        position: static !important;
        grid-column: auto !important;
        grid-row: auto !important;
        bottom: auto !important;
        right: auto !important;
        z-index: auto !important;
        display: flex !important;
        align-items: center !important;
        /* posicionado en el DOM, mostramos via flex en la fila de quantity */
    }

    /* Contenedor de la pastilla: basura + − 1 + */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity .quantity,
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity .unicom-qty-wrapper {
        display: inline-flex !important;
        align-items: center !important;
        background: #f3f4f6 !important;
        border-radius: 100px !important;
        padding: 3px 6px !important;
        gap: 2px !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Botones − y + */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity .unicom-qty-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 50% !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: #374151 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        transition: background 0.15s ease, border-color 0.15s ease !important;
    }

    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity .unicom-qty-btn:hover {
        background: #f9fafb !important;
        border-color: #d1d5db !important;
    }

    /* Número de cantidad */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-quantity input.qty {
        width: 28px !important;
        height: 28px !important;
        background: transparent !important;
        border: none !important;
        text-align: center !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Botón eliminar: pastilla roja a la izquierda del stepper */
    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-remove {
        grid-column: 1 / 3 !important;
        grid-row: 3 !important;
        position: absolute !important;
        bottom: 12px !important;
        right: 136px !important;
        z-index: 5 !important;
    }

    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-remove a.remove {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        background: #f3f4f6 !important;
        border-radius: 50% !important;
        border: none !important;
        font-size: 0 !important;
        text-decoration: none !important;
        transition: background 0.2s ease !important;
        pointer-events: auto !important;
        color: transparent !important;
    }

    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-remove a.remove:hover {
        background: #fee2e2 !important;
    }

    .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-remove a.remove::before {
        content: none !important;
    }



    
    /* Layout formatting for Cart Actions row (Coupon and updates) */
    .woocommerce-cart-form table.shop_table.cart tr:not(.cart_item) {
        display: block !important;
        width: 100% !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart td.actions {
        display: block !important;
        width: 100% !important;
        padding: 16px 0 !important;
        background: none !important;
        border: none !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart td.actions .coupon {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart td.actions .coupon input#coupon_code {
        flex: 1 !important;
        margin: 0 !important;
        height: 44px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0 12px !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart td.actions .coupon button.button {
        height: 44px !important;
        border-radius: 8px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        font-weight: 600 !important;
    }
    
    .woocommerce-cart-form table.shop_table.cart td.actions > button.button {
        width: 100% !important;
        height: 44px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        margin-top: 8px !important;
    }
}

/* --- STICKY BOTTOM CHECKOUT BAR FOR MOBILE --- */
@media (max-width: 768px) {
    body.woocommerce-cart {
        padding-bottom: 96px !important;
    }
    
    .unicom-sticky-cart-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        z-index: 99999 !important;
        border-top: 1px solid #eef0f2 !important;
        box-sizing: border-box !important;
    }
    
    .unicom-sticky-cart-bar .sticky-subtotal {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .unicom-sticky-cart-bar .sticky-subtotal .label {
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
    }
    
    .unicom-sticky-cart-bar .sticky-subtotal .value {
        font-size: 1.25rem !important;
        font-weight: 850 !important;
        color: var(--text-primary) !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
    }
    
    .unicom-sticky-cart-bar .sticky-checkout-btn {
        background: #facc15 !important; /* Premium brand yellow */
        color: #000000 !important;
        border: none !important;
        border-radius: 100px !important;
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        font-weight: 750 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35) !important;
        transition: all 0.2s ease !important;
        height: 48px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .unicom-sticky-cart-bar .sticky-checkout-btn:hover,
    .unicom-sticky-cart-bar .sticky-checkout-btn:focus {
        background: #eab308 !important;
        box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Hide the non-sticky checkout button at the bottom of the table to avoid redundancy */
    .cart_totals .wc-proceed-to-checkout {
        display: none !important;
    }
}

/* --- WOOCOMMERCE MOBILE CHECKOUT SUMMARY & STICKY BAR --- */
@media (max-width: 768px) {
    /* Hide top summary bar on desktop */
    .unicom-checkout-summary-bar {
        display: block !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        margin-bottom: 24px !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    }
    
    .unicom-checkout-summary-bar .summary-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        cursor: pointer !important;
        user-select: none !important;
    }
    
    .unicom-checkout-summary-bar .summary-left {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .unicom-checkout-summary-bar .summary-img-wrapper {
        width: 40px !important;
        height: 40px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .unicom-checkout-summary-bar .summary-img-wrapper img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    .unicom-checkout-summary-bar .summary-text {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .unicom-checkout-summary-bar .summary-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
    }
    
    .unicom-checkout-summary-bar .summary-subtitle {
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
    }
    
    .unicom-checkout-summary-bar .summary-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .unicom-checkout-summary-bar .summary-total-price {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: var(--text-primary) !important;
    }
    
    .unicom-checkout-summary-bar .summary-toggle-icon {
        color: var(--text-secondary) !important;
        transition: transform 0.2s ease !important;
    }
    
    .unicom-checkout-summary-bar.is-open .summary-toggle-icon {
        transform: rotate(180deg) !important;
    }
    
    /* Dropdown accordion list of all items */
    .unicom-checkout-summary-bar .summary-dropdown-content {
        border-top: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
    }
    
    .unicom-checkout-summary-bar .summary-items-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .unicom-checkout-summary-bar .summary-item {
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        gap: 12px !important;
    }
    
    .unicom-checkout-summary-bar .summary-item:last-child {
        border-bottom: none !important;
    }
    
    .unicom-checkout-summary-bar .summary-totals-details {
        padding: 16px !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .unicom-checkout-summary-bar .summary-totals-row {
        display: flex !important;
        justify-content: space-between !important;
        font-size: 0.85rem !important;
        color: var(--text-secondary) !important;
    }
    
    .unicom-checkout-summary-bar .summary-totals-row .value {
        font-weight: 600 !important;
        color: var(--text-primary) !important;
    }
    
    .unicom-checkout-summary-bar .summary-totals-row.discount {
        color: #16a34a !important;
    }
    
    .unicom-checkout-summary-bar .summary-totals-row.discount .value {
        color: #16a34a !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-img {
        width: 44px !important;
        height: 44px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-img img {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-info {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-name {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-qty {
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        margin-top: 2px !important;
    }
    
    .unicom-checkout-summary-bar .summary-item .item-price {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
    }
    
    /* Sticky Place Order Bar at Bottom */
    body.woocommerce-checkout {
        padding-bottom: 96px !important;
    }
    
    .unicom-sticky-checkout-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        z-index: 99999 !important;
        border-top: 1px solid #eef0f2 !important;
        box-sizing: border-box !important;
    }
    
    .unicom-sticky-checkout-bar .sticky-total {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .unicom-sticky-checkout-bar .sticky-total .label {
        font-size: 0.75rem !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
    }
    
    .unicom-sticky-checkout-bar .sticky-total .value {
        font-size: 1.25rem !important;
        font-weight: 850 !important;
        color: var(--text-primary) !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
    }
    
    .unicom-sticky-checkout-bar .sticky-place-order-btn {
        background: #facc15 !important;
        color: #000000 !important;
        border: none !important;
        border-radius: 100px !important;
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
        font-weight: 750 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35) !important;
        transition: all 0.2s ease !important;
        height: 48px !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }
    
    .unicom-sticky-checkout-bar .sticky-place-order-btn:hover,
    .unicom-sticky-checkout-bar .sticky-place-order-btn:focus {
        background: #eab308 !important;
        box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Hide the original checkout button inside the payment block */
    #payment #place_order {
        display: none !important;
    }
    
    /* Hide the redundant order review table on mobile since we show the summary bar at the top */
    table.woocommerce-checkout-review-order-table {
        display: none !important;
    }
}

/* Hide the "Ship to a different address" checkbox and fields globally */
h3#ship-to-different-address {
    display: none !important;
}

/* Hide elements on desktop */
@media (min-width: 769px) {
    .unicom-checkout-summary-bar {
        display: none !important;
    }
    .unicom-sticky-checkout-bar {
        display: none !important;
    }
}

/* ============================================================ */
/* --- WOOCOMMERCE ORDER RECEIVED (THANK YOU) PAGE --- */
/* ============================================================ */

.woocommerce-order-received .site-main {
    padding: 60px 0 100px 0 !important;
    background-color: var(--bg-color);
}

.woocommerce-order-received h1.entry-title {
    display: none !important;
}

.woocommerce-order-received .woocommerce-order {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-color);
    animation: unicom-thankyou-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes unicom-thankyou-appear {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Success Message Styling */
.woocommerce-order-received p.woocommerce-thankyou-order-received {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #059669 !important; /* Emerald Green */
    background: #ecfdf5;
    border: 1.5px dashed #a7f3d0;
    padding: 32px 24px;
    border-radius: 20px;
    margin-bottom: 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
}

.woocommerce-order-received p.woocommerce-thankyou-order-received::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-color: #10b981;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 36px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    animation: unicom-checkmark-scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes unicom-checkmark-scale {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 2. Order Overview Receipt Grid */
.woocommerce-order-received ul.order_details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin: 0 0 40px 0 !important;
    padding: 8px 16px !important;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    list-style: none !important;
    align-items: stretch;
}

.woocommerce-order-received ul.order_details li {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    border: none !important;
    padding: 14px 20px !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    border-right: 1px solid #e2e8f0 !important;
    min-width: 100px;
    flex: 1 1 auto;
}

/* El campo de email necesita más espacio horizontal mínimo */
.woocommerce-order-received ul.order_details li.email {
    min-width: 180px;
    flex: 2 1 180px;
}

.woocommerce-order-received ul.order_details li:last-child {
    border-right: none !important;
}

.woocommerce-order-received ul.order_details li .order-overview-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    white-space: nowrap;
}

.woocommerce-order-received ul.order_details li strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 800;
    text-transform: none;
    margin-top: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .woocommerce-order-received .woocommerce-order {
        padding: 24px 16px;
        border-radius: 16px;
    }
    .woocommerce-order-received ul.order_details {
        padding: 4px 8px !important;
    }
    .woocommerce-order-received ul.order_details li {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 12px 10px !important;
        flex: 1 1 45%;
        min-width: 45%;
    }
    .woocommerce-order-received ul.order_details li.email {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .woocommerce-order-received ul.order_details li:last-child {
        border-bottom: none !important;
    }
}


/* ============================================================
   UNICOM Bank Cards — Página de "Gracias" (Transferencia BACS)
   ============================================================ */
/* Ocultar la sección BACS nativa de WooCommerce (evitar duplicado) */
.woocommerce-bacs-bank-details {
    display: none !important;
}

.unicom-bank-cards-section {
    margin: 32px 0 40px;
}

.unicom-bank-cards-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
}

.unicom-bank-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.unicom-bank-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.unicom-bank-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.unicom-bank-card__header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.unicom-bank-card__logo {
    height: 42px;
    max-height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.unicom-bank-card__name-fallback {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.unicom-bank-card__body {
    padding: 16px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unicom-bank-card__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unicom-bank-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #9ca3af;
}

.unicom-bank-card__value {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
}

.unicom-bank-card__type-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 2px 10px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.unicom-bank-card__number {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.unicom-bank-card__copy-btn {
    margin: 0 24px 20px;
    padding: 10px 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    width: calc(100% - 48px);
    text-align: center;
}

.unicom-bank-card__copy-btn:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

@media (max-width: 768px) {
    .unicom-bank-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .unicom-bank-card__header {
        padding: 16px 20px;
        min-height: 64px;
    }
    .unicom-bank-card__logo {
        height: 34px;
    }
    .unicom-bank-card__body {
        padding: 14px 20px;
    }
    .unicom-bank-card__copy-btn {
        margin: 0 20px 16px;
        width: calc(100% - 40px);
    }
}

/* 3. Section Titles */
.woocommerce-order-received h2.woocommerce-order-details__title,
.woocommerce-order-received h2.woocommerce-column__title,
.woocommerce-view-order h2.woocommerce-order-details__title,
.woocommerce-view-order h2.woocommerce-column__title {
    font-size: 1.3rem !important;
    font-weight: 800;
    color: var(--text-primary);
    margin: 36px 0 16px 0;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    letter-spacing: -0.3px;
}

/* 4. Details Table modern styling */
.woocommerce-order-received table.shop_table.order_details,
.woocommerce-view-order table.shop_table.order_details {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 32px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.woocommerce-order-received table.shop_table.order_details th,
.woocommerce-view-order table.shop_table.order_details th {
    background: #f8fafc !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.8px !important;
    padding: 16px 24px !important;
    border-bottom: 2px solid var(--border-color) !important;
    text-align: left !important;
}

.woocommerce-order-received table.shop_table.order_details td,
.woocommerce-view-order table.shop_table.order_details td {
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    background: #ffffff !important;
}

.woocommerce-order-received table.shop_table.order_details tbody tr:last-child td,
.woocommerce-view-order table.shop_table.order_details tbody tr:last-child td {
    border-bottom: none !important;
}

.woocommerce-order-received table.shop_table.order_details tbody td.woocommerce-table__product-name,
.woocommerce-view-order table.shop_table.order_details tbody td.woocommerce-table__product-name {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: left !important;
}

.woocommerce-order-received table.shop_table.order_details tbody td.woocommerce-table__product-name a,
.woocommerce-view-order table.shop_table.order_details tbody td.woocommerce-table__product-name a {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.woocommerce-order-received table.shop_table.order_details tbody td.woocommerce-table__product-name a:hover,
.woocommerce-view-order table.shop_table.order_details tbody td.woocommerce-table__product-name a:hover {
    color: var(--accent-hover) !important;
}

/* Product thumbnail wrapper styling */
.product-item-thumbnail-wrapper {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    background: var(--surface-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px !important;
}
.product-item-thumbnail-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.product-item-details-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

/* Product quantity badge */
.woocommerce-order-received table.shop_table.order_details td.product-name strong.product-quantity,
.woocommerce-view-order table.shop_table.order_details td.product-name strong.product-quantity {
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    background: #f1f5f9 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    margin-top: 2px !important;
}

.woocommerce-order-received table.shop_table.order_details tbody td.woocommerce-table__product-total,
.woocommerce-view-order table.shop_table.order_details tbody td.woocommerce-table__product-total {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    text-align: right !important;
}

.woocommerce-order-received table.shop_table.order_details th.woocommerce-table__product-total-header,
.woocommerce-order-received table.shop_table.order_details td.product-total,
.woocommerce-view-order table.shop_table.order_details th.woocommerce-table__product-total-header,
.woocommerce-view-order table.shop_table.order_details td.product-total {
    text-align: right !important;
}

/* Footers/Totals inside details table */
.woocommerce-order-received table.shop_table.order_details tfoot th,
.woocommerce-view-order table.shop_table.order_details tfoot th {
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    background: #f8fafc !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-align: left !important;
}

.woocommerce-order-received table.shop_table.order_details tfoot td,
.woocommerce-view-order table.shop_table.order_details tfoot td {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-align: right !important;
    background: #f8fafc !important;
}

.woocommerce-order-received table.shop_table.order_details tfoot tr.order-total th,
.woocommerce-view-order table.shop_table.order_details tfoot tr.order-total th {
    border-top: 2px solid var(--border-color) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    background: #f1f5f9 !important;
    color: var(--text-primary) !important;
}

.woocommerce-order-received table.shop_table.order_details tfoot tr.order-total td,
.woocommerce-view-order table.shop_table.order_details tfoot tr.order-total td {
    border-top: 2px solid var(--border-color) !important;
    font-size: 1.25rem !important;
    font-weight: 850 !important;
    color: #059669 !important; /* Successful payment green */
    background: #f1f5f9 !important;
}

/* Order View status highlight box styling */
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
    background: #fefaf0 !important;
    border: 1px solid #fde68a !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    color: #78350f !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
}
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark {
    background: transparent !important;
    color: #78350f !important;
    font-weight: 700 !important;
    padding: 0 !important;
}
.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark.order-status {
    background: #fef3c7 !important;
    color: #d97706 !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-left: 4px !important;
}

@media (max-width: 600px) {
    .woocommerce-order-received table.shop_table.order_details,
    .woocommerce-view-order table.shop_table.order_details {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .woocommerce-order-received table.shop_table.order_details thead,
    .woocommerce-view-order table.shop_table.order_details thead {
        display: none !important;
    }
    
    .woocommerce-order-received table.shop_table.order_details tbody tr,
    .woocommerce-view-order table.shop_table.order_details tbody tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: transparent !important;
    }
    .woocommerce-order-received table.shop_table.order_details tbody tr td,
    .woocommerce-view-order table.shop_table.order_details tbody tr td {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .woocommerce-order-received table.shop_table.order_details td.product-name,
    .woocommerce-view-order table.shop_table.order_details td.product-name {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex: 1 !important;
    }
    
    .woocommerce-order-received table.shop_table.order_details td.product-total,
    .woocommerce-view-order table.shop_table.order_details td.product-total {
        flex-shrink: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* Totals rows styling for mobile */
    .woocommerce-order-received table.shop_table.order_details tfoot tr,
    .woocommerce-view-order table.shop_table.order_details tfoot tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        border-bottom: 1px dashed #f3f4f6 !important;
        padding: 10px 0 !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .woocommerce-order-received table.shop_table.order_details tfoot th,
    .woocommerce-view-order table.shop_table.order_details tfoot th {
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        font-size: 0.88rem !important;
        flex: 1 0 120px !important;
    }
    .woocommerce-order-received table.shop_table.order_details tfoot td,
    .woocommerce-view-order table.shop_table.order_details tfoot td {
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        font-size: 0.88rem !important;
        flex: 1 0 160px !important;
        justify-content: flex-end !important;
        text-align: right !important;
    }
    .woocommerce-order-received table.shop_table.order_details tfoot tr.order-total,
    .woocommerce-view-order table.shop_table.order_details tfoot tr.order-total {
        border-top: 2px solid var(--border-color) !important;
        border-bottom: none !important;
        padding-top: 14px !important;
        margin-top: 8px !important;
    }
    .woocommerce-order-received table.shop_table.order_details tfoot tr.order-total th,
    .woocommerce-view-order table.shop_table.order_details tfoot tr.order-total th {
        font-size: 1rem !important;
    }
    .woocommerce-order-received table.shop_table.order_details tfoot tr.order-total td,
    .woocommerce-view-order table.shop_table.order_details tfoot tr.order-total td {
        font-size: 1.15rem !important;
    }
}

/* 5. Customer Details Section */
.woocommerce-order-received section.woocommerce-customer-details,
.woocommerce-view-order section.woocommerce-customer-details {
    margin-top: 40px !important;
}

.woocommerce-order-received .woocommerce-columns--addresses,
.woocommerce-view-order .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 32px !important;
    margin: 0 0 30px 0 !important;
}

.woocommerce-order-received .woocommerce-columns--addresses .woocommerce-column,
.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column {
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

@media (max-width: 768px) {
    .woocommerce-view-order .my-account-grid,
    .woocommerce-order-received .my-account-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 16px auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .woocommerce-view-order .woocommerce-MyAccount-content,
    .woocommerce-order-received .woocommerce-MyAccount-content {
        padding: 0 !important;
        padding-bottom: 40px !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-order-received .woocommerce-columns--addresses,
    .woocommerce-view-order .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.woocommerce-order-received section.woocommerce-customer-details address,
.woocommerce-view-order section.woocommerce-customer-details address {
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-style: normal !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    font-size: 0.92rem !important;
    margin-top: 8px !important;
}

.woocommerce-order-received section.woocommerce-customer-details address p,
.woocommerce-view-order section.woocommerce-customer-details address p {
    margin-bottom: 4px !important;
}

.woocommerce-order-received section.woocommerce-customer-details address p:last-child,
.woocommerce-view-order section.woocommerce-customer-details address p:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-order-received section.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-order-received section.woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-view-order section.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-view-order section.woocommerce-customer-details .woocommerce-customer-details--email {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

/* 6. Thank You Actions (Volver a la tienda) */
.woocommerce-order-received .unicom-thankyou-actions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.woocommerce-order-received .btn-return-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1.05rem;
    letter-spacing: 0.25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woocommerce-order-received .btn-return-shop:hover {
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.45);
}

/* ===================================================
   STUNNING KEMIK-STYLE LOGIN/REGISTER PAGE
   =================================================== */
.unicom-auth-wrapper {
    max-width: 460px;
    margin: 10px auto 80px auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.unicom-auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.35;
}

.unicom-auth-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.unicom-auth-btn {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    border-radius: 100px;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0 20px;
}

.unicom-auth-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    color: var(--text-primary) !important;
}

.unicom-auth-btn.active {
    border-color: var(--text-primary);
    background: #f8fafc;
}

.unicom-auth-email svg {
    color: var(--text-primary);
}

.unicom-auth-email-area {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 24px;
}

/* Hide duplicate social login wrapper inside the email form */
.unicom-auth-email-area .myaccount-social-login-wrapper {
    display: none !important;
}

/* Auth forms adjustment inside the wrapper */
.unicom-auth-email-area .col-1,
.unicom-auth-email-area .col-2 {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.unicom-auth-email-area form {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.unicom-auth-email-area .remember-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.unicom-auth-email-area .remember-submit-row .woocommerce-form-login__submit {
    width: auto !important;
    padding: 0 24px !important;
    margin-top: 0 !important;
}

.unicom-auth-disclaimer {
    margin-top: 30px;
    font-size: 0.825rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.unicom-auth-disclaimer a {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
}

.unicom-auth-disclaimer a:hover {
    color: var(--accent-color);
}

@media (max-width: 480px) {
    .unicom-auth-wrapper {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 10px 0 40px 0 !important;
        border-radius: 0 !important;
    }
}

/* Reduce whitespace gap above login card on My Account page */
.woocommerce-account main#primary.site-main {
    padding-top: 15px !important;
}

.woocommerce-account .woocommerce {
    margin-top: 10px !important;
}

.woocommerce-account .unicom-auth-wrapper {
    margin-top: 10px !important;
}

/* Single Product Sidebar Recommended Products */
.unicom-right-recommendations {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}
.unicom-right-recommendations .recommendations-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}
/* Sidebar recommended products grid */
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    overflow-x: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product {
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    scroll-snap-align: none !important;
}

/* Adjustments for the smaller size in the sidebar */
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product img {
    height: 140px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
}
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product .price {
    font-size: 0.88rem !important;
    margin-bottom: 8px !important;
}
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product .button {
    font-size: 0.8rem !important;
}
.woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product .button::after {
    font-size: 1rem !important;
}

@media (max-width: 480px) {
    .woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products.google-grid.unicom-sidebar-recommendations-grid li.product img {
        height: 110px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }
}

/* Quitar la opción Cambiar dirección en la sección del carrito */
.woocommerce-shipping-totals .shipping-calculator-button,
.woocommerce-shipping-totals .shipping-calculator-form {
    display: none !important;
}

/* End of style.css */

/* --- CHECKOUT EDIT MODAL OVERLAY --- */
.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    overscroll-behavior: contain !important;
}

.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Modal Content Container */
.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}

.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal.active .unicom-modal-content {
    transform: scale(1);
}

/* Modal Title */
.unicom-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
    font-family: inherit;
}

/* Modal Close Button */
.unicom-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 10;
}
.unicom-modal-close:hover {
    color: #1f2937;
    transform: scale(1.1);
}

/* Scrollbar customization inside the modal content */
.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-content::-webkit-scrollbar {
    width: 6px;
}
.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

/* --- CHECKOUT BILLING MODAL FIELDS CUSTOMIZATION --- */
#unicom-checkout-billing-modal .woocommerce-billing-fields__field-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

#unicom-checkout-billing-modal #billing_nit_field {
    order: 1 !important;
}

#unicom-checkout-billing-modal #billing_first_name_field {
    order: 2 !important;
}

#unicom-checkout-billing-modal #billing_address_1_field {
    order: 3 !important;
}

/* Hide other fields in checkout billing modal */
#unicom-checkout-billing-modal #billing_last_name_field,
#unicom-checkout-billing-modal #billing_company_field,
#unicom-checkout-billing-modal #billing_address_2_field,
#unicom-checkout-billing-modal #billing_city_field,
#unicom-checkout-billing-modal #billing_state_field,
#unicom-checkout-billing-modal #billing_postcode_field,
#unicom-checkout-billing-modal #billing_phone_field,
#unicom-checkout-billing-modal #billing_email_field {
    display: none !important;
}

/* Ensure Select2 dropdown renders on top of the checkout modals */
.select2-container--open {
    z-index: 999999999 !important;
}


/* ==========================================
   CARGO EXPRESO SHIPMENT TRACKING CARD
   ========================================== */
.woocommerce-order-tracking-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.tracking-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
}

.tracking-carrier-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.tracking-carrier-badge {
    background: #eef2f6 !important;
    color: #475569 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 6px 12px !important;
    border-radius: 100px !important;
}

.tracking-card-header h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
}

.tracking-status-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #16a34a !important;
    background: #f0fdf4 !important;
    padding: 6px 12px !important;
    border-radius: 100px !important;
}

.pulse-dot {
    width: 8px !important;
    height: 8px !important;
    background: #16a34a !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: tracking-pulse 1.8s infinite ease-in-out !important;
}

@keyframes tracking-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 0.9; }
}

.tracking-description {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
}

.tracking-number-box {
    background: #f8fafc !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.tracking-label {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.tracking-code-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.tracking-code-container code {
    font-family: monospace !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.copy-tracking-btn {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 100px !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.copy-tracking-btn:hover {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    border-color: var(--text-primary) !important;
}

.copy-tracking-btn.copied {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

.tracking-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15) !important;
    border: none !important;
    cursor: pointer !important;
}

.tracking-action-btn:hover {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Responsividad para móviles */
@media (max-width: 600px) {
    .woocommerce-order-tracking-card {
        padding: 20px !important;
        border-radius: 20px !important;
        margin-bottom: 24px !important;
    }
    
    .tracking-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .tracking-status-indicator {
        align-self: flex-start !important;
    }
    
    .tracking-number-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }
    
    .tracking-code-container {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .tracking-action-btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}/* ==========================================
   CART PAGE SHIPPING CALCULATOR MODAL STYLING
   ========================================== */
#unicom-checkout-delivery-modal .form-row {
    margin-bottom: 18px !important;
}

#unicom-checkout-delivery-modal label {
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

#unicom-checkout-delivery-modal select,
#unicom-checkout-delivery-modal input[type="text"] {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    padding: 0 16px !important;
    font-size: 0.95rem !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    color: var(--text-primary) !important;
}

#unicom-checkout-delivery-modal select:focus,
#unicom-checkout-delivery-modal input[type="text"]:focus {
    border-color: var(--accent-color) !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15) !important;
}

#unicom-checkout-delivery-modal button.unicom-checkout-save-btn {
    width: 100% !important;
    margin-top: 24px !important;
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15) !important;
}

#unicom-checkout-delivery-modal button.unicom-checkout-save-btn:hover {
    background: var(--text-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Hide native inline shipping calculator form on Cart page */
.woocommerce-cart .shipping-calculator-form {
    display: none !important;
}

/* Hide the ugly Select2 selection clear (x) button on single select dropdowns */
.select2-container .select2-selection__clear {
    display: none !important;
}

/* --- CHECKOUT MODALS MOBILE OPTIMIZATION --- */

/* Lock body scroll when a modal is open */
html:has(body.unicom-modal-open) {
    overflow: hidden !important;
    height: 100% !important;
}
body.unicom-modal-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

/* ── Base modal grid inside the content container ── */
.unicom-modal-fields-container .woocommerce-shipping-fields__field-wrapper,
.unicom-modal-fields-container .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
}

/* Full-width rows: address, phone, NIT */
.unicom-modal-fields-container #shipping_address_1_field,
.unicom-modal-fields-container #shipping_phone_field,
.unicom-modal-fields-container #billing_address_1_field,
.unicom-modal-fields-container #billing_nit_field,
.unicom-modal-fields-container .form-row-wide {
    grid-column: span 2 !important;
}

/* Side-by-side: Nombre + Apellidos only */
.unicom-modal-fields-container #shipping_first_name_field,
.unicom-modal-fields-container #shipping_last_name_field,
.unicom-modal-fields-container #billing_first_name_field,
.unicom-modal-fields-container #billing_last_name_field {
    grid-column: span 1 !important;
}

/* Full-width: Departamento and Municipio each on its own row */
.unicom-modal-fields-container #shipping_state_field,
.unicom-modal-fields-container #shipping_city_field,
.unicom-modal-fields-container #billing_state_field,
.unicom-modal-fields-container #billing_city_field {
    grid-column: span 2 !important;
}

/* All form-rows inside modal: reset inherited floats */
.unicom-modal-fields-container .form-row {
    float: none !important;
    width: 100% !important;
    margin-bottom: 14px !important;
    clear: none !important;
    box-sizing: border-box !important;
}

/* Ensure select2 container fills its grid cell */
.unicom-modal-content .select2-container,
.unicom-modal-content .select2-container--default {
    width: 100% !important;
}

@media (max-width: 767px) {
    /* Modal overlay */
    .unicom-checkout-fields-wrapper.unicom-checkout-fields-modal {
        padding: 16px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    /* Modal card */
    .unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90dvh !important;
        max-height: 90vh !important;
        margin: auto !important;
        padding: 22px 16px 20px !important;
        border-radius: 20px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        /* iOS momentum scroll */
        -webkit-overflow-scrolling: touch;
    }

    /* On mobile: keep Nombre+Apellidos and Departamento+Municipio side-by-side */
    .unicom-modal-fields-container .woocommerce-shipping-fields__field-wrapper,
    .unicom-modal-fields-container .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 10px !important;
    }

    /* Title */
    .unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-title {
        font-size: 1.1rem !important;
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
    }

    /* Close button */
    .unicom-checkout-fields-wrapper.unicom-checkout-fields-modal .unicom-modal-close {
        top: 14px !important;
        right: 16px !important;
        font-size: 22px !important;
    }

    /* Save button full width */
    #unicom-checkout-delivery-save-btn,
    #unicom-checkout-billing-save-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
    }
}

/* Add padding to checkout form container to avoid sticky footer overlap */
.woocommerce-checkout {
    padding-bottom: 140px !important;
}








/* ================================================================
   DELIVERY ONBOARDING MODAL — Premium Design
   ================================================================ */

.unicom-onboarding-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 15, 30, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    animation: unicomFadeIn 0.3s ease both !important;
    overscroll-behavior: contain !important;
}

@keyframes unicomFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.unicom-onboarding-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05);
    animation: unicomSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}

@keyframes unicomSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Header gradient ── */
.unicom-onboarding-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.unicom-onboarding-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(250, 204, 21, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.unicom-onboarding-header::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -30px;
    width: 120px; height: 120px;
    background: rgba(250, 204, 21, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.unicom-onboarding-icon-wrap {
    width: 68px;
    height: 68px;
    background: rgba(250, 204, 21, 0.15);
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
}

.unicom-onboarding-title {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.4px !important;
    line-height: 1.25 !important;
    position: relative;
    z-index: 1;
    border: none !important;
    padding: 0 !important;
    text-shadow: none !important;
}

.unicom-onboarding-subtitle {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
    position: relative;
    z-index: 1;
}

/* ── Form body ── */
.unicom-onboarding-body {
    padding: 28px 28px 24px;
}

/* 2-column grid for name fields */
.unicom-onboarding-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

/* Single field container */
.unicom-ob-field {
    margin-bottom: 18px;
}

.unicom-ob-field:last-of-type {
    margin-bottom: 0;
}

/* Labels */
.unicom-ob-label {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin-bottom: 7px !important;
}

.unicom-ob-label span {
    color: #ef4444;
    font-weight: 800;
}

/* Inputs */
.unicom-ob-input {
    width: 100% !important;
    height: 46px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    font-size: 0.92rem !important;
    color: #111827 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    font-family: inherit !important;
}

.unicom-ob-input:focus {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.unicom-ob-input::placeholder {
    color: #9ca3af !important;
}

/* Input with left icon */
.unicom-ob-input-icon-wrap {
    position: relative;
}

.unicom-ob-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.2s;
}

.unicom-ob-input-icon-wrap:focus-within .unicom-ob-input-icon {
    color: #0f172a;
}

.unicom-ob-input-has-icon {
    padding-left: 40px !important;
}

/* Custom select wrapper */
.unicom-ob-select-wrap {
    position: relative;
}

.unicom-ob-select {
    width: 100% !important;
    height: 46px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 40px 0 14px !important;
    font-size: 0.92rem !important;
    color: #111827 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.unicom-ob-select:focus {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.unicom-ob-select-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* Error box */
.unicom-ob-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
    line-height: 1.45 !important;
}

/* CTA Save button */
.unicom-ob-save-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 52px !important;
    background: var(--accent-color, #facc15) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    margin-top: 22px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35) !important;
    letter-spacing: 0.1px !important;
}

.unicom-ob-save-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2) !important;
    transform: translateY(-1px) !important;
}

.unicom-ob-save-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Skip link */
.unicom-ob-skip-link {
    display: block !important;
    text-align: center !important;
    margin-top: 16px !important;
    font-size: 0.82rem !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    letter-spacing: 0.1px !important;
}

.unicom-ob-skip-link:hover {
    color: #374151 !important;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .unicom-onboarding-overlay {
        padding: 12px !important;
        align-items: flex-end !important;
    }

    .unicom-onboarding-card {
        border-radius: 24px 24px 18px 18px !important;
        max-height: 95dvh !important;
        max-height: 95vh !important;
    }

    .unicom-onboarding-header {
        padding: 28px 24px 22px !important;
    }

    .unicom-onboarding-title {
        font-size: 1.2rem !important;
    }

    .unicom-onboarding-body {
        padding: 22px 20px 20px !important;
    }

    .unicom-onboarding-row-2 {
        gap: 10px !important;
    }
}

/* Municipio select injected by checkout-regions.js inside onboarding modal */
#unicom-onboarding-modal #shipping_city_select,
#unicom-onboarding-modal .select2-city-dropdown {
    width: 100% !important;
    height: 46px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    font-size: 0.92rem !important;
    color: #111827 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    font-family: inherit !important;
    display: block !important;
    margin-top: 0 !important;
}

#unicom-onboarding-modal #shipping_city_select:focus,
#unicom-onboarding-modal .select2-city-dropdown:focus {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* ================================================================
   ONBOARDING MODAL - field normalization (all inputs = selects)
   ================================================================ */

#unicom-onboarding-modal .form-row-group {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
    clear: both !important;
}
#unicom-onboarding-modal .form-row-group .form-row {
    float: none !important;
    width: auto !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#unicom-onboarding-modal .form-row {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
#unicom-onboarding-modal label {
    display: block !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px !important;
}
#unicom-onboarding-modal input.input-text,
#unicom-onboarding-modal input[type="text"],
#unicom-onboarding-modal input[type="tel"] {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
    margin: 0 !important;
}
#unicom-onboarding-modal input.input-text:focus,
#unicom-onboarding-modal input[type="text"]:focus,
#unicom-onboarding-modal input[type="tel"]:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1) !important;
}
#unicom-onboarding-modal input::placeholder {
    color: #9ca3af !important;
}
#unicom-onboarding-modal select,
#unicom-onboarding-modal #ob_shipping_state,
#unicom-onboarding-modal #ob_shipping_city {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 36px 0 12px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    color: #111827 !important;
    background-color: #f9fafb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
    margin: 0 !important;
}
#unicom-onboarding-modal select:focus,
#unicom-onboarding-modal #ob_shipping_state:focus,
#unicom-onboarding-modal #ob_shipping_city:focus {
    border-color: #1e3a5f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1) !important;
}
#unicom-onboarding-modal abbr.required {
    color: #ef4444 !important;
    text-decoration: none !important;
}
#unicom-onboarding-modal .unicom-ob-save-btn {
    margin-top: 14px !important;
}

/* Onboarding flex rows to group fields side-by-side on desktop */
#unicom-onboarding-modal .unicom-onboarding-flex-row {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}
#unicom-onboarding-modal .unicom-onboarding-flex-row .form-row {
    flex: 1 !important;
    margin: 0 !important;
    width: auto !important;
}
@media (max-width: 600px) {
    #unicom-onboarding-modal .unicom-onboarding-flex-row {
        flex-direction: column !important;
        gap: 14px !important;
    }
}

/* Specific spacings for onboarding modal card on desktop to prevent scrolling */
#unicom-onboarding-modal .unicom-modal-content {
    padding: 20px 24px 20px !important;
}
#unicom-onboarding-modal .unicom-modal-title {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}

/* Extra specificity to override WooCommerce/Select2 select borders in onboarding modal */
div#unicom-onboarding-modal select,
div#unicom-onboarding-modal select#ob_shipping_state,
div#unicom-onboarding-modal select#ob_shipping_city,
div#unicom-onboarding-modal .form-row select,
div#unicom-onboarding-modal .woocommerce-input-wrapper select {
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #f9fafb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    color: #111827 !important;
    height: 44px !important;
    width: 100% !important;
    padding: 0 36px 0 12px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: block !important;
}

div#unicom-onboarding-modal select:focus,
div#unicom-onboarding-modal select#ob_shipping_state:focus,
div#unicom-onboarding-modal select#ob_shipping_city:focus {
    border-color: #1e3a5f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1) !important;
    outline: none !important;
}

/* ================================================================
   GLOBAL FORM FIELD DESIGN — consistent with onboarding modal
   Applies to ALL WooCommerce forms sitewide:
   checkout, cart, my-account, login, register, etc.
   Pure visual — zero functional impact.
   ================================================================ */

/* ── Labels ── */
.woocommerce .form-row label,
.woocommerce-page .form-row label,
.woocommerce form .form-row label,
.woocommerce-checkout .form-row label,
.woocommerce-MyAccount-content .form-row label,
.woocommerce-account .form-row label,
.woocommerce form label,
body.woocommerce label,
body.woocommerce-page label {
    font-family: var(--font-family) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 6px !important;
    display: block !important;
    text-transform: none !important;
}

/* ── Inputs (text, email, tel, password, number, search) ── */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="date"],
.woocommerce input.input-text,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="password"],
.woocommerce-page input.input-text,
body.woocommerce input.input-text,
body.woocommerce-page input.input-text,
.woocommerce-checkout input.input-text,
.woocommerce-MyAccount-content input.input-text,
.woocommerce-account input.input-text {
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-family) !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    width: 100% !important;
    display: block !important;
}

.woocommerce input.input-text:focus,
.woocommerce-page input.input-text:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-MyAccount-content input.input-text:focus,
body.woocommerce input.input-text:focus,
body.woocommerce-page input.input-text:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

.woocommerce input::placeholder,
.woocommerce-page input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* ── Selects ── */
.woocommerce select,
.woocommerce-page select,
.woocommerce form select,
.woocommerce-checkout select,
.woocommerce-MyAccount-content select,
.woocommerce-account select,
body.woocommerce select,
body.woocommerce-page select {
    height: 44px !important;
    padding: 0 36px 0 12px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-family) !important;
    color: #111827 !important;
    background-color: #f9fafb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    width: 100% !important;
    display: block !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.woocommerce select:focus,
.woocommerce-page select:focus,
.woocommerce form select:focus,
.woocommerce-checkout select:focus,
.woocommerce-MyAccount-content select:focus,
body.woocommerce select:focus,
body.woocommerce-page select:focus {
    border-color: #1e3a5f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
    outline: none !important;
}

/* ── Textareas ── */
.woocommerce textarea,
.woocommerce-page textarea,
body.woocommerce textarea,
body.woocommerce-page textarea {
    padding: 12px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-family) !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    resize: vertical !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    width: 100% !important;
    display: block !important;
}

.woocommerce textarea:focus,
.woocommerce-page textarea:focus,
body.woocommerce textarea:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

/* ── Validation error state (WooCommerce adds .woocommerce-invalid) ── */
.woocommerce .woocommerce-invalid input.input-text,
.woocommerce .woocommerce-invalid select,
.woocommerce-page .woocommerce-invalid input.input-text,
.woocommerce-page .woocommerce-invalid select {
    border-color: #ef4444 !important;
}

/* ── Required asterisk ── */
.woocommerce abbr.required,
.woocommerce-page abbr.required {
    color: #ef4444 !important;
    text-decoration: none !important;
}

/* ── Form row spacing ── */
.woocommerce .form-row,
.woocommerce-page .form-row,
.woocommerce form .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

/* ── Quantity input (product page, cart) ── */
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty {
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-family) !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.woocommerce .quantity input.qty:focus,
.woocommerce-page .quantity input.qty:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

/* ── Login / Register forms ── */
.woocommerce-form-login input,
.woocommerce-form-register input,
.woocommerce-form-coupon input,
.woocommerce-form-login select,
.woocommerce-form-register select {
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.92rem !important;
    font-family: var(--font-family) !important;
    color: #111827 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    width: 100% !important;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: #1e3a5f !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

/* ================================================================
   RESET: Header search bar — exclude from global form styles
   The search input lives inside .header-search-input-wrapper
   and must keep its original pill/borderless design.
   ================================================================ */
.header-search-input-wrapper input[type="search"],
.header-search-input-wrapper input,
#live-search-input,
.header-search-form input[type="search"],
.header-search-form input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    display: block !important;
}

.header-search-input-wrapper input[type="search"]:focus,
#live-search-input:focus,
.header-search-form input:focus {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.header-search-input-wrapper input[type="search"]::placeholder,
#live-search-input::placeholder {
    color: #9ca3af !important;
}

/* =================================================================
   WISHLIST MOBILE GRID WIDTH & MOVE TO CART BUTTON
   ================================================================= */
/* Desktop button style */
.woocommerce ul.products.unicom-wishlist-grid li.product .unicom-move-to-cart-btn {
    margin-top: 12px !important;
    background: var(--accent-color) !important;
    color: var(--accent-text) !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.woocommerce ul.products.unicom-wishlist-grid li.product .unicom-move-to-cart-btn:hover {
    background: var(--accent-hover) !important;
}

.woocommerce ul.products.unicom-wishlist-grid li.product .unicom-move-to-cart-btn svg {
    stroke: currentColor !important;
}

.woocommerce ul.products.unicom-wishlist-grid li.product .unicom-move-to-cart-btn.loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Mobile responsive optimizations */
@media (max-width: 768px) {
    /* 1. Force the page & account containers to take more width (reduce side spacing) */
    .woocommerce-account.woocommerce-page main#primary.container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .woocommerce-account .my-account-grid {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Style the button inside the mobile grid layout */
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product .unicom-move-to-cart-btn {
        grid-column: 2 !important;
        width: fit-content !important;
        margin-top: 8px !important;
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 6px !important;
        display: inline-flex !important;
    }
    
    /* Ensure the cards themselves stretch nicely and have proper spacing */
    .woocommerce-account .woocommerce-MyAccount-content ul.products.unicom-wishlist-grid li.product {
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
    }
}

/* Hide CF Option when total is over 2500 */
body.unicom-total-over-2500 .unicom-cf-label {
    display: none !important;
}

/* Fix for NIT/DPI field error and notice shifting layout on mobile */
.woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper,
.unicom-modal-fields-container .woocommerce-input-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.unicom-field-error {
    color: #ef4444 !important;
    font-size: 0.8rem !important;
    margin-top: 4px !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

.unicom-checkout-sat-notice {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table:not(.order_details) tr.unicom-order-hidden,
.unicom-order-hidden {
    display: none !important;
}
/* Ocultar selector de estrellas por defecto de WooCommerce en reviews */
.comment-form-rating,
p.stars,
.stars {
    display: none !important;
}

/* Custom Payment Gateway Icons on Checkout */
.unicom-checkout-gateway-icons {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 12px !important;
    vertical-align: middle !important;
}
.unicom-checkout-gateway-icons img.unicom-gateway-logo {
    height: 20px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    padding: 2px 4px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
