/* Import the Poppins font with various weights */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply styles to the product layout section */
.t-shirts_and_tops-container {
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* Styles for the category title */
.t-shirts_and_tops-container .product-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-top: 108px;
    margin-bottom: 10px;
    padding: 0 16px;
}

/* Adjustments for the pseudo-elements before and after the category title */
.t-shirts_and_tops-container .product-title::before,
.t-shirts_and_tops-container .product-title::after {
    content: "";
    flex: 1 1 140px;
    max-width: 180px;
    min-width: 48px;
    height: 2px;
    background-color: red;
}

/* Styles for category description */
.t-shirts_and_tops-container .product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    text-align: center;
    margin-bottom: 2em;
    padding: 0 16px;
}

.t-shirts_and_tops-container .collection-statement {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Styles for items container */
.t-shirts_and_tops-container .items_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 300px));
    grid-auto-rows: auto;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

/* Styles for each item */
.t-shirts_and_tops-container .item {
    width: min(100%, 300px);
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.t-shirts_and_tops-container .items_container.equal-height-products {
    grid-auto-rows: 640px;
}

.t-shirts_and_tops-container .items_container.single-product {
    grid-template-columns: minmax(0, 300px);
}

.t-shirts_and_tops-container .items_container.golfers-product-layout {
    grid-template-columns: minmax(0, 300px) minmax(0, 300px) minmax(0, 300px);
    align-items: start;
}

.t-shirts_and_tops-container .golfers-image-placeholder {
    width: 100%;
}

.t-shirts_and_tops-container .golfers-gallery-frame {
    padding: 10px;
    border: 1px solid rgba(190, 200, 220, 0.55);
    border-radius: 16px;
    background: rgba(20, 28, 42, 0.32);
}

.t-shirts_and_tops-container .golfers-gallery-frame figure {
    margin: 0;
    padding-top: 0;
}

.t-shirts_and_tops-container .golfers-gallery-main {
    height: 390px;
    border-radius: 13px;
}

.t-shirts_and_tops-container .golfers-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.t-shirts_and_tops-container .golfers-gallery-thumbnails figure {
    height: 78px;
    border-radius: 8px;
}

.t-shirts_and_tops-container .golfers-gallery-right {
    padding: 0;
    border: 0;
    background: transparent;
}

.t-shirts_and_tops-container .golfers-gallery-right figure {
    height: 540px;
    border-radius: 16px;
}

.t-shirts_and_tops-container .golfers-gallery-frame img {
    object-fit: cover;
}

@media (max-width: 1000px) and (min-width: 561px) {
    .t-shirts_and_tops-container .items_container.golfers-product-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Hover effect for item images within figure */
.t-shirts_and_tops-container .item:hover figure > img {
    transform: scale(1.05);/* Scale down the image by 5% on hover */
    
}

/* Styles for details container */
.t-shirts_and_tops-container .details_container {
    padding: 1rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Styles for figure element */
.t-shirts_and_tops-container figure {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

/* Styles for images within figure */
.t-shirts_and_tops-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* Styles for section headers */
.t-shirts_and_tops-container h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
    display: none;
}

/* Styles for descriptions */
.t-shirts_and_tops-container .description {
    line-height: 1.6;
    font-size: 1em;
    color: #969696;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 1em;
}

/* Styles for the buy container */
.t-shirts_and_tops-container .buy_container {
    background-color: transparent;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 0 5px #cccccc;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Styles for prices */
.t-shirts_and_tops-container .price {
    font-size: 1em;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #78788c;
    background: transparent;
    color: #ffffff;
    border-radius: 10px;
}

/* Styles for buttons */
.t-shirts_and_tops-container .add-to-cart-button {
    width: 100%;
    background: transparent;
    border: 2px solid #78788c;
    outline: 0;
    border-radius: 10px;
    padding: 12px;
    margin-top: auto;
    font-size: 1em;
    box-shadow: 0 0 5px #cccccc;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Hover effect for buttons */
.t-shirts_and_tops-container .add-to-cart-button:hover {
    cursor: pointer;
    background: #78788c;
    color: #ffffff;
}

/* Flexbox utility class */
.t-shirts_and_tops-container .flex-space-between {
    display: flex;
    justify-content: space-between;
    margin: 1em 0;
    gap: 12px;
}

/* Styles for labels */
label {
    color: #ffffff;
    font-size: 0.9em;
}

/* Styles for input holder */
.input-holder {
    width: 50%;
}

/* Styles for input elements */
.t-shirts_and_tops-container .input-style {
    width: 70%;
    margin-left: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 2px solid #78788c;
    background-color: rgba(17, 24, 32, 0.78);
    color: #ffffff;
}

.t-shirts_and_tops-container .input-style option {
    background-color: #1f2b3a;
    color: #ffffff;
}

.t-shirts_and_tops-container .design-selector-row {
    margin: 0.75em 0 0.75em;
}

.t-shirts_and_tops-container .design-selector-row .input-style {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
}

/* Styles for color row container */
.color-row {
    display: flex;
    align-items: center;
}

/* Styles for color elements */
.colors {
    width: 60%;
    display: flex;
    margin-left: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

/* Styles for individual color elements */
.color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 4px;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.75), 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.color.selected,
.color.selected-color {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
}

/* Specific color adjustments for each color */
.color:nth-child(6) {
    background: #ffdb58;
}

.color:nth-child(5) {
    background: #da2231;
}

.color:nth-child(4) {
    background: #fc8eac;
}

.color:nth-child(3) {
    background: black;
}

.color:nth-child(2) {
    background: grey;
}

.color:nth-child(1) {
    background: white;
}

@media (max-width: 768px) {
    .t-shirts_and_tops-container .product-title {
        font-size: 28px;
        margin-top: 32px;
    }

    .t-shirts_and_tops-container .product-title::before,
    .t-shirts_and_tops-container .product-title::after {
        display: none;
    }

    .t-shirts_and_tops-container .item {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .t-shirts_and_tops-container {
        width: calc(100% - 20px);
    }

    .t-shirts_and_tops-container .item {
        width: 100%;
    }

    .t-shirts_and_tops-container .items_container {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    .t-shirts_and_tops-container .items_container.equal-height-products {
        grid-auto-rows: auto;
    }

    .t-shirts_and_tops-container .items_container.single-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .t-shirts_and_tops-container .flex-space-between,
    .color-row {
        flex-direction: column;
        align-items: stretch;
    }

    .input-holder,
    .colors,
    .t-shirts_and_tops-container .input-style {
        width: 100%;
    }

    .t-shirts_and_tops-container .input-style,
    .colors {
        margin-left: 0;
    }
}
