﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}
.submit-link {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    border: none; /* Để giống button */
}

    .submit-link:hover {
        background-color: #0056b3;
        color: white;
        text-decoration: none;
    }
/* Products Header */
.products-header {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info {
    color: var(--text-light);
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .sort-options select {
        border-radius: 8px;
        border: 1px solid var(--border-color);
        padding: 8px 15px;
        min-width: 180px;
    }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-image img {
        width: 85%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: white;
}

    .product-badge.discount {
        background: var(--secondary-color);
    }

    .product-badge.new {
        background: var(--success-color);
    }

    .product-badge.hot {
        background: var(--accent-color);
    }

/* Product Info */
.product-info {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-text {
    font-size: 12px;
    color: var(--text-light);
}

.product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Product Action Button (Eye Icon) */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .product-actions {
    opacity: 1;
}

.action-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 100px;
    text-decoration: none;
}

    .action-btn:hover {
        background: var(--secondary-color);
        color: white;
    }

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Reset / Normalize */
button, [type=button], [type=reset], [type=submit] {
    -webkit-appearance: button;
}

button, select {
    text-transform: none;
}

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    border-radius: 0;
}
