/* ===== NIKE SHOP - MAIN STYLES ===== */
:root {
    --nike-black: #111111;
    --nike-white: #ffffff;
    --nike-red: #d63031;
    --nike-gray: #f5f5f5;
    --nike-dark-gray: #757575;
    --nike-border: #e5e5e5;
    --nike-accent: #fa7268;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--nike-black);
    background: var(--nike-white);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--nike-white) !important;
    border-bottom: 1px solid var(--nike-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nike-black) !important;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.navbar-brand span {
    color: var(--nike-red);
}

.nav-link {
    font-weight: 500;
    color: var(--nike-black) !important;
    padding: 8px 16px !important;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--nike-red) !important;
}

.nav-link.active {
    color: var(--nike-red) !important;
}

/* Cart icon */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--nike-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Search bar */
.search-form {
    position: relative;
    width: 280px;
}

.search-form input {
    border-radius: 24px;
    border: 1.5px solid var(--nike-border);
    padding: 8px 40px 8px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--nike-black);
    box-shadow: none;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--nike-dark-gray);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #111111 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 48, 49, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-banner h1 span {
    color: var(--nike-red);
}

.hero-banner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 20px 0 32px;
}

.btn-nike {
    background: var(--nike-white);
    color: var(--nike-black);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-nike:hover {
    background: var(--nike-red);
    color: white;
    transform: translateY(-2px);
}

.btn-nike-black {
    background: var(--nike-black);
    color: var(--nike-white);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-nike-black:hover {
    background: var(--nike-red);
    color: white;
    transform: translateY(-2px);
}

.btn-nike-outline {
    background: transparent;
    color: var(--nike-black);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--nike-black);
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-nike-outline:hover {
    background: var(--nike-black);
    color: white;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-title span {
    color: var(--nike-red);
}

.section-subtitle {
    color: var(--nike-dark-gray);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--nike-gray);
    aspect-ratio: 1;
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 16px;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 16px;
}

.product-card .product-category {
    font-size: 0.75rem;
    color: var(--nike-dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--nike-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nike-black);
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--nike-red);
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .quick-add {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card:hover .quick-add {
    bottom: 0;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card .category-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--nike-black), #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .category-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROMOTION BANNER ===== */
.promotion-banner {
    background: linear-gradient(90deg, var(--nike-red), #c0392b);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promotion-code {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.2);
    padding: 4px 16px;
    border-radius: 4px;
    font-family: monospace;
}

/* ===== FOOTER ===== */
footer {
    background: var(--nike-black);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    margin-top: 80px;
}

footer .footer-brand {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

footer .footer-brand span {
    color: var(--nike-red);
}

footer h6 {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--nike-red);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-image {
    background: var(--nike-gray);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-detail-image img {
    max-height: 400px;
    object-fit: contain;
}

.size-btn {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--nike-border);
    background: white;
    color: var(--nike-black);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover:not(:disabled) {
    border-color: var(--nike-black);
    background: var(--nike-black);
    color: white;
}

.size-btn.selected {
    border-color: var(--nike-black);
    background: var(--nike-black);
    color: white;
}

.size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Stars rating */
.stars {
    color: #f39c12;
    font-size: 1.1rem;
}

.star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f39c12;
}

/* ===== CART ===== */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--nike-border);
    gap: 16px;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--nike-gray);
    border-radius: 4px;
    padding: 8px;
    flex-shrink: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--nike-border);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--nike-gray);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--nike-black);
    color: white;
}

.quantity-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: var(--nike-gray);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.order-summary-total {
    border-top: 2px solid var(--nike-black);
    padding-top: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== FORM STYLES ===== */
.form-control, .form-select {
    border: 1.5px solid var(--nike-border);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--nike-black);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nike-dark-gray);
    margin-bottom: 6px;
}

/* ===== ALERTS ===== */
.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 4px;
    padding: 14px 20px;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    padding: 14px 20px;
}

/* ===== BADGES ===== */
.badge-nike {
    background: var(--nike-black);
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-nike-red {
    background: var(--nike-red);
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: var(--nike-black);
    border-color: var(--nike-border);
    padding: 8px 14px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--nike-black);
    border-color: var(--nike-black);
    color: white;
}

.pagination .page-link:hover {
    background: var(--nike-gray);
    border-color: var(--nike-black);
    color: var(--nike-black);
}

/* ===== BLOG CARDS ===== */
.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.blog-card .blog-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.blog-card .blog-category {
    color: var(--nike-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card .blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ADMIN STYLES ===== */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #1a1a2e;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.admin-sidebar .sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar .sidebar-brand .brand-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.admin-sidebar .sidebar-brand .brand-text span {
    color: var(--nike-red);
}

.admin-sidebar .sidebar-badge {
    background: var(--nike-red);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-sidebar .sidebar-menu {
    padding: 16px 0;
}

.admin-sidebar .menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    padding: 12px 20px 6px;
}

.admin-sidebar .nav-item .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.admin-sidebar .nav-item .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--nike-red);
}

.admin-sidebar .nav-item .nav-link.active {
    color: white !important;
    background: rgba(214,48,49,0.15);
    border-left-color: var(--nike-red);
}

.admin-sidebar .nav-item .nav-link i {
    width: 20px;
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

.admin-sidebar .nav-item .nav-link.active i,
.admin-sidebar .nav-item .nav-link:hover i {
    color: var(--nike-red);
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-topbar {
    background: white;
    padding: 16px 28px;
    border-bottom: 1px solid var(--nike-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.admin-topbar h4 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    color: var(--nike-black);
}

.admin-body {
    padding: 28px;
}

/* Admin Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--nike-black);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--nike-dark-gray);
    font-weight: 500;
}

/* Admin Tables */
.admin-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-table .table {
    margin: 0;
}

.admin-table .table th {
    background: #f8f9fa;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nike-dark-gray);
    padding: 14px 16px;
    border-bottom: 2px solid var(--nike-border);
}

.admin-table .table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--nike-border);
    font-size: 0.9rem;
}

.admin-table .table tr:last-child td {
    border-bottom: none;
}

.admin-table .table tr:hover td {
    background: #f8f9fa;
}

/* Admin Forms */
.admin-form-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-form-card h5 {
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--nike-border);
    color: var(--nike-black);
}

/* ===== STATUS BADGES ===== */
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-shipping { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }
    .admin-content {
        margin-left: 0;
    }
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    .search-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
}

/* ===== UTILITIES ===== */
.text-red { color: var(--nike-red) !important; }
.bg-nike { background: var(--nike-black) !important; }
.font-weight-black { font-weight: 900 !important; }

.price-vnd {
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Loading spinner */
.spinner-nike {
    width: 40px;
    height: 40px;
    border: 4px solid var(--nike-gray);
    border-top-color: var(--nike-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--nike-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--nike-red);
    transform: translateY(-4px);
}

/* Chat button */
.chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #0084ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 132, 255, 0.4);
    transition: var(--transition);
    z-index: 998;
}

.chat-btn:hover {
    background: #0073e6;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.5);
}

/* Filter sidebar */
.filter-sidebar {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
}

.filter-sidebar h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nike-black);
}

