/* ============================================
   SEO PRODUCT TABS - ACCORDION STYLES v1.1
   ============================================ */

/* Скриваме стандартните WooCommerce табове и правим свои */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 30px !important;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #e8eaed;
}

/* Табовете - хоризонтални */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    list-style: none !important;
    border-bottom: 2px solid #e8eaed;
    padding-bottom: 15px;
    overflow: visible !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

/* Стил за всеки таб */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    flex: 1 1 auto;
    min-width: 140px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
    float: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

/* Линк в таба */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #5f6368 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease;
    min-height: 70px;
    position: relative;
}

/* Ховър ефект */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%) !important;
    color: #1a73e8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

/* АКТИВЕН ТАБ */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: transparent !important;
    border: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
    color: #ffffff !important;
    border-color: #1a73e8 !important;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

/* Съдържание на табовете - СКРИТО по подразбиране */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    display: none;
    background: #fafbfc;
    border-radius: 12px;
    padding: 25px;
    margin: 0 !important;
    border: 1px solid #e8eaed;
}

/* Когато панелът е отворен */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel.spt-panel-open {
    display: block;
    animation: sptFadeIn 0.3s ease;
}

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

/* ============================================
   SPT COMPONENTS
   ============================================ */

.spt-tab-content h2 {
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spt-tab-content p {
    color: #5f6368;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.spt-price-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 3px solid #4caf50;
}

.spt-price-box h3 {
    margin: 0 0 8px 0;
    color: #2e7d32;
    font-size: 18px;
}

.spt-price-box p {
    margin: 0;
    color: #1b5e20;
    font-size: 14px;
}

.spt-steps {
    display: grid;
    gap: 10px;
    margin: 15px 0;
}

.spt-step {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.spt-step-number {
    background: #1a73e8;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.spt-step p {
    margin: 0;
    color: #424242;
    font-size: 14px;
}

.spt-warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.spt-warranty-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.spt-warranty-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.spt-warranty-blue h3 { color: #1565c0; font-size: 15px; margin: 0 0 5px 0; }
.spt-warranty-blue p { color: #0d47a1; font-size: 13px; margin: 0; }

.spt-warranty-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.spt-warranty-purple h3 { color: #7b1fa2; font-size: 15px; margin: 0 0 5px 0; }
.spt-warranty-purple p { color: #4a148c; font-size: 13px; margin: 0; }

.spt-warranty-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.spt-warranty-green h3 { color: #2e7d32; font-size: 15px; margin: 0 0 5px 0; }
.spt-warranty-green p { color: #1b5e20; font-size: 13px; margin: 0; }

.spt-warranty-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.spt-return-process {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e8eaed;
}

.spt-return-process h3 {
    color: #d32f2f;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.spt-return-process ol {
    line-height: 1.8;
    color: #424242;
    padding-left: 20px;
    margin: 0;
    font-size: 14px;
}

.spt-return-process li {
    margin-bottom: 8px;
}

.spt-info-box {
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 14px;
}

.spt-info-warning {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
}

.spt-info-warning p {
    margin: 0;
    color: #e65100;
}

.spt-warning-box {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 14px;
}

.spt-warning-box p {
    margin: 0;
    color: #c62828;
}

.spt-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.spt-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.spt-cta-primary {
    background: linear-gradient(135deg, #34a853 0%, #2e7d32 100%);
    color: white;
}

.spt-cta-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

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

@media screen and (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs {
        padding: 15px;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        min-width: calc(50% - 3px);
        flex: 0 0 calc(50% - 3px);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 12px 15px !important;
        font-size: 13px !important;
        min-height: 60px;
    }
    
    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 20px;
    }
    
    .spt-tab-content h2 {
        font-size: 18px;
    }
    
    .spt-warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .woocommerce div.product .woocommerce-tabs {
        padding: 12px;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 14px 18px !important;
        min-height: auto !important;
        font-size: 14px !important;
    }
    
    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 18px;
    }
    
    .spt-warranty-grid {
        grid-template-columns: 1fr;
    }
    
    .spt-warranty-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    
    .spt-warranty-icon {
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .spt-cta-button {
        width: 100%;
        justify-content: center;
    }
}