/*
Theme Name: MEGA Life
Theme URI: https://life.megasmarthome.vn/
Author: MEGAGROUP
Description: Giao diện trải nghiệm sống và danh mục sản phẩm cho MEGA Life.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mega-life
*/
:root{--ink:#182921;--muted:#617169;--cream:#f6f3ec;--paper:#fffefa;--leaf:#355946;--lime:#d8e8b7;--line:#dddcd2;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input{font:inherit}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,254,250,.95);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}.brand{font-weight:800;letter-spacing:.09em;font-size:20px;white-space:nowrap}.brand span{color:#88a76f}.site-nav{display:flex;gap:26px;align-items:center;margin-left:auto;font-size:14px;font-weight:600}.site-nav a:hover,.text-link:hover{color:#6f926a}.header-cta,.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 20px;border-radius:999px;background:var(--leaf);color:white;font-weight:700;font-size:14px;border:1px solid var(--leaf);transition:.2s}.button:hover,.header-cta:hover{background:#203f30;color:white}.button.light{background:transparent;color:var(--ink);border-color:#a8b7a8}.button.light:hover{background:#edf2e5}.menu-toggle{display:none;background:none;border:0;font-size:28px;cursor:pointer}.hero{background:var(--cream);overflow:hidden}.hero-grid{min-height:590px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.19em;font-size:11px;font-weight:800;color:#78936c;margin-bottom:22px}.hero h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.1}.hero h1{font-size:clamp(52px,6vw,92px);letter-spacing:-.055em;margin:0 0 22px}.hero h1 em{font-weight:400;color:#7b9b6e}.hero p{max-width:520px;color:var(--muted);font-size:18px;margin:0 0 31px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-art{height:510px;position:relative;border-radius:250px 250px 14px 14px;overflow:hidden;background:linear-gradient(150deg,#83947a 0%,#c9cab2 38%,#e3dbbe 39%,#b69570 100%);box-shadow:0 30px 55px #243b2826}.hero-art:before{content:'';position:absolute;width:68%;height:65%;left:17%;top:14%;border-radius:180px 180px 0 0;background:linear-gradient(125deg,#5e7767,#a9b79a 52%,#f2e6c9 52%);box-shadow:inset 0 0 0 14px #e6dfc9}.hero-art:after{content:'';position:absolute;left:5%;bottom:-14%;width:95%;height:48%;border-radius:50% 50% 0 0;background:#b98f69;box-shadow:0 -28px 0 -13px #dbcaa7}.hero-note{position:absolute;z-index:2;right:25px;bottom:25px;max-width:210px;background:#fffef8e8;padding:18px;border-radius:12px;font-size:13px;line-height:1.4}.hero-note strong{display:block;font-family:var(--serif);font-size:23px;font-weight:400}.section{padding:100px 0}.section.cream{background:var(--cream)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:34px}.section h2{font-size:clamp(36px,4vw,58px);letter-spacing:-.035em;margin:0}.section-intro{max-width:500px;color:var(--muted);margin:12px 0 0}.text-link{font-weight:700;font-size:14px;white-space:nowrap}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.category-card{position:relative;min-height:345px;background:#e6e8d8;border-radius:12px;overflow:hidden;display:flex;align-items:end;padding:26px}.category-card:nth-child(2){background:#dad5c8}.category-card:nth-child(3){background:#d7dfd4}.category-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}.category-card:hover img{transform:scale(1.04)}.category-card:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#15291bb3)}.category-card .category-label{position:relative;z-index:1;color:white;font:30px var(--serif)}.category-card:not(:has(img)) .category-label{color:var(--ink)}.category-card:not(:has(img)):after{display:none}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{min-width:0}.product-card .image{display:block;aspect-ratio:1;background:#efefe7;border-radius:10px;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.product-card:hover img{transform:scale(1.04)}.product-card .name{font:24px/1.2 var(--serif);margin:14px 0 4px}.product-card .price{font-size:14px;font-weight:700;color:var(--leaf)}.product-card .excerpt{font-size:13px;color:var(--muted);margin:8px 0 0}.video-feature{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.video-frame{aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#dbe2d4;display:grid;place-items:center}.video-frame iframe{width:100%;height:100%;border:0}.video-placeholder{padding:40px;text-align:center;color:var(--leaf);font-family:var(--serif);font-size:28px}.video-feature p{color:var(--muted);max-width:470px}.consult{background:#244434;color:#fff;padding:80px 0}.consult-inner{display:flex;justify-content:space-between;align-items:center;gap:35px}.consult h2{font-size:clamp(36px,4vw,58px);margin:0 0 12px}.consult p{margin:0;color:#d5e3d6}.consult .button{background:var(--lime);color:var(--ink);border-color:var(--lime)}.site-footer{background:#162c21;color:#c8d5c9;padding:50px 0 25px}.footer-grid{display:flex;justify-content:space-between;gap:40px}.footer-grid p{max-width:380px}.footer-links{display:flex;gap:24px;flex-wrap:wrap}.copyright{border-top:1px solid #ffffff23;margin-top:45px;padding-top:20px;font-size:13px}.page-head{padding:70px 0 45px;background:var(--cream)}.page-head h1{font:clamp(42px,5vw,70px)/1.1 var(--serif);margin:0 0 12px}.page-head p{max-width:650px;color:var(--muted)}.catalog{padding:55px 0 100px}.catalog .woocommerce .products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:0}.catalog .woocommerce .products:before,.catalog .woocommerce .products:after{display:none}.catalog .woocommerce ul.products li.product{float:none;width:auto;margin:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px}.catalog .woocommerce ul.products li.product img{aspect-ratio:1;object-fit:cover;border-radius:6px}.catalog .woocommerce ul.products li.product .woocommerce-loop-product__title{font:23px var(--serif);color:var(--ink)}.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:var(--leaf)!important;font-weight:700}.woocommerce ul.products li.product .button,.woocommerce div.product form.cart .button{display:none}.woocommerce div.product{padding:70px 0}.woocommerce div.product .product_title{font:clamp(38px,4vw,62px)/1.1 var(--serif)}.woocommerce div.product div.images img{border-radius:10px}.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:13px}.product-consult{margin:22px 0}.entry-content{padding:60px 0;max-width:800px}.empty-state{padding:45px;background:var(--cream);border-radius:12px}.floating-zalo{position:fixed;right:22px;bottom:22px;z-index:21;box-shadow:0 12px 30px #12321b40}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}@media(max-width:900px){.site-nav{gap:14px}.header-cta{display:none}.hero-grid{gap:25px}.hero-art{height:440px}.product-grid,.catalog .woocommerce .products{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.header-inner{min-height:66px}.menu-toggle{display:block;margin-left:auto}.site-nav{display:none;position:absolute;top:65px;left:0;right:0;background:var(--paper);padding:20px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}.site-nav.open{display:flex}.hero-grid,.video-feature{grid-template-columns:1fr}.hero-grid{padding:60px 0 0;gap:45px}.hero-art{height:340px;width:min(100%,400px);margin:auto}.hero h1{font-size:56px}.section{padding:65px 0}.section-head{display:block}.section-head .text-link{display:inline-block;margin-top:15px}.category-grid{grid-template-columns:1fr}.category-card{min-height:250px}.product-grid,.catalog .woocommerce .products{grid-template-columns:repeat(2,1fr)}.video-feature{gap:30px}.consult-inner,.footer-grid{display:block}.consult .button{margin-top:25px}.footer-links{margin-top:25px}.product-card .name{font-size:19px}}
.product-video{clear:both;max-width:900px;margin:65px auto}.product-video h2{font-size:40px}
/* Motion: quick entrances, quiet hover feedback, and an accessible static mode. */
@keyframes hero-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes art-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.hero .eyebrow,.hero h1,.hero p,.hero-actions{animation:hero-rise .7s both}.hero h1{animation-delay:.08s}.hero p{animation-delay:.18s}.hero-actions{animation-delay:.28s}.hero-art{animation:hero-rise .8s .16s both,art-drift 8s 1s ease-in-out infinite}.button,.header-cta{transition:background .22s,transform .22s,box-shadow .22s}.button:hover,.header-cta:hover{transform:translateY(-3px);box-shadow:0 10px 24px #183c2a30}.category-card{transition:transform .35s,box-shadow .35s}.category-card:hover{transform:translateY(-6px);box-shadow:0 18px 34px #183c2a20}.product-card .image{transition:box-shadow .3s,transform .3s}.product-card:hover .image{transform:translateY(-5px);box-shadow:0 14px 30px #183c2a1d}.reveal{opacity:0;transform:translateY(25px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--reveal-delay,0ms)}.reveal.in-view{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal{opacity:1;transform:none}}
