/* =============================================
   Garderobe Bazar Marketplace - Estilos unificados
   Tema hijo para Blocksy - Diseño profesional y elegante
   ============================================= */

:root {
    --primary: #1e2a3e;
    --primary-dark: #0f172a;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --gray-light: #f7fafc;
    --gray: #4a5568;
    --gray-dark: #2d3748;
    --white: #ffffff;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
}

/* ===== Tipografía ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* ===== Header elegante ===== */
.site-header {
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

.main-navigation a {
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===== Tarjetas de producto ===== */
.products-grid,
.woocommerce ul.products {
    gap: 30px;
}

.product-card,
.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: none;
    padding: 0;
    margin: 0;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image img,
.woocommerce ul.products li.product a img {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    width: 100%;
    object-fit: cover;
}

.product-info,
.woocommerce ul.products li.product .product-info {
    padding: 20px;
}

.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-price,
.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ===== Botones unificados ===== */
.button,
.btn-b2b,
.affiliate-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.button:hover,
.btn-b2b:hover,
.affiliate-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* ===== Héroe de categoría ===== */
.category-hero {
    height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.category-hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--white);
    z-index: 2;
    max-width: 600px;
}

.category-hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.category-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .category-hero {
        height: 240px;
    }
    .category-hero-content {
        bottom: 20px;
        left: 20px;
    }
    .category-hero-content h1 {
        font-size: 2rem;
    }
    .category-hero-content p {
        font-size: 1rem;
    }
}

/* ===== Badges y precios mayoristas ===== */
.wholesale-badge {
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

.wholesale-price {
    color: var(--accent);
    font-size: 1.2em;
    font-weight: bold;
}

.regular-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.9em;
    margin-left: 10px;
}

.min-qty-notice {
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

/* ===== Dashboard vendedor ===== */
.vendor-dashboard {
    background: var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-top: 20px;
}

/* ===== Afiliados ===== */
.affiliate-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* ===== Espaciado general ===== */
.site-content {
    padding: 40px 0;
}

.woocommerce main.content {
    padding-top: 20px;
}

/* ===== Responsive adicional ===== */
@media (max-width: 768px) {
    .products-grid,
    .woocommerce ul.products {
        gap: 20px;
    }
    
    .product-info,
    .woocommerce ul.products li.product .product-info {
        padding: 15px;
    }
    
    .button,
    .btn-b2b,
    .affiliate-button,
    .woocommerce a.button {
        padding: 10px 20px;
    }
}

/* Estilos para el formulario de registro de vendedor */
.vendor-registration-wrapper {
    padding: 60px 0;
    background: #f9fafb;
}

.vendor-registration-form {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.vendor-registration-form input,
.vendor-registration-form textarea,
.vendor-registration-form select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    width: 100%;
    margin-bottom: 16px;
}

.vendor-registration-form button[type="submit"] {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vendor-registration-form button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
