:root { --bg: #faf9f6; --text: #1a1a1a; --accent: #b59a7d; --valentine: #d63384; }
* { box-sizing: border-box; transition: .4s cubic-bezier(.4, 0, .2, 1); }
body { margin: 0; font-family: Inter, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; z-index: 5000; background: rgba(250, 249, 246, 0.95); backdrop-filter: blur(10px); }
.logo-container { text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.logo-main { font-family: 'Playfair Display'; letter-spacing: 8px; font-weight: 700; font-size: 1.1rem; }
.logo-sub { font-family: 'Alex Brush'; color: var(--accent); transform: rotate(-5deg); margin-left: 35px; font-size: 1.4rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; align-items: center; padding: 0; }
.nav-links li { cursor: pointer; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

/* HERO SECTION */
#hero-header { height: 100vh; background: url(bead.png) center/cover no-repeat; display: flex; align-items: center; justify-content: center; position: fixed; top: 0; width: 100%; z-index: 1; }
.hero-square { background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 4rem 2rem; border-radius: 40px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); width: 85%; max-width: 800px; }
.hero-square h1 { font-family: 'Playfair Display'; font-style: italic; font-size: clamp(1.8rem, 8vw, 3.5rem); margin-bottom: 2rem; line-height: 1.2; }

/* CONTENT & PRODUCTS */
.content-wrapper { margin-top: 100vh; position: relative; z-index: 2; background: var(--bg); padding-bottom: 2rem; }
.products { 
    padding: 2rem 5%; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    text-align: center; 
}
.product-card { background: white; padding: 15px; border-radius: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.product-card img { width: 100%; height: 300px; object-fit: cover; border-radius: 20px; margin-bottom: 15px; }

/* MODALS */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 15px; }
.overlay.active { display: flex; }
.modal-card { background: white; border-radius: 30px; position: relative; overflow: hidden; width: 100%; max-width: 900px; min-height: 500px; max-height: 95vh; overflow-y: auto; }
.close-x { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; z-index: 100; }

/* VALENTINE & REVIEW SPECIFIC STYLES */
.section-divider { display: flex; align-items: center; justify-content: center; margin: 3rem 5%; gap: 20px; }
.section-divider .line { flex: 1; height: 1px; background: #eee; }
.divider-text { font-family: 'Playfair Display'; font-size: 0.9rem; letter-spacing: 3px; white-space: nowrap; }

.valentine-countdown { border: 1px dashed var(--valentine); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 
    0% { border-color: #ffccd5; } 
    50% { border-color: var(--valentine); } 
    100% { border-color: #ffccd5; } 
}

#review-modal input, #review-modal textarea { background: #fff5f7; border: 1px solid #ffe0e6; }

/* USER PROFILE CONTAINER */
#user-profile-container { 
    width: 100% !important; 
    max-width: 100% !important;
    margin-left: 0 !important; 
    margin-right: 0 !important;
    padding: 80px 40px !important;
    display: none; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important; 
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}
#user-profile-container[style*="display: block"] { 
    display: flex !important; 
}

#hi-user { 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    margin-bottom: 30px; 
    font-family: 'Playfair Display'; 
    font-weight: 700;
    width: 100%;
}

/* ACCOUNT SWIPE CARD */
.auth-card { display: flex; min-height: 550px; position: relative; width: 900px; max-width: 100%; }
.side-panel { width: 45%; background: #1a1a1a; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; text-align: center; position: absolute; height: 100%; z-index: 10; border-radius: 0 150px 150px 0; left: 0; }
.auth-card.swipe .side-panel { left: 55%; border-radius: 150px 0 0 150px; }
.form-area { width: 55%; padding: 40px; display: flex; flex-direction: column; justify-content: center; margin-left: 45%; }
.auth-card.swipe .form-area { margin-left: 0; }

/* BUTTONS & INPUTS */
.btn-black { background: #1a1a1a; color: white; padding: 1rem 2.5rem; border: none; border-radius: 40px; cursor: pointer; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; width: auto; display: inline-block; }
.btn-black:disabled { background: #ccc; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid #1a1a1a; color: #1a1a1a; padding: 1rem 2.5rem; border-radius: 40px; cursor: pointer; text-transform: uppercase; font-size: .75rem; display: inline-block; margin-top: 10px; }

input, textarea { width: 100%; padding: 15px; margin: 10px 0; border: none; border-radius: 12px; background: #f2f2f2; font-size: 16px; }

/* BAG MODAL */
#bag-modal .modal-card { display: flex; flex-direction: column; padding: 40px; }
#bag-list { flex: 1; overflow-y: auto; margin-bottom: 20px; padding-right: 5px; }
.bag-footer { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #eee; padding-top: 20px; }

/* FOOTER */
footer { background: #1a1a1a; color: white; padding: 4rem 5%; text-align: center; position: relative; z-index: 2; }
.footer-links-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 25px; }
.footer-link { color: white; text-decoration: none; font-weight: 500; font-size: 0.85rem; }

/* This forces the Valentine products to be side-by-side */
.valentine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

/* Adjusting images for the 2-column layout so they aren't too tall */
.valentine-grid .product-card img {
    height: 180px; 
    object-fit: cover;
}

@media (max-width: 480px) {
    .valentine-grid {
        gap: 10px;
    }
    .valentine-grid .product-card img {
        height: 140px;
    }
    .valentine-grid .product-card h3 {
        font-size: 0.8rem;
    }
}

/* SUCCESS MODAL ONLY */
#success-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; z-index: 10000; border-radius: 20px; display: none; width: 95%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 30px; text-align: center; }

/* CHOICE MODAL - PILL BAR STYLE */
#choice-modal { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: white; 
    z-index: 10000; 
    border-radius: 50px; 
    display: none; 
    width: 92%; 
    max-width: 550px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    border: 1px solid #eee;
    overflow: hidden;
}

.active-popup { display: block !important; }

/* SHEIN-STYLE ADDED MODAL LAYOUT - FIXED FOR HORIZONTAL */
.shein-modal-content { 
    display: flex !important; 
    flex-direction: row !important; /* Forces row on both mobile and PC */
    align-items: center; 
    justify-content: space-between;
    width: 100%; 
    padding: 12px 20px;
}

.shein-img-container { display: none; } /* Hidden to keep the pill bar look clean */

.shein-details { 
    width: 100%; 
    padding: 0; 
    text-align: left; 
    display: flex !important; 
    flex-direction: row !important; /* Keeps Added! and Buttons side-by-side */
    justify-content: space-between; 
    align-items: center; 
}

.shein-details h2 { 
    font-family: 'Playfair Display'; 
    font-size: 1.1rem; 
    margin: 0; 
    white-space: nowrap;
}

.shein-details .price { display: none; }

/* BUTTONS INSIDE PILL BAR */
.shein-details .btn-black, .shein-details .btn-outline {
    padding: 10px 12px;
    font-size: 0.65rem;
    margin: 0 0 0 8px;
    width: auto;
    white-space: nowrap;
}

/* MOBILE OPTIMIZATION - FORCED 2 COLUMNS */
@media (max-width: 768px) {
    .navbar { padding: 1rem 3%; }
    .logo-main { letter-spacing: 3px; font-size: 0.85rem; }
    .logo-sub { font-size: 1rem; margin-left: 15px; }
    .nav-links { gap: 0.8rem; }
    .nav-links li { font-size: 0.65rem; letter-spacing: 1px; }
    
    .products { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        padding: 1rem 2%;
    }
    .product-card { padding: 8px; border-radius: 15px; }
    .product-card img { height: 180px; border-radius: 12px; }
    .product-card h3 { font-size: 0.8rem; }

    .auth-card { flex-direction: column !important; min-height: 500px; }
    .side-panel { position: relative !important; width: 100% !important; height: 150px !important; border-radius: 0 0 50px 50px !important; left: 0 !important; padding: 20px; }
    .form-area { width: 100% !important; margin-left: 0 !important; padding: 25px !important; }
    .auth-card.swipe .side-panel { left: 0 !important; border-radius: 0 0 50px 50px !important; }
    
    /* Ensure choice modal ignores the general column rule */
    #choice-modal .shein-modal-content { flex-direction: row !important; }
    #choice-modal .shein-details { flex-direction: row !important; }
}