.header-banner {
    position: relative;
    height: 40vh;
    min-height: 16rem;
    width: 100%;
    background-image: url(images/wheat-field-banner.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


#heading{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#icon-bar{
    display: flex;
    justify-content: space-between;
}

h1 {
    font-size: 3rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.64);
    text-align: center;
}

#products-summary {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 92%;
    max-width: 112.25rem;
    transform: translate(-50%, -24%);
    display: flex;
    flex-direction: row;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 4px rgba(0,0,0,0.24);
}

#summary_content {
    font-size: 0.88rem;
    line-height: 1.25rem;
    max-width: 55rem;
    margin: auto;
}

.category {
    margin-bottom: 4rem;
    width: 92%;
    max-width: 112.25rem;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.category_display-window{
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 4px rgba(0,0,0,0.24);
    display: flex;
    justify-content:space-around;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    padding-bottom: 2rem;

}

.category_products{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: fit-content;
    margin: 1rem;
    justify-content: space-around;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scroll-behavior: smooth;

}

.product-card {
    box-sizing: border-box;
    min-width: 18rem;
    width: 33%;
    max-width: 24rem;
    scroll-snap-align: start;
}

.image-window {
    position: relative;
    width: 100%;
    height: 12rem;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.product-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-bar{
    position: absolute;
    width: 100%;
    height: 3.25rem;
    padding: 0.25rem 1rem;
    top: 100%;
    left: 0;
    transform: translateY(-100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,0.64) 0%, rgba(0,0,0,0.4) 64%, rgba(266,266,266,0) 100%)
}

.product-tag{
    margin-left: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25rem;
}

.white {
    color: white;
}

.content-window {
    width: 100%;
    height: 20rem;
    overflow: hidden;
}

.product-content {
    width: 200%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.product-content > div {
    box-sizing: border-box;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.description-list{
    font-size: 0.88rem;
    margin: 1rem;
    margin-top: 0;
    line-height: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-switch {
    width: 96%;
    font-size: 0.88rem;
    background-color: white;
    height: 2.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.32);
    border-radius: 0.25rem;
}

.switch-icon {
    margin-right: 1rem;
}

.product-content_specs{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-window{
    width: 96%;
    height: 16rem;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.desc{
    color: #084999;
    border-color: #084999;
}

.specs{
    color: #231F20;
}

.content-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

.item-name {
    background-color: rgba(0,0,0,0.08);
    font-size: 0.88rem;
    padding: 0.75rem;
    text-align: right;
    width: 40%;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.item-weight {
    font-size: 0.88rem;
    padding: 0.75rem;
    color: #084999;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.other-g {
    margin-top: 1rem;
}

.cat-p {
    font-size: 0.88rem;
    width: 92%;
    max-width: 80rem;
    text-align: center;
    margin: auto;
    margin-bottom: 1rem;
}

.sm-display {
    justify-content: space-between;
    padding: 1rem;
    overflow: auto;
}

.sm-image-window {
    position: relative;
    width: 33%;
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0;
    margin: 0;
}


.sm-desc {
    width: 33%;
    margin: 0 0 0 2rem;
}

.sm-table {
    width: 33%;
    margin: 0;
}

.dots {
    position: absolute;
    width: 100%;
    top: 100%;
    transform: translateY(-100%);
    display: flex;
    justify-content: center;
    padding: 1rem;
    gap: 24px
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D9D9D9;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #084999;
}

.hide {
    display: none;
}

.active {
    cursor: grabbing;
}

@media (max-width: 52rem){
        .sm-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }

    .sm-image-window {
        width: 100%;
        height: 12rem;
        min-width: 0;
    }


    .sm-desc {
        width: 88%;
        margin: 1rem 0 1rem 0;
        min-width: 0;
    }

    .sm-table {
        width: 100%;
        margin: 0;
        min-width: 0;
    }

}

@media (max-width: 27rem){

    h1 {
        font-size: 1.5rem;
    }

    #products-summary {
        padding: 1rem;
    }

    #summary_content {
        font-size: 0.75rem;
        line-height: 1.25rem;
    }

    h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .category_products{
        gap: 0.5rem;
    }

    .product-card {
        min-width: 16rem;
        margin-right: 0.5rem;
    }


    .image-window {
        height: 10rem;
    }

    .title-bar{
        padding: 0.25rem 0.5rem;
    }

    .product-tag{
        margin-left: 0.5rem;
        font-weight: 700;
        font-size: 0.88rem;
        line-height: 1rem;
    }

    .description-list{
        font-size: 0.75rem;
    }

    .item-name, .item-weight {
        font-size: 0.75rem;
    }

    .cat-p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .dots {
        padding: 0.75rem;
        gap: 16px
    }


    .dot {
    width: 8px;
    height: 8px;
    }
}