/* Custom styles inspired by GearVN */
:root {
    --primary-color: #ffd939;
    --dark-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

.logo-img {
    position: absolute;
    height: auto;
    width: 200px;
    object-fit: contain;
    background: transparent;
}

.navbar-brand {
    position: relative;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.header-top {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
}

.header-top a:hover {
    color: var(--primary-color);
}

.navbar-main {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-nav {
    margin-left: 170px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.search-box {
    position: relative;
}

.search-box input {
    border-radius: 25px;
    padding: 8px 45px 8px 20px;
    border: 2px solid var(--border-color);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #666;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
}

.cart-icon .badge {
    position: absolute;
    top: -4px;
    right: -11px;
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 0.7rem;
}

/* Notification icon */
.notification-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
}

.notification-icon .badge {
    position: absolute;
    top: -4px;
    right: -11px;
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 0.7rem;
}

/* Notification bell container - để chứa dropdown */
.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notification-dropdown .card {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.notification-dropdown .list-group-item {
    cursor: pointer;
}

.notification-dropdown .list-group-item:hover {
    background-color: #fff5f5;
}

.notification-dropdown .notif-item strong {
    display: block;
    font-size: 0.95rem;
}

.notification-dropdown .notif-item .small {
    display: block;
}

/* User Avatar Dropdown Styles */
.user-avatar-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.user-avatar-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 217, 57, 0.2);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 5px;
}

.user-avatar-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.user-dropdown-menu .dropdown-item i {
    margin-right: 10px;
    width: 20px;
    color: #666;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .user-avatar-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .user-dropdown-menu {
        min-width: 200px;
        right: -10px;
    }
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.product-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-top: auto;
}

.product-price .price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.product-price .price-new {
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-discount {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.banner-section {
    margin: 20px 0;
}

.banner-section img {
    width: 100%;
    border-radius: 8px;
}

/* Sub Banner Styles with Shimmer Effect */
.sub-banner {
    margin-top: 0;
}

.sub-banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.sub-banner-item:hover {
    transform: scale(1.02);
}

.sub-banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.1s ease;
}

.sub-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.sub-banner-item:hover::before {
    opacity: 1;
    animation: shimmer 0.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fixed Category Menu Button */
.category-menu-btn {
    position: fixed;
    top: 120px; /* Adjust based on header height */
    left: 0;
    z-index: 1000;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    border-radius: 0 5px 5px 0;
    width: 50px;
    overflow: hidden;
    white-space: nowrap;
}

.category-menu-btn.active {
    background-color: #c82333;
}

.category-menu-btn i:first-child {
    font-size: 18px;
    flex-shrink: 0;
    min-width: 20px;
}

.category-menu-btn span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.1s, width 0.3s ease 0.1s;
    white-space: nowrap;
}

.category-menu-btn:hover span {
    opacity: 1;
    width: 100px;
}

.category-menu-btn i:last-child {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.15s, width 0.3s ease 0.15s;
}

.category-menu-btn:hover i:last-child {
    opacity: 1;
    width: auto;
}

/* Category Dropdown Menu */
.category-dropdown-menu {
    position: fixed;
    top: 22%;
    left: 0;
    z-index: 999;
    background-color: white;
    width: 900px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 0;
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform-origin: top;
    transition: opacity 0.3s ease, max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.category-dropdown-menu.show {
    display: flex;
    opacity: 1;
    max-height: 600px;
    overflow: hidden;
    pointer-events: auto;
    animation: slideDownMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show dropdown on button hover */
.category-menu-btn:hover ~ .category-dropdown-menu,
.category-dropdown-menu:hover {
    display: flex;
    opacity: 1;
    max-height: 600px;
    overflow: hidden;
    pointer-events: auto;
    animation: slideDownMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Menu Wrapper */
.category-menu-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Panel: Categories List */
.category-menu-left {
    width: 280px;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    max-height: 600px;
}

/* Right Panel: Sub-menu Content */
.category-menu-right {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
    background-color: #fafafa;
}

/* Hide dropdown when closing (smooth close) */
.category-dropdown-menu.closing {
    animation: slideUpMenu 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hide dropdown when not hovering and not shown */
.category-dropdown-menu:not(:hover):not(.show):not(.closing) {
    opacity: 0;
    max-height: 0;
}

.category-menu-btn:hover {
    background-color: #c82333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 150px;
    padding: 12px 20px;
    gap: 8px;
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 600px;
    }
}

@keyframes slideUpMenu {
    from {
        opacity: 1;
        max-height: 600px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Sub-menu Styles */
.sub-menu-section {
    margin-bottom: 30px;
}

.sub-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.sub-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.sub-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
}

.sub-menu-item:hover {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.sub-menu-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sub-menu-item .sub-menu-icon {
    font-size: 32px;
    color: #666;
    margin-bottom: 8px;
}

.sub-menu-item-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

.sub-menu-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

.sub-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sub-menu-column {
    display: flex;
    flex-direction: column;
}

.category-menu-left .category-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.category-menu-left .category-menu-item:last-child {
    border-bottom: none;
}

.category-menu-left .category-menu-item:hover,
.category-menu-left .category-menu-item.active {
    background-color: #fff5f5;
}

.category-menu-left .category-menu-item.active .category-icon,
.category-menu-left .category-menu-item.active span {
    color: #dc3545;
}

.category-menu-left .category-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #dc3545;
}

.category-icon {
    font-size: 20px;
    color: #dc3545;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.category-menu-left .category-menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.category-arrow {
    font-size: 14px;
    color: #999;
    margin-left: 8px;
}

/* Overlay to close menu when clicking outside */
.category-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
}

.category-menu-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .category-menu-btn {
        top: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .category-dropdown-menu {
        top: 152px;
        width: 100%;
        max-width: 300px;
    }
}

.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary-custom:hover {
    background-color: #ffcc00;
    color: var(--text-dark);
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 50px;
}

.loading-spinner.active {
    display: block;
}

/* Alert Container - Fixed at top */
#alert-container {
    position: fixed;
    left: 75%;
    top: 0;
    right: 0;
    z-index: 9999;
    padding: 15px;
    pointer-events: none;
    max-width: 100%;
}

#alert-container .alert {
    pointer-events: auto;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-custom {
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 0;
    border-left: 4px solid;
}

.alert-custom.alert-success {
    border-left-color: #28a745;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
}

.alert-custom.alert-warning {
    border-left-color: #ffc107;
}

.alert-custom.alert-info {
    border-left-color: #17a2b8;
}

/* Auth Modal Styles */
#authModal .modal-content {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#authModal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 24px 12px;
}

#authModal .modal-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

#authModal .modal-body {
    padding: 24px;
}

#authModal .form-control-lg {
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

#authModal .form-control-lg:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#authModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

#authModal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

#authModal .position-relative .bi-eye,
#authModal .position-relative .bi-eye-slash {
    color: #6c757d;
    font-size: 1.2rem;
}

#authModal .position-relative .bi-eye:hover,
#authModal .position-relative .bi-eye-slash:hover {
    color: #495057;
}

#authModal .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

#authModal .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

#authModal .text-primary {
    color: #0066cc !important;
}

#authModal .form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

#authModal .form-check-label {
    font-size: 0.9rem;
}

#authModal .form-select {
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

#authModal .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Hot Sale Section Styles */
.hot-sale-section {
    position: relative;
}

/* Hot Sale Header với gradient background */
.hot-sale-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 25%, #6c5ce7 75%, #0984e3 100%);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hot-sale-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hot-sale-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hot-sale-title i {
    font-size: 2.2rem;
    color: #ff6b35;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.5));
}

.hot-sale-header-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hot-sale-header-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hot-sale-btn-yellow {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
}

.hot-sale-btn-yellow:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.hot-sale-btn-white {
    background: white;
    color: #2d3436;
}

.hot-sale-btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* View All Button */
.hot-sale-view-all-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.3);
}

.hot-sale-view-all-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.4);
    color: white;
}

.hot-sale-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.hot-sale-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.hot-sale-carousel::-webkit-scrollbar {
    display: none;
}

.hot-sale-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hot-sale-card-item {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
}

.hot-sale-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hot-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hot-sale-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.4);
    /* Tạo góc chéo */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    transform: rotate(0deg);
    border-top-left-radius: 12px;
}

.hot-sale-image-wrapper {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.hot-sale-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.hot-sale-card:hover .hot-sale-product-image {
    transform: scale(1.05);
}

.hot-sale-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hot-sale-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.hot-sale-product-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hot-sale-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.hot-sale-price-new {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b35;
    line-height: 1.2;
}

.hot-sale-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    z-index: 5;
}

.hot-sale-cart-btn:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.hot-sale-cart-btn i {
    font-size: 1.2rem;
}

.hot-sale-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hot-sale-nav-btn:hover {
    background: #f8f9fa;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hot-sale-nav-btn i {
    font-size: 1.5rem;
    color: #333;
}

.hot-sale-nav-prev {
    left: 0;
}

.hot-sale-nav-next {
    right: 0;
}

.hot-sale-nav-btn:hover i {
    color: #0066cc;
}

/* Responsive for Hot Sale */
@media (max-width: 768px) {
    .hot-sale-header {
        padding: 20px 25px;
    }
    
    .hot-sale-title {
        font-size: 1.5rem;
    }
    
    .hot-sale-title i {
        font-size: 1.8rem;
    }
    
    .hot-sale-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hot-sale-header-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .hot-sale-header-btn {
        width: 100%;
    }
    
    .hot-sale-carousel-wrapper {
        padding: 0 40px;
    }
    
    .hot-sale-card-item {
        width: 240px;
        min-width: 240px;
    }
    
    .hot-sale-image-wrapper {
        height: 180px;
    }
    
    .hot-sale-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .hot-sale-nav-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hot-sale-carousel-wrapper {
        padding: 0 35px;
    }
    
    .hot-sale-card-item {
        width: 200px;
        min-width: 200px;
    }
    
    .hot-sale-image-wrapper {
        height: 160px;
    }
}

/* Product Type Sections Styles */
.product-type-section {
    position: relative;
}

/* Product Type Header Banner - Design đơn giản với góc cắt */
.product-type-header-banner {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 25%, #6c5ce7 75%, #0984e3 100%);
    padding: 20px 40px;
    margin-bottom: 30px;
    position: relative;
    /* Rounded corners ở left, góc cắt ở right */
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    /* Tạo góc cắt ở right bằng clip-path */
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-type-banner-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

.product-type-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.product-type-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    min-height: 400px;
}

.product-type-carousel::-webkit-scrollbar {
    display: none;
}

.product-type-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-type-card-item {
    flex: 0 0 auto;
    width: 280px;
    min-width: 280px;
}

.product-type-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-type-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.4);
    /* Tạo góc chéo */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    transform: rotate(0deg);
    border-top-left-radius: 12px;
}

.product-type-image-wrapper {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-type-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-type-card:hover .product-type-product-image {
    transform: scale(1.05);
}

.product-type-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-type-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-type-product-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-type-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.product-type-price-new {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b35;
    line-height: 1.2;
}

.product-type-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    z-index: 5;
}

.product-type-cart-btn:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.product-type-cart-btn i {
    font-size: 1.2rem;
}

.product-type-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-type-nav-btn:hover {
    background: #f8f9fa;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-type-nav-btn i {
    font-size: 1.5rem;
    color: #333;
}

.product-type-nav-prev {
    left: 0;
}

.product-type-nav-next {
    right: 0;
}

.product-type-nav-btn:hover i {
    color: #0066cc;
}

.product-type-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
    padding: 50px;
}

.product-type-empty-state {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section-specific colors */
.pc-section h2 i {
    color: #0066cc;
}

.laptop-section h2 i {
    color: #28a745;
}

.keyboard-section h2 i {
    color: #ffc107;
}

.mouse-section h2 i {
    color: #17a2b8;
}

.monitor-section h2 i {
    color: #dc3545;
}

.headphone-section h2 i {
    color: #6c757d;
}

.accessory-section h2 i {
    color: #343a40;
}

/* Responsive for Product Type Sections */
@media (max-width: 768px) {
    .product-type-header-banner {
        padding: 15px 25px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    }
    
    .product-type-banner-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .product-type-carousel-wrapper {
        padding: 0 40px;
    }
    
    .product-type-card-item {
        width: 240px;
        min-width: 240px;
    }
    
    .product-type-image-wrapper {
        height: 180px;
    }
    
    .product-type-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .product-type-nav-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .product-type-carousel-wrapper {
        padding: 0 35px;
    }
    
    .product-type-card-item {
        width: 200px;
        min-width: 200px;
    }
    
    .product-type-image-wrapper {
        height: 160px;
    }
}

/* Products Page Styles */
.filter-sidebar {
    padding-right: 20px;
}

.filter-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 180px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-option:hover {
    color: var(--primary-color);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-option span {
    font-size: 0.95rem;
    color: var(--text-dark);
    user-select: none;
}

.filter-option:hover span {
    color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .filter-sidebar {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .filter-card {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-left {
    width: 60%;
    padding-right: 2rem;
}

.checkout-right {
    width: 40%;
    padding-left: 2rem;
}

.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.form-section h5 {
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: #333;
}

.payment-method-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-option:hover {
    border-color: #007bff;
}

.payment-method-option.selected {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.payment-method-option input[type="radio"] {
    margin-right: 0.75rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.order-summary h5 {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #333;
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .checkout-left, .checkout-right {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }
}

/* =================== ORDERS PAGE =================== */

/* Search Section */
.orders-search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.orders-search-section .input-group-text {
    border-color: #e0e0e0;
}

.orders-search-section .form-control {
    border-color: #e0e0e0;
    font-size: 0.95rem;
}

.orders-search-section .form-control:focus {
    border-color: #dc3545;
    box-shadow: none;
}

.orders-search-section .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    font-weight: 600;
    transition: all 0.3s;
}

.orders-search-section .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Orders Tabs */
.orders-tabs-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.orders-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    min-height: 56px;
}

.order-tab {
    flex: 1;
    min-width: 140px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.order-tab:hover {
    color: #dc3545;
    background-color: #fff5f5;
}

.order-tab.active {
    color: #dc3545;
    border-bottom-color: #dc3545;
    font-weight: 600;
}

/* Modern Order Card */
.modern-order-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Order Header */
.order-card-header {
    background: linear-gradient(to right, #fff5f5, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-shop-icon {
    color: #dc3545;
    font-size: 1.1rem;
}

.order-code {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.order-date {
    color: #999;
    font-size: 0.85rem;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #e0e0e0;
}

.order-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Badge */
.status-badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge i {
    font-size: 0.9rem;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-badge.status-confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.status-processing {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-badge.status-shipped {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-delivered {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.status-refunded {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Order Body */
.order-card-body {
    padding: 20px;
}

.order-product-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.order-product-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.order-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-product-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.order-product-variant {
    font-size: 0.85rem;
    color: #999;
}

.order-product-quantity {
    font-size: 0.85rem;
    color: #666;
}

.order-product-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.order-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.order-price-new {
    font-size: 1.1rem;
    color: #dc3545;
    font-weight: 700;
}

/* Order Footer */
.order-card-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-total-label {
    font-size: 0.9rem;
    color: #666;
}

.order-total-amount {
    font-size: 1.3rem;
    color: #dc3545;
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.btn-order-action {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order-action:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

.btn-order-action.primary {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-order-action.primary:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Empty State */
.orders-empty-state {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.orders-empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 16px;
}

.orders-empty-state h5 {
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.orders-empty-state p {
    color: #999;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .order-tab {
        min-width: 120px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .order-date {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        display: block;
        margin-top: 4px;
    }
    
    .order-product-item {
        flex-direction: column;
    }
    
    .order-product-price {
        align-items: flex-start;
    }
    
    .order-card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .order-actions {
        justify-content: stretch;
    }
    
    .btn-order-action {
        flex: 1;
    }
}

/* =================== ORDER DETAIL - PROGRESS BAR (Refactored with ::after) =================== */

.order-progress {
    margin: 2rem 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
}

/* Step icon (circle with number) */
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Connecting line between steps using ::after pseudo-element */
.step::after {
    content: '';
    position: absolute;
    top: 20px;           /* Center of step-icon (40px / 2) */
    left: -50%;          /* Start from center of previous step */
    width: 100%;         /* Extend to center of current step */
    height: 3px;
    background: #e0e0e0; /* Default gray color */
    z-index: 1;          /* Behind step-icon */
}

/* First step has no line before it */
.step:first-child::after {
    content: none;
}

/* Step label */
.step-label {
    font-size: 0.85rem;
    color: #666;
}

/* Active step */
.step.active .step-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.active .step-label {
    color: #28a745;
    font-weight: 600;
}

.step.active::after {
    background: #28a745; /* Green line for active step */
}

/* Completed step */
.step.completed .step-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.step.completed::after {
    background: #28a745; /* Green line for completed step */
}

/* Responsive */
@media (max-width: 768px) {
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step::after {
        top: 17.5px; /* Center of smaller icon (35px / 2) */
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

/* Permission Management Styles */
.permission-tab-content {
    display: none;
}

.permission-tab-content.active {
    display: block;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #0d6efd;
    color: #0d6efd;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========== ADMIN LAYOUT STYLES ========== */

/* Admin Navbar */
.admin-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-navbar-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-navbar-brand i {
    font-size: 1.5rem;
}

.admin-navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-navbar-user span {
    font-weight: 500;
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Admin Sidebar */
.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.admin-sidebar-nav {
    padding: 1rem 0;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.admin-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #3498db;
}

.admin-sidebar-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
    font-weight: 500;
}

.admin-sidebar-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.admin-sidebar-item span {
    flex: 1;
}

.admin-sidebar-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
}

.admin-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: calc(100vh - 150px);
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}

#mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
        border-radius: 4px;
    }
    
    .admin-sidebar-toggle {
        display: block;
    }
    
    #mobile-menu-btn {
        display: block;
    }
    
    .admin-navbar-content {
        padding: 0.75rem 1rem;
    }
    
    .admin-navbar-user {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-navbar-user .btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .admin-navbar-brand span {
        display: none;
    }
    
    .admin-navbar-user span {
        display: none;
    }
    
    .admin-content {
        padding: 0.75rem;
    }
}

/* Admin Page Specific Styles */
.admin-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.admin-page-header h1 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.admin-stats-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.admin-stats-card .card-body {
    padding: 1.5rem;
}

.admin-stats-card .card-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-stats-card .card-text {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Search Dropdown Styles */
.search-box {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    max-width: 800px;
    width: max-content;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 600px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background-color 0.2s;
}

.search-dropdown-item:hover {
    background: #f5f5f5;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.search-dropdown-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-dropdown-item-brand {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-dropdown-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item-price {
    font-size: 0.9rem;
    margin-top: 4px;
}

.search-dropdown-item-discount {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.search-dropdown-item-price .price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.search-dropdown-item-price .price-new {
    color: #e74c3c;
    font-weight: 600;
}

.search-dropdown-view-more {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    border-top: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-dropdown-view-more:hover {
    background: #e9ecef;
}

.search-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Search Results Page Styles */
.search-query-display {
    font-size: 1rem;
    color: #495057;
}

.sort-btn {
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.sort-btn.active {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .search-dropdown {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: -20px;
        right: -20px;
    }
    
    .search-dropdown-item {
        padding: 12px;
        gap: 12px;
    }
    
    .search-dropdown-item-image {
        width: 80px;
        height: 80px;
    }
    
    .search-dropdown-item-name {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .search-dropdown-item-brand {
        font-size: 0.7rem;
    }
}

/* Address Selection Styles */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.address-card:hover {
    border-color: #ffd939;
    box-shadow: 0 2px 8px rgba(255, 217, 57, 0.1);
}

.address-card.border-primary {
    border-color: #ffd939;
    background: #fffef5;
}

/* Address mặc định - highlight vàng */
.address-card.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
    background: #fffbf0 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2) !important;
}

.address-card input[type="radio"] {
    margin-top: 4px;
}

/* No Address Alert */
#no-address-alert {
    border-left: 4px solid #ff9800;
    background: #fff3e0;
}

/* Address Item in Profile */
.address-item {
    transition: all 0.3s;
}

.address-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Address mặc định trong Profile - highlight vàng */
.address-item.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px !important;
    background: #fffbf0 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2) !important;
}

/* Address mặc định trong Profile - highlight vàng */
.address-item.border-warning {
    border-color: #ffc107;
    border-width: 2px;
    background: #fffbf0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* Map Container */
#address-map {
    border-radius: 8px;
}

