* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fb; }
a { text-decoration: none; }

.top-offer-bar {
    background: linear-gradient(90deg, #ff6b00, #ff8c00);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}
.top-offer-bar i { margin-right: 6px; }

.info-bar {
    background: #0a1628;
    color: #ccc;
    padding: 10px 0;
    font-size: 12px;
}
.info-bar a { color: #ccc; transition: color 0.3s; }
.info-bar a:hover { color: #fff; }
.info-bar i { margin-right: 5px; color: #00d4aa; }
.info-bar .track-order { color: #fff; font-weight: 500; }
.info-bar .track-order i { color: #ff6b00; }

.main-header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}
.logo img {
    height: 45px;
    max-width: 160px;
    object-fit: contain;
}

.search-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}
.search-box {
    display: flex;
    align-items: stretch;
    border: 2px solid #2563eb;
    border-radius: 60px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    height: 48px;
}
.search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    border-color: #1d4ed8;
}
.search-box input {
    border: none;
    padding: 0 18px;
    flex: 1;
    height: 100%;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.search-box input::placeholder {
    color: #94a3b8;
}
.search-box .search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 22px;
    height: 100%;
    cursor: pointer;
    transition: background 0.25s;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-box .search-btn:hover {
    background: #1d4ed8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}
.cart-icon {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}
.cart-icon:hover { transform: scale(1.05); }
.cart-icon i { font-size: 24px; color: #1e293b; }
.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff6b00;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.cart-icon .cart-label {
    font-size: 10px;
    margin-top: 3px;
    font-weight: 500;
    color: #475569;
}
.whatsapp-icon {
    width: 42px;
    height: 42px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: transform 0.2s;
}
.whatsapp-icon:hover { transform: scale(1.08); background: #128C7E; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #1e293b;
    cursor: pointer;
    padding: 5px;
}

.main-nav {
    background: #2563eb;
    padding: 0;
}
.navbar-nav {
    display: flex;
    align-items: center;
}
.main-nav .navbar-nav .nav-link {
    color: white;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.main-nav .navbar-nav .nav-link:hover { background: rgba(255,255,255,0.12); }

.categories-btn {
    background: #1d4ed8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.categories-btn:hover { background: #1e40af; }

.categories-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    border: none;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    min-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
    z-index: 1000;
    display: none;
}
.categories-dropdown-menu.show {
    display: block;
}
.categories-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}
.categories-dropdown-menu a:hover {
    background: #f0f9ff;
    color: #2563eb;
    padding-left: 28px;
}
.categories-dropdown-menu a i {
    margin-right: 10px;
    color: #2563eb;
    width: 16px;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.mobile-sidebar.open {
    left: 0;
}
.mobile-sidebar-header {
    padding: 20px;
    background: #2563eb;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-sidebar-header h4 {
    margin: 0;
    font-size: 18px;
}
.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
.mobile-sidebar .sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.mobile-sidebar .sidebar-link:hover {
    background: #f8f9fa;
    color: #2563eb;
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}
.mobile-overlay.show {
    display: block;
}

@media (max-width: 991px) {
    .mobile-menu-btn { display: block; }
    .search-wrapper { max-width: 100%; margin: 0; }
    .search-box { height: 44px; }
    .search-box .search-btn { padding: 0 18px; font-size: 13px; }
    .main-nav { display: none; }
}

@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
    .mobile-sidebar, .mobile-overlay { display: none; }
}

@media (max-width: 768px) {
    .info-bar .row { text-align: center; }
    .info-bar .col-md-6.text-md-end { text-align: center !important; margin-top: 5px; }
    .top-offer-bar { font-size: 11px; }
    .cart-icon i { font-size: 20px; }
    .whatsapp-icon { width: 36px; height: 36px; font-size: 18px; }
    .cart-icon .cart-label { font-size: 9px; }
    .logo img { height: 38px; }
}

@media (max-width: 576px) {
    .search-box { height: 40px; }
    .search-box input { font-size: 12px; padding: 0 12px; }
    .search-box .search-btn { padding: 0 12px; font-size: 11px; }
    .whatsapp-icon { width: 34px; height: 34px; font-size: 16px; }
    .cart-icon i { font-size: 18px; }
    .header-actions { gap: 12px; }
}