/**
Theme Name: Shell Souvenirs
Author: Origami Soluciones
Author URI: https://origamisoluciones.com/
Description: Tema hijo para la firma Shell Souvenirs
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shell-souvenirs
Template: astra
*/

/* VARIABLES GLOBALES */
:root {
    --blue: #244c72;
    --black: #000000;
    --white: #ffffff;
    --dark-blue: #1E293B;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
    width: 15px;
    background-color: var(--white);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 10px;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px var(--black);
}

/* Eliminar outline en elementos interactivos al recibir foco */
a:focus,
li:focus,
input:focus,
textarea:focus,
select:focus,
.mobile-menu-toggle-icon:focus,
.menu-toggle-close:focus,
.menu-toggle:focus,
.dropdown-menu-toggle:focus,
.eael-tabs-nav li:focus,
.elementor-tab-title:focus {
    outline: none !important;
}

/* WooCommerce */

/* Botón flipbox - borde blanco consistente en reposo y hover */
.flipbox-button,
.flipbox-button:hover {
    border: 1px solid #ffffff !important;
}

/* Botones principales - estilos unificados */
.wc-proceed-to-checkout a.checkout-button,
.woocommerce-account .woocommerce-button,
.woocommerce-mini-cart__buttons.buttons a,
.woocommerce-checkout-payment #place_order {
    border-radius: 31px !important;
    background: #244c72 !important;
    background-color: #244c72 !important;
    background-image: none !important;
    color: #ffffff !important;
    float: none !important;
    padding: 10px 20px !important;
}

/* Botón de proceso de pago - estilos específicos */
.wc-proceed-to-checkout a.checkout-button {
    padding: 12px 24px !important;
    line-height: 1rem !important;
}

/* Botones principales - hover con color corporativo oscuro */
.wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-mini-cart__buttons.buttons a:hover,
.woocommerce-checkout-payment #place_order:hover {
    background: #1E293B !important;
    background-color: #1E293B !important;
    color: #ffffff !important;
}

/* Categorías de producto - ancho completo */
.uael-category__title-wrap {
    width: 100% !important;
    height: 100% !important;
}

h1.category-title{
    text-align: center !important;
    color: var(--white) !important;
}

/* Formulario de login/registro - centrado */
.woocommerce-account #customer_login {
    width: 50% !important;
    margin: auto !important;
}

/* Color de texto para categorías de producto */
.ast-woo-product-category {
    color: rgba(19, 26, 37, 1) !important;
}

/* Imágenes de producto en listados - contenedor con altura fija y centrado */
.astra-shop-thumbnail-wrap a.woocommerce-loop-product__link,
.uael-woo-products-thumbnail-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    overflow: hidden;
    background-color: var(--white);
}

/* Imágenes de producto en listados - ajuste sin distorsión */
.astra-shop-thumbnail-wrap a.woocommerce-loop-product__link img,
.uael-woo-products-thumbnail-wrap a img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

/* Imágenes de producto - bordes redondeados */
.woocommerce-js ul.products li.product a img,
.woocommerce-product-gallery a img {
    border-radius: 12px !important;
}

/* Tarjeta de producto - sombra, espaciado y bordes redondeados */
.uael-woo-product-wrapper {
    --border-radius: 12px !important;
    box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Botones de carrito - estilo transparente unificado (listados) */
.products li.product a.button,
.products li.product a.button:link,
.products li.product a.button:visited {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    text-align: center !important;
    width: auto !important;
    color: var(--black) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid #000 !important;
    border-radius: 32px !important;
    box-shadow: none !important;
    padding: 6px 14px !important;
    text-shadow: none !important;
}

/* Botones de carrito - hover (listados) */
.products li.product a.button:hover {
    color: rgba(223, 64, 18, 1) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgba(223, 64, 18, 1) !important;
    box-shadow: none !important;
}

/* Artículos del blog - bordes redondeados y espaciado interno */
li.ast-article-post {
    border-radius: 12px !important;
    padding: 16px !important;
}

/* Página de producto individual - layout flex para imagen y descripción */
.woocommerce div.product {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
}

/* Página de producto individual - eliminar floats en conflicto con flex */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary.entry-summary {
    float: none;
}

/* Botón de cantidad y añadir al carrito en líneas diferentes */
form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Header superior - fondo con color corporativo */
.ast-above-header-wrap,
.ast-above-header-bar,
.ast-transparent-header .ast-above-header-wrap,
.ast-transparent-header .ast-above-header-bar {
    background-color: var(--blue) !important;
}

.woocommerce-js div.product .stock{
    color: #456039;
}

/* WPForms */

/* Checkbox GDPR - texto e hipervínculos en blanco sobre fondo oscuro */
.wpforms-field-gdpr-checkbox label,
.wpforms-field-gdpr-checkbox a {
    color: var(--white) !important;
}

/* WPSiteMap */

/* Contenedor y título del mapa web */
.wsp-container .wsp-pages-title {
    color: var(--black);
    margin-bottom: 20px;
    text-align: left;
}

/* Lista de páginas - alineación y puntos */
.wsp-pages-list {
    padding-left: 20px;
    margin-left: 0;
    list-style-type: disc;
}

/* Elementos de la lista */
.wsp-pages-list li.page_item {
    color: var(--black);
    margin-bottom: 12px;
}

/* Enlace del mapa web - estado base */
.wsp-pages-list .menu-link {
    color: var(--black) !important;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enlace del mapa web - hover con desplazamiento lateral */
.wsp-pages-list .menu-link:hover {
    color: #757575 !important;
    transform: translateX(8px);
}

/* Enlace del mapa web - página activa */
.wsp-pages-list li.current_page_item .menu-link {
    font-weight: bold;
    color: var(--black) !important;
}

/* Responsive */

@media (max-width: 767px) {
    /* Campos del formulario - ancho completo en móvil */
    .elementor-widget-uael-wpf-styler .wpforms-form .wpforms-field {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        clear: both !important;
    }

    /* Inputs del formulario - expansión al ancho completo en móvil */
    .elementor-widget-uael-wpf-styler .wpforms-form .wpforms-field input[type="text"],
    .elementor-widget-uael-wpf-styler .wpforms-form .wpforms-field input[type="email"],
    .elementor-widget-uael-wpf-styler .wpforms-form .wpforms-field select,
    .elementor-widget-uael-wpf-styler .wpforms-form .wpforms-field textarea {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Botón añadir al carrito - ficha de producto */
body.woocommerce-page div.product form.cart button[type="submit"].single_add_to_cart_button,
body.woocommerce-page div.product form.cart button[type="submit"].button.alt,
body div.product form.cart button.single_add_to_cart_button {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    text-align: center !important;
    width: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid #000 !important;
    border-radius: 32px !important;
    box-shadow: none !important;
    color: #000000 !important;
    padding: 12px 20px !important;
    text-shadow: none !important;
}

body.woocommerce-page div.product form.cart button[type="submit"].single_add_to_cart_button:hover,
body.woocommerce-page div.product form.cart button[type="submit"].button.alt:hover,
body div.product form.cart button.single_add_to_cart_button:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(223, 64, 18, 1) !important;
    border: 1px solid rgba(223, 64, 18, 1) !important;
    box-shadow: none !important;
}

.woocommerce-account #customer_login {
    width: 100% !important;
    margin: auto !important;
}