/* 左侧登录弹窗样式 */
.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}
.login-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.login-popup.open {
    transform: translateX(0);
}
.login-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}
.login-popup-close::before,
.login-popup-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #333;
}
.login-popup-close::before {
    transform: rotate(45deg);
}
.login-popup-close::after {
    transform: rotate(-45deg);
}
.login-popup-close:hover {
    background: #eee;
}
/* 品牌名称 */
.login-popup-brand {
    padding: 100px 24px 30px;
    text-align: center;
}
.login-popup-brand h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    margin: 0;
    color: #000;
}
/* 标题 */
.login-popup-title-section {
    padding: 0 24px 20px;
    text-align: center;
}
.login-popup-title-section h2 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
    color: #333;
}
/* 表单区域 */
.login-popup-form {
    padding: 0 24px;
}
.login-popup-form .form-group {
    margin-bottom: 12px;
}
.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.login-input:focus {
    border-color: #333;
}
/* 按钮样式 */
.login-btn-primary {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 16px;
}
.login-btn-primary:hover {
    background: #333;
}
/* 分隔符 */
.login-divider {
    text-align: center;
    position: relative;
    margin-bottom: 16px;
}
.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}
.login-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 12px;
}
/* 社交登录按钮 */
.login-btn-social {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 12px;
}
.login-btn-social:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
.login-btn-shop {
    color: #333;
}
.login-btn-google {
    color: #333;
}
/* 隐私政策 */
.login-privacy {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 16px;
    line-height: 1.6;
}
.login-privacy a {
    color: #666;
    text-decoration: underline;
}
/* 产品推荐区域 */
.login-popup-products {
    flex: 1;
    overflow-y: auto;
    padding: 30px 24px 60px;
}

/* Favorites 登录提示 */
.favorites-login-prompt {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}
.favorites-login-prompt svg {
    color: #ddd;
    margin-bottom: 12px;
}
.favorites-login-prompt p {
    font-size: 13px;
    margin: 0;
    color: #333;
}
.favorites-login-prompt a {
    color: #333;
    text-decoration: underline;
}
.favorites-login-prompt a:hover {
    color: #000;
}
.product-section {
    margin-bottom: 24px;
}
.product-section h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 12px;
    color: #333;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.product-item {
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    padding: 4px;
}
.product-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}
.product-item-name {
    font-size: 12px;
    color: #333;
    margin-top: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-item-price {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}
/* 底部导航 */
.login-popup-footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    background: #fff;
}
.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    font-size: 10px;
}
.footer-nav-item:hover {
    color: #333;
}
.footer-nav-item svg {
    width: 22px;
    height: 22px;
}
@media (max-width: 520px) {
    .login-popup {
        width: 100%;
    }
}

/* 隐藏底部导航按钮 */
.login-popup-footer-nav {
    display: none !important;
}

/* 登录按钮链接样式 */
.login-btn-primary {
    display: block;
    text-align: center;
    text-decoration: none;
}
