/**
 * WooCommerce Custom Styles for Display Planet Theme
 * 
 * Este archivo personaliza todos los estilos de WooCommerce para que coincidan
 * con el diseño premium y moderno de Display Planet
 * 
 * @package Display Planet
 * @version 1.0.1
 */

/* ========================================================================
   1. VARIABLES Y RESET
   ======================================================================== */

/* Las variables ya están definidas en style.css :root */

.woocommerce-page {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 50%, #e8e8e8 100%);
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

/* ========================================================================
   2. PÁGINA DE TIENDA (SHOP) - ARCHIVE
   ======================================================================== */

/* Header de la tienda */
.woocommerce-products-header {
    padding: 0px !important;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.woocommerce-products-header__title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.woocommerce-products-header__subtitle {
    color: var(--neutral-700);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.term-description {
    color: var(--neutral-700);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================================================
   2.1. BUSCADOR DE PRODUCTOS
   ======================================================================== */

.product-search-wrapper {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 10;
}

.product-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 60px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.search-input-wrapper:focus-within {
    border-color: var(--red-primary);
    box-shadow: 0 8px 40px rgba(227, 30, 36, 0.2);
    background: rgba(255, 255, 255, 1);
}

.search-icon {
    color: var(--neutral-700);
    flex-shrink: 0;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--red-primary);
}

.product-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0.8rem 0;
    outline: none;
    font-family: 'Archivo', sans-serif;
}

.product-search-input::placeholder {
    color: var(--neutral-700);
    opacity: 0.6;
}

.search-submit-btn {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: var(--white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
    white-space: nowrap;
}

.search-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(227, 30, 36, 0.5);
    background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
}

.search-submit-btn:active {
    transform: scale(0.98);
}

/* Controles de ordenamiento y resultados */
.woocommerce-result-count,
.woocommerce-ordering {
    font-size: 0.95rem;
    color: var(--neutral-700);
}

.woocommerce-ordering select {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.woocommerce-ordering select:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* Barra superior con controles */
.woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--red-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce-error {
    border-left-color: #d32f2f;
}

/* ========================================================================
   3. GRID DE PRODUCTOS
   ======================================================================== */

.woocommerce .products,
ul.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
    list-style: none;
}

/* Tarjeta de producto */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Imagen del producto */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, rgba(245, 245, 247, 0.8), rgba(232, 232, 232, 0.6));
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Badges en productos */
.woocommerce span.onsale {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.5);
    z-index: 10;
    min-width: auto;
    min-height: auto;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

/* Título del producto */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 1.5rem 0.8rem;
    line-height: 1.3;
    text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--red-primary);
}

/* Categoría del producto */
.woocommerce ul.products li.product .product-category {
    color: var(--silver-dark);
    font-size: 0.9rem;
    margin: 0 1.5rem 1rem;
    font-weight: 500;
}

/* Precio del producto */
.woocommerce ul.products li.product .price {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 1.5rem 1.5rem;
    display: block;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--red-primary);
}

/* Rating de estrellas */
.woocommerce .star-rating {
    color: #FFB800;
    margin: 0 1.5rem 1rem;
}

.woocommerce .star-rating::before {
    color: rgba(0, 0, 0, 0.1);
}

/* ========================================================================
   4. BOTONES DE WOOCOMMERCE
   ======================================================================== */

/* Botón "Añadir al carrito" en grid */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
    display: inline-block;
    text-decoration: none;
    margin: 0 1.5rem 1.5rem;
    text-align: center;
    width: calc(100% - 3rem);
    font-size: 0.95rem;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(227, 30, 36, 0.5);
    background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
}

/* Loading state */
.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.woocommerce ul.products li.product .button.loading::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Botón "Ver carrito" después de añadir */
.woocommerce ul.products li.product .added_to_cart {
    background: transparent;
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    margin-top: 0.5rem;
    box-shadow: none;
}

.woocommerce ul.products li.product .added_to_cart:hover {
    background: var(--red-primary);
    color: var(--white);
}

/* ========================================================================
   5. PAGINACIÓN
   ======================================================================== */

.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 4rem 0 3rem;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    border: none;
    padding: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 45px;
    text-align: center;
    font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--red-primary);
    color: var(--red-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
}

/* ========================================================================
   6. RESPONSIVIDAD
   ======================================================================== */

/* Desktop Extra Grande - 5 columnas */
@media (min-width: 1400px) {

    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

/* Desktop / Laptop - 4 columnas */
@media (min-width: 1024px) and (max-width: 1399px) {

    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.8rem;
    }
}

/* Tablet - 3 columnas */
@media (min-width: 768px) and (max-width: 1023px) {

    .woocommerce .products,
    ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .woocommerce-products-header__title {
        font-size: 2.5rem;
    }

    .product-search-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Mobile - 1 columna */
@media (max-width: 767px) {

    .woocommerce .products,
    ul.products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .woocommerce-products-header {
        margin-bottom: 2rem;
    }

    .woocommerce-products-header__title {
        font-size: 2rem;
    }

    .woocommerce-products-header__subtitle {
        font-size: 0.95rem;
    }

    .woocommerce ul.products li.product img {
        height: 280px;
    }

    /* Buscador responsive */
    .search-input-wrapper {
        padding: 0.4rem 0.4rem 0.4rem 1rem;
        border-radius: 50px;
    }

    .product-search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .product-search-input::placeholder {
        font-size: 0.85rem;
    }

    .search-submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .search-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.7rem;
    }
}

/* ========================================================================
   7. ESTILOS PARA PRODUCTOS SIN STOCK
   ======================================================================== */

.woocommerce ul.products li.product.outofstock {
    opacity: 0.6;
}

.woocommerce ul.products li.product.outofstock .button {
    background: var(--neutral-300);
    color: var(--neutral-700);
    cursor: not-allowed;
    box-shadow: none;
}

.woocommerce ul.products li.product.outofstock .button:hover {
    transform: none;
    box-shadow: none;
}

/* Badge "Agotado" */
.woocommerce ul.products li.product.outofstock::after {
    content: 'AGOTADO';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* ========================================================================
   8. PÁGINA DE PRODUCTO INDIVIDUAL (SINGLE PRODUCT)
   ======================================================================== */

/* 8.1. Container Principal */
.single-product-page {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 50%, #e8e8e8 100%);
    min-height: 100vh;
    position: relative;
    overflow: visible;
    padding-bottom: 4rem;
}

/* 8.2. Breadcrumbs */
.product-breadcrumbs {
    margin-bottom: 2rem;
}

.product-breadcrumbs .breadcrumb-wrapper {
    font-size: 0.9rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.product-breadcrumbs .breadcrumb-wrapper a {
    color: var(--neutral-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumbs .breadcrumb-wrapper a:hover {
    color: var(--red-primary);
}

/* 8.3. Layout de 2 Columnas (40% / 60%) */
.single-product-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* 8.4. Columna de Galería (Izquierda) */
.product-gallery-column {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.woocommerce-product-gallery {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Imagen Principal */
.woocommerce-product-gallery__wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-product-gallery__image {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 245, 247, 0.8), rgba(232, 232, 232, 0.6));
}

.woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
}

/* Thumbnails */
.flex-control-thumbs {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.flex-control-thumbs li {
    flex: 0 0 auto;
}

.flex-control-thumbs img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    object-fit: cover;
}

.flex-control-thumbs li.flex-active img,
.flex-control-thumbs img:hover {
    border-color: var(--red-primary);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

/* 8.5. Columna de Información (Derecha) */
.product-info-column {
    display: flex;
    flex-direction: column;
}

.product-summary-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Título del Producto */
.product_title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Rating */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.woocommerce-product-rating .star-rating {
    color: #FFB800;
}

.woocommerce-product-rating .star-rating::before {
    color: rgba(0, 0, 0, 0.1);
}

.woocommerce-product-rating .woocommerce-review-link {
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
    color: var(--red-primary);
}

/* Precio */
.summary .price {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-primary);
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary .price del {
    font-size: 1.5rem;
    color: var(--neutral-700);
    opacity: 0.6;
}

.summary .price ins {
    text-decoration: none;
    color: var(--red-primary);
}

/* Badge de Ahorro */
.summary .price::after {
    content: '';
    display: none;
}

/* Descripción Corta */
.woocommerce-product-details__short-description {
    color: var(--neutral-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Stock Status */
.stock {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.stock.in-stock {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.stock.out-of-stock {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

.wc-forward {
    background-color: transparent !important;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* 8.6. Formulario de Variaciones */
.variations_form {
    margin-bottom: 2rem;
}

.variations {
    border: none;
    margin-bottom: 0rem;
    width: 100%;
    text-align: left;
}

.variations td {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    width: 100%;
}

.variations .label {
    display: block;
    margin-bottom: 0.8rem;
}

.variations .label label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Select de Variaciones */
.variations .value select {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.variations .value select:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.variations .value select:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Reset button */
.reset_variations {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--neutral-700);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reset_variations:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

/* 8.7. Cantidad y Add to Cart */
.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    margin-top: 1rem;
    gap: 1rem;
}

/* Quantity Selector */
.quantity {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    min-width: 140px;
}

.quantity .qty {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    background: transparent;
    color: var(--text-dark);
}

.quantity .qty:focus {
    outline: none;
}

/* Remove default number input arrows */
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .qty[type=number] {
    -moz-appearance: textfield;
}

/* Botón Add to Cart Principal */
.single_add_to_cart_button {
    flex: 1;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(227, 30, 36, 0.3);
    font-family: 'Archivo', sans-serif;
}

.single_add_to_cart_button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(227, 30, 36, 0.5);
    background: linear-gradient(135deg, var(--red-dark), var(--red-primary));
}

.single_add_to_cart_button:active {
    transform: scale(0.98);
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Botones de Cantidad +/- */
.qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: rgba(227, 30, 36, 0.1);
    color: var(--red-primary);
}

.qty-btn:active {
    transform: scale(0.9);
}

/* 8.8. Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-badge {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(0, 0, 0, 0.05);
}

.trust-badge .badge-icon {
    color: var(--red-primary);
    flex-shrink: 0;
}

.trust-badge .badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.trust-badge .badge-text strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.trust-badge .badge-text span {
    font-size: 0.85rem;
    color: var(--neutral-700);
}

/* 8.9. Product Meta */
.product_meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.product_meta>span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--neutral-700);
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
    display: flex;
    gap: 0.5rem;
}

.product_meta a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product_meta a:hover {
    color: var(--red-primary);
}

/* 8.10. Tabs de Información */
.woocommerce-tabs {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
    overflow: hidden;
}

.woocommerce-tabs .tabs {
    display: flex;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs .tabs li {
    flex: 1;
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 1.5rem;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: var(--neutral-700);
    text-decoration: none;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: var(--red-primary);
    border-bottom-color: var(--red-primary);
    background: rgba(227, 30, 36, 0.05);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 3rem;
    line-height: 1.8;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.woocommerce-tabs .woocommerce-Tabs-panel p {
    color: var(--neutral-700);
    margin-bottom: 1rem;
}

/* Tabla de Especificaciones */
.woocommerce-tabs .shop_attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.woocommerce-tabs .shop_attributes tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.woocommerce-tabs .shop_attributes th,
.woocommerce-tabs .shop_attributes td {
    padding: 1.2rem;
    text-align: left;
}

.woocommerce-tabs .shop_attributes th {
    font-weight: 700;
    color: var(--neutral-700);
    width: 30%;
    background: rgba(0, 0, 0, 0.02);
}

.woocommerce-tabs .shop_attributes td {
    color: var(--text-dark);
}

/* Reviews */
#reviews {
    padding: 3rem;
}

#reviews .woocommerce-Reviews-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.commentlist .comment {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
}

.commentlist .comment_container {
    display: flex;
    gap: 1.5rem;
}

.commentlist .comment-text {
    flex: 1;
}

.commentlist .star-rating {
    color: #FFB800;
    margin-bottom: 0.5rem;
}

/* 8.11. Productos Relacionados */
.related-products-section {
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.related-products-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.related-products-carousel {
    position: relative;
    padding: 0 3rem;
}

.related-products-carousel .carousel-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-products-carousel .carousel-track::-webkit-scrollbar {
    display: none;
}

.related-products-carousel .products {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 1rem 0;
}

.product-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-products-carousel .products li.product {
    flex: 0 0 calc(20% - 1.6rem);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Botones de Navegación del Carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-dark);
}

.carousel-nav:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.carousel-nav.carousel-prev {
    left: 0;
}

.carousel-nav.carousel-next {
    right: 0;
}

.raffle-prize-shortcode .raffle_winners-card {
    border: none !important;
}

.raffle-prize-shortcode .raffle_winners-card .ticket_no {
    display: none !important;
}

/* 8.12. Responsive para Página de Producto */

/* Laptop Grande (1200-1399px) - Mantener 40/60 */
@media (min-width: 1200px) and (max-width: 1399px) {
    .single-product-container {
        gap: 2.5rem;
    }

    .product_title {
        font-size: 2.2rem;
    }

    .summary .price {
        font-size: 2.2rem;
    }

    .product-summary-container {
        padding: 2.5rem;
    }
}

/* Laptop Mediano (1024-1199px) - Ajustar a 45/55 */
@media (min-width: 1024px) and (max-width: 1199px) {
    .single-product-container {
        grid-template-columns: 45% 55%;
        gap: 2rem;
    }

    .product_title {
        font-size: 2rem;
    }

    .summary .price {
        font-size: 2rem;
    }

    .product-summary-container {
        padding: 2rem;
    }
}

@media (max-width: 1023px) {
    .single-product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-column {
        position: static;
    }

    .product_title {
        font-size: 2rem;
    }

    .summary .price {
        font-size: 2rem;
    }

    .woocommerce-tabs .tabs {
        flex-wrap: wrap;
    }

    .woocommerce-tabs .tabs li {
        flex: 1 1 50%;
    }

    .related-products-carousel .products li.product {
        flex: 0 0 calc(33.333% - 1.4rem);
        min-width: 250px;
    }
}

@media (max-width: 767px) {
    .product-summary-container {
        padding: 2rem;
    }

    .product_title {
        font-size: 1.8rem;
    }

    .summary .price {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .cart {
        flex-direction: column;
    }

    .quantity {
        width: 100%;
        justify-content: center;
    }

    .single_add_to_cart_button {
        width: 100%;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .woocommerce-tabs .tabs li {
        flex: 1 1 100%;
    }

    .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 2rem;
    }

    .related-products-carousel {
        padding: 0 1rem;
    }

    .related-products-carousel .products li.product {
        flex: 0 0 calc(100% - 2rem);
        min-width: 280px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .product-breadcrumbs {
        font-size: 0.85rem;
    }

    .related-products-title {
        font-size: 2rem;
    }
}

/* ========================================================================
   9. OCULTAR PRODUCTOS RELACIONADOS AUTOMÁTICOS
   ======================================================================== */

/**
 * Oculta la sección de productos relacionados que genera automáticamente 
 * WooCommerce desde el hook 'woocommerce_after_single_product_summary'
 * para evitar duplicados con nuestra sección personalizada
 */
.single-product .woocommerce-output-product-data-tabs~.woocommerce-tabs~section.related,
.single-product .woocommerce-output-product-data-tabs~section.related,
.single-product section.related {
    display: none !important;
}

/* También ocultamos los productos cruzados automáticos si aparecen */
.single-product section.cross-sells {
    display: none !important;
}

/* Para mayor compatibilidad, ocultamos cualquier elemento con estas clases comunes */
.single-product .related.products,
.single-product .cross-sells {
    display: none !important;
}

/* ========================================================================
   10. OCULTAR PESTAÑA DE REVIEWS
   ======================================================================== */

/**
 * Oculta temporalmente la pestaña de reviews y su contenido
 * tanto en la navegación de tabs como el panel de contenido
 */
.woocommerce-tabs .tabs li.reviews_tab,
.woocommerce-tabs .tabs li a[href="#tab-reviews"] {
    display: none !important;
}

/* También ocultamos el panel de contenido de reviews */
.woocommerce-tabs #tab-reviews,
.woocommerce-tabs .woocommerce-Tabs-panel--reviews {
    display: none !important;
}

/* ========================================================================
   11. OCULTAR RATING DEL PRODUCTO
   ======================================================================== */

/**
 * Oculta el sistema de rating (estrellas) del producto
 * tanto en la página individual como en cualquier otro lugar
 */
.woocommerce-product-rating {
    display: none !important;
}

/* También ocultamos otros elementos relacionados al rating */
.star-rating {
    display: none !important;
}

.woocommerce-review-link {
    display: none !important;
}

/* ========================================================================
   12. ORDER RECEIVED / THANK YOU PAGE
   ======================================================================== */

body.woocommerce-order-received #site-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 50%, #e8e8e8 100%);
}

body.woocommerce-order-received .post-23,
body.woocommerce-order-received article.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 4rem;
}

/* body.woocommerce-order-received .entry-header {
} */

body.woocommerce-order-received .entry-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

body.woocommerce-order-received .post-inner.thin {
    max-width: 100%;
}

body.woocommerce-order-received .woocommerce-order {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    padding: clamp(1.3rem, 3vw, 2.25rem);
}

body.woocommerce-order-received .woocommerce-notice--success {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.12), rgba(227, 30, 36, 0.04));
    border: 1px solid rgba(227, 30, 36, 0.25);
    border-radius: 14px;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 1.1rem;
    margin-bottom: 1.4rem;
}

body.woocommerce-order-received .woocommerce-notice--success::before {
    content: '✓';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red-primary);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

body.woocommerce-order-received .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

body.woocommerce-order-received .woocommerce-order-overview li {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    color: var(--neutral-700);
    line-height: 1.45;
    text-transform: none;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
    margin-top: 0.25rem;
    word-break: break-word;
}

body.woocommerce-order-received .woocommerce-order section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.2rem;
    margin-top: 1rem;
}

body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-dark);
    margin: 0 0 1rem;
    line-height: 1.3;
}

body.woocommerce-order-received .woocommerce-order h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order h3 {
    font-size: 1rem;
    font-weight: 600;
}

body.woocommerce-order-received .wc-bacs-bank-details {
    border-left: 4px solid var(--red-primary);
}

body.woocommerce-order-received .wc-bacs-bank-details .bacs_details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

body.woocommerce-order-received .wc-bacs-bank-details .bacs_details li {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    color: var(--neutral-700);
    margin: 0;
}

body.woocommerce-order-received .wc-bacs-bank-details .bacs_details li strong {
    color: var(--text-dark);
}

body.woocommerce-order-received .woocommerce-table--order-details {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.9rem 1rem;
    text-align: left;
}

body.woocommerce-order-received .woocommerce-table--order-details thead th {
    background: rgba(0, 0, 0, 0.04);
    color: var(--neutral-700);
    font-weight: 700;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
}

body.woocommerce-order-received .woocommerce-table--order-details tr:last-child td,
body.woocommerce-order-received .woocommerce-table--order-details tr:last-child th {
    border-bottom: none;
}

body.woocommerce-order-received .woocommerce-order-details a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

body.woocommerce-order-received .woocommerce-order-details a:hover {
    color: var(--red-primary);
    border-bottom-color: var(--red-primary);
}

body.woocommerce-order-received .woocommerce-customer-details address {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 1rem;
    font-style: normal;
    color: var(--neutral-700);
    line-height: 1.7;
}

body.woocommerce-order-received .woocommerce-customer-details p {
    margin: 0.5rem 0 0;
}

body.woocommerce-order-received .woocommerce-Price-amount {
    color: var(--red-primary);
    font-weight: 700;
}

body.woocommerce-order-received .post-meta-wrapper {
    display: none;
}

@media (max-width: 1200px) {
    body.woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    body.woocommerce-order-received .post-23,
    body.woocommerce-order-received article.page {
        padding: 6.5rem 1rem 3rem;
    }

    body.woocommerce-order-received .woocommerce-order {
        border-radius: 20px;
        padding: 1rem;
    }

    body.woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received .woocommerce-order section {
        padding: 0.95rem;
    }

    body.woocommerce-order-received .woocommerce-table--order-details thead {
        display: none;
    }

    body.woocommerce-order-received .woocommerce-table--order-details,
    body.woocommerce-order-received .woocommerce-table--order-details tbody,
    body.woocommerce-order-received .woocommerce-table--order-details tr,
    body.woocommerce-order-received .woocommerce-table--order-details td,
    body.woocommerce-order-received .woocommerce-table--order-details th,
    body.woocommerce-order-received .woocommerce-table--order-details tfoot {
        display: block;
        width: 100%;
    }

    body.woocommerce-order-received .woocommerce-table--order-details tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    body.woocommerce-order-received .woocommerce-table--order-details tr:last-child {
        border-bottom: none;
    }

    body.woocommerce-order-received .woocommerce-table--order-details td,
    body.woocommerce-order-received .woocommerce-table--order-details th {
        border: none;
        padding: 0.65rem 0.35rem;
        text-align: left;
    }
}

/* ========================================================================
   13. EMPTY CART BLOCK CLEANUP
   ======================================================================== */

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator.has-alpha-channel-opacity.is-style-dots~* {
    display: none !important;
}

/* Coupon apply button (Cart/Checkout blocks) */
.wc-block-components-totals-coupon__button.wc-block-components-button,
.wc-block-components-totals-coupon__button.wc-block-components-button:disabled,
.wc-block-components-totals-coupon__button.wc-block-components-button[aria-disabled="true"],
.wc-block-components-checkout-place-order-button__text {
    color: #ffffff !important;
    pointer-events: auto !important;
}

.wc-block-components-button__text {
    opacity: 1 !important;
}