.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 5px;
}
.discounted-price {
    color: #e74c3c; /* red */
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* bigger cards */
    gap: 30px;
}


.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    background: #f9f9f9;
    /* remove padding so image fills card */
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;   /* perfect square */
    overflow: hidden;
    border-bottom: 1px solid #eee; /* optional, separates image from info */
}

.product-image img {
    width: 100%;
    height: 100%;           /* fill square */
    object-fit: cover;      /* no distortion */
    display: block;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: red;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.85rem;
}

.product-info {
    padding: 15px 10px 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.05rem;
    color: #c00;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-cart, .btn-details {
    flex: 1;
    padding: 8px 0;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cart {
    background-color: #000;
    color: #fff;
}

.btn-details {
    background-color: #c00;
    color: #fff;
}
