﻿.newest {
    font-size: 14px;
    width: 90%;
    padding: 0.5rem;
    margin: 5rem auto;
    border-radius: 5px;
}

    .newest > div.newest-title {
        text-align: center;
        margin: 3rem 0;
    }

    .newest .newest-title h3 {
        color: #402E32;
        border-bottom: 4px solid #D4AF37;
        display: inline-block;
        padding-bottom: 0.5rem;
        font-size: 24px;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 2px solid #A9864E;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    .product-card img {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
        margin-bottom: 10px;
        display: block
    }

.product-info {
}

    .product-info .product-title {
        color: #402E32;
        font-size: 16px;
        margin-bottom: 6px;
        min-height: 45px;
        font-weight: bold;
    }

    .product-info .product-price {
        color: #402E32;
        font-size: 15px;
        margin-bottom: 4px;
    }

    .product-info .product-price-old {
        color: #A9864E;
        text-decoration: line-through;
        font-size: 14px;
        min-height: 18px;
        margin-bottom: 10px;
    }

        .product-info .product-price-old.hidden {
            visibility: hidden;
        }

    .product-info .buy-button {
        background-color: #BB871E;
        color: white;
        border: none;
        padding: 5px 10px;
        font-size: 14px;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
        display: block;
        text-decoration: none;
    }

        .product-info .buy-button:hover {
            background-color: #BB871E;
            color: white;
            border: none;
        }

@media only screen and (min-width: 768px) {
}

@media only screen and (max-width: 768px) {
    .newest {
        margin: 0rem auto;
    }

        .newest > div.newest-title {
            margin: 1rem 0;
        }
        .newest .newest-title h3 {
            font-size: 14px;
        }

}
