/* Estilos para la página de detalles de producto */

/* Galería de imágenes */
.product-gallery-slider {
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 10px;
    border: 1px solid #e9ecef;
}

.product-gallery-slider img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contenedor para la imagen principal con posición relativa para etiquetas */
#product-main-image-container {
    position: relative;
    display: block;
    overflow: visible;
}

/* Asegurar que las etiquetas de eventos se vean correctamente en detalles */
#product-main-image-container .event-label {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    max-width: 150px;
    font-size: 16px;
    padding: 8px 12px;
}

#product-main-image-container .event-label.image-only {
    max-width: 160px;
    height: 80px;
    padding: 0;
}

#product-main-image-container .event-label.image-only img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.product-gallery-thumbnail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin-bottom: 10px;
}

.product-gallery-thumbnail li {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 1px solid #e9e9e9;
    overflow: hidden;
}

.product-gallery-thumbnail li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-gallery-thumbnail li:hover img {
    transform: scale(1.1);
}

.product-gallery-thumbnail li.active {
    border-color: #DE208B;
}

/* Detalles del producto */
.product-detail {
    padding: 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

.product-detail .product-title {
    font-size: 28px; /* antes 24px */
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}
.product-detail .price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 7px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #DE208B;
}

.product-detail .price-section .price,
.product-detail .price-section .event-price {
    font-size: 20px; /* antes 18px */
    color: #DE208B;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.product-detail .price-section .old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 18px; /* antes 14px */
    margin-right: 8px;
    font-weight: 500;
}

.product-detail .price-section .discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 2px 5px;
    border-radius: 12px;
    font-size: 11px; /* antes 11px */
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.product-detail .product-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 18px; /* antes 20px */
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #DE208B;
    margin-bottom: 10px;
}

.product-detail .product-basic-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-detail .product-basic-info .info-row {
    display: flex;
    margin-bottom: 5px;
    font-size: 14px; /* antes 13px */
    align-items: center;
}

.product-detail .product-basic-info .info-row:last-child {
    margin-bottom: 0;
}

.product-detail .product-basic-info .label {
    font-weight: 600;
    color: #495057;
    min-width: 70px;
    margin-right: 10px;
    font-size: 13px; /* antes 12px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail .divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #DE208B, transparent);
    margin: 15px 0;
    border: none;
}

/* Información de técnicas en detalle del producto */
.product-detail .technique-info {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.product-detail .technique-info h5 {
    color: #2e7d32;
    font-size: 14px; /* antes 14px */
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail .technique-info .technique-details {
    font-size: 14px; /* antes 13px */
    color: #1b5e20;
    line-height: 1.4;
}

/* Opciones del producto */
.product-options-container {
    margin-bottom: 20px;
}

.component-options {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.component-options h4 {
    font-size: 16px; /* antes 18px */
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #DE208B;
    padding-bottom: 0px;
}

.color-options h5,
.size-options h5 {
    font-size: 15px; /* antes 16px */
    font-weight: 500;
    color: #6c757d;
}

ul.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

ul.product-color-options li {
    margin-right: 5px;
    position: relative;
    margin-bottom: 5px;
}

ul.product-color-options li a {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

ul.product-color-options li a:hover {
    transform: scale(1.15);
    border-color: #DE208B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

ul.product-color-options li a.active {
    border-color: #DE208B;
    box-shadow: 0 0 0 3px rgba(222, 32, 139, 0.3);
    transform: scale(1.1);
}

ul.product-color-options li a.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px; /* antes 14px */
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

ul.product-color-options li a.low-stock:after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background-color: #ffc107;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

ul.product-color-options li a.no-stock {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

ul.product-color-options li a.no-stock:after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
ul.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    list-style: none;
}

ul.product-size-options li a {
    display: block;
    padding: 4px 7px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    background-color: white;
    min-width: 22px;
    text-align: center;
}

ul.product-size-options li a:hover {
    border-color: #DE208B;
    color: #DE208B;
    background-color: rgba(222, 32, 139, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

ul.product-size-options li a.active {
    background: linear-gradient(135deg, #DE208B, #c81d7e);
    border-color: #DE208B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 32, 139, 0.3);
}

/* Cantidad y botón de agregar al carrito */
.product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px !important;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .product-quantity {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
    }
}

.product-quantity .quantity {
    margin-right: 12px;
}

.product-quantity .quantity label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-quantity .quantity-controls {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-quantity .quantity-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(222, 32, 139, 0.1) 0%, rgba(26, 113, 185, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-quantity .quantity-controls:hover::before {
    opacity: 1;
}

.product-quantity .quantity-controls:focus-within {
    border-color: #DE208B;
    box-shadow:
        0 0 0 4px rgba(222, 32, 139, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.product-quantity .quantity-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 0;
    cursor: pointer;
    color: #495057;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.product-quantity .quantity-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(222, 32, 139, 0.3) 0%, transparent 70%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.product-quantity .quantity-btn:hover::before {
    width: 60px;
    height: 60px;
}

.product-quantity .quantity-btn:hover {
    background: linear-gradient(135deg, #DE208B 0%, #c81d7e 100%);
    color: white;
    transform: scale(1.05);
    box-shadow:
        0 4px 15px rgba(222, 32, 139, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.product-quantity .quantity-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.product-quantity .quantity-btn.decrease::after {
    content: '−';
    font-size: 20px;
    line-height: 1;
}

.product-quantity .quantity-btn.increase::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.product-quantity .quantity input {
    border: none;
    padding: 0 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    width: 50px;
    height: 28px;
    background: transparent;
    color: #495057;
    flex-shrink: 0;
    outline: none;
    transition: all 0.3s ease;
}

.product-quantity .quantity input:focus {
    color: #DE208B;
    background: rgba(222, 32, 139, 0.05);
}

.product-quantity .quantity input::-webkit-outer-spin-button,
.product-quantity .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* Tabs de contenido */
.flat-tabs .menu-tab {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.flat-tabs .menu-tab li {
    padding: 7px 10px;
    cursor: pointer;
    position: relative;
    margin-right: 0;
    transition: all 0.3s ease;
    background-color: transparent;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
    font-weight: 500;
}

.flat-tabs .menu-tab li:last-child {
    border-right: none;
}

.flat-tabs .menu-tab li:hover {
    background-color: rgba(222, 32, 139, 0.05);
    color: #DE208B;
}

.flat-tabs .menu-tab li.active {
    color: #DE208B;
    background-color: white;
    font-weight: 600;
}

.flat-tabs .menu-tab li.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #DE208B;
}

.flat-tabs .content-tab {
    background-color: white;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    border-top: none;
}

.flat-tabs .content-tab .content-inner {
    display: none;
}

.flat-tabs .content-tab .content-inner:first-child {
    display: block;
}

/* Especificaciones */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-specs-table th,
.product-specs-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.product-specs-table th {
    width: 35%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px; /* antes 14px */
}

.product-specs-table td {
    background-color: white;
    color: #6c757d;
    font-size: 15px; /* antes 15px */
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
    border-bottom: none;
}

.product-specs-table tr:hover {
    background-color: rgba(222, 32, 139, 0.02);
}

/* Títulos de secciones en especificaciones */
.product-specs-table .specs-section-title {
    background: linear-gradient(135deg, #de208b 0%, #c41c7a 100%);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 10px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #a0165f;
}

/* Sub-especificaciones con indentación */
.product-specs-table .sub-spec {
    padding-left: 18px;
    font-weight: 500;
    font-size: 10px;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f5 100%);
    position: relative;
}

.product-specs-table .sub-spec::before {
    content: "└";
    position: absolute;
    left: 7px;
    color: #adb5bd;
    font-weight: bold;
    font-size: 10px;
}

/* Mejorar estilos de tbody por sección */
.product-specs-table tbody.sizes-specs th,
.product-specs-table tbody.components-specs th,
.product-specs-table tbody.techniques-specs th {
    background: linear-gradient(135deg, #f1f3f5 0%, #dee2e6 100%);
    font-size: 11px;
    padding: 6px 8px;
}

.product-specs-table tbody.techniques-specs tr:hover {
    background-color: rgba(222, 32, 139, 0.03);
}

/* Productos relacionados */
.shop-related {
    padding: 35px 0;
}

.shop-related .title-section {
    text-align: center;
}

.shop-related .title-section h2 {
    position: relative;
    padding-bottom: 7px;
    margin-bottom: 20px;
    font-size: 18px;
}

.shop-related .title-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #DE208B;
}

@media (max-width: 767px) {
    .product-quantity {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .product-quantity .quantity {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
    }

    .product-quantity .quantity-controls {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .product-quantity .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .product-quantity .quantity input {
        width: 100px;
        height: 44px;
        font-size: 16px;
    }

    .product-detail {
        padding: 10px;
        margin-bottom: 10px;
    }

    .product-detail .product-title {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .product-detail .price-section {
        padding: 6px;
        margin-bottom: 7px;
    }

    .product-detail .price-section .price,
    .product-detail .price-section .event-price {
        font-size: 12px;
    }

    .product-detail .price-section .old-price {
        font-size: 8px;
        margin-right: 6px;
    }

    .product-detail .price-section .discount-badge {
        font-size: 7px;
        padding: 1px 3px;
        margin-left: 6px;
    }

    .product-detail .product-description {
        padding: 8px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .product-detail .product-basic-info {
        padding: 8px;
        margin-bottom: 10px;
    }

    .product-detail .product-basic-info .info-row {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .product-detail .product-basic_info .label {
        min-width: 60px;
        font-size: 8px;
    }

    .component-options {
        padding: 12px;
        margin-bottom: 10px;
    }

    .component-options h4 {
        font-size: 10px;
        padding-bottom: 3px;
    }

    ul.product-color-options li a {
        width: 20px;
        height: 20px;
    }

    ul.product-color-options li a.active:after {
        font-size: 7px;
    }

    ul.product-size-options li a {
        padding: 4px 7px;
        font-size: 8px;
        min-width: 22px;
    }

    .flat-tabs .menu-tab {
        flex-direction: column;
        border-bottom: none;
    }

    .flat-tabs .menu-tab li {
        border-bottom: 1px solid #e9ecef;
        border-right: none;
        font-size: 9px;
        padding: 4px 7px;
    }

    .flat-tabs .menu-tab li.active:after {
        display: none;
    }

    .flat-tabs .content-tab {
        padding: 6px;
    }
}

/* Estilos para el switcher de tipo de categoría - versión reducida */
.category-type-banner {
    margin-bottom: 10px;
    padding: 10px 0;
    background: linear-gradient(to right, #fdf5fa, #fdf0f7, #fdf5fa);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(222, 32, 139, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.category-type-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(222, 32, 139, 0.02) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotateBackground 15s linear infinite;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.category-type-switcher {
    max-width: 320px;
    margin: 0 auto;
    padding: 0 8px;
    position: relative;
}

.category-type-switcher::before,
.category-type-switcher::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23de208b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
}

.category-type-switcher::before {
    top: -10px;
    left: 0;
    transform: rotate(-15deg);
}

.category-type-switcher::after {
    bottom: -10px;
    right: 0;
    transform: rotate(15deg);
}

.switcher-inner {
    display: flex;
    position: relative;
    background-color: rgba(255,255,255,0.85);
    border-radius: 18px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(222,32,139,0.08), 0 1px 2px rgba(0,0,0,0.03), inset 0 0 0 1px rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.switcher-inner:hover {
    box-shadow: 0 4px 12px rgba(222,32,139,0.12), 0 2px 4px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

.category-type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    border-radius: 12px;
    letter-spacing: 0.3px;
    overflow: hidden;
    min-width: 40px;
}

.category-type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(222,32,139,0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: -1;
}

.category-type-btn:hover {
    color: #222;
    transform: scale(1.01);
}

.category-type-btn:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.category-type-btn.active {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-weight: 700;
    transform: scale(1.05);
}

.category-type-btn.active::before {
    opacity: 0;
}

.switcher-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    width: calc(50% - 2px);
    background: linear-gradient(135deg, #DE208B, #c81d7e);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05), inset 0 -1px 2px rgba(0,0,0,0.07), inset 0 1px 2px rgba(255,255,255,0.1);
    overflow: hidden;
}

.switcher-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.switcher-inner[data-position="right"] .switcher-slider {
    left: calc(50% + 0px);
}

/* Responsive styles */
@media (max-width: 991px) {
    .category-type-banner { padding: 8px 0; margin-bottom: 12px; }
    .category-type-switcher { max-width: 220px; }
}

@media (max-width: 767px) {
    .category-type-banner { padding: 6px 0; margin-bottom: 10px; }
    .category-type-switcher { max-width: 95%; }
    .switcher-inner { padding: 1px; }
    .category-type-btn { padding: 3px 6px; font-size: 10px; }
    .switcher-slider { top: 1px; left: 1px; bottom: 1px; width: calc(50% - 1px);}
    .category-type-switcher::before, .category-type-switcher::after { width: 12px; height: 12px;}
}

@media (max-width: 480px) {
    .category-type-banner { padding: 4px 0; margin-bottom: 5px;}
    .category-type-switcher { max-width: 99%;}
    .category-type-btn { padding: 2px 4px; font-size: 9px; letter-spacing: 0.2px;}
    .switcher-inner[data-position="right"] .switcher-slider { left: calc(50% + 0px);}
}

@media (max-width: 350px) {
    .category-type-btn { padding: 1px 2px; font-size: 8px;}
}

/* Contador de evento en la página de detalle */
.product-detail .event-countdown {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 3px 5px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    font-size: 11px; /* antes 14px */
    color: #856404;
    font-weight: 600;
    border-left: 4px solid #ffc107;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.product-detail .countdown-timer {
    color: #e63946;
    font-weight: 700;
    font-size: 14px; /* antes 16px */
    margin-left: 5px;
}

.add-to-cart .btn-primary {
    margin-top: 25px;
    background: linear-gradient(135deg, #DE208B, #c81d7e) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    font-size: 13px;
    padding: 8px 16px !important;
}

.add-to-cart .btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.add-to-cart .btn-primary:hover::before {
    left: 100% !important;
}

.add-to-cart .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #c81d7e, #b51b6f) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(222, 32, 139, 0.4) !important;
}

.add-to-cart .btn-primary:disabled {
    background: linear-gradient(135deg, #cccccc, #999999) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.add-to-cart .btn-primary:disabled::before {
    display: none !important;
}

/* Estilos para mostrar stock por color */
.color-stock-info {
    margin-top: 8px;
    padding: 5px 7px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 3px solid #28a745;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    display: none;
    transition: all 0.3s ease;
}

.color-stock-info.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.color-stock-info.low-stock {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.color-stock-info.no-stock {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.stock-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
}

.stock-icon.low {
    background-color: #ffc107;
}

.stock-icon.out {
    background-color: #dc3545;
}

/* Tooltip para mostrar stock al hacer hover */
.color-tooltip {
    position: relative;
}

.color-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

#add-to-cart-btn {
    display: block;
    margin: 10px auto 0 auto;
    background: linear-gradient(135deg, #DE208B, #c81d7e) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    font-size: 13px;
    padding: 8px 16px !important;
}

/* Estilos para botón deshabilitado por falta de stock */
#add-to-cart-btn:disabled.no-stock {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    position: relative;
}

#add-to-cart-btn:disabled.no-stock:before {
    display: none !important;
}

#add-to-cart-btn:disabled.no-stock:after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: white;
    font-weight: 600;
}

/* NUEVOS ESTILOS PARA LA ESTRUCTURA ACTUALIZADA */

/* Selector de talla general del producto */
.product-size-selector {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-size-selector h4 {
    font-size: 14px; /* antes 13px */
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #DE208B;
    padding-bottom: 3px;
}
.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-size-option {
    display: block;
    padding: 4px 7px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
    min-width: 22px;
    text-align: center;
    font-size: 11px;
    cursor: pointer;
}

.product-size-option:hover {
    border-color: #DE208B;
    color: #DE208B;
    background-color: rgba(222, 32, 139, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.product-size-option.active {
    background: linear-gradient(135deg, #DE208B, #c81d7e);
    border-color: #DE208B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 32, 139, 0.3);
}

/* Modal - selector de talla */
.modal-product-size-selector {
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-product-size-selector h4 {
    font-size: 11px; /* antes 13px */
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #DE208B;
    padding-bottom: 3px;
}
.modal-product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-product-size-option {
    display: block;
    padding: 3px 6px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: white;
    min-width: 20px;
    text-align: center;
    font-size: 9px;
    cursor: pointer;
}

.modal-product-size-option:hover {
    border-color: #DE208B;
    color: #DE208B;
    background-color: rgba(222, 32, 139, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.modal-product-size-option.active {
    background: linear-gradient(135deg, #DE208B, #c81d7e);
    border-color: #DE208B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 32, 139, 0.3);
}

/* Contenedor de componentes */
.components-container,
.modal-components-container {
    margin-top: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease-out;
}

.components-container h4,
.modal-components-container h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #DE208B;
    padding-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}
/* Selector de componente individual */
.component-selector,
.modal-component-selector {
    display: inline-block;
    vertical-align: top;
    padding: 5px 5px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: auto;
}

.component-selector:hover,
.modal-component-selector:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d4d9;
}

.component-selector:last-child,
.modal-component-selector:last-child {
    margin-bottom: 0;
}

.component-selector h5,
.modal-component-selector h5 {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-bottom: 0px;
    border-bottom: 2px solid #f0f2f5;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

/* Lista de colores de componentes */
.component-color-list,
.modal-component-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-color-option,
.modal-component-color-option {
    display: block;
    width: 18px;
    height: 18px;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 5px;
    margin-top: 5px;
}

.component-color-option:hover,
.modal-component-color-option:hover {
    transform: scale(1.15);
    border-color: #DE208B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.component-color-option.active,
.modal-component-color-option.active {
    border-color: #DE208B;
    box-shadow: 0 0 0 3px rgba(222, 32, 139, 0.3);
    transform: scale(1.1);
}

.component-color-option.active:after,
.modal-component-color-option.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px; /* antes 14px */
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.component-color-option.low-stock:after,
.modal-component-color-option.low-stock:after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background-color: #ffc107;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.component-color-option.no-stock,
.modal-component-color-option.no-stock {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.component-color-option.no-stock:after,
.modal-component-color-option.no-stock:after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.component-color-option.no-stock:hover,
.modal-component-color-option.no-stock:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: none;
}
/* Información de stock de componentes */
.component-stock-info,
.modal-component-stock-info {
    margin-top: 2px;
    padding: 2px 3px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
    border-left: 2px solid #28a745;
    font-size: 5px;
    font-weight: 500;
    color: #495057;
    display: none;
    transition: all 0.2s ease;
}

.component-stock-info.show,
.modal-component-stock-info.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.component-stock-info.low-stock,
.modal-component-stock-info.low-stock {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.component-stock-info.no-stock,
.modal-component-stock-info.no-stock {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Información de técnicas */
.technique-info,
.modal-technique-info {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #e8f4fd;
    border-left: 4px solid #007bff;
    border-radius: 0 6px 6px 0;
    font-size: 11px;
}

.technique-label {
    font-weight: 600;
    color: #007bff;
    margin-bottom: 6px;
    font-size: 10px;
}

.technique-detail {
    margin-bottom: 4px;
    font-size: 10px;
    color: #555;
}

/* NUEVO: Estilos mejorados para la galería de imágenes */
.gallery-main-image {
    margin-bottom: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 40px !important;
    height: 40px !important;
}

.gallery-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(222, 32, 139, 0.3) !important;
}

.gallery-thumb.active {
    box-shadow: 0 4px 20px rgba(222, 32, 139, 0.4) !important;
}

.gallery-thumb.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #DE208B;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-thumb-more:hover {
    background: linear-gradient(135deg, #DE208B, #c81d7e) !important;
    color: white !important;
    border-color: #DE208B !important;
    transform: scale(1.1);
}

/* Lightbox mejorado */
.gallery-lightbox {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-lightbox-img {
    transition: transform 0.3s ease;
}

.gallery-lightbox button:focus {
    outline: none;
}

/* Responsive para galerías */
@media (max-width: 768px) {
    .product-gallery-slider {
        margin-bottom: 18px;
        padding: 12px;
    }

    .gallery-main-image {
        margin-bottom: 14px;
    }

    .gallery-main-image > div {
        width: 220px !important;
        height: 220px !important;
    }

    .gallery-thumb {
        width: 40px !important;
        height: 40px !important;
    }

    .gallery-thumb-more {
        width: 40px !important;
        height: 40px !important;
    }

    .gallery-lightbox-close,
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 30px !important;
    }

    .gallery-lightbox-prev {
        left: 15px !important;
    }

    .gallery-lightbox-next {
        right: 15px !important;
    }

    .gallery-lightbox-close {
        top: 15px !important;
        right: 15px !important;
    }

    /* NUEVO: Espaciado para el detalle del producto en móvil */
    .product-detail {
        margin-top: 0;
        margin-bottom: 18px;
    }

    .flat-row.main-shop.shop-detail {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .flat-row.main-shop.shop-detail .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .flat-row.main-shop.shop-detail .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .product-gallery-slider {
        margin-bottom: 10px;
        padding: 10px;
    }

    .gallery-main-image {
        margin-bottom: 12px;
    }

    .gallery-main-image > div {
        width: 180px !important;
        height: 180px !important;
        padding: 12px !important;
    }

    .gallery-thumb {
        width: 40px !important;
        height: 40px !important;
    }

    .gallery-thumb-more {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    /* NUEVO: Espaciado mejorado para móviles pequeños */
    .product-detail {
        margin-bottom: 10px;
    }

    .flat-row.main-shop.shop-detail {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .flat-row.main-shop.shop-detail .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* NUEVO: Mejoras adicionales para la sección principal */
.flat-row.main-shop.shop-detail {
    padding: 10px 0;
}

.flat-row.main-shop.shop-detail .flat-image-box {
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .flat-row.main-shop.shop-detail {
        padding: 30px 0;
    }

    .flat-row.main-shop.shop-detail .flat-image-box {
        margin-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .flat-row.main-shop.shop-detail .flat-image-box {
        margin-bottom: 10px;
    }
}

/* Estilos para contenido extendido en desktop */
.product-extended-info.desktop-only {
    display: block;
    margin-top: 30px;
}

/* Aplicar los mismos estilos de mobile a la versión desktop */
.product-extended-info.desktop-only .product-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #DE208B;
    margin-bottom: 12px;
}

.product-extended-info.desktop-only .product-basic-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-extended-info.desktop-only .product-basic-info .info-row {
    display: flex;
    margin-bottom: 5px;
    font-size: 11px;
    align-items: center;
}

.product-extended-info.desktop-only .product-basic-info .info-row:last-child {
    margin-bottom: 0;
}

.product-extended-info.desktop-only .product-basic-info .label {
    font-weight: 600;
    color: #495057;
    min-width: 70px;
    margin-right: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-extended-info.desktop-only .divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #DE208B, transparent);
    margin: 15px 0;
    border: none;
}

.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .product-extended-info.desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}