* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

.top-bar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.navbar {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    max-width: 160px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #222;
}

.nav-menu a:hover {
    color: #c8102e;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 8px 16px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 15px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c8102e;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-main {
    background: #f8f8f8;
    padding: 80px 20px;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-container {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 45px 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 15.5px;
}

.form-header a {
    color: #c8102e;
    text-decoration: none;
}

.form-header a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.form-row {
    display: flex;
    gap: 18px;
}

.form-row .form-group {
    flex: 1;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0 30px;
    font-size: 14.5px;
    color: #555;
}

.terms input {
    margin-top: 4px;
}

.terms a {
    color: #c8102e;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.signup-btn {
    width: 100%;
    background: #c8102e;
    color: white;
    border: none;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.signup-btn:hover {
    background: #a00d24;
    transform: translateY(-2px);
}

.social-login {
    text-align: center;
    margin-top: 10px;
}

.social-login p {
    color: #888;
    margin-bottom: 15px;
    font-size: 15px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-buttons button {
    flex: 1;
    padding: 13px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-buttons button:hover {
    background: #f8f8f8;
    border-color: #c8102e;
}

footer {
    background: #111;
    color: #ccc;
    padding: 60px 5% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-col h4 {
    color: #eee;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
}

.footer-col a:hover {
    color: #c8102e;
}

.social {
    font-size: 30px;
    display: flex;
    gap: 25px;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-menu { gap: 20px; font-size: 14px; }
    .signup-container { padding: 35px 25px; }
    .form-row { flex-direction: column; gap: 0; }
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

#userIcon {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

#userIcon:hover {
    background-color: #f1f1f1;
    color: #c8102e;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 15.5px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f8f8;
    color: #c8102e;
}

.dropdown-item i {
    width: 20px;
}

.navbar {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    flex-wrap: wrap;
    gap: 12px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.hamburger {
    display: none;
    font-size: 1.85rem;
    cursor: pointer;
    color: #222;
    padding: 6px 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #222;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #c8102e;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #f8f8f8;
    color: #c8102e;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 30px;
    padding: 9px 16px;
    width: 320px;
    max-width: 100%;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    margin-left: 10px;
    width: 100%;
    font-size: 15.2px;
}

.icons-group {
    display: flex;
    align-items: center;
    gap: 22px;
}

#heartBtn, .cart-icon {
    cursor: pointer;
    padding: 6px;
}

#heartIcon {
    font-size: 1.65rem;
    transition: all 0.25s;
}

#heartIcon:hover {
    color: #c8102e;
    transform: scale(1.15);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
    background: #c8102e;
    color: white;
    font-size: 11.5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 998;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 13px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        margin: 0;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        order: 3;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .icons-group {
        order: 2;
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 12px 5%;
    }
    
    .logo img {
        max-width: 135px;
    }
    
    .search-bar {
        padding: 10px 14px;
    }
    
    .icons-group {
        gap: 16px;
    }
    
    #heartIcon {
        font-size: 1.55rem;
    }
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .search-bar {
        width: 340px;
    }
}