/* Custom CSS cho website bán quần áo */

/* Font chữ tiếng Việt */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f6f7fb;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* Header */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

 .navbar .navbar-nav .nav-link {
     font-weight: 500;
     letter-spacing: 0.2px;
 }

 .navbar-light .navbar-nav .nav-link {
     color: rgba(33, 37, 41, 0.75);
 }

 .navbar-light .navbar-nav .nav-link:hover,
 .navbar-light .navbar-nav .nav-link:focus {
     color: rgba(0, 0, 0, 0.95);
 }

 .navbar .dropdown-menu {
     border: 0;
     box-shadow: 0 10px 25px rgba(0,0,0,0.12);
 }

 .navbar .dropdown-item {
     font-weight: 500;
 }

 .nav-search {
     width: 360px;
     flex-wrap: nowrap;
 }

 .nav-search .form-control {
     min-width: 180px;
 }

 .navbar .nav-search .form-control,
 .navbar .nav-search .btn {
     height: 40px;
 }

 .navbar .nav-search .form-control {
     border-radius: 10px 0 0 10px;
 }

 .navbar .nav-search .btn {
     border-radius: 0 10px 10px 0;
 }

 .nav-icons {
     gap: 12px;
 }

 .nav-icon-btn {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 44px;
     height: 44px;
     border-radius: 10px;
     color: rgba(33, 37, 41, 0.75);
     text-decoration: none;
 }

 .nav-user .nav-icon-btn {
     width: auto;
     padding: 0 12px;
     gap: 8px;
 }

 .nav-user .dropdown-toggle::after {
     display: none;
 }

 .nav-user-name {
     max-width: 140px;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     font-size: 0.95rem;
     font-weight: 600;
     color: inherit;
 }

 .nav-icon-btn:hover {
     color: rgba(0, 0, 0, 0.95);
     background: rgba(0, 0, 0, 0.06);
 }

 .navbar-dark .nav-icon-btn {
     color: rgba(255, 255, 255, 0.9);
 }

 .navbar-dark .nav-icon-btn:hover {
     color: #fff;
     background: rgba(255, 255, 255, 0.12);
 }

 .nav-icon-btn i {
     font-size: 1.25rem;
     line-height: 1;
 }

 .nav-cart {
     position: relative;
 }

 .nav-badge {
     position: absolute;
     top: 7px;
     right: 7px;
     min-width: 18px;
     height: 18px;
     padding: 0 5px;
     border-radius: 999px;
     background: #dc3545;
     color: #fff;
     font-size: 11px;
     font-weight: 700;
     display: inline-flex;
     align-items: center;
     justify-content: center;
 }

/* Sidebar */
.list-group-item {
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Product Cards */
.card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.product-card .product-thumb {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.product-card .product-name {
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-card .product-price {
    font-weight: 700;
    color: #dc3545;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    min-height: 40px;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
}

.text-danger {
    font-weight: 600;
}

 .table {
     background: transparent;
 }

 .table > :not(caption) > * > * {
     padding: 0.85rem 0.85rem;
 }

 .table thead th {
     font-size: 0.9rem;
     font-weight: 700;
     color: rgba(17, 24, 39, 0.85);
 }

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

/* Page blocks */
.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.subtle-card {
    background: #fff;
}

/* Auth pages */
.auth-shell {
    padding: 28px 0;
}

.auth-card {
    border-radius: 18px;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.auth-shell .input-group-text {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-right: 0;
}

.auth-shell .form-control {
    border: 1px solid #e5e7eb;
}

/* Admin layout */
.admin-shell {
    min-height: calc(100vh - 56px);
    background: #f6f7fb;
}

.admin-sidebar {
    background: #ffffff;
    min-height: calc(100vh - 56px);
}

.admin-sidebar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-sidebar .nav-link {
    color: rgba(17, 24, 39, 0.82);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
}

.admin-sidebar .nav-link:hover {
    background: rgba(17, 24, 39, 0.06);
    color: #111827;
}

.admin-sidebar .nav-link.active {
    background: #111827;
    color: #ffffff;
}

.admin-content .card {
    border-radius: 16px;
}

 footer a {
     color: rgba(255, 255, 255, 0.85);
     text-decoration: none;
 }

 footer a:hover {
     color: #ffffff;
     text-decoration: underline;
 }

 .footer-hr {
     border-color: rgba(255, 255, 255, 0.2);
 }

/* Product Image */
.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Price */
.price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

/* Form */
.form-control {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Alert */
.alert {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Table */
table {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-search {
        width: 100%;
    }

    .product-card .product-thumb {
        height: 200px;
    }
}

