/* What set our rice */
.what-set-our-rice {
    padding: 4rem 0;
}

.what-set-our-rice__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 4rem;
}

.what-set-our-rice__content {
    width: 100%;
}

.what-set-our-rice__body {
    display: flex;
    flex-direction: column;
    gap: 4.0625rem;
}

.what-set-our-rice__images {
    width: 100%;
    max-width: 36.8125rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.what-set-our-rice__image {
    width: 100%;
    aspect-ratio: 589 / 310;
    object-fit: cover;
    border-radius: 1.875rem;
    display: block;
}
/* List product */

.product-list {
    padding: 2rem 0 4rem;
}

.product-list__items {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-top: 2.9375rem;
}

.product-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;   
}

.product-list__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
}

.product-list__image {
    width: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
    display: block;
}

.product-list__content {
    width: 100%;
    max-width: 36.5625rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-list__name {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-list__name-link {
    text-decoration: none;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product-list__description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
}

.product-list__button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2.1875rem;
    text-decoration: none;
    background: var(--color-gradient);
    color: var(--color-white);
}

.product-list__button-text {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.product-list__button-icon {
    width: 0.875rem;
    height: 0.875rem;
    display: block;
}

/* Packaging section */

.packaging {
    padding: 4rem 0;
}

.packaging__inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; 
}

.packaging__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.packaging__header .heading__title--left h2 {
    justify-content: center;
}
.packaging__header .heading__title {
    margin-bottom: 0;
}
.packaging__header .heading__title--left h2:before {
    left: 50%;
    transform: translateX(-50%);
}

.packaging__items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.6875rem; /* 43px */
}

.packaging__item {
    display: flex;
    flex-direction: column;
}

.packaging__number {
    font-size: 3.25rem; /* 52px */
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary-700, #048629);
    opacity: 0.25;
}

.packaging__text {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-neutral-800, #2D3136);
}

/* 4K and Ultra-wide Screens */
@media (min-width: 1600px) {
}

/* Ultra Large Devices (Extra Large Desktop) */
@media (max-width: 1599px) {
}

/* XXL Devices (Large Desktop) */
@media (max-width: 1399px) {
}

/* Extra Large Devices (Small Desktop) */
@media (max-width: 1199px) {
    .what-set-our-rice {
        padding: 3.5rem 0;
    }

    .what-set-our-rice__inner {
        gap: 2.5rem;
    }

    .what-set-our-rice__body {
        gap: 2.5rem;
    }

    .what-set-our-rice__images {
        max-width: 32rem;
        gap: 1.5rem;
    }

    .product-list {
        padding: 2rem 0 3.5rem;
    }

    .product-list__items {
        gap: 3.5rem;
        margin-top: 2.25rem;
    }

    .product-list__content {
        gap: 1.75rem;
        max-width: 32rem;
    }

    .product-list__name {
        font-size: 1.75rem;
    }

    .packaging {
        padding: 3.5rem 0;
    }

    .packaging__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* Large Devices (Tablets) */
@media (max-width: 991px) {
    .what-set-our-rice {
        padding: 3rem 0;
    }

    .what-set-our-rice__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .what-set-our-rice__body {
        gap: 1.75rem;
    }

    .what-set-our-rice__images {
        max-width: min(34rem, 100%);
        margin-left: auto;
        margin-right: auto;
        gap: 1.25rem;
    }

    .packaging__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .product-list__item {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .product-list__image-link,
    .product-list__content {
        max-width: 100%;
    }

    .product-list__content {
        gap: 1.5rem;
    }

    .product-list__name {
        font-size: 1.625rem;
    }

    .product-list__button-text {
        font-size: 1.125rem;
    }

    .product-detail {
        flex-direction: column;
    }
    .product-detail-right {
        width: 100%;
    }

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

    .product-item .info{
        padding: 8px;
    }

    .title-filter{
        flex-direction: column;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 767px) {
    .what-set-our-rice,
    .packaging {
        padding: 2.5rem 0;
    }

    .what-set-our-rice__images {
        gap: 1rem;
    }

    .what-set-our-rice__image {
        border-radius: 1.25rem;
    }

    .product-list {
        padding: 1.5rem 0 3rem;
    }

    .product-list__items {
        gap: 3rem;
        margin-top: 2rem;
    }

    .product-list__content {
        gap: 1.25rem;
    }

    .product-list__name {
        font-size: 1.5rem;
    }

    .product-list__description {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .product-list__button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .packaging__items {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (Phones) */
@media (max-width: 575px) {
    .thumbnail-grid a {
        width: calc(25% - 9px);
    }

    .what-set-our-rice__inner {
        gap: 1.75rem;
    }

    .what-set-our-rice__body {
        gap: 1.5rem;
    }

    .product-list__item {
        gap: 1.25rem;
    }

    .product-list__name {
        font-size: 1.375rem;
    }

    .product-list__button-text {
        font-size: 1.0625rem;
    }
}

/* Extra Small Devices */
@media (max-width: 374px) {
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .what-set-our-rice,
    .packaging {
        padding: 2.25rem 0;
    }

    .product-list__items {
        gap: 2.5rem;
    }

    .product-list__name {
        font-size: 1.25rem;
    }
}
