/* Base Styles */
:root {
    --primary-color: #ff2d6b;
    /* Brand pink */
    --secondary-color: #333;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --text-color: #444;
    --border-color: #e1e1e1;
    --sale-color: #ff3d00;
    --font-main: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

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

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

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

/* General Classes */

.hidden {
    display: none;
}

.visible {
    display: block;
}


ul {
    list-style: none;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--dark-color);
    color: white;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 8px 0;
    font-size: 14px;
}

.announcement-bar p {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Mobile Toggle */
.mobile-search-toggle {
    font-size: 2rem;
    display: none;

}


/* Main Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: auto;
    max-width: 180px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    margin: 0 30px;
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-list>li {
    position: relative;
    margin: 0 15px;
}

.nav-list>li>a {
    font-weight: 700;
    font-size: 16px;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s;
}

.nav-list>li>a:hover {
    color: var(--primary-color);
    font-weight: 700;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown>a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover>a i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    background: white;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    border-radius: 5px;
    padding: 20px;
    display: none;
    z-index: 100;
    top: 100%;
}

.dropdown:hover .mega-menu {
    display: flex;
}

.mega-menu-column {
    flex: 1;
    padding: 0 15px;
}

.mega-menu-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-color);
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
}

/* mobile overlay */

.mobile-overlay-container {
    position: absolute;
    top: 15%;
    z-index: 1;
    width: 50%;
    height: 100%;
    background-color: white;
    /* border: 2px solid red; */
}





/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary-color);
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    z-index: 10;
}

.search-box:hover .search-form {
    display: block;
}

.search-form input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 25px;
    top: 23px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

.account-link,
.cart-link {
    font-size: 18px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.newsletter h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.newsletter input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #e6005c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .mega-menu {
        width: 800px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 3%;
    }

    .mega-menu {
        width: 700px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .mobile-search-toggle {
        display: block;
        cursor: pointer;
    }

    .fa-toggle-off {
        z-index: 2000;
    }

    .main-nav {
        display: none;
    }

    .mobile-search {
        display: block;
    }

    .logo {
        order: 2;
        text-align: center;
    }

    .mobile-menu-toggle {
        order: 1;
    }

    .user-actions {
        order: 3;
    }

    .footer-column {
        min-width: 50%;
    }
}

@media (max-width: 576px) {
    .announcement-bar {
        font-size: 12px;
        padding: 5px 0;
    }

    .user-actions .search-box {
        display: block;
    }

    .footer-column {
        min-width: 100%;
    }

    .footer-container {
        flex-direction: column;
    }
}