/*
Theme Name: Arrancandonga - Tema Completo
Theme URI: https://arrancandonga.com
Author: Arrancandonga
Description: Tema profesional completo con Tailwind CSS, WooCommerce y Customizer
Version: 1.0.0
License: GPL v2
Text Domain: arrancandonga
Tags: e-commerce, woocommerce, tailwind, responsive
*/

/* ========================================
   BASE STYLES (NO TAILWIND)
   ======================================== */

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   LOGO SIZE CONTROL
   ======================================== */
.site-logo img,
.custom-logo,
a.custom-logo-link img {
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */

/* Quitar estilos por defecto de WooCommerce */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* Grid de productos - FORZAR */
.woocommerce .products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce .products::before,
.woocommerce .products::after {
    display: none !important;
}

ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Placeholder para productos sin imagen */
.product-image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-image-placeholder svg {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}

/* Formularios */
.woocommerce .input-text {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s;
}

.woocommerce .input-text:focus {
    outline: none;
    border-color: #0055D4;
}

/* Botones WooCommerce */
.woocommerce .button {
    background-color: #0055D4;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.woocommerce .button:hover {
    background-color: #0044aa;
    transform: translateY(-1px);
}

/* Cantidad */
.woocommerce .quantity .qty {
    width: 80px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.woocommerce-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Carrito */
.woocommerce-cart .cart_item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Checkout */
.woocommerce-checkout .checkout {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* ========================================
   RESPONSIVE GRID
   ======================================== */

@media (max-width: 1024px) {
    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce .products,
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   UTILIDADES ADICIONALES
   ======================================== */

/* Line clamp para títulos */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0055D4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0044aa;
}
