 /* ===== Cart Page Header & Navigation Styles ===== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f9fafb;
    color: #111;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* Sticky Header Wrapper - keeps header connected */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

/* ===== Header Styles ===== */
.header {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    padding: 12px 20px !important;
}

.header-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

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

.header-center {
    flex: 1 !important;
    max-width: 500px !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
}

/* Back Arrow Button */
.back-arrow-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
}

.back-arrow-btn:hover {
    background: #667eea !important;
    color: white !important;
}

.back-arrow-btn i {
    font-size: 20px !important;
}

/* App Download Buttons */
.app-download-buttons {
    display: flex !important;
    gap: 8px !important;
}

.download-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}

.download-btn:hover {
    background: #333 !important;
    transform: translateY(-1px) !important;
}

.download-btn i {
    font-size: 18px !important;
}

.download-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}

.download-text small {
    font-size: 9px !important;
    opacity: 0.8 !important;
}

.download-text strong {
    font-size: 11px !important;
    font-weight: 600 !important;
}

/* Search Bar */
.search-bar {
    display: flex !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    gap: 10px !important;
}

.search-bar i {
    color: #9ca3af !important;
    font-size: 16px !important;
}

.search-bar input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    outline: none !important;
}

/* Header Icons */
.header-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    color: #666 !important;
    transition: all 0.2s !important;
}

.header-icon:hover {
    background: #f3f4f6 !important;
    color: #111 !important;
}

.header-icon.active {
    color: #667eea !important;
}

.header-icon i {
    font-size: 20px !important;
}

.header-icon .badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    background: #ef4444 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #64748B;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 56px;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: #423241;
}

.nav-item:hover {
    color: #171716;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Hand Holding Heart Icon - Wishlist (Bottom Nav) */
.nav-item .fa-hand-holding-heart {
    font-size: 18px;
    color: #64748B;
}

.nav-item.active .fa-hand-holding-heart,
.nav-item:hover .fa-hand-holding-heart {
    color: #171716;
}

/* DopGO Nav Item */
.nav-item.dopgo {
    color: #171716;
    background: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    margin-top: 0;
    box-shadow: none;
}

.nav-item.dopgo i {
    font-size: 22px;
}

.nav-item.dopgo .dopgo-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.nav-item.dopgo .dopgo-icons i {
    font-size: 22px;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    line-height: 1 !important;
    color: #171716 !important;
}

.nav-item.dopgo.active .dopgo-icons i,
.nav-item.dopgo:hover .dopgo-icons i {
    color: #423241 !important;
}

.nav-item.dopgo .dopgo-icons i::before {
    display: inline-block !important;
}

.nav-item.dopgo .dopgo-icons i.fa-plus-circle {
    position: relative;
    font-size: 22px;
    z-index: 1;
}

.nav-item.dopgo .dopgo-icons i.fa-car {
    margin-left: -6px;
    margin-right: 2px;
    font-size: 18px;
}

/* Home Icon */
.nav-item .fa-home {
    font-size: 18px;
    color: #64748B;
}

.nav-item.active .fa-home,
.nav-item:hover .fa-home {
    color: #171716;
}

/* Categories Icon */
.nav-item .fa-th-large {
    font-size: 18px;
    color: #64748B;
}

.nav-item.active .fa-th-large,
.nav-item:hover .fa-th-large {
    color: #171716;
}

/* Cart Icon (Bottom Nav) */
.nav-item .fa-shopping-cart {
    font-size: 18px;
    color: #64748B;
}

.nav-item.active .fa-shopping-cart,
.nav-item:hover .fa-shopping-cart {
    color: #171716;
}

/* Account Icon */
.nav-item .fa-user {
    font-size: 18px;
    color: #64748B;
}

.nav-item.active .fa-user,
.nav-item:hover .fa-user {
    color: #171716;
}

/* ===== Responsive for Mobile ===== */
@media (max-width: 768px) {
    .back-arrow-btn {
        width: 38px;
        height: 38px;
    }
    
    .back-arrow-btn i {
        font-size: 18px;
    }
    
    /* Store badges - reduced size on mobile */
    .app-download-section {
        gap: 6px;
    }
    
    .store-badge {
        padding: 5px 8px;
    }
    
    .store-badge i {
        font-size: 16px;
    }
    
    .store-badge-small {
        font-size: 7px;
    }
    
    .store-badge-large {
        font-size: 10px;
    }
    
    .header-right {
        flex: 0 !important;
    }
    
    .nav-item {
        min-width: 56px;
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item.dopgo {
        width: auto;
    }
    
    .nav-item.dopgo i,
    .nav-item.dopgo .dopgo-icons i {
        font-size: 18px;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .back-arrow-btn {
        width: 36px;
        height: 36px;
    }
    
    .back-arrow-btn i {
        font-size: 16px;
    }
    
    /* Store badges - even smaller on very small mobile */
    .app-download-section {
        gap: 4px;
    }
    
    .store-badge {
        padding: 4px 6px;
    }
    
    .store-badge i {
        font-size: 14px;
    }
    
    .store-badge-small {
        font-size: 6px;
    }
    
    .store-badge-large {
        font-size: 9px;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-icon i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-arrow-btn {
        width: 36px;
        height: 36px;
    }
    
    .back-arrow-btn i {
        font-size: 16px;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-icon i {
        font-size: 18px;
    }
}
