header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 6px 0;
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 103;
    transition: var(--transition);
    padding: 8px;
    border-radius: 5px;
}

.mobile-menu-btn .fa-times {
    display: none;
}

.mobile-menu-btn.active .fa-bars {
    display: none;
}

.mobile-menu-btn.active .fa-times {
    display: inline-block;
}

.header-cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
    border-radius: 50%;
}

.header-cart-icon:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.3);
}

.terms-hero {
    padding: 90px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.92), rgba(255, 107, 53, 0.92)),
        url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.terms-hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.terms-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.95;
}

.terms-meta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.95;
}

.terms-section {
    padding: 70px 20px;
}

.terms-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
}

.terms-card h3 {
    color: var(--primary-color);
    margin: 18px 0 10px;
    font-size: 1.5rem;
}

.terms-card p {
    color: var(--gray-color);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        order: 1;
    }

    .header-cart-icon {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .logo {
        order: 0;
        flex: 1;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        z-index: 102;
        padding: 90px 20px 20px;
        overflow-y: auto;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav.active {
        display: block;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .mobile-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .mobile-nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav ul li:last-child {
        border-bottom: none;
    }

    .mobile-nav ul li a {
        padding: 20px;
        display: block;
        font-size: 1.2rem;
        color: var(--dark-color);
        transition: var(--transition);
        border-radius: 0;
    }

    .mobile-nav ul li a:hover {
        background-color: rgba(255, 107, 53, 0.1);
        color: var(--primary-color);
        padding-left: 30px;
    }

    .terms-hero {
        padding: 80px 20px;
    }

    .terms-hero h2 {
        font-size: 2.4rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-cart-icon {
        margin-left: auto;
    }
}
