/* Auth Controls */
.auth-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-controls .username {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.auth-btn {
    background: #fff;
    border: 2px solid #2ecc71;
    color: #2ecc71;
    padding: 6px 12px; /* Reduced padding for mobile */
    border-radius: 15px; /* Slightly smaller border radius */
    cursor: pointer;
    font-size: 12px; /* Reduced font size for mobile */
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: #2ecc71;
    color: white;
}

.auth-btn.logout-btn {
    border-color: #e74c3c;
    color: #e74c3c;
}

.auth-btn.logout-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 400px;
    width: 90%;
}

.auth-modal h2 {
    color: #2c3e50;
    margin-bottom: 24px;
}

.auth-modal .form-group {
    margin-bottom: 16px;
}

.auth-modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-modal input:focus {
    border-color: #2ecc71;
    outline: none;
}

.auth-modal .auth-submit {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
}

.auth-modal .auth-submit:hover {
    background: #27ae60;
}

.auth-modal p {
    margin-top: 16px;
    text-align: center;
    color: #666;
}

.auth-modal a {
    color: #2ecc71;
    text-decoration: none;
}

.auth-modal a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #95a5a6 !important;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #2ecc71 !important;
}

#forgot-password-form .form-group {
    margin-bottom: 20px;
}

#forgot-password-form input {
    margin-bottom: 8px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    border-radius: 18px;
    padding: 4px 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 12px;
    line-height: 1;
}

.whatsapp-float:hover {
    background: #128C7E;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.whatsapp-float i {
    font-size: 18px;
    margin-left: 4px;
}

.whatsapp-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 1px;
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .auth-controls {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start; /* left-align on mobile */
        padding-left: 4px; /* reduced offset from page start */
        gap: 8px;
    }
    
    .auth-btn {
        width: auto;
        padding: 8px; /* Adjust padding for mobile */
        font-size: 14px; /* Adjust font size for mobile */
    }
    .Search-bar input {
        width: 70%; /* Adjust search input width */
        padding: 8px; /* Adjust padding for mobile */
    }
    .Search-bar button {
        padding: 8px; /* Adjust button padding */
    }

    /* Move search and cart visually into the header on mobile (CSS-only) */
    .Search-bar {
        position: fixed;
        top: 10px; /* align with header area */
        right: 64px; /* leave room for cart icon */
        z-index: 1100;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .Search-bar input {
        width: 140px; /* compact width for header */
        padding: 6px 8px;
        font-size: 14px;
    }

    .Search-bar button {
        padding: 6px 8px;
        font-size: 14px;
    }

    .cart-icon {
        position: fixed;
        top: 10px;
        right: 12px;
        z-index: 1100;
        background: transparent;
    }

    /* Ensure the original controls-bar content doesn't overlap the fixed header area */
    .controls-bar {
        padding-top: 48px;
    }
}