/* Style Global */
body {
    background-color: #121212;
}

/* ===== Main Layout ===== */
.products-main {
    font-family: system-ui, sans-serif;
    color: #e4e4e7;
    background-color: #000;
    min-height: 100vh;
    padding: 5rem 5%;
}

/* ===== Header Section ===== */
.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-title {
    font-size: 2.5rem;
    color: #f95a25;
    margin-bottom: 1rem;
}

.products-subtitle {
    font-size: 1.1rem;
    color: #d4d4d8;
    line-height: 1.6;
}

/* ===== Filter / Sort Controls ===== */
.products-controls {
    margin-bottom: 2.5rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #121212;
    border-radius: 12px;
}

.filter-label {
    font-weight: 600;
    color: #f95a25;
    margin-right: 0.5rem;
}

.filter-select {
    background-color: #202020;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.filter-select:focus {
    outline: none;
    border-color: #f95a25;
    box-shadow: 0 0 0 2px #f95a25;
}

.filter-right {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #303030;
    color: #e4e4e7;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.filter-btn:hover {
    background-color: #3b3b3b;
}

/* Active (fictive) */
.filter-btn.active {
    background-color: #f95a25;
    color: #000;
}


/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* ChatGPT */
    gap: 2rem;
}

.product-card {
    background-color: #121212;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 40px rgba(249, 90, 37, 0.4);
}

.product-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #fff;
}

.product-desc {
    font-size: 0.95rem;
    color: #d4d4d8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: #f95a25;
    font-weight: 600;
    font-size: 1.1rem;
}

.add-btn {
    background-color: #303030;
    color: #e4e4e7;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #3b3b3b;
}