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

body {
    font-family: Arial, sans-serif;
    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 Styles */
.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 {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.main-product-area {
    flex: 1;
    background-size: cover;
    min-height: 400px;
    border-radius: 8px;
    position: relative;
}

.thumbnail-area {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 150px;
    background-size: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    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 Support */
.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 Support */
.ltr {
    direction: ltr;
    text-align: left;
}

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

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

/* Arabic/RTL friendly fonts */
.rtl {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Adjust tabs for RTL */
.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 {
        flex-direction: column;
    }

    .thumbnail-area {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail {
        min-width: 150px;
    }

    .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;
    }
}
