@import "./global.css";
.image-wrapper {
    position: relative;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.discount-topright {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #1976d2;
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 10px;
    box-shadow: 0 2px 6px rgba(44,62,80,0.10);
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fafbfc;
    margin: 0;
    padding: 0;
    color: #333;
}

.products-header {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 400;
}
.products-header .highlight {
    color: #e74c3c;
    font-weight: 700;
}
.products-subheader {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 32px;
    margin-top: 0;
}

/* Notification bar */
.products-notification {
    background: #e3ecfa;
    color: #222;
    border-radius: 6px;
    padding: 14px 24px;
    margin: 0 auto 32px auto;
    max-width: 900px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
}
.products-notification .icon {
    margin-right: 12px;
    font-size: 1.2em;
}
.products-notification strong {
    color: #1a237e;
}

/* Product grid */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* Product card */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    width: 260px;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    position: relative;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 18px rgba(44, 62, 80, 0.13);
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.product-card .card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-card .badge {
    background: #ffd600;
    color: #222;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 2px;
    display: inline-block;
}
.product-card .badge.discount {
    background: #1976d2;
    color: #fff;
    margin-left: 4px;
}
.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 16px 4px 16px;
    color: #222;
}
.product-card .product-features {
    margin: 0 16px 8px 16px;
    font-size: 0.95em;
    color: #444;
    list-style: none;
    padding: 0;
}
.product-card .product-features li {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}
.product-card .product-features li:before {
    content: "●";
    color: #43a047;
    font-size: 0.8em;
    margin-right: 6px;
}
.product-card .product-pricing {
    margin: 0 16px 12px 16px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card .product-pricing .old-price {
    text-decoration: line-through;
    color: #b0b0b0;
    font-size: 0.95em;
}
.product-card .product-pricing .new-price {
    color: #222;
    font-weight: 700;
}
.product-card .details-btn {
    margin: 0 16px 16px 16px;
    background: #2979ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 90%;
}
.product-card .details-btn:hover {
    background: #1565c0;
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        gap: 16px;
    }
    .product-card {
        width: 90vw;
        max-width: 340px;
    }
}