﻿.sales-background {
    background-color: #fcfaf7;
    width: 100%;
    height: 100%;
}
/* =========================
   DESKTOP LAYOUT
========================= */

/* lewa połowa */
.images-section {
    height: auto;
    padding-left: 0;
    top: 0;
}

/* kolumna zdjęć */
.images-wrapper {
    display: flex;
    flex-direction: column;
}

.images-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2px;
    object-fit: contain;
}

/* prawa połowa */
.product-section {
    max-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    position: sticky;
    top: 0;
    flex-direction: column;
    transition: max-height 0.8s ease;
    color: black;
}

.show-order {
    position: relative;
    max-height: 240vh;
}

.product-content {
    max-width: 560px;
    padding: 20px 40px;
}

.order-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.order-content-show {
    max-height: 240vh;
}


/* ======================
   TYPOGRAPHY
====================== */

.product-title {
    font-weight: 400;
    font-size: clamp(0.8em, 1.3em, 1.5em);
    margin-bottom: 5px;
}

.price {
    color: #6b6b6b;
    font-size: clamp(0.7em, 1em, 1.3em);
    margin-bottom: 25px;
}

/* ======================
   TABS
====================== */

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: clamp(0.7em, 0.9em, 1.1em);
}

.tabs a {
    text-decoration: none;
    color: #222;
    padding-bottom: 6px;
    cursor: pointer;
}

.tabs a.active {
    border-bottom: 1px solid #222;
}

/* ======================
   DESCRIPTION
====================== */

.description {
    font-size: clamp(0.5em, 0.8em, 1.3em);
}

/* ======================
   OPTIONS
====================== */

.option {
    margin-bottom: 20px;
}

.label {
    display: inline-block;
    width: 80px;
    color: #6b6b6b;
}

/* COLOR */

.colors {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.color-box {
    width: 18px;
    height: 18px;
    background: #f2efde;
    cursor: pointer;
}

.color-name {
    margin-left: 10px;
}

/* ======================
   SIZE
====================== */

.sizes {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.sizes span {
    cursor: pointer;
    font-size: clamp(0.7em, 1em, 1.5em);
}

.sizes span.active {
    font-weight: 600;
}

.sizes span.disabled {
    color: #aaa;
}

.size-guide {
    margin-left: 20px;
    color: #6b6b6b;
    text-decoration: none;
}

/* ======================
   BUTTON
====================== */

.add-to-bag {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    background: transparent;
    border: 1px solid #1a1a1a;
    cursor: pointer;
    transition: 0.25s;
}

.add-to-bag:hover {
    background: #1a1a1a;
    color: white;
}

/* =========================
   MOBILE LAYOUT
========================= */

@media (max-width: 991px) {

    .sales-background {
        overflow: auto;
    }
    
    /* zdjęcia nad opisem */
    .images-section {
        position: relative;
        height: auto;
        overflow: hidden;
    }

    /* poziomy slider */
    .images-wrapper {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px;
    }

    .images-wrapper img {
        min-width: 85%;
        scroll-snap-align: center;
        border-radius: 8px;
    }

    /* mały suwak */
    .images-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .images-wrapper::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .images-wrapper::-webkit-scrollbar-track {
        background: #eee;
    }

    .product-section {
        padding: 30px 20px;
    }
}

@media (max-height: 710px) {
    .product-section {
        position: relative;
    }
}

@media (min-width: 559px) {
    .descriptions-container {
        width: 460px;
    }
}

@media (max-width: 370px) {
    .tabs {
        gap: 5px;
        flex-direction: column;
    }

    .tabs a.active {
        border-bottom: 0 solid #222;
        text-decoration: underline;
    }

}