/**
 * Eco Energy Solution - WooCommerce Styles
 * 
 * Custom styles for WooCommerce integration
 */

/* ===================================
   SHOP HERO BANNER
   =================================== */
.eco-shop-hero {
    position: relative;
    background: linear-gradient(135deg, var(--eco-highlight) 0%, #e8f5e9 100%);
    padding: calc(var(--header-height) + 40px) 0 50px;
    margin-top: calc(-1 * var(--header-height));
    text-align: center;
    overflow: hidden;
}

.eco-shop-hero.has-bg-image,
.eco-shop-hero.has-bg-video {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(var(--header-height) + 60px) 0 60px;
}

.eco-shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.eco-shop-hero.has-bg-image .eco-shop-hero-overlay,
.eco-shop-hero.has-bg-video .eco-shop-hero-overlay {
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, var(--shop-overlay-opacity, 0.75)) 0%, 
        rgba(27, 94, 32, var(--shop-overlay-opacity, 0.85)) 100%
    );
}

/* Shop Video Background */
.shop-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shop-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Mobile: show poster image instead of video */
@media (max-width: 768px) {
    .shop-video-container {
        display: none;
    }
    
    .eco-shop-hero.has-bg-video {
        background-size: cover;
        background-position: center;
    }
}

.eco-shop-hero .container {
    position: relative;
    z-index: 2;
}

.eco-shop-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.eco-shop-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--eco-gray-900);
    margin-bottom: 15px;
    line-height: 1.2;
}

.eco-shop-hero.has-bg-image .eco-shop-title,
.eco-shop-hero.has-bg-video .eco-shop-title {
    color: var(--eco-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.eco-shop-description {
    font-size: 1.1rem;
    color: var(--eco-gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.eco-shop-hero.has-bg-image .eco-shop-description,
.eco-shop-hero.has-bg-video .eco-shop-description {
    color: rgba(255, 255, 255, 0.9);
}

.eco-shop-hero .woocommerce-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--eco-gray-600);
    backdrop-filter: blur(5px);
    margin: 0;
}

.eco-shop-hero.has-bg-image .woocommerce-breadcrumb,
.eco-shop-hero.has-bg-video .woocommerce-breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.eco-shop-hero .woocommerce-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.eco-shop-hero .woocommerce-breadcrumb a:hover {
    opacity: 0.7;
}

.eco-shop-hero.has-bg-image .woocommerce-breadcrumb a,
.eco-shop-hero.has-bg-video .woocommerce-breadcrumb a {
    color: var(--eco-white);
}

.eco-shop-hero .breadcrumb-sep {
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.eco-shop-hero .breadcrumb-sep svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .eco-shop-hero {
        padding: calc(var(--header-height) + 30px) 0 40px;
    }
    
    .eco-shop-hero.has-bg-image {
        padding: calc(var(--header-height) + 40px) 0 50px;
    }
    
    .eco-shop-title {
        font-size: 1.75rem;
    }
    
    .eco-shop-description {
        font-size: 1rem;
    }
}

/* ===================================
   SHOP PAGE LAYOUT
   =================================== */
.woocommerce-main {
    padding-top: 0;
    padding-bottom: var(--space-16);
    min-height: 80vh;
}

.woocommerce-page .site-content {
    padding-top: 0;
}

.eco-shop-content {
    padding: var(--space-10) 0;
}

.eco-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
}

@media (max-width: 992px) {
    .eco-shop-layout {
        grid-template-columns: 1fr;
    }
    
    .eco-shop-sidebar {
        order: 2;
    }
}

/* Shop header - legacy */
.woocommerce-products-header {
    display: none; /* Hidden since we use eco-shop-hero */
}

.woocommerce-products-header__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    padding: var(--space-4) 0;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--eco-gray-500);
}

.woocommerce-breadcrumb a {
    color: var(--eco-gray-600);
}

.woocommerce-breadcrumb a:hover {
    color: var(--eco-primary);
}

.breadcrumb-sep {
    margin: 0 var(--space-2);
    color: var(--eco-gray-400);
}

/* Result count and ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: var(--space-6);
}

.woocommerce-result-count {
    color: var(--eco-gray-600);
}

.woocommerce-ordering select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--eco-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--eco-gray-700);
    background: var(--eco-white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--eco-primary);
}

/* ===================================
   PRODUCT GRID
   =================================== */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products,
.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-6) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Asegurar que no haya elementos antes que rompan el grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
}

@media (max-width: 1200px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products,
    .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products,
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-4) !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products,
    .products {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   PRODUCT CARD
   =================================== */
.eco-product-card,
.products .product {
    position: relative;
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.eco-product-card:hover,
.products .product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Product image wrapper */
.eco-product-image-wrapper,
.products .product .woocommerce-loop-product__link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--eco-gray-100);
}

.eco-product-image-wrapper img,
.products .product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.eco-product-card:hover img,
.products .product:hover img {
    transform: scale(1.08);
}

/* Product badges */
.product-badge,
.onsale {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 5;
}

.eco-sale-badge,
.sale-badge,
.onsale {
    background: var(--eco-error);
    color: var(--eco-white);
}

.featured-badge {
    background: var(--eco-primary);
    color: var(--eco-white);
    top: auto;
    bottom: var(--space-3);
}

.new-badge {
    background: var(--eco-info);
    color: var(--eco-white);
    left: auto;
    right: var(--space-3);
}

/* Product actions */
.eco-product-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.eco-product-card:hover .eco-product-actions,
.products .product:hover .eco-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.eco-product-actions a,
.eco-product-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--eco-white);
    border: none;
    border-radius: var(--radius-full);
    color: var(--eco-gray-700);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.eco-product-actions a:hover,
.eco-product-actions button:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}

/* Product content */
.eco-product-content,
.products .product .woocommerce-loop-product__title,
.products .product .price {
    padding: 0 var(--space-4);
}

.eco-product-content {
    padding: var(--space-4);
}

/* Product category */
.eco-product-category {
    font-size: var(--text-xs);
    color: var(--eco-primary);
    margin-bottom: var(--space-1);
}

.eco-product-category a {
    color: var(--eco-primary);
}

/* Product title */
.woocommerce-loop-product__title,
.eco-product-content h2 {
    font-size: var(--text-base) !important;
    font-weight: 600;
    color: var(--eco-gray-900);
    margin: var(--space-3) 0 var(--space-2) !important;
    padding: 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce-loop-product__title:hover {
    color: var(--eco-primary);
}

/* Product price */
.price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: var(--space-3) !important;
    padding-bottom: var(--space-3);
}

.price del {
    color: var(--eco-gray-400);
    font-size: var(--text-sm);
    font-weight: 400;
}

.price ins {
    text-decoration: none;
    color: var(--eco-primary);
    font-size: var(--text-lg);
}

.price .woocommerce-Price-amount {
    color: var(--eco-primary);
    font-size: var(--text-lg);
}

/* Add to cart button */
.products .product .button,
.add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    margin: var(--space-4) 0 0;
    background: var(--eco-primary);
    color: var(--eco-white) !important;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.products .product .button:hover,
.add_to_cart_button:hover {
    background: var(--eco-primary-dark);
    transform: translateY(-2px);
}

.products .product .added_to_cart {
    display: none;
}

/* Loading state */
.add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add_to_cart_button.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: var(--space-2);
    border: 2px solid var(--eco-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ===================================
   SINGLE PRODUCT - ENHANCED DESIGN
   =================================== */
.single-product .woocommerce-main {
    padding-top: calc(var(--header-height) + var(--space-10));
}

/* Main product layout */
.eco-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.eco-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

@media (max-width: 992px) {
    .eco-product-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .eco-single-product {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* Product Gallery */
.eco-product-gallery {
    position: relative;
    height: fit-content;
    z-index: 1;
}

@media (min-width: 993px) {
    .eco-product-gallery {
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
        z-index: 1;
    }
}

/* Forzar que en mÃ³viles no sea sticky */
@media (max-width: 992px) {
    .eco-product-gallery,
    .eco-product-gallery .woocommerce-product-gallery {
        position: relative !important;
        top: auto !important;
    }
}

.eco-product-gallery .woocommerce-product-gallery {
    position: relative;
    background: var(--eco-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.eco-product-gallery .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.eco-product-gallery .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
}

.eco-product-gallery .woocommerce-product-gallery__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    width: 100% !important;
}

.eco-product-gallery .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
}

.eco-product-gallery .woocommerce-product-gallery__image img,
.eco-product-gallery .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.eco-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.eco-product-gallery .woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

.eco-product-gallery .onsale {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: linear-gradient(135deg, var(--eco-primary), var(--eco-primary-dark));
    color: var(--eco-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
    transform: scale(1.1);
}

.flex-control-thumbs {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-4);
    list-style: none;
}

.flex-control-thumbs li {
    flex: 1;
    max-width: 100px;
}

.flex-control-thumbs img {
    border-radius: var(--radius-lg);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
    opacity: 1;
    border-color: var(--eco-primary);
}

/* Product Summary */
.eco-product-summary {
    padding: var(--space-2) 0;
}

/* Product categories */
.eco-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.eco-category-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--eco-highlight);
    color: var(--eco-primary-dark);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.eco-category-link:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}

/* Product Title */
.eco-product-summary .product_title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--eco-gray-900);
    margin-bottom: var(--space-4);
}

/* Product Rating */
.eco-product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.eco-product-rating .star-rating {
    color: #fbbf24;
    font-size: var(--text-lg);
}

.eco-product-rating .rating-count {
    color: var(--eco-gray-500);
    font-size: var(--text-sm);
}

/* Product Price */
.eco-product-price-single {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--eco-highlight), rgba(34, 197, 94, 0.1));
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--eco-primary);
}

.eco-product-price-single .price {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--eco-primary-dark);
}

.eco-product-price-single .price del {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--eco-gray-400);
    text-decoration: line-through;
    margin-right: var(--space-2);
}

.eco-product-price-single .price ins {
    text-decoration: none;
}

.eco-savings {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--eco-primary);
    color: var(--eco-white);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Stock status */
.eco-stock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-5);
}

.eco-stock-status.in-stock {
    background: rgba(34, 197, 94, 0.15);
    color: var(--eco-primary-dark);
}

.eco-stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--eco-error);
}

.eco-stock-status svg {
    flex-shrink: 0;
}

.eco-stock-status .stock-qty {
    color: var(--eco-gray-500);
    font-weight: 400;
}

/* Short Description */
.woocommerce-product-details__short-description {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--eco-light-bg);
    border-radius: var(--radius-lg);
    color: var(--eco-gray-600);
    line-height: 1.8;
    font-size: var(--text-base);
}

.woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Add to Cart Section */
.eco-add-to-cart-wrap {
    margin-bottom: var(--space-6);
}

.eco-add-to-cart-wrap form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-end;
}

/* Quantity Selector - Enhanced */
.quantity {
    display: flex;
    align-items: center;
    background: var(--eco-white);
    border: 2px solid var(--eco-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quantity .qty {
    width: 70px;
    height: 52px;
    text-align: center;
    border: none;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--eco-gray-900);
    background: transparent;
}

.quantity .qty:focus {
    outline: none;
}

/* Single add to cart button */
.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--eco-primary), var(--eco-primary-dark));
    color: var(--eco-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 52px;
    box-shadow: var(--shadow-green);
}

.single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.single_add_to_cart_button:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* WhatsApp Button */
.eco-whatsapp-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4);
    background: #25D366;
    color: var(--eco-white);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: var(--space-6);
}

.eco-whatsapp-product-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* Product Features Box */
.eco-product-features {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--eco-white);
    border: 2px solid var(--eco-gray-100);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.eco-feature {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.eco-feature:hover {
    background: var(--eco-highlight);
}

.eco-feature svg {
    flex-shrink: 0;
    color: var(--eco-primary);
}

.eco-feature div {
    display: flex;
    flex-direction: column;
}

.eco-feature strong {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--eco-gray-900);
}

.eco-feature span {
    font-size: var(--text-xs);
    color: var(--eco-gray-500);
}

/* Product Meta */
.product_meta {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--eco-light-bg);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--eco-gray-600);
}

.product_meta > span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--eco-gray-200);
}

.product_meta > span:last-child {
    border-bottom: none;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
    font-weight: 500;
}

.product_meta a {
    color: var(--eco-primary);
    font-weight: 600;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* ===================================
   PRODUCT TABS - ENHANCED
   =================================== */
/* Asegurar que las tabs ocupen todo el ancho del grid */
.eco-product-tabs {
    grid-column: 1 / -1;
    margin-top: var(--space-8);
}

.woocommerce-tabs {
    margin-top: 0;
    background: var(--eco-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.woocommerce-tabs .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--eco-light-bg);
    border-bottom: 2px solid var(--eco-gray-200);
    overflow-x: auto;
}

.woocommerce-tabs .tabs li {
    flex-shrink: 0;
}

.woocommerce-tabs .tabs li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    color: var(--eco-gray-600);
    font-weight: 600;
    font-size: var(--text-base);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--eco-primary);
    background: rgba(34, 197, 94, 0.05);
}

.woocommerce-tabs .tabs li.active a {
    color: var(--eco-primary);
    background: var(--eco-white);
    border-bottom-color: var(--eco-primary);
}

.woocommerce-tabs .panel {
    padding: var(--space-8);
}

.woocommerce-tabs .panel h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--eco-gray-900);
}

.woocommerce-tabs .panel p {
    line-height: 1.8;
    color: var(--eco-gray-600);
}

/* Reviews Tab */
.woocommerce-Reviews {
    padding: var(--space-6);
}

.woocommerce-Reviews #reviews {
    margin: 0;
}

.woocommerce-Reviews .woocommerce-Reviews-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commentlist .comment {
    padding: var(--space-5);
    background: var(--eco-light-bg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.commentlist .comment-text {
    margin-left: 0;
}

.commentlist .star-rating {
    color: #fbbf24;
    margin-bottom: var(--space-2);
}

.commentlist .meta {
    font-size: var(--text-sm);
    color: var(--eco-gray-500);
    margin-bottom: var(--space-3);
}

/* Review Form */
#review_form_wrapper {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 2px solid var(--eco-gray-100);
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--eco-gray-700);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--eco-gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--eco-primary);
}

.comment-form .form-submit input[type="submit"] {
    background: var(--eco-primary);
    color: var(--eco-white);
    border: none;
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--eco-primary-dark);
}

/* ===================================
   RELATED PRODUCTS - ENHANCED
   =================================== */
.related.products,
.upsells.products {
    grid-column: 1 / -1;
    margin-top: var(--space-16);
    padding: var(--space-12) 0;
    background: linear-gradient(180deg, var(--eco-light-bg), transparent);
    border-radius: var(--radius-2xl);
}

.related.products > h2,
.upsells.products > h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-10);
    color: var(--eco-gray-900);
    position: relative;
}

.related.products > h2:after,
.upsells.products > h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--eco-primary);
    border-radius: var(--radius-full);
    margin: var(--space-4) auto 0;
}

.related.products .products,
.upsells.products .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .related.products .products,
    .upsells.products .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related.products .products,
    .upsells.products .products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .woocommerce-tabs .tabs {
        flex-wrap: nowrap;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: var(--space-4);
        font-size: var(--text-sm);
    }
    
    .woocommerce-tabs .panel {
        padding: var(--space-5);
    }
}

@media (max-width: 480px) {
    .eco-product-gallery {
        position: relative;
        top: 0;
    }
    
    .eco-product-price-single {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .eco-add-to-cart-wrap form.cart {
        flex-direction: column;
    }
    
    .single_add_to_cart_button {
        width: 100%;
    }
}

/* ===================================
   CART PAGE
   =================================== */
.woocommerce-cart-form {
    margin-bottom: var(--space-10);
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form th {
    text-align: left;
    padding: var(--space-4);
    border-bottom: 2px solid var(--eco-gray-200);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--eco-gray-600);
    text-transform: uppercase;
}

.woocommerce-cart-form td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--eco-gray-200);
    vertical-align: middle;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.woocommerce-cart-form .product-name a {
    color: var(--eco-gray-900);
    font-weight: 500;
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--eco-primary);
}

.woocommerce-cart-form .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--eco-gray-100);
    border-radius: var(--radius-full);
    color: var(--eco-gray-500);
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.woocommerce-cart-form .product-remove a:hover {
    background: var(--eco-error);
    color: var(--eco-white);
}

/* Cart totals */
.cart_totals {
    background: var(--eco-light-bg);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
}

.cart_totals h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--eco-gray-200);
}

.cart_totals th {
    text-align: left;
    font-weight: 500;
    color: var(--eco-gray-600);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--eco-gray-900);
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: var(--space-4);
    background: var(--eco-primary);
    color: var(--eco-white);
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: var(--space-6);
    transition: all 0.3s ease;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--eco-primary-dark);
}

/* Empty cart */
.eco-empty-cart {
    text-align: center;
    padding: var(--space-16) 0;
}

.eco-empty-cart-icon {
    color: var(--eco-gray-300);
    margin-bottom: var(--space-6);
}

.eco-empty-cart h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.eco-empty-cart p {
    color: var(--eco-gray-600);
    margin-bottom: var(--space-8);
}

/* ===================================
   CHECKOUT PAGE
   =================================== */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-10);
}

@media (max-width: 992px) {
    .woocommerce-checkout {
        grid-template-columns: 1fr;
    }
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
}

/* Form fields */
.woocommerce-checkout .form-row {
    margin-bottom: var(--space-4);
}

.woocommerce-checkout label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--eco-gray-700);
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--eco-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: border-color 0.2s ease;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none;
    border-color: var(--eco-primary);
}

/* Order review */
.woocommerce-checkout-review-order {
    background: var(--eco-light-bg);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: var(--space-6);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--eco-gray-200);
}

#place_order {
    display: block;
    width: 100%;
    padding: var(--space-4);
    background: var(--eco-primary);
    color: var(--eco-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background: var(--eco-primary-dark);
}

/* Payment methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.wc_payment_method {
    padding: var(--space-4);
    border: 2px solid var(--eco-gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    transition: border-color 0.2s ease;
}

.wc_payment_method:has(input:checked) {
    border-color: var(--eco-primary);
}

.wc_payment_method label {
    cursor: pointer;
    font-weight: 500;
}

/* ===================================
   MY ACCOUNT
   =================================== */
.woocommerce-MyAccount-navigation {
    margin-bottom: var(--space-8);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: var(--space-3) var(--space-5);
    background: var(--eco-gray-100);
    border-radius: var(--radius-md);
    color: var(--eco-gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}

/* ===================================
   SIDEBAR / FILTERS
   =================================== */
.sidebar-shop {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.widget.shop-widget {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.widget.shop-widget .widget-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--eco-gray-200);
}

/* Category filter */
.widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories li {
    margin-bottom: var(--space-2);
}

.widget_product_categories a {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    color: var(--eco-gray-700);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
}

.widget_product_categories a:hover {
    color: var(--eco-primary);
    padding-left: var(--space-2);
}

.widget_product_categories .count {
    color: var(--eco-gray-500);
    font-size: var(--text-xs);
}

/* Price filter */
.widget_price_filter .price_slider_wrapper {
    padding-top: var(--space-4);
}

.widget_price_filter .ui-slider {
    height: 6px;
    background: var(--eco-gray-200);
    border-radius: 3px;
    position: relative;
}

.widget_price_filter .ui-slider-range {
    background: var(--eco-primary);
    height: 100%;
    border-radius: 3px;
}

.widget_price_filter .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: var(--eco-white);
    border: 3px solid var(--eco-primary);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    cursor: pointer;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-4);
}

.widget_price_filter .price_label {
    font-size: var(--text-sm);
    color: var(--eco-gray-600);
}

.widget_price_filter .button {
    padding: var(--space-2) var(--space-4);
    background: var(--eco-primary);
    color: var(--eco-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
}

/* ===================================
   NOTICES & MESSAGES
   =================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.woocommerce-message {
    background: var(--eco-highlight);
    border-left: 4px solid var(--eco-primary);
    color: var(--eco-primary-dark);
}

.woocommerce-info {
    background: #e3f2fd;
    border-left: 4px solid var(--eco-info);
    color: #1565c0;
}

.woocommerce-error {
    background: #ffebee;
    border-left: 4px solid var(--eco-error);
    color: #c62828;
    list-style: none;
    padding-left: var(--space-6);
}

.woocommerce-message a,
.woocommerce-info a {
    color: inherit;
    font-weight: 600;
}

/* ===================================
   MINI CART WIDGET / SIDEBAR
   =================================== */

/* Container - works for both widget and sidebar */
.mini-cart-content,
.widget_shopping_cart {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Cart list */
.mini-cart-content .cart_list,
.mini-cart-content .woocommerce-mini-cart,
.widget_shopping_cart .cart_list,
.widget_shopping_cart .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    overflow-y: auto;
}

/* Individual cart item */
.mini-cart-content .woocommerce-mini-cart-item,
.mini-cart-content .mini_cart_item,
.widget_shopping_cart .woocommerce-mini-cart-item,
.widget_shopping_cart .mini_cart_item {
    display: grid !important;
    grid-template-columns: 70px 1fr !important;
    gap: 15px !important;
    align-items: start !important;
    padding: 16px !important;
    border-bottom: 1px solid #E0E0E0 !important;
    position: relative !important;
    background: #fff !important;
    transition: background 0.2s ease !important;
}

.mini-cart-content .woocommerce-mini-cart-item:hover,
.mini-cart-content .mini_cart_item:hover,
.widget_shopping_cart .woocommerce-mini-cart-item:hover,
.widget_shopping_cart .mini_cart_item:hover {
    background: #F5F5F5 !important;
}

/* Remove button */
.mini-cart-content .woocommerce-mini-cart-item a.remove,
.mini-cart-content .mini_cart_item a.remove,
.widget_shopping_cart .woocommerce-mini-cart-item a.remove,
.widget_shopping_cart .mini_cart_item a.remove {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    background: #F5F5F5 !important;
    border-radius: 50% !important;
    color: #757575 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid #E0E0E0 !important;
}

.mini-cart-content .woocommerce-mini-cart-item a.remove:hover,
.mini-cart-content .mini_cart_item a.remove:hover,
.widget_shopping_cart .woocommerce-mini-cart-item a.remove:hover,
.widget_shopping_cart .mini_cart_item a.remove:hover {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
    transform: rotate(90deg);
}

/* Product image */
.mini-cart-content .woocommerce-mini-cart-item img,
.mini-cart-content .mini_cart_item img,
.widget_shopping_cart .woocommerce-mini-cart-item img,
.widget_shopping_cart .mini_cart_item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #E0E0E0 !important;
    grid-row: span 2;
}

/* Product details wrapper */
.mini-cart-content .woocommerce-mini-cart-item .product-details,
.mini-cart-content .mini_cart_item .product-details,
.widget_shopping_cart .woocommerce-mini-cart-item .product-details,
.widget_shopping_cart .mini_cart_item .product-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-right: 30px !important;
}

/* Product name link */
.mini-cart-content .woocommerce-mini-cart-item a:not(.remove),
.mini-cart-content .mini_cart_item a:not(.remove),
.widget_shopping_cart .woocommerce-mini-cart-item a:not(.remove),
.widget_shopping_cart .mini_cart_item a:not(.remove) {
    color: #212121 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
}

.mini-cart-content .woocommerce-mini-cart-item a:not(.remove):hover,
.mini-cart-content .mini_cart_item a:not(.remove):hover,
.widget_shopping_cart .woocommerce-mini-cart-item a:not(.remove):hover,
.widget_shopping_cart .mini_cart_item a:not(.remove):hover {
    color: var(--eco-primary) !important;
}

/* Quantity and price */
.mini-cart-content .woocommerce-mini-cart-item .quantity,
.mini-cart-content .mini_cart_item .quantity,
.widget_shopping_cart .woocommerce-mini-cart-item .quantity,
.widget_shopping_cart .mini_cart_item .quantity {
    font-size: 0.85rem !important;
    color: #757575 !important;
    display: block !important;
}

.mini-cart-content .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount,
.mini-cart-content .mini_cart_item .quantity .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount,
.widget_shopping_cart .mini_cart_item .quantity .woocommerce-Price-amount,
.mini-cart-content .woocommerce-mini-cart-item .quantity .amount,
.mini-cart-content .mini_cart_item .quantity .amount,
.widget_shopping_cart .woocommerce-mini-cart-item .quantity .amount,
.widget_shopping_cart .mini_cart_item .quantity .amount {
    font-weight: 700 !important;
    color: var(--eco-primary) !important;
    font-size: 1rem !important;
}

/* Empty cart message */
.mini-cart-content .woocommerce-mini-cart__empty-message,
.widget_shopping_cart .woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #757575 !important;
    font-size: 1rem !important;
}

.mini-cart-content .woocommerce-mini-cart__empty-message::before {
    content: 'ðŸ›’';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Total section */
.mini-cart-content .woocommerce-mini-cart__total,
.mini-cart-content .total,
.widget_shopping_cart .woocommerce-mini-cart__total,
.widget_shopping_cart .total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 16px !important;
    background: #C8E6C9 !important;
    border-top: 3px solid var(--eco-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.mini-cart-content .woocommerce-mini-cart__total strong,
.mini-cart-content .total strong,
.widget_shopping_cart .woocommerce-mini-cart__total strong,
.widget_shopping_cart .total strong {
    color: #212121 !important;
    font-weight: 600 !important;
}

.mini-cart-content .woocommerce-mini-cart__total .woocommerce-Price-amount,
.mini-cart-content .total .woocommerce-Price-amount,
.mini-cart-content .woocommerce-mini-cart__total .amount,
.mini-cart-content .total .amount,
.widget_shopping_cart .woocommerce-mini-cart__total .woocommerce-Price-amount,
.widget_shopping_cart .total .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-mini-cart__total .amount,
.widget_shopping_cart .total .amount {
    color: var(--eco-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

/* Buttons section */
.mini-cart-content .woocommerce-mini-cart__buttons,
.mini-cart-content .buttons,
.widget_shopping_cart .woocommerce-mini-cart__buttons,
.widget_shopping_cart .buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 16px !important;
    background: #fff !important;
    margin: 0 !important;
}

.mini-cart-content .woocommerce-mini-cart__buttons a,
.mini-cart-content .buttons a,
.widget_shopping_cart .woocommerce-mini-cart__buttons a,
.widget_shopping_cart .buttons a {
    display: block !important;
    padding: 14px 20px !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

/* View cart button */
.mini-cart-content .woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
.mini-cart-content .buttons .wc-forward:not(.checkout),
.widget_shopping_cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
.widget_shopping_cart .buttons .wc-forward:not(.checkout) {
    background: #F5F5F5 !important;
    color: #212121 !important;
    border: 2px solid #E0E0E0 !important;
}

.mini-cart-content .woocommerce-mini-cart__buttons .wc-forward:not(.checkout):hover,
.mini-cart-content .buttons .wc-forward:not(.checkout):hover,
.widget_shopping_cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout):hover,
.widget_shopping_cart .buttons .wc-forward:not(.checkout):hover {
    background: #fff !important;
    border-color: var(--eco-primary) !important;
    color: var(--eco-primary) !important;
}

/* Checkout button */
.mini-cart-content .woocommerce-mini-cart__buttons .checkout,
.mini-cart-content .buttons .checkout,
.widget_shopping_cart .woocommerce-mini-cart__buttons .checkout,
.widget_shopping_cart .buttons .checkout {
    background: var(--eco-primary) !important;
    color: #fff !important;
    border: 2px solid var(--eco-primary) !important;
}

.mini-cart-content .woocommerce-mini-cart__buttons .checkout:hover,
.mini-cart-content .buttons .checkout:hover,
.widget_shopping_cart .woocommerce-mini-cart__buttons .checkout:hover,
.widget_shopping_cart .buttons .checkout:hover {
    background: var(--eco-primary-dark) !important;
    border-color: var(--eco-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* ===================================
   THANK YOU PAGE
   =================================== */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: var(--text-2xl);
    color: var(--eco-primary);
    margin-bottom: var(--space-6);
}

.eco-order-whatsapp {
    background: var(--eco-highlight);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--space-8);
}

.eco-order-whatsapp p {
    margin-bottom: var(--space-4);
    color: var(--eco-gray-700);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .woocommerce-cart-form table,
    .woocommerce-cart-form thead,
    .woocommerce-cart-form tbody,
    .woocommerce-cart-form th,
    .woocommerce-cart-form td,
    .woocommerce-cart-form tr {
        display: block;
    }

    .woocommerce-cart-form thead {
        display: none;
    }

    .woocommerce-cart-form tr {
        margin-bottom: var(--space-4);
        padding: var(--space-4);
        background: var(--eco-light-bg);
        border-radius: var(--radius-lg);
    }

    .woocommerce-cart-form td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2);
        border: none;
    }

    .woocommerce-cart-form td::before {
        content: attr(data-title);
        font-weight: 500;
    }

    .single-product .product {
        gap: var(--space-6);
    }

    .entry-summary .product_title {
        font-size: var(--text-2xl);
    }
}

/* ===================================
   MODALS (Quick View & Login)
   =================================== */
.eco-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.eco-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.eco-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--eco-white);
    border-radius: var(--border-radius);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.eco-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    background: var(--eco-white);
    border: 2px solid var(--eco-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.eco-modal-close:hover {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
    color: var(--eco-white);
    transform: rotate(90deg);
}

.eco-modal-body {
    padding: var(--space-8);
}

.eco-loader-spinner {
    width: 50px;
    height: 50px;
    margin: var(--space-10) auto;
    border: 4px solid var(--eco-border);
    border-top-color: var(--eco-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick View Product */
.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    min-width: 800px;
}

.quick-view-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.quick-view-details h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    color: var(--eco-text);
}

.product-short-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--eco-text-light);
    margin-bottom: var(--space-5);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--eco-primary);
    margin-bottom: var(--space-5);
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.product-stock.in-stock {
    background: var(--eco-highlight);
    color: var(--eco-primary);
}

.product-stock.out-of-stock {
    background: #fee;
    color: #c33;
}

.product-sku,
.product-categories {
    font-size: 0.95rem;
    color: var(--eco-text-light);
    margin-bottom: var(--space-3);
}

.quick-view-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.quick-view-actions .btn {
    flex: 1;
}

/* Login Modal */
.login-modal-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-modal-header h3 {
    font-size: 1.75rem;
    color: var(--eco-text);
    margin-bottom: var(--space-3);
}

.login-modal-header p {
    font-size: 1rem;
    color: var(--eco-text-light);
}

.login-modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.login-modal-footer {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--eco-border);
}

.login-modal-footer p {
    font-size: 0.95rem;
    color: var(--eco-text-light);
    margin-bottom: var(--space-3);
}

.btn-text {
    background: none;
    border: none;
    color: var(--eco-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--eco-primary-dark);
}

/* ===================================
   NOTIFICATIONS
   =================================== */
.eco-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    padding: var(--space-4) var(--space-5);
    background: var(--eco-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

.eco-notification.show {
    transform: translateX(0);
}

.eco-notification-success {
    border-color: var(--eco-primary);
    background: var(--eco-highlight);
    color: var(--eco-primary-dark);
}

.eco-notification-error {
    border-color: #c33;
    background: #fee;
    color: #c33;
}

.eco-notification-info {
    border-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

/* Wishlist Active State */
.eco-wishlist.active svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

/* Responsive Modals */
@media (max-width: 992px) {
    .quick-view-product {
        grid-template-columns: 1fr;
        min-width: auto;
    }
    
    .eco-modal-content {
        max-width: 95%;
    }
    
    .eco-modal-body {
        padding: var(--space-6);
    }
}

@media (max-width: 768px) {
    .eco-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ===================================
   SINGLE PRODUCT GALLERY OVERRIDES
   Force full width for product images
   =================================== */
.single-product .woocommerce-product-gallery,
.single-product div.images,
.single-product .images {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image > a {
    display: block;
    width: 100% !important;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}
.related.products .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    justify-content: center;
    gap: var(--space-6);
}
.woocommerce-tabs .panel {
    font-size: 16px;
    line-height: 1.7;
}

.woocommerce-tabs .panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
}
/* ===================================
   FIX PRODUCT DESCRIPTION
   =================================== */

.woocommerce-tabs {
    margin-top: var(--space-10);
}

.woocommerce-tabs .panel {
    font-size: 16px;
    line-height: 1.7;
}

.woocommerce-tabs .panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* ===================================
   FIX RELATED PRODUCTS GRID
   =================================== */

.related.products .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    justify-content: center;
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .related.products .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related.products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related.products .products {
        grid-template-columns: 1fr !important;
    }
}
/* ================================
   FIX RELATED PRODUCTS WIDTH
   ================================ */

.related.products {
    width: 100%;
}

.related.products .products {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(250px, 1fr)) !important;
    gap: var(--space-6);
}

/* Tablet */
@media (max-width: 1200px) {
    .related.products .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .related.products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .related.products .products {
        grid-template-columns: 1fr !important;
    }
}
/* ================================
   PRODUCT DESCRIPTION SPACING
   ================================ */

.woocommerce-tabs {
    margin-top: var(--space-12);
}

.woocommerce-tabs .panel {
    padding: var(--space-8) var(--space-10);
}

/* m¨¢s espacio entre t¨ªtulo y texto */
.woocommerce-tabs .panel h2 {
    margin-bottom: var(--space-5);
}

/* espacio entre p¨¢rrafos */
.woocommerce-tabs .panel p {
    margin-bottom: var(--space-4);
}

/* ================================
   RELATED PRODUCTS SPACING
   ================================ */

.related.products {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
}

/* separar el t¨ªtulo de los productos */
.related.products > h2 {
    margin-bottom: var(--space-12);
}