/* *{
    background-color: #e6e6e6;
} */

.header-main{
    margin-top: 0;
}

.carousel-wrapper {
    position: relative;  /* For positioning the buttons relative to this wrapper */
    width: 100%;
    display: flex; 
    align-items: center;
    margin: 20px auto; 
    /* justify-content: space-between; */
    padding: 0 15px;
}
  
.top-carousel {
    position: relative;
    overflow: hidden;
    width: 100%; /* Adjust as needed for four images */
    max-width: 1200px;
    margin: 0 auto;
}
  
.top-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: fit-content;
}
  
.top {
    flex: 0 0 auto;
    width: calc(100% / 3);
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}
  
.top img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px; /* Adjust as needed */
}

@media screen and (max-width: 768px) {
    .top{
        width: calc(100% / 1.5);
    }
}

@media screen and (max-width: 500px) {
    .top{
        width: 100%;
    }
}
  
.prev-button,
.next-button {
    /* background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    z-index: 10; */

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}
  
.prev-button:hover,
.next-button:hover {
    opacity: 1;
}
  
/* Adjust positioning to be outside the carousel */
.prev-button {
    left: 10px;
}
  
.next-button {
    right: 10px;
}

@media screen and (max-width: 500px) {
    .prev-button{
        left: 0;
    }

    .next-button{
        right: 0;
    }
}
  
.top-carousel {
    order: 2; /* Place the carousel in the middle of the flex layout */
}

.sweats{
    text-align: center;
    margin: 20px;
    flex: 0 0 auto;
    width: 50%;
    /* flex-basis: calc(50% - 40px); */
    box-sizing: border-box;
}

.sweats img{
    width: 50%;
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .sweats{
        width: 100%;
    }
}

.sweatshirt{
    text-align: center;
    margin: 20px;
    flex: 0 0 auto;
    width: calc(100% / 3);
    box-sizing: border-box;
}

.sweatshirt img{
    width: 80%;
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .sweatshirt{
        width: calc(100% / 2);
    }
}

#all-clothes-grid {
    background: transparent;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 40px;
    width: 95%;
    margin: 0 auto;
}

@media only screen and (max-width: 768px){
    #all-clothes-grid{
        grid-template-columns: repeat(2, 1fr);
        flex-direction: column;
        gap: 12px;
    }

    #all-clothes-grid .grid-cell{
        min-width: 100%;
    }

    .filter-and-sort{
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
}

#all-clothes-grid .grid-cell {
    background: transparent;
    /* border: 1px solid blue; */
    /* box-shadow: 3px 0px 8px #282828; */
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    position: relative;
}

#all-clothes-grid .grid-item {
    background: transparent;
    border-radius: 10px;
    /* padding: 20px; */
    text-align: center;
}

#all-clothes-grid .grid-label {
    background: transparent;
    margin-top: 8px;
    color: white;
    font-size: 1rem;
    text-align: center;
}

#all-clothes-newsletter {
    background-color: black;
    text-align: center;
    padding: 30px 15px; /* Add horizontal padding */
}

.cell-icon{
    position: absolute;
    top: 10px;
    right: 5%;
    z-index: 2;
    background: transparent;
    width: 7%;
}

.cell-icon img{
    width: 100%;
    /* border: 1px solid #e6e6e6; */
    border: transparent;
    border-radius: 7px;
    box-shadow: 0px 0px 10px #282828;
    height: auto;
    background: transparent;
    cursor: pointer;
}

.banner{
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
    display: inline-block;
}

.banner img{
    width: 100%;
}

.banner h1 {
    position: absolute;
    top: 50%;              /* Center vertically */
    left: 1%;             /* Center horizontally */
    transform: translateY(-50%);
    color: #e6e6e6;           /* White text */
    background: rgba(0,0,0,0.4); /* Optional: semi-transparent background */
    padding: 10px 20px;    /* Optional: padding for readability */
    border-radius: 8px;    /* Optional: rounded corners */
    font-size: 2.5rem;     /* Adjust as needed */
    text-align: center;
    z-index: 2;
}


/* .filter-and-sort{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 0;
} */

.filter-and-sort{
    display: flex;
    justify-content: space-between;
    padding: 0 2.5%;
}

.filter, .sort{
    position: relative;
    display: inline-block;
}

.filter-button, .sort-button{
    background-color: transparent;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.filter-content, .sort-content{
    display: none;
    position: absolute;
    background-color: #313131;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.sort-content {
    right: 0;
    z-index: 3;
}

.filter-content a, .sort-content a{
    color: #fada5e;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.filter-content a:hover, .sort-content a:hover{
    color: #e6e6e6;
}

.filter:hover .filter-content, .sort:hover .sort-content{
    display: block;
}

.product-images{
    display: flex;
}

.thumbnails{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.product-container {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    color: white;
    justify-content: center;
    align-items: center;
}

.image-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-display-container {
    position: relative;
    width: 100%;
}

#main-product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    /* In case images don't center */
    /* margin-left: 27%;
    margin-right: 27%; */
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-display-container:hover .image-nav-btn {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

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

.product-details {
    flex: 1;
    flex-direction: row;
    gap: 10px;
    padding-left: 20px;
}

#product-price {
    font-size: 1.5em;
    margin: 20px 0;
}

.add-to-cart-btn, .size-option-btn {
    padding: 15px 30px;
    font-size: 1em;
    cursor: pointer;
    background-color: #ffffff;
    color: #000;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #fada5e;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-details {
        padding-left: 0;
        margin-top: 20px;
    }
}

.size-options{
    margin-top: 20px;
}

.size-option-btn {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.size-option-btn.active, .size-option-btn:hover {
    background-color: #fada5e;
    color: #000000;
    border: 1px solid transparent;
}

.color-swatches-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-swatch {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
    display: inline-flex;
    transition: border-color 0.3s ease;
    margin-top: 20px;
}

.color-swatch.active {
    border-color: #fada5e;
}

.color-swatch svg {
    display: block;
    border-radius: 50%;
}

#selected-color-name {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1em;
    min-height: 1.2em; /* Prevents layout shift */
}

.size-options {
    margin-bottom: 20px;
}

.action-buttons-container {
    display: flex;
    gap: 10px;
}

.add-to-cart-btn, .add-to-cart-checkout-btn {
    flex-grow: 1; /* Make buttons share space */
    padding: 15px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn {
    background-color: #ffffff;
    color: #000000;
}

.add-to-cart-btn:hover {
    background-color: #cccccc;
}

.add-to-cart-checkout-btn {
    background-color: #f9d136; /* A standout color */
    color: #141414;
}

/* Wishlist Button Styling */
#wishlist-btn .wishlist-icon {
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* This is the active state - when the item is in the wishlist */
#wishlist-btn.active .wishlist-icon {
    fill: hsl(0, 100%, 50%); /* A vibrant red */
    stroke: hsl(0, 100%, 50%);
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-details {
        padding-left: 0;
        margin-top: 20px;
    }
}