/* =========================
   PRODUCT SECTION
========================= */

.product-section {

    padding-bottom: 25px;
}


/* =========================
   PRODUCT GRID
========================= */

.product-list {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e5ddd3;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.88);

    color: inherit;

    box-shadow:
        0 3px 12px rgba(72, 49, 31, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.product-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(72, 49, 31, 0.11);
}


/* =========================
   IMAGE
========================= */

.product-image {

    position: relative;

    width: 100%;

    aspect-ratio: 1.3 / 1;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e7ddd0,
            #c9b9a5
        );
}


.product-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}


.product-card:hover
.product-image img {

    transform: scale(1.035);
}


/* =========================
   NO IMAGE
========================= */

.no-image {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #897c70;

    font-family: Georgia, serif;

    font-size: 12px;
}


/* =========================
   PRODUCT INFO
========================= */

.product-info {

    display: flex;

    flex-direction: column;

    min-height: 108px;

    padding: 11px 12px 12px;
}


.product-info h3 {

    margin: 0 0 5px;

    overflow: hidden;

    color: #261d17;

    font-family: Georgia, serif;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.product-info p {

    margin: 0;

    color: #8a7d72;

    font-size: 10px;

    line-height: 1.4;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================
   BOTTOM
========================= */

.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-top: auto;

    padding-top: 9px;
}


.product-bottom strong {

    color: #8b3f16;

    font-family: Georgia, serif;

    font-size: 14px;
}


/* =========================
   ADD BUTTON
========================= */

.add-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 6px 9px;

    border-radius: 7px;

    background: #8b3f16;

    color: white;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


.product-card:hover
.add-button {

    background: #6f2f0e;
}


/* =========================
   UNAVAILABLE
========================= */

.product-card.unavailable {

    cursor: not-allowed;

    opacity: 0.58;
}


.product-card.unavailable:hover {

    transform: none;

    box-shadow:
        0 3px 12px rgba(72, 49, 31, 0.05);
}


.product-card.unavailable
.product-image img {

    filter: grayscale(30%);
}


.unavailable-label {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(31, 25, 20, 0.48);

    color: white;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;
}


.unavailable-price {

    display: inline-flex;

    align-items: center;

    padding: 6px 9px;

    border-radius: 7px;

    background: #ebe7e1;

    color: #91877e;

    font-size: 10px;

    font-weight: 700;
}


/* =========================
   PAGINATION
========================= */

.pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 22px;
}


.pagination a {

    display: inline-flex;

    align-items: center;

    padding: 8px 12px;

    border: 1px solid #ded5cb;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.8);

    color: #604d3e;

    font-size: 11px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.pagination a:hover {

    border-color: #9a4b20;

    background: #fff8ef;

    color: #8b3f16;
}


.pagination span {

    color: #887b70;

    font-size: 11px;
}


/* =========================
   EMPTY STATE
========================= */

.no-products {

    margin-top: 10px;

    padding: 55px 20px;

    text-align: center;

    border: 1px solid #e5ddd3;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.7);
}


.no-products-icon {

    margin-bottom: 12px;

    color: #9b5a2d;

    font-size: 28px;
}


.no-products h3 {

    margin: 0 0 7px;

    color: #30251e;

    font-family: Georgia, serif;

    font-size: 20px;
}


.no-products p {

    margin: 0;

    color: #8a7d72;

    font-size: 12px;
}


/* =========================
   LARGE DESKTOP
========================= */

@media (min-width: 1300px) {

    .product-list {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 16px;
    }


    .product-info {

        min-height: 108px;
    }

}


/* =========================
   TABLET / SMALL DESKTOP
========================= */

@media (max-width: 1100px) {

    .product-list {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 800px) {

    .product-list {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .product-info {

        min-height: 105px;

        padding: 10px 11px 11px;
    }


    .product-info h3 {

        font-size: 15px;
    }


    .product-info p {

        font-size: 10px;
    }


    .product-bottom strong {

        font-size: 14px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .product-list {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .product-card {

        display: flex;

        flex-direction: column;

        min-height: 0;
    }


    .product-image {

        aspect-ratio: 1.25 / 1;
    }


    .product-info {

        min-height: 104px;

        padding: 9px 10px 10px;
    }


    .product-info h3 {

        margin-bottom: 4px;

        font-size: 14px;
    }


    .product-info p {

        font-size: 9.5px;

        line-height: 1.35;
    }


    .product-bottom {

        padding-top: 7px;
    }


    .product-bottom strong {

        font-size: 13px;
    }


    .add-button,
    .unavailable-price {

        padding: 6px 8px;

        font-size: 9px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {

    .product-list {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .product-info {

        min-height: 98px;

        padding: 8px 8px 9px;
    }


    .product-info h3 {

        font-size: 13px;
    }


    .product-info p {

        font-size: 9px;
    }


    .product-bottom strong {

        font-size: 12px;
    }


    .add-button,
    .unavailable-price {

        padding: 5px 7px;

        font-size: 8.5px;
    }

}

/* =========================
   PRODUCT PRICING
========================= */

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.offer-badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 5px;
    background: #fce8e2;
    color: #b63d20;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.offer-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.original-price {
    color: #96877a;
    font-size: 10px;
    font-weight: 400;
}

.offered-price {
    color: #8b3f16;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

.regular-price {
    color: #8b3f16;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .offer-badge {
        font-size: 8px;
    }

    .original-price {
        font-size: 9px;
    }

    .offered-price,
    .regular-price {
        font-size: 12px;
    }

    .offer-prices {
        gap: 4px;
    }
}