/*
 * Megazone Hub – Elite Technical Sheet & Product Tabs
 * Diseño de élite: glassmorphism, gradientes premium, animaciones micro
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   PRODUCT TABS — Estilo de élite con píldoras y gradiente activo
   ========================================================================== */

.woocommerce-tabs .wd-nav-tabs,
.woocommerce-tabs .wd-nav {
    display: flex;
    gap: 6px;
    border-bottom: none !important;
    padding-bottom: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-tabs .wd-nav-tabs > li,
.woocommerce-tabs .wd-nav > li {
    margin: 0 !important;
}

.woocommerce-tabs .wd-nav-tabs > li > a,
.woocommerce-tabs .wd-nav > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 16px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 30px !important;
    color: #64748b !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-tabs .wd-nav-tabs > li > a:hover,
.woocommerce-tabs .wd-nav > li > a:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.woocommerce-tabs .wd-nav-tabs > li.active > a,
.woocommerce-tabs .wd-nav > li.active > a {
    background: linear-gradient(135deg, #ef4444, #b31921) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(179, 25, 33, 0.35) !important;
    transform: translateY(-1px) !important;
}

.woocommerce-tabs .wd-nav-tabs > li > a::after,
.woocommerce-tabs .wd-nav > li > a::after {
    display: none !important;
}

/* ==========================================================================
   FICHA TÉCNICA — Diseño de Élite Premium
   ========================================================================== */

/* Wrapper global */
.syscom-specs-container {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    margin-top: 4px;
}

/* ─── Sección (grupo de especificaciones) ─── */
.syscom-spec-section {
    margin-bottom: 22px;
    position: relative;
}

/* Título de sección con chip de color y línea lateral */
.syscom-spec-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #b31921;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px 0;
    padding: 4px 0;
    position: relative;
}

.syscom-spec-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ef4444, #b31921);
    border-radius: 2px;
    flex-shrink: 0;
}

.syscom-spec-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0 0%, transparent 80%);
    display: none;
}

/* ─── Grid de especificaciones ─── */
.syscom-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 1200px) {
    .syscom-spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .syscom-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .syscom-spec-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Tarjeta de spec individual ─── */
.syscom-spec-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 9px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Acento de color superior — línea de 2px en el borde top */
.syscom-spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #f1f5f9);
    transition: background 0.25s ease;
}

/* Hover: eleva la tarjeta y activa el acento de color */
.syscom-spec-item:hover {
    border-color: #fee2e2;
    box-shadow: 0 8px 24px rgba(179, 25, 33, 0.09), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.syscom-spec-item:hover::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ─── Etiqueta (clave) ─── */
.syscom-spec-key {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.2;
}

/* ─── Valor ─── */
.syscom-spec-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
}

/* Valores booleanos: resaltados como badges */
.syscom-spec-value[data-bool="yes"] {
    color: #16a34a;
}
.syscom-spec-value[data-bool="no"] {
    color: #94a3b8;
    font-weight: 500;
}

/* ─── Separador entre secciones ─── */
.syscom-spec-section + .syscom-spec-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

/* ─── Animación de entrada ─── */
@keyframes fadeInSpec {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.syscom-spec-section {
    animation: fadeInSpec 0.35s ease both;
}

.syscom-spec-section:nth-child(2) { animation-delay: 0.04s; }
.syscom-spec-section:nth-child(3) { animation-delay: 0.08s; }
.syscom-spec-section:nth-child(4) { animation-delay: 0.12s; }
.syscom-spec-section:nth-child(5) { animation-delay: 0.16s; }
.syscom-spec-section:nth-child(6) { animation-delay: 0.20s; }
.syscom-spec-section:nth-child(7) { animation-delay: 0.24s; }
.syscom-spec-section:nth-child(8) { animation-delay: 0.28s; }

.syscom-spec-item {
    animation: fadeInSpec 0.3s ease both;
}

/* Stagger dentro del grid */
.syscom-spec-item:nth-child(2)  { animation-delay: 0.03s; }
.syscom-spec-item:nth-child(3)  { animation-delay: 0.06s; }
.syscom-spec-item:nth-child(4)  { animation-delay: 0.09s; }
.syscom-spec-item:nth-child(5)  { animation-delay: 0.12s; }
.syscom-spec-item:nth-child(6)  { animation-delay: 0.15s; }

/* ==========================================================================
   Sidebar Specification Table (woodmart_single_product_additional_info_table)
   ========================================================================== */

.wd-single-attrs .wd-el-title.element-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.wd-single-attrs table.woocommerce-product-attributes {
    width: 100% !important;
    border-collapse: collapse !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
    border: none !important;
}

.wd-single-attrs .woocommerce-product-attributes-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 10px !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #f8fafc !important;
    transition: background 0.15s ease !important;
}

.wd-single-attrs .woocommerce-product-attributes-item:last-child {
    border-bottom: none !important;
}

.wd-single-attrs .woocommerce-product-attributes-item__label {
    flex: 0 0 auto !important;
    width: 45% !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.wd-single-attrs .wd-attr-name-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wd-single-attrs .woocommerce-product-attributes-item__value {
    flex: 1 !important;
    text-align: right !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.wd-single-attrs .woocommerce-product-attributes-item__value p,
.wd-single-attrs .wd-attr-term {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Outfit', sans-serif !important;
}

.wd-single-attrs .title-icon {
    display: none !important;
}
