/* custom-product-tabs.css */

/* WooCommerce ürün sayfası bağlamında daha spesifik seçiciler kullanarak çakışmaları önleyin */

.woocommerce .custom-product-tabs-wrapper,
.single-product .custom-product-tabs-wrapper {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.woocommerce .custom-product-tabs-nav,
.single-product .custom-product-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Tabs side by side */
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
}

.woocommerce .custom-product-tabs-nav li,
.single-product .custom-product-tabs-nav li {
    flex: 1; /* Equal width tabs */
    text-align: center;
    border-right: 1px solid #eee;
}

.woocommerce .custom-product-tabs-nav li:last-child,
.single-product .custom-product-tabs-nav li:last-child {
    border-right: none;
}

.woocommerce .custom-product-tabs-nav li a,
.single-product .custom-product-tabs-nav li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.woocommerce .custom-product-tabs-nav li a:hover,
.single-product .custom-product-tabs-nav li a:hover {
    background-color: #eee;
}

.woocommerce .custom-product-tabs-nav li.active,
.single-product .custom-product-tabs-nav li.active {
    background-color: #fff;
    border-bottom: 2px solid #0073aa; /* Active tab indicator */
}

.woocommerce .custom-product-tabs-nav li.active a,
.single-product .custom-product-tabs-nav li.active a {
    color: #0073aa;
}

.woocommerce .custom-product-tabs-content,
.single-product .custom-product-tabs-content {
    padding: 20px;
}

.woocommerce .tab-content,
.single-product .tab-content {
    display: none;
}

.woocommerce .tab-content.active,
.single-product .tab-content.active {
    display: block;
}

.woocommerce .tab-content ul,
.single-product .tab-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .tab-content li,
.single-product .tab-content li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woocommerce .tab-content li:last-child,
.single-product .tab-content li:last-child {
    border-bottom: none;
}

.woocommerce .show-pdf-button,
.single-product .show-pdf-button {
    background-color: #0073aa;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

.woocommerce .show-pdf-button:hover,
.single-product .show-pdf-button:hover {
    background-color: #005177;
}

/* --- Responsive CSS --- */

@media (max-width: 768px) {
    .woocommerce .custom-product-tabs-nav,
    .single-product .custom-product-tabs-nav {
        flex-direction: column; /* Stack tabs vertically on smaller screens */
    }

    .woocommerce .custom-product-tabs-nav li,
    .single-product .custom-product-tabs-nav li {
        border-right: none; /* Remove vertical border */
        border-bottom: 1px solid #eee; /* Add horizontal border for separation */
        flex: none; /* Remove equal width distribution */
        width: 100%; /* Make tabs full width */
    }

    .woocommerce .custom-product-tabs-nav li:last-child,
    .single-product .custom-product-tabs-nav li:last-child {
        border-bottom: none; /* No border for the last tab */
    }

    .woocommerce .custom-product-tabs-nav li a,
    .single-product .custom-product-tabs-nav li a {
        padding: 12px 15px; /* Adjust padding for smaller screens */
        font-size: 0.95em; /* Slightly reduce font size */
    }

    .woocommerce .custom-product-tabs-nav li.active,
    .single-product .custom-product-tabs-nav li.active {
        border-bottom: none; /* Remove bottom border */
        border-left: 3px solid #0073aa; /* Active indicator on the left for vertical tabs */
        background-color: #fff;
    }

    .woocommerce .tab-content,
    .single-product .tab-content {
        padding: 15px; /* Adjust content padding */
    }

    .woocommerce .tab-content li,
    .single-product .tab-content li {
        flex-direction: column; /* Stack items vertically within tab content */
        align-items: flex-start; /* Align items to the start */
        padding: 8px 0;
    }

    .woocommerce .show-pdf-button,
    .single-product .show-pdf-button {
        margin-top: 10px; /* Add some space above the button when stacked */
        width: 100%; /* Make button full width */
        text-align: center;
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }
}

@media (max-width: 480px) {
    .woocommerce .custom-product-tabs-wrapper,
    .single-product .custom-product-tabs-wrapper {
        margin-top: 20px;
    }

    .woocommerce .custom-product-tabs-content,
    .single-product .custom-product-tabs-content {
        padding: 10px;
    }

    .woocommerce .tab-content li,
    .single-product .tab-content li {
        font-size: 0.9em; /* Further reduce font size for very small screens */
    }

    .woocommerce .show-pdf-button,
    .single-product .show-pdf-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}