.product-detail-section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail-container {
    display: flex;
    gap: 20px;
    max-width: 1160px;
    padding: 20px;
    width: 100%;
    background-color: var(--product-detail--container--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.product-image-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.main-product-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    max-width: 500px;
}

.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: border-color 0.3s;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-info h1 {
    font-size: 2em;
    color: var(--product-detail--text-content--title);
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

 
.original-price-line-through {
    text-decoration: line-through;
    color: var(--product-detail--text-content--original-price-line-through);
    font-size: 1.2em;
}

.original-price {
    color: var(--product-detail--text-content--original-price);
    font-size: 1.5em;
    font-weight: bold;
}

.discounted-price {
    color: var(--product-detail--text-content--discounted-price);
    font-size: 1.5em;
    font-weight: bold;
}

.discount-badge {
    background-color: var(--product-detail--text-content--discount-badge);
    color: var(--product-detail--text-content--discount-badge-text);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1em;
}

.stock-status {
    color: var(--product-detail--text-content--stock-status);
    font-weight: bold;
    margin-bottom: 20px;
}

.purchase-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}


.buy-button {
    padding: 10px 20px;
    background-color: var(--product-detail--text-content--buy-button);
    color: var(--product-detail--text-content--buy-button-text);;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.buy-button:hover {
    background-color: var(--high-contrast-button-color--hover);
}

.product-meta {
    color: var(--product-detail--text-content--meta);
    margin-bottom: 20px;
}

#categories-section a {
    font-size: 1.1em;
    text-decoration: none;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

#social-share-clipboard {
    cursor: pointer;
}

.product-description-tabs {
    width: 100%;
    max-width: 1160px;
    background-color: var(--product-detail--description-tabs-background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.tab-list {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.tab-list li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--product-detail--description-tabs-title);
    transition: color 0.3s;
}

.tab-list li.active {
    color: var(--product-detail--description-tabs-title-active);
    border-bottom: 2px solid #333;
    cursor: default;
}

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

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


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--product-detail--img-expanded--caption);
    padding: 10px 0;
    font-size: 30px;
}

.modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--product-detail--img-expanded--close);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--product-detail--img-expanded--close-hover);
    text-decoration: none;
    cursor: pointer;
}


.thumbnail-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.thumbnail-gallery {
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.thumbnail-track {
    display: flex;
    transition: transform 0.3s ease;
}

.thumbnail-track img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    margin-right: 10px;
    transition: border-color 0.3s;
}

.thumbnail-track img:hover {
    border-color: #333;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--product-detail--img--carousel-arrow);
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

#faq-title {
    color: var(--faq--title--color);
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        margin-bottom: 20px;
    }

    .product-image-gallery {
        max-width: 100%;
    }

    .product-info h1 {
        font-size: 1.8em;
        text-align: center;
    }

    .product-info {
        align-items: center;
        text-align: center;
    }

    .product-price {
        justify-content: center;
    }

    .purchase-actions {
        justify-content: center;
        gap: 10px;
    }

    .product-meta, .social-share {
        justify-content: center;
        text-align: center;
    }

    .social-share img {
        margin-bottom: 10px;
    }

    .product-description-tabs {
        padding: 10px;
    }

    .tab-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .tab-list li {
        padding: 10px;
        font-size: 1em;
    }

    .tab-content {
        padding: 10px;
    }

    .tab-content .tab-pane h2 {
        font-size: 1.5em;
    }

    .tab-content .tab-pane p {
        font-size: 1em;
    }
    #caption {
        font-size: 20px;
    }
}