/* General layout for the product main area */
html, body {
    margin: 0;
    padding: 0;
    background-color: #000 !important;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
    flex: 1 0 auto;
    min-height: calc(100vh - 180px);
    background-color: #000 !important;
}

footer {
    margin-top: auto;
    padding-top: 40px;
}

.product-main-area {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 8vw, 80px);
    padding: clamp(20px, 6vw, 60px);
    max-width: 1200px;
    margin: 0 auto 20px;
    background-color: #000;
    color: #fff;
}

/* Left side: Product image */
.product-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Remove nav arrows */
.nav {
    display: none;
}

.thumbnail-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-preview img {
    width: 60px;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.3s, border-color 0.3s;
}

.thumbnail-preview img.active {
    opacity: 1;
    border-color: black;
}

/* Right side: Product details */
.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details .tee-features {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    color: #fff;
}

.product-details .tee-features li {
    margin: 4px 0;
    color: #fff;
    position: relative;
    padding-left: 18px;
}

.product-details .tee-features li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #fff;
}

.product-title {
    font-family: 'Fjalla One', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 5px;
}

.product-price {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(50px, 10vw, 80px);
    color: #fff;
}

.selectors {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: clamp(360px, 40vw, 500px);
}

.selectors label {
    margin-right: 10px;
    font-size: 1rem;
    color: #fff;
    flex: 0 0 auto;
}

.selectors select {
    flex: 1;
    padding: 0;
    font-size: 1rem;
    margin-right: 10px;
    height: 30px;
    min-width: 100px;
}

.selectors input {
    flex: 0 0 60px;
    padding: 0;
    font-size: 1rem;
    margin-right: 10px;
    height: 30px;
    width: 30px;
}

.add-to-cart {
    padding: 10px 20px;
    font-family: "Fjalla One", sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.2rem);
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    width: clamp(350px, 40vw, 500px);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #005eb8;
}

@media (max-width: 900px) {
    .product-main-area {
        gap: clamp(20px, 8vw, 40px);
        padding: clamp(20px, 8vw, 60px);
    }
}

@media (max-width: 700px) {
    .product-main-area {
        flex-direction: column;
        padding: clamp(20px, 10vw, 60px);
        gap: 5px;
    }

    .product-image-container {
        margin-bottom: 30px;
        text-align: center;
    }

    .product-image {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .product-details {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }

    .product-details .product-title {
        text-align: left;
        width: 100%;
        margin: 0 auto 20px;
    }

    .selectors,
    .add-to-cart {
        margin-top: 10px;
    }
}
