/* ==========================================================================
   INOXMAT MODERN — Mejoras visuales y de rendimiento
   Se carga DESPUES de main.css — solo sobreescribe lo necesario
   Borrar este archivo para revertir todos los cambios
   ========================================================================== */

/* --- Antialiasing y suavizado global --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Transiciones globales suaves --- */
a, .boton, button, input[type="submit"],
.single_add_to_cart_button, .comprar-ahora {
    transition: all 0.2s ease;
}

/* ==========================================================================
   HEADER — mas limpio
   ========================================================================== */

#masthead {
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

#masthead.fixed {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Iconos header con hover */
.links_logged {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.links_logged:hover {
    opacity: 1;
}

/* Buscador mas moderno */
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    border-radius: 8px !important;
    border: 2px solid #e5e7eb !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(var(--secondary), 0.15) !important;
}

/* Menu items hover suave */
.main-navigation a {
    transition: color 0.2s ease;
}

/* ==========================================================================
   BOTONES — redondeados y con feedback
   ========================================================================== */

.boton,
.woocommerce button.button.alt.single_add_to_cart_button,
.comprar-ahora,
.product-aviables {
    border-radius: 6px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease !important;
}

.boton:hover,
.woocommerce button.button.alt.single_add_to_cart_button:hover,
.comprar-ahora:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.boton:active,
.woocommerce button.button.alt.single_add_to_cart_button:active,
.comprar-ahora:active {
    transform: translateY(0);
}

.product-aviables {
    border-radius: 6px !important;
}

/* Boton contacto */
.contact-product {
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
}

/* Login boton */
.login-header {
    border-radius: 6px !important;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.woocommerce-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.6;
}
.woocommerce-breadcrumb a:hover {
    opacity: 1;
    color: var(--secondary) !important;
}

/* ==========================================================================
   PRODUCTO — ficha individual
   ========================================================================== */

/* Imagen principal */
.product-image-holder {
    border-radius: 10px;
    border-color: #f0f0f0 !important;
    transition: box-shadow 0.3s ease;
}
.product-image-holder:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Galeria thumbnails */
.product-gallery-holder .product-gallery {
    border-radius: 6px;
    border-color: #f0f0f0 !important;
    transition: border-color 0.2s ease;
}
.product-gallery-holder .product-gallery:hover {
    border-color: var(--secondary) !important;
}

/* Titulo producto */
h1.product-title {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

/* SKU */
.sku.color-grey {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    opacity: 0.5;
}

/* Stock indicator */
.stock.stock-disponible {
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.stock.stock-no-disponible {
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

/* Precio */
.simple_product_price .tar_price {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}
.simple_product_price del {
    opacity: 0.4;
    font-size: 0.9rem !important;
}
.precio-tachado {
    opacity: 0.4;
    font-size: 0.85rem !important;
}

/* Input cantidad */
.quantity-variation-table input[type="number"] {
    border-radius: 6px !important;
    border: 2px solid #e5e7eb !important;
    transition: border-color 0.2s ease !important;
}
.quantity-variation-table input[type="number"]:focus {
    border-color: var(--secondary) !important;
    outline: none !important;
}

/* Descripcion producto — sin fondo, solo borde sutil */
.product-description {
    background: transparent;
    border-radius: 0;
    padding: 1rem 0 !important;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

/* Atributos */
.attributes-description .bold.border-bottom-dark {
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 0.5rem;
}

/* Certificaciones */
.certificaciones-product {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.logo-producto {
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.logo-producto:hover {
    opacity: 1;
}

/* Material badges */
.material {
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: 100%;
    display: inline-block;
}

/* Material badges en cards de loop — mas pequenos */
.product-loop-material .material {
    font-size: 0.6rem !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-loop-material {
    margin-bottom: 4px;
}

/* ==========================================================================
   TABS — indicador mas moderno
   ========================================================================== */

.product-tabs {
    border-bottom: 2px solid #e5e7eb;
    gap: 4px;
}
.product-tabs .tab {
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    text-indent: 0 !important;
    padding: 0.75rem 1.5rem;
}
.product-tabs .tab:hover {
    background: #f9fafb;
}
.product-tabs .tab.active {
    border-bottom: 3px solid var(--secondary) !important;
    font-weight: 600;
    margin-bottom: -3px;
}

/* ==========================================================================
   CARDS DE PRODUCTO — modernas con sombra y hover
   ========================================================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.item-productos {
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.item-productos:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
    border-color: #d1d5db !important;
    transform: translateY(-4px);
}

/* Imagen del producto en cards */
.woocommerce ul.products li.product .product-image,
.woocommerce-page ul.products li.product .product-image {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fafafa;
    overflow: hidden;
}

.woocommerce ul.products li.product .product-image img,
.woocommerce-page ul.products li.product .product-image img {
    transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover .product-image img,
.woocommerce-page ul.products li.product:hover .product-image img {
    transform: scale(1.05);
}

/* Contenido de la card */
.product-loop-content {
    padding: 12px 14px !important;
}

/* Titulo del producto en cards */
.product-loop-title {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    color: var(--font_color) !important;
}

/* Excerpt (X productos) */
.product-loop-excerpt {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    margin-top: 4px !important;
}

/* Marca logo en cards */
.certificaciones-loop {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #f0f0f0;
}

.marca-loop-producto {
    max-height: 22px !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.woocommerce ul.products li.product:hover .marca-loop-producto {
    opacity: 1;
}

/* Fondo compra en cards */
.product-loop-compra {
    border-radius: 0 0 12px 12px;
    padding: 10px 14px !important;
}

.product-loop-compra .comprar-ahora {
    border-radius: 6px !important;
}

/* Quitar outline negro en cards al hacer clic */
.woocommerce ul.products li.product a:focus,
.woocommerce-page ul.products li.product a:focus {
    outline: none !important;
}
.woocommerce ul.products li.product a:focus-visible,
.woocommerce-page ul.products li.product a:focus-visible {
    outline: 2px solid var(--secondary) !important;
    outline-offset: 2px;
}

/* Subcategorias en mega menu - imagenes redondeadas */
.subcategories-holder .sub-catregory-mega-menu a img {
    border-radius: 6px;
    border-color: #f0f0f0 !important;
    transition: transform 0.3s ease;
}
.subcategories-holder .sub-catregory-mega-menu a:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   SOCIAL SHARE
   ========================================================================== */

.share-holder a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb !important;
    border: 1px solid #d1d5db;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    color: #374151 !important;
    font-size: 16px;
}
.share-holder a:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary);
    color: #fff !important;
    transform: translateY(-2px);
}
.share-holder {
    gap: 6px;
}

/* ==========================================================================
   WISHLIST
   ========================================================================== */

.yith-wcwl-add-to-wishlist a {
    transition: transform 0.2s ease !important;
}
.yith-wcwl-add-to-wishlist a:hover {
    transform: scale(1.1) !important;
}

/* ==========================================================================
   CARRITO / SHOP TABLE
   ========================================================================== */

.woocommerce table.shop_table {
    border-radius: 8px !important;
    overflow: hidden;
    border-color: #e5e7eb !important;
}
.woocommerce table.shop_table thead th {
    background: #f9fafb;
}

/* ==========================================================================
   NOTICES WOOCOMMERCE
   ========================================================================== */

.woocommerce-message {
    border-radius: 8px !important;
    border-top: none !important;
    border-left: 4px solid var(--secondary) !important;
}
.woocommerce-error li {
    border-radius: 8px;
}
.woocommerce-info {
    border-radius: 8px !important;
    border-top: none !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.site-footer {
    border-top: 1px solid #e5e7eb;
}

footer h6.widget-title {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   FORMULARIOS — inputs con focus moderno
   ========================================================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-cart table.cart td.actions .coupon .input-text {
    border-radius: 6px !important;
    border: 2px solid #e5e7eb !important;
    transition: border-color 0.2s ease !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--secondary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05) !important;
}

/* ==========================================================================
   POPUP / MODAL
   ========================================================================== */

.popup {
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}
.bg-absolute-black {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
   CATEGORIAS LOOP
   ========================================================================== */

.categories-loop .products .product-category a {
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.categories-loop .products .product-category a:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ==========================================================================
   SCROLLBAR SUTIL
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: rgba(0,0,0,0.08);
}

/* ==========================================================================
   PAGINACION
   ========================================================================== */

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border-radius: 6px !important;
    margin: 0 2px;
    transition: all 0.2s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--secondary) !important;
    color: #fff !important;
}

/* ==========================================================================
   PRODUCTOS RELACIONADOS
   ========================================================================== */

.related.products > h2,
section.related > h2 {
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .simple_product_price .tar_price {
        font-size: 1.5rem !important;
    }
    .product-description {
        padding: 0.75rem 0 !important;
    }
    .product-tabs .tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
