/* KupiBao Home UX V1 — builds on the already used PLP/header/footer component styles */
:root{--home-line:#e4e8ec;--home-ink:#252b31;--home-red:#bd3437;--home-note:#75808b}
.site-header{z-index:20}.header-top{gap:16px}.site-logo{order:1;flex-basis:173px}.header-country{order:2;min-width:135px}.header-search{order:3}.head-actions{order:4;gap:4px}.header-links{gap:24px}.header-help{margin-left:auto}
.mobile-menu-button{display:none}
.home-search{position:relative;padding-right:4px;overflow:visible}
.home-search input{width:100%;font-size:13px}
.photo-search{border-left:1px solid var(--stroke)!important;border-right:0!important;border-top:0!important;border-bottom:0!important;padding:0 9px!important;height:24px;display:grid;place-items:center;color:#636e78!important;background:transparent!important;flex-shrink:0}
.search-submit{border:0;background:#252b31!important;border-radius:0 5px 5px 0;color:#fff!important;height:40px;min-width:72px;padding:0 15px!important;flex-shrink:0;font-size:12px;font-weight:700}
.search-submit:hover{background:#3c434c!important}
.search-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #d9dee3;border-radius:9px;box-shadow:0 18px 44px rgba(33,42,54,.14);padding:9px;z-index:40;color:var(--ink);min-width:330px}
.suggestion-heading{font-size:10px;color:#8c939b;text-transform:uppercase;letter-spacing:.07em;padding:8px 11px}
.suggestion-item{display:flex;align-items:center;gap:11px;min-height:38px;padding:8px 10px;border-radius:6px;font-size:12px;text-decoration:none}
.suggestion-item:hover,.suggestion-item:focus{background:#f6f7f9;color:var(--red)}.suggestion-item .ico{color:#8f96a0}.suggestion-item small{margin-left:auto;font-size:10px;color:#89929c}.suggestion-footer{padding:10px 11px 7px;border-top:1px solid #edf0f2;margin-top:6px;font-size:11px;color:#7d8791}
.catalog-mega{position:absolute;top:100%;left:0;right:0;border-top:1px solid var(--stroke);border-bottom:1px solid var(--stroke);background:#fff;box-shadow:0 20px 35px rgba(24,36,49,.12);z-index:24}
.mega-inner{padding:23px 0 25px}.mega-header{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:17px}.mega-header a{font-size:12px;color:#6b7680}.mega-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mega-groups a{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:2px 10px;border:1px solid var(--stroke);padding:15px;border-radius:7px}.mega-groups a:hover{border-color:#c6cdd4;background:#fafbfc;color:var(--ink)}
.mega-groups .ico{grid-row:span 2;color:#6b747f}.mega-groups strong{font-size:12px}.mega-groups small{font-size:11px}
.mobile-drawer,.mobile-drawer-scrim{display:none}
.home-main{padding:22px 0 62px;background:#f8f9fa}
.hero-layout{display:grid;grid-template-columns:minmax(0,1.83fr) minmax(245px,.78fr);gap:14px;min-height:335px}
.hero-primary{position:relative;overflow:hidden;display:flex;align-items:center;background:linear-gradient(105deg,#fff 0%,#fff 53%,#f7f0ee 100%);border:1px solid #e8e5e4;border-radius:12px;padding:36px 39px;min-width:0}
.hero-copy{position:relative;z-index:2;max-width:520px}.hero-kicker{display:flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.11em;color:#a85b58;font-size:10px;font-weight:750;margin-bottom:20px}.kicker-line{width:26px;height:2px;background:#c35a5c;border-radius:2px}
.hero-primary h1{font-weight:760;font-size:clamp(28px,3vw,42px);letter-spacing:-1.5px;line-height:1.14;margin:0 0 17px;color:#25292f}.hero-primary h1 span{color:#9d3034}
.hero-copy p{color:#666e78;font-size:13px;line-height:1.7;max-width:360px;margin:0 0 26px}
.hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.hero-actions .btn{font-size:12px;border-radius:7px;padding:11px 16px;min-height:42px;display:inline-flex;align-items:center;gap:10px}
.hero-text-link{font-size:12px;color:#5b636d;white-space:nowrap;font-weight:600}.hero-text-link:hover{color:var(--red)}
.hero-visual{position:absolute;right:-9px;top:0;bottom:0;width:41%;pointer-events:none}
.hero-art-circle{position:absolute;width:340px;height:340px;border-radius:50%;border:1px solid #eadfdc;background:radial-gradient(circle at 35% 30%,#fff 0%,#f1e8e5 70%);top:24px;left:0}
.hero-visual img{position:absolute;width:130px;height:150px;object-fit:contain;filter:drop-shadow(0 12px 13px rgba(42,40,44,.10))}
.hero-phone{top:56px;left:36%;transform:rotate(-15deg) scale(1.18)}.hero-earbuds{top:153px;left:-4%;transform:rotate(17deg)}.hero-charger{top:157px;left:58%;transform:rotate(-6deg) scale(.85)}
.hero-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.hero-small{border:1px solid var(--stroke);border-radius:11px;background:#f1f3f5;padding:21px 23px;display:flex;align-items:center;gap:6px;overflow:hidden;min-width:0;position:relative}.hero-small:hover{border-color:#c9d0d7;color:var(--ink)}.hero-home{background:#f0f2f2}.hero-daily{background:#f7f2ec}
.hero-small div{position:relative;z-index:2;max-width:65%}.hero-small strong{font-size:16px;line-height:1.35;letter-spacing:-.25px;display:block;font-weight:720;margin:6px 0 13px}.hero-small img{position:absolute;right:3px;bottom:-15px;width:108px;height:136px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(23,34,43,.07))}.hero-daily img{width:125px;right:-6px;bottom:-18px;transform:rotate(10deg)}.mini-tag{font-size:10px;color:#7f8790;letter-spacing:.02em}.hero-small-arrow{font-size:11px;font-weight:650;color:#56636f}
.home-section{margin-top:40px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}.section-header h2{margin:0 0 4px;font-size:22px;line-height:1.2;letter-spacing:-.45px}.section-header p{color:#89919b;font-size:12px;margin:0}.section-more{font-size:12px;font-weight:650;color:#606c77;white-space:nowrap;padding-bottom:4px}.section-more:hover{color:var(--red)}.link-button{border:0;background:none;padding:0 0 4px}
.categories-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.category-tile{background:#fff;border:1px solid var(--home-line);border-radius:9px;min-height:123px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;padding:15px 6px;min-width:0}.category-tile:hover{border-color:#bfc8d1;color:#a72e32;box-shadow:0 4px 15px rgba(20,35,51,.04)}
.category-tile .category-art{height:55px;width:68px;display:grid;place-items:center;color:#747f89;border-radius:7px;background:#f7f8f9}.category-tile .category-art svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.category-tile strong{font-size:11px;line-height:1.2;font-weight:650;min-height:26px;display:flex;align-items:center;justify-content:center}
.collections-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.collection-card{position:relative;min-height:199px;border:1px solid var(--home-line);border-radius:10px;padding:22px 22px 20px;overflow:hidden;display:flex;background:#eef0f3}.collection-card:hover{border-color:#bfc7d0;color:inherit}.collection-1{background:#f3f0eb}.collection-2{background:#ebeff2}.collection-3{background:#f0f2ec}
.collection-copy{position:relative;z-index:2;max-width:65%}.collection-subtitle{font-size:10px;color:#7d8790;display:block;margin-bottom:12px}.collection-card h3{font-size:18px;line-height:1.2;letter-spacing:-.5px;margin:0 0 10px}.collection-card p{font-size:11px;color:#7c8690;line-height:1.45;margin:0 0 19px}.collection-link{font-size:11px;color:#46525e;font-weight:650}
.collection-art{position:absolute;right:0;bottom:0;width:44%;height:92%;pointer-events:none}.collection-art img{position:absolute;object-fit:contain;width:116px;height:132px;filter:drop-shadow(0 8px 9px rgba(31,42,51,.08))}.collection-art img:first-child{right:7px;bottom:11px;transform:rotate(9deg)}.collection-art img:last-child{right:50px;bottom:-22px;transform:rotate(-12deg) scale(.84)}
.product-tabs{display:flex;align-items:center;gap:8px;margin-bottom:16px;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.product-tab{white-space:nowrap;background:#fff;border:1px solid #dfe4e8;border-radius:6px;padding:9px 14px;min-height:36px;color:#616b75;font-weight:600;font-size:12px}.product-tab:hover{border-color:#bfc7ce}.product-tab.active{background:#272d34;color:#fff;border-color:#272d34}
.home-products-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.home-products-grid .product-media{height:190px}.home-products-grid .product-media img{width:76%;height:76%}.home-products-grid .product{border-radius:9px}.home-products-grid .product-content{gap:7px}.home-products-grid .product-group{text-transform:none}.home-products-grid .product-name{font-size:12px}.home-products-grid .product-meta .rating{color:#655b4b}.home-products-grid .product-actions .btn{min-height:37px}.home-products-grid .product-heart{border-radius:50%}.home-products-grid .product-heart.is-on svg{fill:#bd343718}
.product-caveat{margin-top:12px;font-size:10px;color:#9299a1}
.browse-card{background:#fff;border:1px solid #dfe4e8;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:9px;min-height:360px;padding:25px}.browse-card .ico{color:#8e949b}.browse-card .ico svg{width:40px;height:40px}.browse-card strong{font-size:18px;line-height:1.3}.browse-card p{font-size:12px;color:#7e8892;margin:0 0 9px}.browse-card .btn{font-size:12px}
.how-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--home-line);border-radius:10px;overflow:hidden}.how-step{position:relative;padding:24px 23px 22px;min-width:0;border-right:1px solid #edf0f3}.how-step:last-child{border-right:0}.how-number{position:absolute;right:20px;top:19px;color:#bdc3cb;font-size:12px;font-weight:700}.how-icon{width:43px;height:43px;background:#f4f6f8;border-radius:9px;color:#6f7b86;margin-bottom:17px}.how-icon svg{width:23px;height:23px}.how-step h3{font-size:13px;margin:0 0 8px}.how-step p{color:#7a8490;font-size:11px;margin:0;line-height:1.55}
.help-banner{position:relative;overflow:hidden;display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:24px;margin-top:40px;background:#fff;border:1px solid var(--home-line);border-radius:11px;min-height:220px;padding:19px 45px 19px 0}.help-bao{position:relative;height:190px;align-self:stretch;overflow:hidden}.help-bao:before{content:'';position:absolute;left:-55px;bottom:-107px;background:#f6efeb;width:280px;height:280px;border-radius:50%}.help-bao img{position:absolute;bottom:-2px;left:19px;width:169px;height:168px;object-fit:contain;object-position:center bottom}.help-content{max-width:700px}.help-kicker{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.11em;color:#ad5c58;font-weight:750;margin-bottom:8px}.help-content h2{font-size:22px;letter-spacing:-.5px;line-height:1.22;margin:0 0 9px}.help-content p{font-size:12px;color:#69737e;line-height:1.65;margin:0 0 18px;max-width:650px}.help-actions{display:flex;align-items:center;gap:20px}.help-actions .btn{font-size:12px;min-height:40px}.help-plain-link{font-size:12px;color:#5b6772;font-weight:650}
.recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.recent-card{display:flex;align-items:center;gap:13px;border:1px solid var(--stroke);background:#fff;border-radius:8px;padding:10px}.recent-card img{width:60px;height:60px;background:#f3f5f7;border-radius:6px;padding:8px}.recent-card strong{font-size:12px;line-height:1.4;display:block}.recent-card small{font-size:11px;display:block;margin-top:6px}
/* template alignment: same card, footer and controls as PLP */
.site-header .head-action:hover{background:#f6f7f8}
.home-products-grid .product-media{background:#f3f5f7}
@media(max-width:1160px){.hero-visual{right:-45px;width:40%}.hero-primary{padding:30px}.hero-copy{max-width:490px}.hero-primary h1{font-size:36px}.hero-side .hero-small{padding:17px}.categories-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-tile{min-height:102px}.collection-card{padding:18px}.collection-card h3{font-size:16px}}
@media(max-width:1020px){.header-top{gap:9px}.site-logo{flex-basis:155px}.site-logo img{width:155px}.header-country{min-width:114px}.head-action{min-width:45px;padding:5px}.header-links{gap:14px}.hero-layout{grid-template-columns:minmax(0,1.6fr) minmax(220px,.85fr)}.hero-primary h1{font-size:33px}.hero-visual{opacity:.62}.hero-small strong{font-size:14px}.collections-grid{gap:10px}.collection-art img{width:90px}.home-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.browse-card{min-height:365px}}
@media(max-width:820px){
 .header-top{display:grid;grid-template-columns:34px minmax(0,1fr) 76px 36px 36px;grid-template-rows:38px 42px;gap:8px 7px;padding:10px 0}
 .mobile-menu-button{display:grid;place-items:center;grid-row:1;grid-column:1;border:0;background:transparent;width:34px;height:35px;padding:0;color:#48525d}
 .site-logo{grid-row:1;grid-column:2;order:unset;justify-self:start;min-width:0}.site-logo img{width:min(155px,100%);max-height:36px;object-fit:contain;object-position:left center}
 .header-country{grid-row:1;grid-column:3;order:unset;min-width:0;max-width:none;width:100%;border:0;padding:5px 0;justify-content:center;gap:2px}.header-country .ico{display:none}.header-country strong{font-size:10px;white-space:nowrap}.header-country .country-cap{display:none}
 .head-actions{display:contents}.head-action{max-width:none;min-width:0;width:36px;height:35px;padding:4px;gap:0}.head-action .action-label{display:none}.head-action[data-head="orders"]{grid-row:1;grid-column:4}.head-action[data-head="cart"]{grid-row:1;grid-column:5}.head-action[data-head="favs"],.head-action[data-head="login"]{display:none}.head-action .ico svg{width:21px;height:21px}.counter{top:-3px;left:22px}
 .header-search{grid-row:2;grid-column:1/-1;order:unset;height:42px}.search-submit{height:40px}.header-bottom,.catalog-mega{display:none!important}
 .mobile-drawer-scrim{display:block;position:fixed;inset:0;z-index:49;background:rgba(13,20,31,.45)}
 .mobile-drawer{display:block;position:fixed;top:0;bottom:0;left:0;width:min(345px,86vw);z-index:50;background:#fff;overflow-y:auto;box-shadow:10px 0 40px rgba(0,0,0,.15);transform:translateX(-110%);transition:transform .22s ease}
 .mobile-drawer.open{transform:translateX(0)}.drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);padding:20px 18px}.drawer-head strong{font-size:16px}.drawer-head button{border:0;background:none;padding:5px}.drawer-links{padding:10px}.drawer-links a,.drawer-links button{display:flex;align-items:center;gap:14px;width:100%;border:0;background:transparent;padding:12px 10px;text-align:left;min-height:42px;font-size:13px;color:#45515c;border-radius:6px}.drawer-links a:hover,.drawer-links button:hover{background:#f7f8fa}.drawer-links .ico{color:#818992}.drawer-links a>span:last-child:not(.ico),.drawer-links button>span:last-child:not(.ico){margin-left:auto;color:#a0a6ad}.drawer-heading{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#8d969f;margin:10px 18px}.drawer-categories{display:grid;grid-template-columns:1fr 1fr;padding:0 14px;gap:4px}.drawer-categories a{padding:9px;font-size:12px;background:#f8f9fa;border-radius:5px}.drawer-country{margin:18px;display:flex;align-items:center;gap:8px;border:1px solid var(--stroke);background:#fff;border-radius:8px;padding:11px;font-size:12px;width:calc(100% - 36px)}
 .home-main{padding-top:15px}.hero-layout{grid-template-columns:1fr;min-height:auto}.hero-primary{min-height:290px}.hero-visual{right:5px;width:36%;opacity:.55}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.hero-small{min-height:126px}.hero-small img{width:100px}.hero-small strong{font-size:14px}.home-section{margin-top:32px}.collections-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(230px,calc(50% - 7px));overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:8px}.collections-grid .collection-card{scroll-snap-align:start}.home-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.how-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.how-step:nth-child(2){border-right:0}.how-step:nth-child(-n+2){border-bottom:1px solid #edf0f3}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:590px){
 .wrap{width:calc(100% - 24px)}.header-top{grid-template-columns:31px minmax(0,1fr) 62px 33px 33px;gap:7px 5px}.site-logo img{width:min(137px,100%)}.header-country strong{font-size:10px}.head-action{width:33px}.search-suggestions{min-width:0}
 .home-main{padding-top:12px;padding-bottom:40px}.hero-layout{gap:9px}.hero-primary{min-height:264px;padding:26px 23px 27px}.hero-kicker{font-size:9px;margin-bottom:14px}.hero-primary h1{font-size:29px;letter-spacing:-1.0px;max-width:315px;margin-bottom:14px}.hero-primary h1 span{color:#9d3034}.hero-copy p{font-size:12px;max-width:260px;line-height:1.55;margin-bottom:18px}.hero-actions{gap:14px}.hero-actions .btn{font-size:11px;min-height:39px;padding:9px 12px}.hero-text-link{font-size:11px}.hero-visual{opacity:.24;width:43%;right:-36px}.hero-art-circle{width:280px;height:280px;left:-5px}.hero-visual img{width:115px}
 .hero-side{grid-template-columns:1fr 1fr;gap:8px}.hero-small{min-height:124px;padding:14px 13px}.hero-small div{max-width:100%}.hero-small img{opacity:.26;right:-20px;bottom:-20px}.hero-small strong{font-size:13px;max-width:170px;margin:5px 0 10px}.hero-small .mini-tag{font-size:9px}.hero-small-arrow{font-size:10px}
 .home-section{margin-top:28px}.section-header{margin-bottom:13px}.section-header h2{font-size:18px;letter-spacing:-.35px}.section-header p{font-size:11px}.section-more{font-size:11px;align-self:start;padding-top:5px}
 .categories-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.category-tile{min-height:102px;padding:9px 4px;gap:8px;border-radius:7px}.category-tile .category-art{height:47px;width:55px}.category-tile .category-art svg{width:31px;height:31px}.category-tile strong{font-size:10px;min-height:29px}
 .collections-grid{grid-template-columns:none;grid-auto-columns:minmax(230px,78%);gap:9px}.collection-card{padding:16px;min-height:184px}.collection-copy{max-width:94%}.collection-card h3{font-size:16px;margin-bottom:9px}.collection-card p{font-size:10px;max-width:90%;position:relative;z-index:2}.collection-subtitle{font-size:9px;margin-bottom:10px}.collection-link{font-size:10px}.collection-art{opacity:.20;right:0;width:70%}
 .product-tabs{margin-bottom:12px;gap:6px}.product-tab{padding:7px 11px;font-size:11px;min-height:32px}.home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-products-grid .product-media{height:160px}.home-products-grid .product-media img{width:78%;height:78%}.home-products-grid .product-content{gap:7px}.home-products-grid .product-content .product-price{font-size:16px}.home-products-grid .product-content .product-actions .btn{font-size:10px;padding:7px 5px;min-height:35px}.browse-card{min-height:310px;padding:14px;gap:8px}.browse-card strong{font-size:14px}.browse-card p{font-size:10px}.browse-card .btn{padding:9px;font-size:10px}
 .how-steps{grid-template-columns:1fr 1fr}.how-step{padding:15px 13px 17px;min-height:151px}.how-icon{width:36px;height:36px;margin-bottom:11px}.how-icon svg{width:20px;height:20px}.how-number{right:12px;top:13px;font-size:10px}.how-step h3{font-size:12px;margin-bottom:6px}.how-step p{font-size:10px;line-height:1.5}
 .help-banner{grid-template-columns:105px minmax(0,1fr);gap:9px;margin-top:28px;padding:12px 12px 12px 0;min-height:205px}.help-bao{height:193px}.help-bao:before{width:170px;height:170px;left:-63px;bottom:-39px}.help-bao img{left:-15px;bottom:12px;width:132px;height:148px}.help-content h2{font-size:16px;margin-bottom:6px}.help-content p{font-size:10px;line-height:1.5;margin-bottom:13px}.help-kicker{font-size:9px;margin-bottom:6px}.help-actions{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.help-actions .btn{font-size:10px;padding:8px;min-height:33px}.help-plain-link{font-size:10px}
 .recent-grid{grid-template-columns:1fr 1fr;gap:8px}.recent-card{gap:7px;padding:7px}.recent-card img{width:46px;height:46px}.recent-card strong{font-size:10px}.recent-card small{font-size:10px}
}
@media(max-width:360px){.header-top{grid-template-columns:29px minmax(0,1fr) 53px 30px 30px;gap:5px 3px}.site-logo img{width:min(112px,100%)}.header-country strong{font-size:9px}.head-action{width:30px}.search-submit{min-width:59px;padding:0 11px!important}.hero-primary{padding:22px 17px}.hero-primary h1{font-size:26px}.hero-copy p{max-width:235px}.hero-side .hero-small{padding:12px 10px}.hero-small strong{font-size:12px}.category-tile strong{font-size:9px}.category-tile{min-height:99px}.collection-card{padding:12px}.collection-card h3{font-size:14px}.browse-card{min-height:300px}.help-banner{grid-template-columns:88px minmax(0,1fr)}.help-bao img{width:118px;left:-24px}.help-content h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){.mobile-drawer{transition:none}}
