@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0B2D48;
    --primary-light: #123F61;
    --secondary: #2AB6A9;
    --secondary-hover: #22998E;
    --accent: #FFFFFF;
    
    /* Luxury Dark Mode Palette */
    --bg-main: #07131F;
    --bg-surface: #0E2031;
    --bg-card: rgba(14, 32, 49, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(42, 182, 169, 0.2);
    
    /* Typography */
    --font-heading: 'Outfit', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* State Colors */
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --glow-secondary: 0 0 15px rgba(42, 182, 169, 0.3);
    --glow-secondary-strong: 0 0 25px rgba(42, 182, 169, 0.6);
    --glass-bg: rgba(7, 19, 31, 0.85);
    --glass-blur: blur(12px);
    
    /* Layout Constants */
    --header-height: 80px;
    --container-max-width: 1280px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea {
    font-family: var(--font-body);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-radius: 6px;
    outline: none;
    transition: var(--transition-smooth);
}

/* Layout Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #FFF 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.announcement-bar .marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.announcement-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
}
.announcement-bar .badge-cod {
    background: var(--secondary);
    color: var(--bg-main);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: 12px;
}
@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Sticky Header */
header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}
header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-glow);
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--glow-secondary);
}
.logo-icon::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--accent);
    transform: skewX(-20deg);
    top: 14px;
}
.logo-icon::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background: var(--accent);
    transform: skewX(-20deg);
    bottom: 14px;
}

/* Search Bar in Header */
.search-container {
    flex: 0 1 450px;
    position: relative;
    margin: 0 20px;
}
.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.search-input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--glow-secondary);
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 120;
    display: none;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.search-result-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}
.search-result-item .item-details {
    flex: 1;
}
.search-result-item .item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.search-result-item .item-price {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-smooth);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--secondary);
}

/* Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.action-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.3rem;
    padding: 6px;
}
.action-btn:hover {
    color: var(--secondary);
    text-shadow: var(--glow-secondary);
}
.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary);
    color: var(--bg-main);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(42, 182, 169, 0.6);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Footer Section */
footer {
    background: #040A10;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 20px;
    margin-top: 80px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-about .logo {
    margin-bottom: 18px;
}
.footer-about p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
}
.social-icon:hover {
    background: var(--secondary);
    color: var(--bg-main);
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}
.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.contact-info-list li i {
    color: var(--secondary);
    margin-top: 4px;
}

/* Pakistan Regional Trust Badges */
.regional-badge {
    background: rgba(42, 182, 169, 0.05);
    border: 1px dashed var(--secondary);
    border-radius: 8px;
    padding: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.regional-badge i {
    font-size: 1.5rem;
    color: var(--secondary);
}
.regional-badge-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.payment-gateways {
    display: flex;
    gap: 10px;
    align-items: center;
}
.payment-logo {
    height: 26px;
    opacity: 0.8;
    background: #FFF;
    border-radius: 4px;
    padding: 2px 6px;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .search-container {
        flex: 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    .header-wrapper {
        position: relative;
    }
    .logo {
        font-size: 1.3rem;
    }
    .search-container {
        display: none; /* In mobile, we show search icon that toggles drawer or mobile search bar */
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        border-right: 1px solid var(--border-color);
        z-index: 99;
    }
    .nav-menu.active {
        left: 0;
    }
    .mobile-menu-toggle {
        display: block;
        order: -1;
        margin-right: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
