﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.orange-header {
    background: linear-gradient(135deg, #ff9500, #ffb347);
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.green-header {
    background: #1F960E;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.blue-header {
    background: #27aae0;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.accordion {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background: #f8f8f8;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
    font-weight: bold;
    font-size: 16px;
}

    .accordion-header:hover {
        background: #f0f0f0;
    }

    .accordion-header.active {
        background: #e8e8e8;
    }

.accordion-toggle {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    background: white;
}

    .accordion-content.active {
        display: block;
    }

.product-header {
    background-color: #666;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.product-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

    .product-section img {
        width: 100%;
        display: block;
        margin: 0;
    }

.main-product-area {
    flex: 1;
}

.thumbnail-area {
    position: relative;
    width: 200px;
    min-height: 400px;
}

    .thumbnail-area > div {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 10px;
        gap: 10px;
    }

.thumbnail {
    cursor: pointer;
}

    .thumbnail img {
        width: 100%;
        border: 3px solid transparent;
        border-radius: 8px;
        transition: all .2s ease-in-out;
        box-sizing: border-box;
        display: block;
    }

    .thumbnail:hover img,
    .thumbnail.active img {
        border-color: #ff9500;
    }

.tabs-container {
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f0f0f0;
}

.tab {
    background: #ff9500;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    border-right: 1px solid #e68900;
    position: relative;
}

    .tab:hover {
        background: #e68900;
    }

    .tab.active {
        background: white;
        color: black;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 1;
    }

        .tab.active::before {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 1px;
            background: white;
            z-index: 2;
        }

.tab-content {
    padding: 30px;
    background: white;
    min-height: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.content-panel {
    display: none;
}

    .content-panel.active {
        display: block;
    }

.content-title {
    color: #666;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-text {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.direction-controls {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.direction-btn {
    background: rgba(255, 149, 0, 0.8);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.rtl {
    direction: rtl;
    text-align: right;
}

    .rtl .content-title {
        text-align: right;
    }

    .rtl .content-text {
        text-align: right;
    }

    .rtl .direction-controls {
        right: auto;
        left: 20px;
    }

.ltr {
    direction: ltr;
    text-align: left;
}

    .ltr .content-title {
        text-align: left;
    }

    .ltr .content-text {
        text-align: left;
    }

.rtl {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

    .rtl .tabs {
        flex-direction: row-reverse;
    }

    .rtl .tab {
        border-right: none;
        border-left: 1px solid #e68900;
    }

        .rtl .tab.active {
            background: white;
            color: black;
            font-weight: bold;
        }

@media (max-width: 768px) {
    .product-section {
        display: block;
    }

    .thumbnail-area {
        width: 100%;
        min-height: auto;
    }

        .thumbnail-area > div {
            position: relative;
            flex-direction: row;
            overflow-y: hidden;
            overflow-x: auto;
            padding-bottom: 0;
        }

    .thumbnail {
        width: 25%;
        flex: none;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        border-right: none;
        border-bottom: 1px solid #e68900;
    }

        .tab.active::before {
            bottom: -1px;
            height: 1px;
        }

    .rtl .tabs {
        flex-direction: column;
    }

    .rtl .tab {
        border-left: none;
        border-bottom: 1px solid #e68900;
    }
}
