:root {
    --primary: #e60012;
    --secondary: #ffffff;
    --accent: #ffcc00;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --card-hover: #2a2a2a;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
    --border-dark: #333333;
    --signature-gradient: linear-gradient(45deg, #ff9f43, #ff6b6b, #ff9f43);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/photo-1517248135467-4c7edcad34c4.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(to right, var(--primary), #ff4d4d);
    color: white;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
    /* margin-bottom: 20px; */
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin-left: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo-icon {
    font-size: 32px;
    color: var(--accent);
}

.cart-icon {
    /* position: relative; */
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
    top:-10px;
    right:-10px
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: var(--dark-bg);
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.categories {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    /* margin-bottom: 20px; */
    background-color: var(--card-bg);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.category-btn {
    padding: 10px 20px;
    margin: 0 8px;
    background-color: #2a2a2a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--text-light);
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 18, 0.3);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    margin-top:150px;
}

.menu-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border-dark);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.2);
    border-color: var(--primary);
}

.item-image {
    width: 100%;
    height: 180px;
    /* object-fit: cover; */
    object-fit: contain;
    border-bottom: 3px solid var(--primary);
}

.item-info {
    padding: 15px;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.item-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
    overflow: hidden;
}

.item-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: #2a2a2a;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary);
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-dark);
    border-radius: 5px;
    margin: 0 8px;
    background-color: #2a2a2a;
    color: var(--text-light);
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background-color: #ff3344;
    transform: scale(1.05);
}

.cart-section {
    /* background-color: var(--card-bg); */
    background-color:var(--primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    bottom: 20px;
    border: 1px solid var(--border-dark);
    width:50%;
    left: 75vw;
    z-index:99
}

.cart-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    color:var(--text-light)
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-item-name {
    flex-grow: 1;
    color: var(--text-light);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0;
    border-top: 2px dashed var(--border-dark);
}

.checkout-btn {
    background: linear-gradient(to right, var(--primary), #ff4d4d);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 18, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.signature-badge {
    position: absolute;
    /* top: -5px; */
    top: 4px;
    left: -5px;
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: white;
    padding: 8px 18px;
    border-radius: 12px 2px 12px 2px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: floating 3s ease-in-out infinite;
}

/* Biểu tượng ngôi sao nhỏ bên cạnh chữ Signature */
.signature-badge::before {
    content: '★';
    font-size: 12px;
    animation: spin 4s linear infinite;
}

/* Hiệu ứng hào quang xung quanh nhãn */
.signature-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7);
    animation: pulse-glow 2s infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes pulse-glow {
    70% { box-shadow: 0 0 0 10px rgba(255, 159, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .header-content {
        flex-direction: row;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
    }

    .menu-items{
        margin-top:173px
    }
}

@media (width > 1365px) {
    .fixed-header-container{
        width:84.7% !important
    }
}

@media (width: 1920px) {
    .fixed-header-container{
        width:60.4% !important
    }
}

@media (width <= 430px) {
   .menu-items{
        margin-top:170px;
   }
}


/* @media (width > 1366px) {
    .fixed-header-container{
        width:60.5% !important
    }
} */

.hot-pot-icon {
    margin-right: 5px;
    color: var(--accent);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3344;
}