﻿/* Color Variables */
:root {
    --primary-color: #004080;
    --secondary-color: #f2f6fa;
    --accent-color: #ff4d4f;
    --text-color: #333;
    --muted-color: #6c757d;
    --border-color: #e0e0e0;
}

/* Global */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Page Header */
.page-header {
    background-color: var(--secondary-color);
    padding: 50px 0;
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Product Card Grid */
.card.product-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

    .card.product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.rating-stars, .rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--muted-color);
    margin-left: 10px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    z-index: 1;
}

/* Product Detail View */
.product-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 30px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
}

.spec-list {
    list-style: none;
    padding-left: 0;
}

    .spec-list li {
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

.quantity-input {
    width: 80px;
    text-align: center;
}

.btn-buy {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
}

    .btn-buy:hover {
        background-color: #003366;
    }

/* Pagination */
.pagination {
    margin-top: 30px;
    justify-content: center;
}

.page-item .page-link {
    color: var(--text-color);
    border-color: var(--border-color);
    margin: 0 3px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item .page-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
