/* ============================================
   HEADER STYLES - SLIM VERSION
   Location: assets/dist/css/default_skin/header.css
   ============================================ */

:root {
    --primary: #ff6b35;
    --primary-dark: #ff6b35cc;
    --secondary: #2d3436;
    --light: #f8f9fa;
    --dark: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
}

/* ============================================
   TOP HEADER BAR - SLIM
   ============================================ */
.top-bar {
    background: #222;
    color: #fff;
    padding: 4px 0;
    font-size: 12px;
}

.top-bar a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.top-bar a:hover {
    color: var(--primary-dark);
}

.social-icons a {
    color: #fff;
    margin-left: 10px;
    font-size: 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

/* ============================================
   MAIN NAVIGATION - SLIM
   ============================================ */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 8px 0;
    min-height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text {
    line-height: 1.1;
}

.brand-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}

.brand-text span {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar-nav {
    align-items: center;
}

/* Navigation Links - Fixed Icon Alignment */
.nav-menu .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 6px;
    transition: 0.3s;
    position: relative;
    padding: 6px 0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-menu .nav-link i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary);
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: 20px;
}

/* ============================================
   CART STYLES - SLIM
   ============================================ */
.cart-link {
    position: relative;
}

.cart-link .nav-link {
    padding-right: 5px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ============================================
   BUTTON STYLES - SLIM
   ============================================ */
.btn-order {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    margin-left: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.btn-order:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-login {
    background: transparent;
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    margin-left: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    border: 2px solid var(--primary);
    font-size: 12px;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   USER DROPDOWN - SLIM
   ============================================ */
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.user-dropdown-toggle {
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    transition: 0.3s;
    font-size: 12px;
}

.user-dropdown-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.user-dropdown-toggle i {
    font-size: 13px;
}

.user-dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.user-dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown-menu a:hover {
    background: #f8f9fa;
    color: var(--primary);
    padding-left: 20px;
}

.user-dropdown-menu a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.user-name {
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

/* ============================================
   MOBILE TOGGLE BUTTON - SLIM
   ============================================ */
.navbar-toggler {
    border: none;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 6px;
}

.navbar-toggler i {
    color: white;
    font-size: 16px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   RESPONSIVE DESIGN - SLIM
   ============================================ */

/* Tablet and smaller */
@media (max-width: 991px) {
    .navbar-collapse {
        padding: 15px 0 8px;
    }
    
    .nav-menu {
        margin: 8px 0;
        text-align: center;
    }
    
    .nav-menu .nav-item {
        margin: 3px 0;
    }
    
    .nav-menu .nav-link {
        display: inline-flex;
        margin: 0;
        padding: 4px 0;
        font-size: 13px;
        justify-content: center;
    }
    
    .cart-link {
        display: inline-block;
    }
    
    .btn-order,
    .btn-login {
        margin-left: 0;
        margin-top: 6px;
        display: inline-flex;
        width: auto;
        text-align: center;
        justify-content: center;
    }
    
    .user-dropdown {
        margin-left: 0;
        margin-top: 6px;
        display: block;
        text-align: center;
    }
    
    .user-dropdown-toggle {
        display: inline-flex;
    }
    
    .user-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .navbar-nav {
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        font-size: 10px;
        padding: 3px 0;
    }
    
    .top-bar .social-icons {
        margin-top: 3px;
    }
    
    .top-bar .social-icons a {
        font-size: 10px;
        margin-left: 6px;
    }
    
    .brand-text h3 {
        font-size: 14px;
    }
    
    .brand-text span {
        font-size: 9px;
    }
    
    .logo-icon,
    .logo-img {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    
    .nav-menu .nav-link {
        font-size: 12px;
    }
    
    .nav-menu .nav-link i {
        font-size: 12px;
        width: 16px;
    }
    
    .navbar {
        padding: 5px 0;
        min-height: 50px;
    }
    
    .btn-order {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .btn-login {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .top-bar .col-md-6.text-center.text-md-start {
        font-size: 9px;
    }
    
    .top-bar .col-md-6.text-center.text-md-end {
        font-size: 9px;
    }
    
    .brand-text h3 {
        font-size: 13px;
    }
    
    .logo-icon,
    .logo-img {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .navbar-brand {
        gap: 5px;
    }
    
    .nav-menu .nav-link {
        font-size: 11px;
    }
    
    .nav-menu .nav-link i {
        font-size: 11px;
        width: 14px;
    }
}