/*
Theme Name:   Comercial Gauchos
Theme URI:    https://comercialgauchos.mitiendanube.com
Description:  Child theme personalizado para Comercial Gauchos – Artículos de Limpieza
Author:       Comercial Gauchos
Template:     storefront
Version:      1.1.0
Text Domain:  comercial-gauchos
*/

/* ════════════════════════════════════════════════════════════════
   VARIABLES – TOMADAS DE TIENDANUBE (Toluca)
   ════════════════════════════════════════════════════════════════ */
:root {
    --main-foreground: #bdac9e;
    --main-background: #3c3026;
    --accent-color: #bc9155;
    --secondary-color: #6c5844;
    --button-background: #0f0b06;
    --button-foreground: #bdac9e;
    --adbar-background: #000000;
    --adbar-foreground: #bdac9e;
    --header-background: #0f0b06;
    --header-foreground: #bdac9e;
    --nav-desktop-background: #0f0b06;
    --nav-desktop-foreground: #bdac9e;
    --footer-background: #0f0b06;
    --footer-foreground: #bdac9e;
    --success: #4bb98c;
    --danger: #dd7774;
    --warning: #dc8f38;
    --info: #3d9ccc;

    --font-body: 'Sora', sans-serif;
    --font-head: 'DM Serif Display', serif;

    --gutter: 15px;
    --border-radius: 4px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--main-background);
    color: var(--main-foreground);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* ═══ TOPBAR (como Tiendanube) ═══ */
.cg-topbar {
    background: var(--adbar-background);
    color: var(--adbar-foreground);
    text-align: center;
    padding: 8px 20px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* ═══ HEADER ═══ */
.site-header {
    background: var(--header-background) !important;
    border-bottom: 1px solid rgba(188,145,85,0.2) !important;
}
.site-header .col-full {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}
.site-branding a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-title {
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--header-foreground);
}
/* Búsqueda */
.cg-search-wrap form {
    position: relative;
    flex: 1;
}
.cg-search-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(188,145,85,0.3);
    border-radius: 30px;
    padding: 10px 18px 10px 44px;
    color: var(--main-foreground);
    font-family: var(--font-body);
}
/* Carrito y cuenta */
.cg-header-actions a {
    background: none;
    border: 1px solid rgba(188,145,85,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-foreground);
}
.cg-cart-count {
    background: #a4462a;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ MENÚ PRINCIPAL (como Tiendanube) ═══ */
.main-navigation {
    background: var(--nav-desktop-background) !important;
    border-bottom: 1px solid rgba(188,145,85,0.2);
}
.main-navigation .col-full {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.main-navigation ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation ul.menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--nav-desktop-foreground);
    font-size: 13px;
    text-decoration: none;
}
.main-navigation ul.menu li.current-menu-item a,
.main-navigation ul.menu li a:hover {
    color: var(--accent-color);
}

/* ═══ BOTÓN WHATSAPP FLOTANTE (como Tiendanube) ═══ */
.cg-wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
}
.cg-wa-float svg {
    width: 28px;
    fill: white;
}

/* ═══ PRODUCTOS GRILLA (como Tiendanube) ═══ */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
ul.products li.product {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}
ul.products li.product:hover {
    transform: translateY(-4px);
}
ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #2a241e;
    padding: 20px;
}
.woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px 0;
}
.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    padding: 0 14px;
}
.button {
    background: var(--accent-color) !important;
    color: #2e2419 !important;
    border-radius: 30px !important;
    margin: 0 14px 14px !important;
}

/* ═══ FOOTER (similar a Tiendanube) ═══ */
.site-footer {
    background: var(--footer-background) !important;
    padding: 48px 0 0 !important;
}
.site-footer .col-full {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-logo img {
    max-height: 40px;
}
.powered-by-logo svg {
    height: 20px;
    fill: var(--footer-foreground);
}

/* Responsive */
@media (max-width: 768px) {
    .cg-search-wrap { display: none; }
    .cg-hamburger { display: block; }
    ul.products { grid-template-columns: repeat(2, 1fr); }
}
