/*
 * TEMPLATE SHOWCASE - PÁGINA DE PRODUCTO
 * Diseño profesional con galería visual prominente
 * Versión 2.0 - Completamente reescrito para máxima compatibilidad
 * Usa variables CSS globales de configpage.php
 */

/* ===== VARIABLES CSS LOCALES (RESPALDO) ===== */
:root {
    --showcase-primary: var(--main-color, #007bff);
    --showcase-secondary: var(--main-color2, #0056b3);
    --showcase-tertiary: var(--main-color3, #004085);
    --showcase-accent: var(--accent-color, #28a745);
    --showcase-danger: var(--danger-color, #dc3545);
    --showcase-warning: var(--warning-color, #ffc107);
    --showcase-success: var(--success-color, #28a745);
    --showcase-muted: var(--text-muted, #6c757d);
    --showcase-bg: #ffffff;
    --showcase-bg-alt: #f8f9fa;
    --showcase-border: #e9ecef;
    --showcase-shadow: rgba(0, 0, 0, 0.1);
    --showcase-shadow-hover: rgba(0, 0, 0, 0.15);
    --showcase-radius: 12px;
    --showcase-radius-sm: 8px;
    --showcase-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.product-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: auto;
}

/* ===== HEADER SHOWCASE ===== */
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--showcase-border);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--showcase-muted);
    font-weight: 500;
}

.breadcrumb span:last-child {
    color: var(--showcase-primary);
    font-weight: 600;
}

.product-badges-header {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-new, .badge-featured, .badge-sale {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px var(--showcase-shadow);
    transition: var(--showcase-transition);
}

.badge-new {
    background: linear-gradient(135deg, var(--showcase-success), #20c997);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, var(--showcase-warning), #ffcd39);
    color: #333;
}

.badge-sale {
    background: linear-gradient(135deg, var(--showcase-danger), #ff6b96);
    color: white;
}

.badge-new:hover, .badge-featured:hover, .badge-sale:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--showcase-shadow-hover);
}

/* ===== LAYOUT PRINCIPAL ===== */
.product-showcase-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--showcase-bg);
    border-radius: var(--showcase-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--showcase-shadow);
    backdrop-filter: blur(10px);
}

/* ===== GALERÍA SHOWCASE ===== */
.product-showcase-gallery {
    position: relative;
    background: var(--showcase-bg);
    padding: 2rem;
}

.showcase-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--showcase-bg-alt);
    border-radius: var(--showcase-radius-sm);
    border: 1px solid var(--showcase-border);
}

.showcase-gallery-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--showcase-primary);
}

.showcase-gallery-controls {
    display: flex;
    gap: 0.5rem;
}

.showcase-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--showcase-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--showcase-transition);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.showcase-control-btn:hover {
    background: var(--showcase-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* ===== IMAGEN PRINCIPAL ===== */
.showcase-main-display {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--showcase-bg-alt);
    overflow: hidden;
    border-radius: var(--showcase-radius);
    margin-bottom: 1.5rem;
    border: 2px solid var(--showcase-border);
    box-shadow: 0 8px 30px var(--showcase-shadow);
}

.showcase-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

.showcase-main-image:hover {
    transform: scale(1.02);
}

.showcase-discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--showcase-danger), #ff4757);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    z-index: 10;
}

.showcase-new-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--showcase-success), #20c997);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    z-index: 10;
}

/* ===== GALERÍA DE MINIATURAS ===== */
.showcase-thumbnails-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.showcase-thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.showcase-thumbnails-container::-webkit-scrollbar-track {
    background: var(--showcase-bg-alt);
    border-radius: 3px;
}

.showcase-thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--showcase-primary);
    border-radius: 3px;
}

.showcase-thumbnail, .gallery-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--showcase-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--showcase-transition);
    border: 3px solid transparent;
    position: relative;
    background: var(--showcase-bg);
    box-shadow: 0 4px 15px var(--showcase-shadow);
}

.showcase-thumbnail:hover, .gallery-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--showcase-shadow-hover);
    border-color: var(--showcase-primary);
}

.showcase-thumbnail.active, .gallery-thumbnail.active {
    border-color: var(--showcase-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
}

.showcase-thumbnail img, .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--showcase-transition);
}

.showcase-thumbnail:hover img, .gallery-thumbnail:hover img {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.gallery-thumbnails img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.gallery-thumbnails img:hover {
    border-color: var(--showcase-primary);
    opacity: 0.8;
}

.gallery-thumbnails img.active {
    border-color: var(--showcase-primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

/* ===== INFORMACIÓN DEL PRODUCTO ===== */
.product-showcase-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--showcase-bg);
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.showcase-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--showcase-bg-alt);
    border-radius: var(--showcase-radius-sm);
    border: 1px solid var(--showcase-border);
}

.showcase-category, .showcase-sku, .showcase-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.showcase-category {
    color: var(--showcase-primary);
}

.showcase-sku {
    color: var(--showcase-muted);
}

.showcase-stock {
    color: var(--showcase-warning);
    font-weight: 600;
}

.showcase-stock i.fa-times-circle {
    color: var(--showcase-danger);
}

.showcase-product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #1a1a1a, #404040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SISTEMA DE RATING ===== */
.showcase-rating-section {
    padding: 1rem;
    background: var(--showcase-bg-alt);
    border-radius: var(--showcase-radius-sm);
    border: 1px solid var(--showcase-border);
}

.showcase-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.showcase-stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.showcase-rating-text {
    font-size: 0.9rem;
    color: var(--showcase-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.showcase-rating-link {
    color: var(--showcase-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.showcase-rating-link:hover {
    text-decoration: underline;
}

/* ===== SISTEMA DE PRECIOS ===== */
.showcase-pricing-section {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--showcase-radius);
    border: 2px solid var(--showcase-primary);
    box-shadow: 0 4px 15px var(--showcase-shadow);
    margin-bottom: 1.5rem;
}

.showcase-price-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.showcase-price-original {
    font-size: 1.2rem;
    color: var(--showcase-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.showcase-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--showcase-primary);
    text-shadow: none;
}

.showcase-single-price .showcase-price-current {
    font-size: 3rem;
    color: var(--showcase-primary);
}

.showcase-savings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.showcase-savings-badge {
    background: linear-gradient(135deg, var(--showcase-success), #20c997);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.showcase-discount-percent {
    background: linear-gradient(135deg, var(--showcase-danger), #ff4757);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.showcase-shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--showcase-success);
    color: white;
    border-radius: var(--showcase-radius-sm);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ===== DESCRIPCIÓN ===== */
.showcase-description-section {
    padding: 1.5rem;
    background: var(--showcase-bg);
    border-radius: var(--showcase-radius);
    border: 1px solid var(--showcase-border);
    box-shadow: 0 4px 15px var(--showcase-shadow);
}

.showcase-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--showcase-primary);
}

.showcase-section-title i {
    color: var(--showcase-primary);
    font-size: 1.2rem;
}

.showcase-description-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.showcase-attributes {
    margin-top: 1.5rem;
}

.showcase-attributes-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.showcase-attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.showcase-attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--showcase-bg-alt);
    border-radius: var(--showcase-radius-sm);
    border: 1px solid var(--showcase-border);
    transition: var(--showcase-transition);
}

.showcase-attribute-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.showcase-attribute-name {
    font-weight: 600;
    color: #1a1a1a;
}

.showcase-attribute-value {
    color: var(--showcase-primary);
    font-weight: 500;
}

/* ===== ATRIBUTOS ===== */
.showcase-attributes {
    margin-bottom: 2rem;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.showcase-attributes-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.showcase-attributes-title i {
    color: var(--showcase-primary);
}

.showcase-attributes-grid {
    display: grid;
    gap: 0.75rem;
}

.showcase-attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.showcase-attribute-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    border-color: var(--showcase-primary);
}

.showcase-attribute-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.showcase-attribute-name i {
    color: var(--showcase-primary);
    font-size: 0.875rem;
}

.showcase-attribute-value {
    color: #64748b;
    font-weight: 500;
    text-align: right;
}

/* ===== VARIANTES ===== */
.showcase-variants-section {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.showcase-variant-group {
    margin-bottom: 1.5rem;
}

.showcase-variant-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.showcase-variant-label i {
    color: var(--showcase-primary);
}

.showcase-variant-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.showcase-variant-option, .variant-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.showcase-variant-option::before, .variant-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.5s ease;
}

.showcase-variant-option:hover::before, .variant-option:hover::before {
    left: 100%;
}

.showcase-variant-option:hover, .variant-option:hover {
    border-color: var(--showcase-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.showcase-variant-option.selected, .variant-option.selected {
    border-color: var(--showcase-primary);
    background: linear-gradient(135deg, var(--showcase-primary), var(--showcase-secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Estilos específicos para variantes de color */
.color-variant {
    min-width: 80px;
}

.color-preview {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.showcase-variant-name {
    font-weight: 600;
    text-align: center;
}

.showcase-variant-price {
    color: var(--success-color, #059669);
    font-weight: 700;
    font-size: 0.875rem;
}

.variant-stock {
    color: var(--success-color, #059669);
    font-size: 0.75rem;
    font-weight: 500;
}

.variant-no-stock {
    color: var(--danger-color, #dc2626);
    font-size: 0.75rem;
    font-weight: 500;
}

.showcase-variant-name {
    font-weight: 600;
}

.showcase-variant-price {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Atributos */
.attribute-group {
    margin: 1.5rem 0;
}

.attribute-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.attribute-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.attribute-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--showcase-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--showcase-bg);
    font-size: 0.9rem;
}

.attribute-option:hover {
    border-color: var(--showcase-accent);
    background: var(--showcase-bg-alt);
}

.attribute-option.selected {
    border-color: var(--showcase-accent);
    background: var(--showcase-accent);
    color: white;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--showcase-border);
    background: var(--showcase-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
}

.quantity-btn:hover {
    border-color: var(--showcase-primary);
    color: var(--showcase-primary);
    background: var(--showcase-bg-alt);
}

.quantity-btn:active {
    transform: scale(0.95);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--showcase-border);
    margin: 2rem 0 1rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--showcase-primary);
}

.tab-btn.active {
    color: var(--showcase-primary);
    border-bottom-color: var(--showcase-primary);
}

.tab-content {
    display: none;
    padding: 1.5rem 0;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
}

/* ===== COMPRA ===== */
.showcase-purchase-section {
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--showcase-radius);
    border: 2px solid var(--showcase-primary);
    box-shadow: 0 8px 30px var(--showcase-shadow);
    margin-bottom: 1.5rem;
}

.showcase-purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.showcase-stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-stock-available {
    color: var(--showcase-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-stock-unavailable {
    color: var(--showcase-danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cartbutton, .productplus, .productminus, .productdelete {
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--showcase-primary);
}

.cartbutton:hover, .productplus:hover, .productminus:hover {
    border-color: var(--showcase-primary);
    background: var(--showcase-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cartbutton.cartdelete, .productdelete {
    background: var(--showcase-danger);
    border-color: var(--showcase-danger);
    color: white;
}

.cartbutton.cartdelete:hover, .productdelete:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.productqty, .qty {
    width: 80px !important;
    height: 44px;
    text-align: center !important;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #ffffff;
    color: #1a1a1a;
}

.productqty:focus, .qty:focus {
    border-color: var(--showcase-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.showcase-btn-add-cart, .add-to-cart-btn {
    background: var(--showcase-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    min-height: 56px;
    width: 100%;
}

.showcase-btn-add-cart:hover, .add-to-cart-btn:hover {
    background: var(--showcase-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* === COMPATIBILIDAD CON SISTEMA DE CARRITO === */
/* Estilos para botones generados dinámicamente por custom.js */
.cartbutton.productplus.add-to-cart-btn {
    /* Heredar estilos del botón showcase-btn-add-cart */
    background: var(--showcase-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cartbutton.productplus.add-to-cart-btn:hover {
    background: var(--showcase-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.cartbutton.add-to-cart-btn {
    /* También para botones add-to-cart genéricos */
    background: var(--showcase-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cartbutton.add-to-cart-btn:hover {
    background: var(--showcase-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.add-to-cart-btn.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.add-to-cart-btn.disabled:hover {
    transform: none !important;
}

.showcase-btn-buy-now {
    background: var(--showcase-success);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    min-height: 56px;
    width: 100%;
}

.showcase-btn-buy-now:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.showcase-additional-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.showcase-btn-share {
    background: transparent;
    color: var(--showcase-primary);
    border: 2px solid var(--showcase-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--showcase-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--showcase-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-btn-share:hover {
    background: var(--showcase-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.showcase-out-of-stock {
    text-align: center;
}

.showcase-btn-notify {
    background: var(--showcase-muted);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--showcase-radius);
    cursor: not-allowed;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.7;
    width: 100%;
}

/* ===== CARACTERÍSTICAS ===== */
.showcase-features-section {
    padding: 2rem;
    background: var(--showcase-bg);
    border-radius: var(--showcase-radius);
    border: 1px solid var(--showcase-border);
    box-shadow: 0 4px 15px var(--showcase-shadow);
}

.showcase-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--showcase-bg-alt);
    border-radius: var(--showcase-radius-sm);
    border: 1px solid var(--showcase-border);
    transition: var(--showcase-transition);
}

.showcase-feature-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--showcase-shadow);
}

.showcase-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--showcase-primary), var(--showcase-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.showcase-feature-content {
    flex: 1;
}

.showcase-feature-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.showcase-feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--showcase-muted);
    line-height: 1.4;
}

/* ===== PRODUCTOS RELACIONADOS ===== */
.related-products-section {
    background: #ffffff;
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-products-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.related-products-title i {
    color: var(--showcase-primary);
    font-size: 2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1rem;
    background: #f8f9fa;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.related-discount-badge, .related-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.related-discount-badge {
    background: var(--showcase-danger);
}

.related-featured-badge {
    background: var(--showcase-warning);
    color: #333;
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    margin-bottom: 1.5rem;
}

.related-price-original {
    display: block;
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.related-price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--showcase-primary);
}

.related-product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.related-product-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--showcase-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 40px;
}

.related-product-btn:hover {
    background: var(--showcase-secondary);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.related-product-btn span, .related-product-btn i {
    color: white !important;
}

.related-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.related-cart-controls .cartbutton {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border: 2px solid #ddd;
    background: #ffffff;
    border-radius: 4px;
    color: var(--showcase-primary);
}

.related-cart-controls .cartbutton:hover {
    background: var(--showcase-primary);
    color: white;
    border-color: var(--showcase-primary);
}

.related-cart-controls .productqty {
    width: 60px;
    height: 36px;
    font-size: 0.9rem;
    border: 2px solid #ddd;
    background: #ffffff;
    border-radius: 4px;
}

/* ===== BARRA DE SEGURIDAD ===== */
.security-bar {
    background: #f8f9fa;
    color: #333;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.security-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.security-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.security-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--showcase-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.security-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.security-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .product-showcase-container {
        padding: 1.5rem;
    }
    
    .product-showcase-layout {
        gap: 2rem;
    }
    
    .showcase-product-title {
        font-size: 2rem;
    }
    
    .showcase-price-current {
        font-size: 2rem;
    }
    
    .showcase-single-price .showcase-price-current {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .product-showcase-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-main-display {
        height: 500px;
    }
    
    .product-showcase-info {
        position: static;
        max-height: none;
    }
    
    .showcase-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-showcase-container {
        padding: 1rem;
    }
    
    .showcase-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .product-badges-header {
        justify-content: flex-start;
    }
    
    .showcase-main-display {
        height: 400px;
    }
    
    .showcase-product-title {
        font-size: 1.75rem;
    }
    
    .showcase-price-current {
        font-size: 1.8rem;
    }
    
    .showcase-single-price .showcase-price-current {
        font-size: 2.2rem;
    }
    
    .showcase-gallery-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .showcase-purchase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .showcase-action-buttons {
        width: 100%;
    }
    
    .product-cart-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .showcase-features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .related-products-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .security-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .product-showcase-container {
        padding: 0.5rem;
    }
    
    .product-showcase-gallery,
    .product-showcase-info {
        padding: 1rem;
    }
    
    .showcase-main-display {
        height: 300px;
    }
    
    .showcase-thumbnail {
        width: 100px;
        height: 100px;
    }
    
    .showcase-product-title {
        font-size: 1.5rem;
    }
    
    .showcase-price-current {
        font-size: 1.5rem;
    }
    
    .showcase-single-price .showcase-price-current {
        font-size: 1.8rem;
    }
    
    .showcase-variant-options {
        justify-content: center;
    }
    
    .showcase-variant-option {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .showcase-btn-add-cart,
    .showcase-btn-buy-now {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .related-products-section {
        padding: 2rem 0;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .security-bar {
        padding: 2rem 0;
    }
    
    .security-info-grid {
        padding: 0 0.5rem;
    }
}

/* ===== ANIMACIONES Y EFECTOS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.product-showcase-container {
    animation: fadeIn 0.6s ease-out;
}

.product-showcase-gallery {
    animation: slideInFromLeft 0.8s ease-out;
}

.product-showcase-info {
    animation: slideInFromRight 0.8s ease-out;
}

.badge-sale {
    animation: pulse 2s infinite;
}

.showcase-discount-badge {
    animation: pulse 2s infinite;
}

/* ===== ESTADOS DE FOCO Y ACCESIBILIDAD ===== */
button:focus,
input:focus,
.showcase-variant-option:focus,
.showcase-thumbnail:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

.showcase-control-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

/* ===== IMPRESIÓN ===== */
@media print {
    .product-showcase-container {
        background: white;
        box-shadow: none;
        padding: 1rem;
    }
    
    .showcase-control-btn,
    .showcase-action-buttons,
    .security-bar {
        display: none;
    }
    
    .product-showcase-layout {
        grid-template-columns: 1fr;
        box-shadow: none;
    }
    
    .showcase-main-display {
        height: auto;
        max-height: 400px;
    }
    
    .showcase-main-image {
        max-height: 400px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
}

/* === ESTILOS ESPECÍFICOS PARA VIDEOS - TEMPLATE SHOWCASE === */

/* Sección de videos showcase */
.product-showcase-videos {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--showcase-radius);
    box-shadow: 0 6px 20px var(--showcase-shadow);
    border: 1px solid var(--showcase-border);
}

.showcase-videos-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.showcase-videos-title i {
    color: var(--showcase-primary);
    font-size: 1.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Video único embebido showcase */
.product-showcase-videos .showcase-single-video {
    border-radius: var(--showcase-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
    margin: 0;
    position: relative;
}

.product-showcase-videos .showcase-single-video::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--showcase-primary), var(--showcase-secondary));
    border-radius: var(--showcase-radius);
    z-index: -1;
}

.product-showcase-videos .showcase-single-video iframe {
    border-radius: var(--showcase-radius);
    min-height: 450px;
}

/* Galería de videos showcase */
.product-showcase-videos .showcase-video-gallery {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-showcase-videos .showcase-video-gallery .video-gallery-item {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: var(--showcase-radius);
    transition: var(--showcase-transition);
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px var(--showcase-shadow);
}

.product-showcase-videos .showcase-video-gallery .video-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 123, 255, 0.1) 100%);
    opacity: 0;
    transition: var(--showcase-transition);
    z-index: 1;
}

.product-showcase-videos .showcase-video-gallery .video-gallery-item:hover {
    border-color: var(--showcase-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.25);
}

.product-showcase-videos .showcase-video-gallery .video-gallery-item:hover::before {
    opacity: 1;
}

.product-showcase-videos .video-thumbnail {
    transition: var(--showcase-transition);
    position: relative;
    z-index: 0;
}

.product-showcase-videos .video-gallery-item:hover .video-thumbnail {
    transform: scale(1.08);
}

.product-showcase-videos .video-play-overlay {
    background: linear-gradient(135deg, var(--showcase-primary) 0%, var(--showcase-secondary) 100%);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.product-showcase-videos .video-play-overlay i {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-showcase-videos .video-main-badge {
    background: linear-gradient(135deg, var(--showcase-accent) 0%, #20c997 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--showcase-radius-sm) 0;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
    z-index: 3;
    position: relative;
}

.product-showcase-videos .video-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.product-showcase-videos .video-description {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Responsive para videos showcase */
@media (max-width: 1024px) {
    .product-showcase-videos {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .showcase-videos-title {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }
    
    .product-showcase-videos .showcase-single-video iframe {
        min-height: 350px;
    }
    
    .product-showcase-videos .showcase-video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .product-showcase-videos {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: var(--showcase-radius-sm);
    }
    
    .showcase-videos-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .product-showcase-videos .showcase-single-video iframe {
        min-height: 250px;
    }
    
    .product-showcase-videos .showcase-video-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .showcase-videos-title {
        font-size: 1.125rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .product-showcase-videos .showcase-single-video iframe {
        min-height: 200px;
    }
}
