﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.header {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header nav a {
    color: #fff;
    font-weight: 500;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Banner cũ nếu bạn còn dùng */
.banner {
background: linear-gradient(to right, #02082e, #040b16);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.banner h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Banner ảnh */
.banner1 {
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #111;
}

.banner1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

h1,
h2 {
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.product-card h3 {
    margin: 15px 0 10px;
}

.price {
    color: #e63946;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-warning {
    background: #f4a261;
}

.btn-danger {
    background: #e63946;
}

.btn-secondary {
    background: #457b9d;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.table th {
    background: #111;
    color: #fff;
}

.form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.form input,
.form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.error {
    color: red;
    margin-bottom: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 220px;
    padding: 10px;
}

.detail-card {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    flex-wrap: wrap;
}

.detail-image img {
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 280px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
}

.site-footer {
    background: #000080;
    color: #fff;
    margin-top: 40px;
    padding-top: 40px;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 15px;
    color: #f5f5f5;
}

.footer-column p,
.footer-column li,
.footer-bottom p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .banner1 {
        height: 300px;
    }

    .product-card img {
        height: 220px;
    }

    .detail-card {
        flex-direction: column;
    }
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.detail-gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
}