/*
Theme Name: LumiKids Premium
Author: LumiKids
Description: Premium WooCommerce theme with Day/Night magic and Live Customizer.
Version: 2.0
*/

:root {
    /* ORGANIC COTTON COLORS */
    --c-white: #FAFAFA; --c-grey: #C8C8C8; --c-blue: #A3C5D8;
    --c-black: #1A1A1E; --c-pink: #D4A5A5; --c-purple: #BBAEE0;

    /* DAY MODE */
    --bg-base: #FFFDF9; --surface: #FFFFFF; --text-main: #2D3142;
    --text-muted: #8E94A8; --border: #F0EAE5;
    
    /* NIGHT MODE */
    --bg-night: #0B0E23; --surface-night: #1A1F3D; --text-night: #F4F5F8;
    --accent-night: #AEE2FF; --glow: rgba(174, 226, 255, 0.4);
    
    /* STANDARDS */
    --radius-soft: 32px; --radius-card: 24px; --radius-pill: 100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; background: var(--bg-base); color: var(--text-main); transition: var(--transition); overflow-x: hidden; line-height: 1.6; }
body.night-mode { background: var(--bg-night); color: var(--text-night); }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -0.5px; }

.container { max-width: 1250px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 10; }
.section-pad { padding: 100px 0; }

/* UNIFIED SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 10px; color: var(--text-main); transition: var(--transition); }
body.night-mode .section-header h2 { color: var(--text-night); text-shadow: 0 0 15px var(--glow); }
.section-header p { font-size: 1.2rem; color: var(--text-muted); font-weight: 600; max-width: 600px; margin: 0 auto; }

/* UNIFIED BUTTONS */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--text-main); color: #FFF; border: none; padding: 16px 36px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; border-radius: var(--radius-pill); cursor: pointer; transition: var(--transition); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.15); }
body.night-mode .btn-primary { background: var(--accent-night); color: var(--bg-night); box-shadow: 0 10px 20px var(--glow); }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: transparent; color: var(--text-main); border: 2px solid var(--border); padding: 14px 20px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; border-radius: var(--radius-pill); cursor: pointer; transition: var(--transition); text-decoration: none; text-transform: uppercase; }
.btn-secondary:hover { background: var(--text-main); color: #FFF; border-color: var(--text-main); }
body.night-mode .btn-secondary { border-color: rgba(255,255,255,0.1); color: var(--text-night); }
body.night-mode .btn-secondary:hover { background: var(--accent-night); color: var(--bg-night); border-color: var(--accent-night); }

/* BACKGROUND MAGIC */
.bg-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.3; transition: var(--transition); }
.blob-1 { width: 450px; height: 450px; background: var(--c-pink); top: -100px; left: -100px; }
.blob-2 { width: 550px; height: 550px; background: var(--c-blue); bottom: 10%; right: -150px; }
body.night-mode .blob-1 { background: #1A1F3D; opacity: 0.8; }
body.night-mode .blob-2 { background: #232A54; opacity: 0.5; }

/* HEADER */
header { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255, 253, 249, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 15px 0; transition: var(--transition); }
body.night-mode header { background: rgba(11, 14, 35, 0.95); border-color: rgba(255,255,255,0.05); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-height: 45px; transition: var(--transition); }
body.night-mode .logo-img { filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--glow)); }

.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-main); font-family: 'Outfit'; font-weight: 700; font-size: 1rem; transition: 0.3s; }
body.night-mode .nav-links a { color: var(--text-night); }
.magic-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--surface); padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); transition: var(--transition); }
body.night-mode .magic-toggle { background: var(--surface-night); border-color: rgba(174, 226, 255, 0.2); }
.toggle-label { font-family: 'Outfit'; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }
body.night-mode .toggle-label { color: var(--accent-night); }
.icon-sm { font-size: 1.2rem; transition: transform 0.6s ease; }
body.night-mode .icon-sm { transform: rotate(360deg); }

/* SECTIONS & BOXES */
.hero { padding-top: 180px; padding-bottom: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; transition: var(--transition); }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 35px; font-weight: 600; max-width: 500px; }
body.night-mode .hero-text h1 { color: var(--text-night); }
.highlight { color: var(--c-pink); transition: var(--transition); }
body.night-mode .highlight { color: var(--accent-night); text-shadow: 0 0 20px var(--glow); }

.hero-visual, .config-preview { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-soft); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.08); background: var(--surface); }
body.night-mode .hero-visual, body.night-mode .config-preview { box-shadow: 0 20px 50px rgba(0,0,0,0.4); background: var(--surface-night); }
.img-swap { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.8s ease; }
.img-night { opacity: 0; }
body.night-mode .img-day { opacity: 0; }
body.night-mode .img-night { opacity: 1; }

.live-name-overlay { position: absolute; top: 75%; left: 50%; transform: translate(-50%, -50%); font-family: 'Outfit'; font-weight: 900; font-size: 2rem; color: #222; text-align: center; z-index: 5; pointer-events: none; transition: var(--transition); text-transform: capitalize; }
body.night-mode .live-name-overlay { color: var(--accent-night); text-shadow: 0 0 20px var(--glow); }

/* GRID CARDS (How it works & Products) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { padding: 40px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: var(--transition); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
body.night-mode .step-card { background: var(--surface-night); border-color: rgba(255,255,255,0.05); }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.step-icon { font-size: 2.5rem; margin-bottom: 20px; display: inline-block; padding: 15px; background: var(--bg-base); border-radius: 50%; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
body.night-mode .step-icon { background: #11142A; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.product-card { background: var(--surface); border-radius: var(--radius-card); padding: 20px; text-align: center; transition: var(--transition); border: 1px solid var(--border); display: flex; flex-direction: column; position: relative; }
body.night-mode .product-card { background: var(--surface-night); border-color: rgba(255,255,255,0.05); }
.p-img-box { width: 100%; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; margin-bottom: 20px; background: #F8F8F8; }
body.night-mode .p-img-box { background: #11142A; }

/* CUSTOMIZER (ATELIER) */
.config-wrapper { background: var(--surface); border-radius: var(--radius-soft); padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.03); transition: var(--transition); }
body.night-mode .config-wrapper { background: var(--surface-night); border-color: rgba(255,255,255,0.05); }
.custom-input { width: 100%; padding: 15px 20px; border: 2px solid var(--border); border-radius: 12px; font-family: 'Nunito'; font-size: 1.1rem; color: var(--text-main); background: var(--bg-base); transition: var(--transition); outline: none; margin-bottom: 25px; }
body.night-mode .custom-input { background: var(--bg-night); border-color: rgba(255,255,255,0.1); color: var(--text-night); }
.step-title { font-size: 1rem; text-transform: uppercase; font-weight: 800; color: var(--text-muted); margin-bottom: 15px; letter-spacing: 1px; }

.opt-card { border: 2px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; transition: 0.2s; font-family: 'Nunito'; font-weight: 700; color: var(--text-muted); }
body.night-mode .opt-card { border-color: rgba(255,255,255,0.1); color: #AAA; }
.opt-card.active { border-color: var(--text-main); color: var(--text-main); background: rgba(0,0,0,0.02); }
body.night-mode .opt-card.active { border-color: var(--accent-night); color: var(--accent-night); background: rgba(174, 226, 255, 0.05); }
.design-thumb { width: 100%; aspect-ratio: 1/1; background: #eee; border-radius: 8px; margin-bottom: 8px; background-size: cover; background-position: center; }

/* COLOR-IT & GIFT BANNERS (FULL WIDTH SECTIONS) */
.rich-banner { border-radius: var(--radius-soft); padding: 60px 80px; display: flex; align-items: center; justify-content: space-between; gap: 50px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); transition: var(--transition); overflow: hidden; position: relative; }
.banner-gift { background: var(--c-blue); color: #111; }
.banner-colorit { background: var(--c-purple); color: white; margin-top: 40px; }
body.night-mode .rich-banner { background: #2A1B3D; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: white; }
.rich-banner h2 { font-size: 3rem; margin-bottom: 15px; color: inherit; }
.rich-banner p { font-size: 1.2rem; opacity: 0.9; max-width: 550px; font-weight: 600; margin-bottom: 25px; }

/* CHAT BOT & FOOTER */
.chat-btn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: var(--text-main); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; color: white; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 9999; transition: 0.3s; }
body.night-mode .chat-btn { background: var(--accent-night); box-shadow: 0 0 20px var(--glow); }
.chat-window { position: fixed; bottom: 110px; right: 30px; width: 340px; background: var(--surface); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); border: 1px solid var(--border); z-index: 9998; display: none; flex-direction: column; overflow: hidden; }
body.night-mode .chat-window { background: var(--surface-night); border-color: rgba(255,255,255,0.1); }
.chat-head { background: var(--c-blue); padding: 20px; color: var(--text-main); }

footer { padding: 80px 0 40px; border-top: 1px solid var(--border); margin-top: 80px; background: var(--surface); transition: var(--transition); }
body.night-mode footer { border-color: rgba(255,255,255,0.05); background: var(--surface-night); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: 0.3s; }
.footer-links a:hover { color: var(--c-pink); }
body.night-mode .footer-links a:hover { color: var(--accent-night); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero, .rich-banner, .config-wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero { padding-top: 130px; }
    .rich-banner { padding: 40px 20px; flex-direction: column-reverse; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}