/* ============================================
   PRODUCT PAGE TABS - MOBILE ONLY
   ============================================ */

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .mobile-tabs-section {
        background: white;
        margin-top: 12px;
        padding: 16px 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-tabs-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px 12px 16px;
    }

    .mobile-tabs-title {
        font-size: 18px;
        font-weight: 500;
        color: #212121;
        margin: 0;
    }

    .mobile-tabs-toggle {
        background: #f0f0f0;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #878787;
        font-size: 12px;
    }

    .mobile-tabs-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 16px 16px 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-tab-btn {
        padding: 6px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background: white;
        color: #212121;
        font-size: 14px;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 400;
    }

    .mobile-tab-btn.active {
        background: #212121;
        color: white;
        border-color: #212121;
        font-weight: 500;
    }

    /* .mobile-tabs-content {
        padding: 0 16px;
    } */

    .mobile-tab-content {
        display: none;
    }

    .mobile-tab-content.active {
        display: block;
    }

    /* Content Truncation */
    .truncated-content {
        position: relative;
        max-height: 250px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .truncated-content.expanded {
        max-height: none;
    }

    .truncated-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .truncated-content.expanded::after {
        opacity: 0;
    }

    /* Show More Button */
    .show-more-btn-wrapper {
        display: flex;
        justify-content: center;
        padding: 12px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
    }

    .show-more-btn {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        color: #212121;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        width: 100%;
        max-width: 280px;
        margin: 12px auto;
        justify-content: center;
    }

    .show-more-btn i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .show-more-btn.expanded i {
        transform: rotate(180deg);
    }

    /* Hide original sections on mobile when tabs are active */
    .tabs-active .product-details-grid,
    .tabs-active #productDescriptionSection,
    .tabs-active #specificationsDetailSection {
        display: none !important;
    }

    /* Hide section titles inside tabs for cleaner Flipkart look */
    .mobile-tab-content .specifications-header,
    .mobile-tab-content .product-description-title {
        display: none !important;
    }
}