/*
Theme Name:   Accesorios Child
Theme URI:    https://tudominio.com.ar
Description:  Child theme de Astra para tienda de accesorios electrónicos con WooCommerce
Author:       Tu Nombre
Author URI:   https://tudominio.com.ar
Template:     astra
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:  accesorios-child
Tags:         ecommerce, woocommerce, accesorios, electronica
*/

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
    --color-primary:     #1a1a2e;   /* Azul muy oscuro - marca */
    --color-secondary:   #f5a623;   /* Rojo/rosa - acento y CTA */
    --color-accent:      #e8890a;   /* Naranja - badges de oferta */
    --color-bg:          #f4f4f8;   /* Fondo general */
    --color-surface:     #ffffff;   /* Tarjetas y superficies */
    --color-text:        #1a1a2e;
    --color-text-muted:  #6b7280;
    --color-border:      #e5e7eb;
    --color-success:     #10b981;

    --font-heading:      'Barlow Condensed', sans-serif;
    --font-body:         'Nunito', sans-serif;

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.14);

    --transition: all 0.22s ease;
}

/* ============================================
   TIPOGRAFÍA BASE
   ============================================ */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce h1,
.woocommerce h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ============================================
   BARRA DE ANUNCIOS SUPERIOR
   ============================================ */
.ast-notice-bar,
.woocommerce-store-notice,
#woocommerce-store-notice {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 8px 0;
    text-align: center;
}

/* Barra de anuncios personalizada (función PHP) */
.acces-announcement-bar {
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.acces-announcement-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.acces-announcement-bar a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.site-header,
#masthead,
.ast-masthead-custom-menu-items {
    background-color: var(--color-surface) !important;
    border-bottom: 2px solid var(--color-primary);
}

/* Logo */
.ast-site-identity a,
.site-branding a {
    text-decoration: none;
}
.ast-site-identity .site-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Menú principal */
.main-header-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary) !important;
    padding: 24px 14px;
    transition: var(--transition);
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: var(--color-secondary) !important;
}

/* Submenú desplegable */
.main-header-menu .sub-menu {
    background: var(--color-surface);
    border-top: 3px solid var(--color-secondary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-hover);
    min-width: 200px;
}
.main-header-menu .sub-menu .menu-item > a {
    font-size: 13px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--color-border);
}
.main-header-menu .sub-menu .menu-item:last-child > a {
    border-bottom: none;
}

/* Carrito en header */
.ast-header-woo-cart .count,
.ast-cart-menu-wrap .count {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
}
.ast-header-woo-cart svg,
.ast-cart-menu-wrap svg {
    color: var(--color-primary);
}

/* Buscador */
.ast-search-menu-icon .search-field,
.site-header .search-field {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}
.ast-search-menu-icon .search-field:focus {
    border-color: var(--color-secondary);
    outline: none;
}

/* ============================================
   HERO / BANNER PRINCIPAL
   ============================================ */
.acces-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.acces-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(233,69,96,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.acces-hero h1 {
    color: #fff;
    font-size: clamp(36px, 6vw, 72px);
    margin-bottom: 12px;
    position: relative;
}
.acces-hero h1 span {
    color: var(--color-secondary);
}
.acces-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
}
.acces-hero .acces-btn {
    position: relative;
}

/* ============================================
   BOTONES
   ============================================ */
.acces-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce a.button.alt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: var(--transition) !important;
    text-decoration: none !important;
}
.acces-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: #e8890a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(233,69,96,0.35) !important;
}

/* Botón secundario / outline */
.acces-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.acces-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

/* ============================================
   BADGES / ETIQUETAS
   ============================================ */
.acces-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
}
.acces-badge-new {
    background: var(--color-success);
    color: #fff;
}
.acces-badge-sale {
    background: var(--color-secondary);
    color: #fff;
}
.acces-badge-hot {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* Badge de descuento en productos WooCommerce */
.woocommerce span.onsale {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
    top: 10px !important;
    left: 10px !important;
}

/* ============================================
   TARJETAS DE PRODUCTOS (LOOP)
   ============================================ */
.woocommerce ul.products li.product,
.products .product {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}
.woocommerce ul.products li.product:hover,
.products .product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--color-secondary);
}

/* Imagen del producto */
.woocommerce ul.products li.product a img,
.products .product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.04);
}

/* Contenido de la tarjeta */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.products .product .woocommerce-loop-product__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    padding: 12px 14px 4px;
    margin: 0;
}

/* Precio en tarjeta */
.woocommerce ul.products li.product .price,
.products .product .price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    padding: 4px 14px 10px;
    display: block;
}
.woocommerce ul.products li.product .price del,
.products .product .price del {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
}
.woocommerce ul.products li.product .price ins,
.products .product .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Botón agregar al carrito en grilla */
.woocommerce ul.products li.product .button,
.products .product .button {
    margin: auto 14px 14px !important;
    width: calc(100% - 28px) !important;
    text-align: center !important;
    justify-content: center !important;
}

/* ============================================
   SECCIONES DE CATEGORÍAS
   ============================================ */
.acces-categories {
    padding: 48px 0;
}
.acces-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.acces-cat-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.acces-cat-item:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 16px rgba(233,69,96,0.15);
    transform: translateY(-3px);
}
.acces-cat-icon {
    font-size: 32px;
    line-height: 1;
}
.acces-cat-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}

/* ============================================
   SECCIÓN TITULOS
   ============================================ */
.acces-section-title {
    text-align: center;
    margin-bottom: 32px;
}
.acces-section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.acces-section-title h2 span {
    color: var(--color-secondary);
}
.acces-section-title p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin: 0;
}
.acces-divider {
    width: 48px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin: 10px auto 16px;
}

/* ============================================
   BENEFICIOS / ICONOS FEATURE
   ============================================ */
.acces-features {
    background: var(--color-primary);
    color: #fff;
    padding: 28px 20px;
}
.acces-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}
.acces-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.acces-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.acces-feature-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}
.acces-feature-text span {
    font-size: 12px;
    opacity: 0.75;
    color: #fff;
}

/* ============================================
   OFERTA DESTACADA / BANNER PROMO
   ============================================ */
.acces-promo-banner {
    background: linear-gradient(135deg, var(--color-secondary), #e8890a);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 20px;
}
.acces-promo-banner h3 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 8px;
}
.acces-promo-banner p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.acces-promo-banner .acces-btn {
    background-color: #fff !important;
    color: var(--color-secondary) !important;
}
.acces-promo-banner .acces-btn:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

/* ============================================
   PÁGINA DE PRODUCTO INDIVIDUAL
   ============================================ */
.woocommerce div.product {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}
.woocommerce div.product .product_title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--color-secondary);
}
.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 12px;
}
.woocommerce .star-rating span::before {
    color: var(--color-accent);
}

/* Stock */
.woocommerce div.product .stock {
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.woocommerce div.product .in-stock {
    background: rgba(16,185,129,0.12);
    color: var(--color-success);
}
.woocommerce div.product .out-of-stock {
    background: rgba(233,69,96,0.1);
    color: var(--color-secondary);
}

/* Cantidad + agregar al carrito */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.woocommerce div.product form.cart .quantity input.qty {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    padding: 10px 14px;
    width: 70px;
    text-align: center;
    font-family: var(--font-body);
}

/* Tabs del producto */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--color-border);
    padding: 0;
    margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 12px 20px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--color-secondary);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-secondary);
}
.woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px 0;
}

/* ============================================
   CARRITO
   ============================================ */
.woocommerce table.shop_table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.woocommerce table.shop_table th {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px;
}
.woocommerce table.shop_table td {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    vertical-align: middle;
}
.woocommerce .cart_totals h2,
.woocommerce .cross-sells h2 {
    font-size: 22px;
    margin-bottom: 16px;
}
.woocommerce .cart_totals table {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

/* ============================================
   CHECKOUT
   ============================================ */
.woocommerce form .form-row label {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 4px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    transition: var(--transition);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.12);
}
#order_review {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border);
}

/* ============================================
   MI CUENTA
   ============================================ */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(233,69,96,0.08);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 20px;
}
.woocommerce-pagination ul.page-numbers li {
    margin: 0;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}
.woocommerce-pagination ul.page-numbers li a:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* ============================================
   MENSAJES / NOTIFICACIONES
   ============================================ */
.woocommerce-message,
.woocommerce-info {
    background: rgba(16,185,129,0.08) !important;
    border-top: 4px solid var(--color-success) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    color: var(--color-text) !important;
    font-size: 14px;
    padding: 14px 18px !important;
}
.woocommerce-error {
    background: rgba(233,69,96,0.07) !important;
    border-top: 4px solid var(--color-secondary) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    color: var(--color-text) !important;
    font-size: 14px;
    padding: 14px 18px !important;
}

/* ============================================
   CUPÓN / CÓDIGO DESCUENTO
   ============================================ */
.woocommerce-form-coupon-toggle .woocommerce-info,
.checkout_coupon {
    border-color: var(--color-accent) !important;
}

/* ============================================
   SIDEBAR / FILTROS DE TIENDA
   ============================================ */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: var(--color-border);
    border-radius: 4px;
    height: 4px;
}
.widget_price_filter .ui-slider .ui-slider-range {
    background: var(--color-secondary);
}
.widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--color-secondary);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(233,69,96,0.4);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -8px;
}
.widget_price_filter .price_slider_amount .button {
    background: var(--color-primary) !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
}

.widget_product_categories ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.widget_product_categories ul li a:hover {
    color: var(--color-secondary);
}
.widget_product_categories ul li .count {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 11px;
    padding: 1px 7px;
    color: var(--color-text-muted);
    float: right;
}

/* Widget de productos destacados */
.widget_products .product_list_widget li,
.widget_recently_viewed_products .product_list_widget li,
.widget_top_rated_products .product_list_widget li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.widget_products .product_list_widget li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 4px;
    background: #fafafa;
}
.widget_products .product_list_widget li a {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
}
.widget_products .product_list_widget li .amount {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
#colophon {
    background-color: var(--color-primary) !important;
    color: rgba(255,255,255,0.75);
}

.site-footer a,
#colophon a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover,
#colophon a:hover {
    color: var(--color-secondary);
}

.site-footer .widget-title,
#colophon .widget-title {
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
}

.ast-footer-copyright,
.site-footer .ast-footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* Footer links en columnas */
.site-footer .widget ul li {
    list-style: none;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 14px;
}
.site-footer .widget ul li:last-child {
    border-bottom: none;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.acces-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--transition);
    text-decoration: none;
}
.acces-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.acces-whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* ============================================
   UTILIDADES
   ============================================ */
.acces-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.acces-section {
    padding: 56px 0;
}
.acces-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .acces-announcement-bar {
        gap: 12px;
        font-size: 12px;
    }
    .acces-hero {
        padding: 40px 20px;
    }
    .acces-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .acces-promo-banner {
        margin: 24px 12px;
    }
    .woocommerce div.product {
        padding: 18px;
    }
    .woocommerce div.product form.cart {
        flex-direction: column;
        align-items: stretch;
    }
    .acces-whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .acces-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .acces-features-grid {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── CARRITO EN HEADER ── */
.acces-header-cart {
    display: flex;
    align-items: center;
    margin-left: 16px;
}
.acces-cart-icon {
    position: relative;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}
.acces-cart-icon:hover {
    background: rgba(245,166,35,0.1);
    color: #f5a623;
}
.acces-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f5a623;
    color: #1a1a2e;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── BOTÓN VACIAR CARRITO ── */
.acces-clear-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #dc2626;
    border: 2px solid #dc2626;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.acces-clear-cart-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* ── BOTÓN PASAR AL PAGO → NARANJA Y TEXTO PERSONALIZADO ── */
.woocommerce .cart .checkout-button,
.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    background: #f5a623 !important;
    color: #1a1a2e !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 8px !important;
    padding: 16px !important;
    border: none !important;
    transition: all 0.2s !important;
}
.woocommerce .cart .checkout-button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: #e8890a !important;
    color: #1a1a2e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(245,166,35,0.4) !important;
}

/* ── CARRITO EN MENÚ ── */
.acces-menu-cart {
    display: flex;
    align-items: center;
}
.acces-menu-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a2e !important;
    text-decoration: none !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    border: 2px solid #f5a623 !important;
    transition: all 0.2s !important;
}
.acces-menu-cart-link:hover {
    background: #f5a623 !important;
    color: #1a1a2e !important;
}
.acces-menu-cart-count {
    background: #f5a623;
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ══════════════════════════════════════════════
   MINI CARRITO LATERAL (DRAWER)
══════════════════════════════════════════════ */

/* Overlay oscuro de fondo */
.acces-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}
.acces-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer lateral */
.acces-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}
.acces-cart-drawer.open {
    right: 0;
}

/* Header del drawer */
.acd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #1a1a2e;
    flex-shrink: 0;
}
.acd-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.acd-title-count {
    background: #f5a623;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
}
.acd-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.acd-close:hover {
    background: rgba(255,255,255,0.28);
}

/* Cuerpo — lista de productos */
.acd-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.acd-body::-webkit-scrollbar { width: 4px; }
.acd-body::-webkit-scrollbar-track { background: #f4f4f8; }
.acd-body::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 2px; }

/* Item del carrito */
.acd-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}
.acd-item:last-child { border-bottom: none; }
.acd-item-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: #fafafa;
    flex-shrink: 0;
}
.acd-item-img-placeholder {
    width: 72px;
    height: 72px;
    background: #f4f4f8;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.acd-item-info { flex: 1; min-width: 0; }
.acd-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acd-item-qty {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.acd-item-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f5a623;
}
.acd-item-remove {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.acd-item-remove:hover { color: #dc2626; }

/* Carrito vacío */
.acd-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}
.acd-empty-icon { font-size: 56px; margin-bottom: 12px; }
.acd-empty p { font-size: 15px; margin-bottom: 16px; }
.acd-empty a {
    display: inline-block;
    background: #f5a623;
    color: #1a1a2e;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
}

/* Footer del drawer */
.acd-footer {
    padding: 20px 24px;
    border-top: 2px solid #e5e7eb;
    background: #fafafa;
    flex-shrink: 0;
}
.acd-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.acd-subtotal-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.06em;
}
.acd-subtotal-amount {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #1a1a2e;
}
.acd-btn-checkout {
    display: block;
    width: 100%;
    background: #f5a623;
    color: #1a1a2e !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.acd-btn-checkout:hover {
    background: #e8890a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245,166,35,0.4);
}
.acd-btn-view-cart {
    display: block;
    width: 100%;
    background: transparent;
    color: #1a1a2e;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}
.acd-btn-view-cart:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}
.acd-clear {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #dc2626;
    text-decoration: none;
    cursor: pointer;
}
.acd-clear:hover { text-decoration: underline; }

/* Ícono del carrito en header — ahora es botón */
.acces-cart-trigger {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-left: 16px;
}
.acces-cart-trigger:hover {
    background: rgba(245,166,35,0.1);
    color: #f5a623;
}
.acces-cart-trigger-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f5a623;
    color: #1a1a2e;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 480px) {
    .acces-cart-drawer { width: 100vw; max-width: 100vw; }
}

/* ── TRIGGER CARRITO EN HEADER (no flotante) ── */
.acces-cart-trigger {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1a1a2e !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.acces-cart-trigger:hover {
    background: rgba(245,166,35,0.12) !important;
    color: #f5a623 !important;
}
.acces-cart-trigger svg {
    stroke: currentColor !important;
}

/* ── BOTONES DEL DRAWER ── */
.acd-btn-checkout,
.acd-btn-view-cart,
.acd-clear {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
}
.acd-btn-checkout {
    background: #f5a623 !important;
    color: #1a1a2e !important;
    border: none !important;
}
.acd-btn-checkout:hover {
    background: #e8890a !important;
    color: #1a1a2e !important;
}
.acd-btn-view-cart {
    background: transparent !important;
    color: #1a1a2e !important;
    border: 2px solid #1a1a2e !important;
}
.acd-btn-view-cart:hover {
    background: #1a1a2e !important;
    color: #fff !important;
}
.acd-clear {
    background: transparent !important;
    color: #dc2626 !important;
    border: 2px solid #dc2626 !important;
    margin-bottom: 0 !important;
}
.acd-clear:hover {
    background: #dc2626 !important;
    color: #fff !important;
}
.acd-footer {
    padding: 16px 20px !important;
    border-top: 2px solid #e5e7eb !important;
    background: #fafafa !important;
}
.acd-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
}
