/**
 * Solicitar Cotización Mercadito - CSS v6.4.3
 * Diseño minimalista, elegante y llamativo - Con soporte para galería de variaciones
 */

/* ========================================
   RESET & VARIABLES (usando valores dinámicos de PHP)
======================================== */

/* Variables por defecto - serán sobrescritas por CSS inline */
:root {
    --scm-primary: #2563eb;
    --scm-primary-hover: #1d4ed8;
    --scm-secondary: #64748b;
    --scm-accent: #10b981;
    --scm-danger: #ef4444;
    --scm-bg: #ffffff;
    --scm-bg-secondary: #f8fafc;
    --scm-text: #1e293b;
    --scm-text-muted: #64748b;
    --scm-border: #e2e8f0;
    --scm-radius: 8px;
    --scm-transition: 0.3s;
    --scm-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --scm-shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

/* ========================================
   BOTÓN PRINCIPAL - SOLICITAR COTIZACIÓN
======================================== */

.scm-add-to-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--scm-primary);
    color: #fff;
    border: none;
    border-radius: var(--scm-radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--scm-transition) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: var(--scm-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

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

.scm-add-to-quote-btn:hover {
    background: var(--scm-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--scm-shadow-lg);
    color: #fff;
}

.scm-add-to-quote-btn:hover::before {
    left: 100%;
}

.scm-add-to-quote-btn:active {
    transform: translateY(0);
    box-shadow: var(--scm-shadow);
}

.scm-add-to-quote-btn.scm-loading {
    opacity: 0.8;
    pointer-events: none;
}

/* Ícono del botón - SVG sin estilos aplicados */
.scm-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón en loop de productos */
.scm-loop-btn {
    margin-top: 12px;
    font-size: 13px;
    padding: 10px 18px;
}

/* ========================================
   CONTROL DE CANTIDAD
======================================== */

.scm-quantity-wrapper {
    margin-bottom: 20px;
}

.scm-qty-label-single {
    display: block;
    font-weight: 600;
    color: var(--scm-text);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scm-qty-controls-single {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--scm-border);
    border-radius: var(--scm-radius);
    overflow: hidden;
    background: var(--scm-bg);
}

.scm-qty-controls-single .scm-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--scm-bg-secondary);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--scm-transition);
    color: var(--scm-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scm-qty-controls-single .scm-qty-btn:hover {
    background: var(--scm-primary);
    color: #fff;
}

.scm-qty-controls-single .scm-qty-input-single {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--scm-border);
    border-right: 1px solid var(--scm-border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--scm-text);
    background: var(--scm-bg);
    -moz-appearance: textfield;
}

.scm-qty-controls-single .scm-qty-input-single::-webkit-outer-spin-button,
.scm-qty-controls-single .scm-qty-input-single::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   VARIACIONES - DISEÑO MINIMALISTA
======================================== */

.scm-variations-form {
    margin-bottom: 24px;
}

.scm-variation-row {
    margin-bottom: 20px;
}

.scm-variation-label {
    display: block;
    font-weight: 600;
    color: var(--scm-text);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scm-variation-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--scm-border);
    border-radius: var(--scm-radius);
    font-size: 15px;
    color: var(--scm-text);
    background: var(--scm-bg);
    cursor: pointer;
    transition: all var(--scm-transition);
    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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.scm-variation-select:hover {
    border-color: var(--scm-primary);
}

.scm-variation-select:focus {
    outline: none;
    border-color: var(--scm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ========================================
   CONTADOR FLOTANTE - MINIMALISTA
======================================== */

.scm-floating-counter {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--scm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--scm-shadow-lg);
    z-index: 9999;
    transition: all var(--scm-transition) cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fff;
}

.scm-floating-counter:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.scm-counter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scm-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--scm-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    opacity: 0;
    transform: scale(0);
    transition: all var(--scm-transition) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--scm-bg);
}

.scm-floating-counter.scm-has-items .scm-counter-badge {
    opacity: 1;
    transform: scale(1);
}

/* Animación de rebote */
@keyframes scm-bounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
}

.scm-floating-counter.scm-bounce {
    animation: scm-bounce 0.5s ease;
}

/* ========================================
   MODAL DE CONFIRMACIÓN
======================================== */

.scm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--scm-transition);
}

.scm-modal-overlay.scm-modal-visible {
    opacity: 1;
    visibility: visible;
}

.scm-modal {
    background: var(--scm-bg);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all var(--scm-transition) cubic-bezier(0.4, 0, 0.2, 1);
}

.scm-modal-overlay.scm-modal-visible .scm-modal {
    transform: scale(1) translateY(0);
}

.scm-modal-header {
    padding: 32px 32px 20px;
    text-align: center;
}

.scm-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--scm-accent), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.scm-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--scm-text);
}

.scm-modal-body {
    padding: 0 32px 24px;
    text-align: center;
}

.scm-modal-body p {
    margin: 0;
    color: var(--scm-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.scm-modal-footer {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scm-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--scm-radius);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all var(--scm-transition);
    cursor: pointer;
    border: none;
}

.scm-modal-btn-primary {
    background: var(--scm-primary);
    color: #fff;
}

.scm-modal-btn-primary:hover {
    background: var(--scm-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.scm-modal-btn-secondary {
    background: var(--scm-bg-secondary);
    color: var(--scm-text);
    border: 1px solid var(--scm-border);
}

.scm-modal-btn-secondary:hover {
    background: var(--scm-border);
    color: var(--scm-text);
}

.scm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--scm-text-muted);
    transition: all var(--scm-transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scm-modal-close:hover {
    background: var(--scm-bg-secondary);
    color: var(--scm-text);
}

/* ========================================
   PÁGINA DE COTIZACIÓN
======================================== */

.scm-quote-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Estado vacío */
.scm-empty-quote {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(to bottom, var(--scm-bg-secondary), var(--scm-bg));
    border-radius: 20px;
    border: 2px dashed var(--scm-border);
}

.scm-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--scm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--scm-shadow);
}

.scm-empty-quote h2 {
    margin: 0 0 12px;
    color: var(--scm-text);
    font-size: 24px;
    font-weight: 700;
}

.scm-empty-quote p {
    margin: 0 0 28px;
    color: var(--scm-text-muted);
    font-size: 16px;
}

/* Container principal */
.scm-quote-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 960px) {
    .scm-quote-container {
        grid-template-columns: 1fr;
    }
}

/* Títulos de sección */
.scm-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--scm-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--scm-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.scm-item-count {
    font-weight: 500;
    color: var(--scm-text-muted);
    font-size: 14px;
}

/* Lista de productos */
.scm-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scm-quote-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--scm-bg);
    border: 1px solid var(--scm-border);
    border-radius: 12px;
    transition: all var(--scm-transition);
}

.scm-quote-item:hover {
    box-shadow: var(--scm-shadow);
    border-color: transparent;
}

@media (max-width: 640px) {
    .scm-quote-item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        position: relative;
        padding-right: 50px;
    }
    
    .scm-item-quantity {
        grid-column: 1 / -1;
        justify-self: start;
    }
    
    .scm-item-actions {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

/* Imagen del producto */
.scm-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.scm-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--scm-border);
}

/* Detalles del producto */
.scm-item-details {
    min-width: 0;
}

.scm-item-name {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--scm-text);
    font-weight: 600;
    line-height: 1.4;
}

.scm-item-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scm-variation-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--scm-bg-secondary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--scm-text-muted);
    font-weight: 500;
}

/* Control de cantidad en lista */
.scm-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scm-qty-label {
    font-size: 11px;
    color: var(--scm-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scm-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--scm-border);
    border-radius: var(--scm-radius);
    overflow: hidden;
    background: var(--scm-bg);
}

.scm-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--scm-bg-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--scm-transition);
    color: var(--scm-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scm-qty-btn:hover {
    background: var(--scm-primary);
    color: #fff;
}

.scm-qty-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--scm-border);
    border-right: 1px solid var(--scm-border);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--scm-text);
    background: var(--scm-bg);
}

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

/* Botón eliminar */
.scm-remove-item {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--scm-bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--scm-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--scm-text-muted);
}

.scm-remove-item:hover {
    background: var(--scm-danger);
    color: #fff;
    transform: scale(1.05);
}

.scm-remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Link seguir comprando */
.scm-continue-shopping {
    margin-top: 24px;
}

/* ========================================
   BOTONES GENERALES
======================================== */

.scm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--scm-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--scm-transition);
    cursor: pointer;
    border: none;
}

.scm-btn-primary {
    background: var(--scm-primary);
    color: #fff;
}

.scm-btn-primary:hover {
    background: var(--scm-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.scm-btn-secondary {
    background: var(--scm-bg);
    color: var(--scm-text);
    border: 1px solid var(--scm-border);
}

.scm-btn-secondary:hover {
    background: var(--scm-bg-secondary);
    border-color: var(--scm-text-muted);
    color: var(--scm-text);
}

/* ========================================
   FORMULARIO DE COTIZACIÓN
======================================== */

.scm-quote-form-container {
    background: var(--scm-bg);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--scm-border);
    position: sticky;
    top: 24px;
}

.scm-quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scm-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--scm-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scm-required {
    color: var(--scm-danger);
}

.scm-optional {
    font-weight: 500;
    color: var(--scm-text-muted);
    font-size: 11px;
    text-transform: lowercase;
}

.scm-input {
    padding: 14px 16px;
    border: 2px solid var(--scm-border);
    border-radius: var(--scm-radius);
    font-size: 15px;
    transition: all var(--scm-transition);
    width: 100%;
    box-sizing: border-box;
    color: var(--scm-text);
    background: var(--scm-bg);
}

.scm-input:hover {
    border-color: var(--scm-text-muted);
}

.scm-input:focus {
    outline: none;
    border-color: var(--scm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.scm-input::placeholder {
    color: var(--scm-text-muted);
    opacity: 0.7;
}

.scm-field-hint {
    font-size: 12px;
    color: var(--scm-text-muted);
}

/* Textarea */
.scm-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Input WhatsApp */
.scm-whatsapp-input {
    position: relative;
    display: flex;
    align-items: center;
}

.scm-whatsapp-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    pointer-events: none;
}

.scm-whatsapp-input .scm-input {
    padding-left: 44px;
}

/* Acciones del formulario */
.scm-form-actions {
    margin-top: 8px;
}

.scm-btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--scm-primary), var(--scm-primary-hover));
    color: #fff;
    border: none;
    border-radius: var(--scm-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--scm-transition);
    position: relative;
    overflow: hidden;
}

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

.scm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.scm-btn-submit:hover::before {
    left: 100%;
}

.scm-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scm-btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Spinner */
.scm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scm-spin 0.7s linear infinite;
}

@keyframes scm-spin {
    to { transform: rotate(360deg); }
}

/* Aviso de privacidad */
.scm-form-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--scm-bg-secondary);
    border-radius: var(--scm-radius);
    font-size: 12px;
    color: var(--scm-text-muted);
    line-height: 1.5;
}

.scm-notice-icon {
    flex-shrink: 0;
    color: var(--scm-accent);
}

/* ========================================
   MENSAJES DE FEEDBACK
======================================== */

.scm-message {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: var(--scm-shadow-lg);
    opacity: 0;
    transition: all var(--scm-transition);
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scm-message.scm-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scm-message.scm-message-success {
    background: var(--scm-accent);
    color: #fff;
}

.scm-message.scm-message-error {
    background: var(--scm-danger);
    color: #fff;
}

/* ========================================
   OCULTAR ELEMENTOS DE WOOCOMMERCE
======================================== */

.woocommerce-Price-amount,
.price,
.woocommerce-price,
.product .price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-variation-price,
.woocommerce-variation-availability,
ins .woocommerce-Price-amount,
del .woocommerce-Price-amount,
.price ins,
.price del,
.single-product .price,
.product-price,
.ct-product-price,
.entry-summary .price {
    display: none !important;
    visibility: hidden !important;
}

.woocommerce a.added_to_cart,
.added_to_cart.wc-forward {
    display: none !important;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .scm-floating-counter {
        width: 52px;
        height: 52px;
    }
    
    .scm-counter-icon {
        width: 22px;
        height: 22px;
    }
    
    .scm-modal-footer {
        flex-direction: column;
    }
    
    .scm-quote-page {
        padding: 20px 16px;
    }
    
    .scm-quote-form-container {
        position: static;
        padding: 20px;
    }
    
    .scm-section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scm-add-to-quote-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .scm-modal {
        margin: 16px;
        border-radius: 12px;
    }
    
    .scm-modal-header,
    .scm-modal-body,
    .scm-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .scm-empty-quote {
        padding: 50px 24px;
    }
}

/* ========================================
   ANIMACIONES
======================================== */

@keyframes scm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scm-quote-item {
    animation: scm-fadeIn 0.4s ease;
}

.scm-quote-item.scm-removing {
    opacity: 0;
    transform: translateX(-30px);
    transition: all var(--scm-transition);
}

/* Pulse animation para botón */
@keyframes scm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.scm-floating-counter.scm-has-items {
    animation: scm-pulse 2s infinite;
}

/* ========================================
   DESCRIPCIÓN DE VARIACIÓN
======================================== */

.scm-variation-description {
    display: none;
    margin: 16px 0;
    padding: 0;
}

.scm-variation-description-inner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--scm-primary, #2563eb);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    animation: scm-slideIn 0.3s ease;
}

.scm-variation-description-inner p {
    margin: 0 0 10px 0;
}

.scm-variation-description-inner p:last-child {
    margin-bottom: 0;
}

.scm-variation-description-inner ul,
.scm-variation-description-inner ol {
    margin: 10px 0;
    padding-left: 20px;
}

.scm-variation-description-inner li {
    margin-bottom: 5px;
}

.scm-variation-description-inner strong,
.scm-variation-description-inner b {
    color: #334155;
    font-weight: 600;
}

.scm-variation-description-inner a {
    color: var(--scm-primary, #2563eb);
    text-decoration: none;
}

.scm-variation-description-inner a:hover {
    text-decoration: underline;
}

@keyframes scm-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scm-variation-description-inner {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ========================================
   ADVERTENCIA DE SELECCIÓN DE VARIACIÓN
======================================== */

/* Efecto de advertencia en selectores de variación */
.scm-select-warning,
select.scm-select-warning,
.variations select.scm-select-warning,
table.variations select.scm-select-warning {
    border-color: var(--scm-danger, #ef4444) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 0 8px rgba(239, 68, 68, 0.3) !important;
    animation: scm-shake 0.5s ease-in-out !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

/* Animación de shake para llamar la atención */
@keyframes scm-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

/* Estilos adicionales para mejorar visibilidad del mensaje */
.scm-message-error {
    background: linear-gradient(135deg, var(--scm-danger, #ef4444), #dc2626) !important;
}

/* ========================================
   GALERÍA DE VARIACIONES
======================================== */

/* Contenedor de thumbnails creado por SCM */
.scm-variation-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 0;
    justify-content: flex-start;
    align-items: center;
}

/* Estilos específicos para contenedor SCM en Blocksy */
.scm-blocksy-thumbnails {
    margin-top: 15px;
    padding: 10px 0;
}

/* Thumbnails de galería SCM */
.scm-gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--scm-border, #e2e8f0);
    transition: all 0.2s ease;
    background-color: var(--scm-bg-secondary, #f8fafc);
    flex-shrink: 0;
}

.scm-gallery-thumb:hover {
    border-color: var(--scm-primary, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scm-gallery-thumb.scm-thumb-active,
.scm-gallery-thumb.active,
.scm-gallery-thumb.flex-active {
    border-color: var(--scm-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.scm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Estilos para FlexSlider thumbnails modificados por SCM */
/* Solo aplica dentro del contenedor propio de SCM */
.scm-variation-thumbnails .scm-gallery-thumb {
    list-style: none;
}

/* Responsive para galería */
@media screen and (max-width: 768px) {
    .scm-variation-thumbnails {
        gap: 8px;
    }
    
    .scm-gallery-thumb {
        width: 55px;
        height: 55px;
    }
}

/* Transición suave para cambio de galería */
.woocommerce-product-gallery__wrapper,
.ct-product-gallery-container,
.product-gallery,
.flexy-container {
    transition: opacity 0.2s ease;
}

/* Indicador de carga en galería */
.scm-gallery-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Los thumbnails nativos de WooCommerce/Blocksy mantienen su estilo por defecto */

/* ========================================
   AVISO DE CORREO SPAM
======================================== */

.scm-spam-notice {
    max-width: 800px;
    margin: 24px auto;
    padding: 0 16px;
}

.scm-spam-notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: var(--scm-radius, 12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.scm-spam-notice-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1.4;
}

.scm-spam-notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #92400e;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .scm-spam-notice-inner {
        padding: 16px 18px;
        gap: 10px;
    }

    .scm-spam-notice-text {
        font-size: 13px;
    }
}
