/*
Theme Name: Motorider Custom Theme
Theme URI: https://motorider.cl
Author: QuieroVentas.cl
Author URI: https://quieroventas.cl
Description: Tema personalizado para Motorider SpA - Repuestos y accesorios para motocicletas
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motorider
Tags: e-commerce, motorcycles, custom, woocommerce
*/

/* ============================================
   RESET Y VARIABLES
   ============================================ */
:root {
    --color-primary: #A27BB3;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    --color-light-gray: #f5f5f5;
    --color-border: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(162, 123, 179, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-gray);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--color-black);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.site-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--color-primary));
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation > ul {
    display: flex;
    flex-direction: row;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* Submenú desplegable con hover */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 220px;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid var(--color-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    display: block;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    padding: 0;
}

.main-navigation ul ul a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: var(--color-primary);
    padding-left: 2rem;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
    transition: var(--transition);
}

.cart-icon:hover svg {
    fill: var(--color-primary);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(162,123,179,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(162, 123, 179, 0.4);
}

.btn-primary:hover {
    background: #8e6a9f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(162, 123, 179, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
    transform: translateY(-3px);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-primary);
    width: 40px;
    border-radius: 6px;
}

/* ============================================
   BRANDS SLIDER
   ============================================ */
.brands-section {
    background: var(--color-light-gray);
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.brands-slider {
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex: 0 0 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover::before {
    background: linear-gradient(to bottom, rgba(162,123,179,0.5) 0%, rgba(0,0,0,0.9) 100%);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--color-white);
    z-index: 2;
}

.category-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.category-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.category-content .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 5rem 0;
    background: var(--color-light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--color-light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-cart {
    flex: 1;
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.btn-view {
    background: var(--color-light-gray);
    color: var(--color-black);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 5rem 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 15px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text h2 span {
    color: var(--color-primary);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    color: var(--color-black);
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-black) 0%, #2d1b3d 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.contact-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--color-primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    animation: bounceIn 1s ease, pulse 2s infinite;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* ============================================
   CARRITO DESPLEGABLE
   ============================================ */
.cart-dropdown {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-dropdown.active {
    right: 0;
}

.cart-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--color-primary);
}

.cart-dropdown-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.cart-dropdown-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.cart-dropdown-close:hover {
    transform: rotate(90deg);
}

.cart-dropdown-close svg {
    fill: white;
}

.cart-dropdown-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Estilos del Mini Cart de WooCommerce */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.woocommerce-mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.woocommerce-mini-cart-item a:not(.remove) {
    flex: 1;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.woocommerce-mini-cart-item a:not(.remove):hover {
    color: var(--color-accent);
}

.woocommerce-mini-cart-item .quantity {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.woocommerce-mini-cart-item .remove {
    color: #ff4444;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.woocommerce-mini-cart-item .remove:hover {
    color: #cc0000;
}

.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.woocommerce-mini-cart__total strong {
    color: var(--color-primary);
}

.woocommerce-mini-cart__total .amount {
    color: var(--color-accent);
}

.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover {
    background: var(--color-primary);
    color: white;
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #9366a3;
    border-color: #9366a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(162, 123, 179, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-black);
        transition: var(--transition);
        padding: 2rem;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-navigation > ul {
        flex-direction: column;
    }
    
    /* Submenús en móvil */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(162, 123, 179, 0.1);
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        border-left: 3px solid var(--color-primary);
    }
    
    .main-navigation ul ul a {
        padding: 0.6rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */
.shop-header {
    background: linear-gradient(135deg, var(--color-black) 0%, #2d1b3d 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--color-white);
}

.shop-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.shop-container {
    padding: 4rem 0;
}

.shop-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--color-primary);
}

.results-count {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--color-light-gray);
    padding: 3rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.map-container {
    margin-top: 3rem;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive para carrito desplegable */
@media (max-width: 480px) {
    .cart-dropdown {
        width: 100%;
        right: -100%;
    }
}
/* ============================================================
   PRODUCTO INDIVIDUAL (SINGLE PRODUCT)
   ============================================================ */

.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Layout Desktop */
.product-single-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

/* ============================
   GALERÍA IZQUIERDA
   ============================ */
.product-gallery-wrapper {
    width: 50%;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.woocommerce-product-gallery__image img,
.product-gallery-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ============================
   INFORMACIÓN DERECHA
   ============================ */
.product-summary-wrapper {
    width: 50%;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.entry-summary h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.entry-summary .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.entry-summary .woocommerce-product-details__short-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Botón agregar al carrito */
.single_add_to_cart_button {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: .3s ease;
}

.single_add_to_cart_button:hover {
    background: #8d62a1 !important;
}

/* ============================
   SELECTOR DE CANTIDAD BONITO
   ============================ */
.single-product-container .quantity {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.single-product-container .quantity input.qty {
    width: 60px !important;
    height: 45px !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 0;
    color: #333;
    outline: none;
    appearance: none;
}

.single-product-container .quantity button.minus,
.single-product-container .quantity button.plus {
    background: var(--color-primary);
    color: white;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.single-product-container .quantity button.minus:hover,
.single-product-container .quantity button.plus:hover {
    background: #8d62a1;
}

.single-product-container .quantity button.minus {
    border-radius: 8px 0 0 8px;
}

.single-product-container .quantity button.plus {
    border-radius: 0 8px 8px 0;
}

/* ============================
   TABS DEL PRODUCTO
   ============================ */
.product-tabs-wrapper {
    margin-top: 4rem;
}

.woocommerce-tabs {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.woocommerce-tabs ul.tabs li {
    list-style: none;
}

.woocommerce-tabs ul.tabs li a {
    padding: 0.8rem 1.5rem;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 6px;
    background: #f5f5f5;
    transition: .3s;
}

.woocommerce-tabs ul.tabs li.active a {
    background: var(--color-primary);
    color: white;
}

/* ============================================================
   RESPONSIVE – MOBILE FIX
   ============================================================ */
@media (max-width: 768px) {

    .product-single-layout {
        flex-direction: column;
        gap: 2rem !important;
    }

    .product-gallery-wrapper,
    .product-summary-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-gallery-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-gallery-wrapper img {
        max-width: 90vw;
        height: auto;
        border-radius: 15px;
    }

    .product-summary-wrapper {
        padding: 1.5rem !important;
        border-radius: 20px;
    }

    /* Cantidad */
    .quantity .qty {
        width: 70px !important;
        height: 45px !important;
        border-radius: 8px;
        font-size: 1.1rem;
    }

    /* Botón */
    .single_add_to_cart_button {
        width: 100% !important;
        margin-top: 1rem;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
    }
}
