/* =========================================================
   WOODEN PET URNS / PRODUCT LISTING PAGE
   ========================================================= */

/* =========================================================
   PAGE BODY
   ========================================================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    text-align: center;
    margin: 40px 0;
    font-size: 38px;
}


/* =========================================================
   PRODUCT CONTAINER
   ========================================================= */

.product-container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(
        auto-fill,
        minmax(260px, 1fr)
    );

    gap: 30px;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    width: 100%;

    background: white;

    border-radius: 10px;

    padding: 15px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    text-align: center;

    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   DESKTOP HOVER
   ========================================================= */

.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-card img {
    width: 100%;
    height: 250px;

    object-fit: contain;

    display: block;

    margin: 0 auto;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.product-card h3 {
    font-size: 20px;

    margin: 15px 0;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    line-clamp: 3;

    overflow: hidden;

    min-height: 72px;

    line-height: 1.4;
}


/* =========================================================
   SKU
   ========================================================= */

.sku {
    font-size: 16px;

    font-weight: 600;

    color: #555;

    margin: 10px 0;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-card .price {
    font-size: 22px;

    font-weight: bold;

    color: #b22222;
}


/* =========================================================
   VIEW PRODUCT BUTTON
   ========================================================= */

.view-btn {
    display: inline-block;

    margin-top: 15px;

    padding: 12px 25px;

    background: #8B4513;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.view-btn:hover {
    background: #6d3410;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET - 1000px
   ========================================================= */

@media (max-width: 1000px) {

    .page-title {
        font-size: 34px;

        margin: 35px 20px;
    }


    .product-container {
        width: 92%;

        margin-left: auto;
        margin-right: auto;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 25px;
    }


    .product-card {
        width: 100%;

        padding: 14px;
    }


    .product-card img {
        height: 230px;
    }


    .product-card h3 {
        font-size: 19px;
    }

}


/* =========================================================
   SMALL TABLET - 750px
   ========================================================= */

@media (max-width: 750px) {

    .page-title {
        font-size: 32px;

        margin: 30px 15px;
    }


    .product-container {

        width: 90%;

        max-width: 600px;

        margin-left: auto;
        margin-right: auto;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .product-card {
        width: 100%;

        padding: 15px;

        margin: 0;
    }


    .product-card img {
        width: 100%;

        height: 230px;

        object-fit: contain;

        display: block;

        margin-left: auto;
        margin-right: auto;
    }


    .product-card h3 {
        font-size: 18px;

        min-height: 70px;
    }


    .sku {
        font-size: 15px;
    }


    .product-card .price {
        font-size: 20px;
    }


    .view-btn {
        padding: 11px 22px;

        font-size: 16px;
    }

}


/* =========================================================
   MOBILE - 500px
   ========================================================= */

@media (max-width: 500px) {

    .page-title {
        font-size: 28px;

        margin: 25px 15px;
    }


    /*
       IMPORTANT:
       One column and centered container.
    */

    .product-container {

        display: grid;

        grid-template-columns: minmax(0, 1fr);

        width: calc(100% - 30px);

        max-width: 450px;

        margin-left: auto;

        margin-right: auto;

        padding: 0;

        gap: 20px;

        box-sizing: border-box;
    }


    /*
       Product card fills the centered
       one-column container.
    */

    .product-card {

        width: 100%;

        max-width: 100%;

        margin: 0;

        padding: 15px;

        box-sizing: border-box;

        text-align: center;
    }


    /*
       Product image centered.
    */

    .product-card img {

        width: 100%;

        height: 260px;

        object-fit: contain;

        display: block;

        margin-left: auto;

        margin-right: auto;
    }


    .product-card h3 {

        font-size: 19px;

        line-height: 1.4;

        min-height: auto;

        margin: 15px 5px;
    }


    .sku {
        font-size: 15px;
    }


    .product-card .price {
        font-size: 21px;
    }


    .view-btn {

        padding: 12px 25px;

        font-size: 16px;
    }

}


/* =========================================================
   VERY SMALL MOBILE - 400px
   ========================================================= */

@media (max-width: 400px) {

    .page-title {

        font-size: 25px;

        margin: 22px 10px;
    }


    /*
       Keep the container centered.
    */

    .product-container {

        width: calc(100% - 20px);

        max-width: 380px;

        margin-left: auto;

        margin-right: auto;

        grid-template-columns: minmax(0, 1fr);

        gap: 18px;

        padding: 0;
    }


    .product-card {

        width: 100%;

        margin: 0;

        padding: 12px;

        box-sizing: border-box;
    }


    .product-card img {

        width: 100%;

        height: 230px;

        display: block;

        margin-left: auto;

        margin-right: auto;

        object-fit: contain;
    }


    .product-card h3 {
        font-size: 18px;
    }


    .sku {
        font-size: 14px;
    }


    .product-card .price {
        font-size: 20px;
    }


    .view-btn {

        padding: 11px 22px;

        font-size: 15px;
    }

}