/* KiddieWear.id mobile-first + PWA layer. Loaded last by the Worker. */
:root{--kw-mobile-nav-height:100px;--kw-safe-bottom:env(safe-area-inset-bottom,0px)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:clip}
img,video,canvas,svg{max-width:100%}
img{height:auto}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{font-size:max(16px,1em)!important}
button,.button,[role="button"]{touch-action:manipulation}
.kw-mobile-nav{display:none}
.kw-install{display:none}

@media(max-width:760px),(pointer:coarse) and (hover:none) and (max-width:1100px){
  body{padding-bottom:calc(var(--kw-mobile-nav-height) + var(--kw-safe-bottom) + 10px)}
  body.kw-keyboard-open{padding-bottom:10px}
  .site-header.pro-header,.site-header{position:sticky;top:0;z-index:40;flex-wrap:nowrap;gap:8px;padding:8px 12px;min-height:60px}
  .site-header nav{display:none!important}
  .site-header .logo{gap:7px;font-size:1rem;white-space:nowrap;min-height:44px}
  .site-header .logo span{width:34px;height:34px;border-radius:10px;flex:0 0 auto}
  .header-actions{gap:7px;margin-left:auto;flex:0 0 auto}
  .language-link{min-width:44px;min-height:44px}
  .site-header .button-header{min-height:44px;padding-inline:13px;font-size:.9rem;white-space:nowrap}
  .kw-ticker__link{min-height:40px;padding-block:5px;font-size:12px}
  .hero,.season-hero,.help-hero{padding:28px 16px 34px;gap:24px}
  h1,.hero h1,.season-hero h1,.help-hero h1,.category-hero h1{font-size:clamp(2.35rem,11vw,3.25rem);line-height:1.04;overflow-wrap:break-word}
  h2{font-size:clamp(1.85rem,8vw,2.6rem);line-height:1.08}
  .lead{margin:18px 0 22px;font-size:1rem;line-height:1.6}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero-actions .button{min-height:52px;padding-inline:12px;text-align:center}
  html[lang="id"] .hero-actions .button:nth-child(n+2):nth-child(-n+5),html[lang="id"] .hero-actions .button:nth-child(7){display:none}
  .trust{gap:7px;margin-top:20px}.trust li{padding:8px 10px;font-size:.82rem}
  .hero-visual>img,.help-hero img,.about-image img,.detail-image img{border-radius:28px}
  .hero-card{left:12px;right:12px;bottom:12px;padding:12px 14px;border-radius:16px}
  .section{padding:44px 16px}
  .section-heading{display:block;margin-bottom:22px}
  .section-heading>p{margin-top:14px}
  .experience-grid,.age-grid,.collection-grid,.help-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
  .age-grid a,.experience-grid a,.help-grid a{padding:20px}
  .benefits article{padding:24px 18px}
  .catalog-tools{padding:14px;border-radius:20px;gap:10px}
  .catalog-tools input,.catalog-tools select{min-height:52px}
  .filters{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 10px;margin-inline:-2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .filters::-webkit-scrollbar{display:none}
  .filters button{flex:0 0 auto;min-height:48px;padding-inline:16px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .product{border-radius:20px;min-width:0}
  .product-body{padding:11px}
  .product h3{font-size:.98rem;line-height:1.2;overflow-wrap:break-word}
  .product-body>p:not(.product-type){font-size:.84rem;line-height:1.45;margin:7px 0 11px}
  .product-type{font-size:.68rem}
  .badge{top:8px;left:8px;padding:6px 8px;font-size:.68rem}
  .wishlist-button{top:8px;right:8px;width:44px;height:44px}
  .product-actions{gap:7px}
  .button-small,.product-actions .button{width:100%;min-height:48px;padding-inline:7px;font-size:.86rem;line-height:1.2;text-align:center}
  .detail,.detail-info,.size-section,.about,.category-guide{padding:32px 16px;gap:24px}
  .detail h1{font-size:clamp(2.15rem,10vw,3rem)}
  .detail-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .detail-actions .button{width:100%;min-height:54px}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .related-card span{padding:12px;font-size:.92rem}
  .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
  .cta{margin-inline:16px;padding:34px 20px;border-radius:28px}
  .pro-footer{padding:42px 18px 28px}
  .footer-grid{gap:26px}
  .link-shell{padding:10px 10px 24px}
  .link-card{border-radius:26px}
  .link-hero{height:auto;aspect-ratio:16/9}
  .link-brand{padding:18px 18px 0}
  .link-brand>span{width:46px;height:46px;border-radius:14px}
  .link-brand h1{font-size:1.95rem}
  .link-lead{margin:13px 18px 18px;line-height:1.55}
  .link-actions{gap:9px;padding-inline:18px}
  .link-action{min-height:58px;justify-content:center;padding:13px 15px;border-radius:17px}
  .link-note{margin:17px 18px 20px}
  .studio-shell{padding:24px 12px 42px}
  .studio-intro{margin-bottom:22px}
  .studio-intro h1{font-size:clamp(2.35rem,11vw,3.2rem)}
  .studio-preview-card,.studio-controls{border-radius:24px}
  .studio-preview-actions .button,.studio-whatsapp,.share-card-create{min-height:54px}
  .swatch{min-height:64px}
  .motif{min-height:112px}
  .studio-field-grid input,.studio-field-grid select{min-height:54px}
  .contest-hero,.contest-section,.cta-section{padding:34px 16px}
  .contest-hero h1{font-size:clamp(2.3rem,11vw,3.3rem)}
  .contest-actions,.contest-buttons{display:grid;grid-template-columns:1fr}
  .contest-actions .button,.contest-buttons button,.submit-btn{width:100%;min-height:54px;justify-content:center}
  .contest-card,.rules-card{padding:22px 18px;border-radius:24px}
  .contest-card input[type="text"],.contest-card input[type="url"],.contest-card select,.contest-card textarea{min-height:54px}
  .mom-shell{padding:26px 14px 42px}
  .mom-hero h1{font-size:clamp(2.3rem,11vw,3.3rem)}
  .mom-card,.mom-benefit{padding:22px 18px;border-radius:24px}
  .mom-form input,.mom-form select,.mom-linkbox{min-height:54px}
  .mom-form .button,.mom-actions .button{min-height:54px}
  .kw-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;min-height:calc(var(--kw-mobile-nav-height) + var(--kw-safe-bottom));padding:10px 6px calc(10px + var(--kw-safe-bottom));background:rgba(255,253,249,.99);border-top:2px solid #d9b5a4;box-shadow:0 -16px 40px rgba(80,40,24,.22);backdrop-filter:blur(14px);transition:transform .2s ease}
  body.kw-keyboard-open .kw-mobile-nav{transform:translateY(110%)}
  .kw-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:80px;padding:5px 1px;border-radius:20px;color:#352119;font-size:clamp(1rem,4.45vw,1.06rem);font-weight:950;letter-spacing:-.055em;line-height:1.08;white-space:nowrap;text-decoration:none}
  .kw-mobile-nav a span:first-child{display:grid;place-items:center;height:32px;font-size:2rem;line-height:1}
  .kw-mobile-nav a span:last-child{max-width:100%;white-space:nowrap;transform-origin:center}
  .kw-mobile-nav a.kw-mobile-nav-wa{color:#075f31}
  .kw-mobile-nav a.kw-mobile-nav-shopee{color:#b83d24}
  .kw-mobile-nav a[aria-current="page"]{background:#ffd8c6;color:#9f2f1d;box-shadow:inset 0 0 0 2px #ef9a7d,0 7px 18px rgba(217,79,48,.18)}
  .kw-install{position:fixed;left:12px;right:12px;bottom:calc(var(--kw-mobile-nav-height) + var(--kw-safe-bottom) + 18px);z-index:61;display:none;align-items:center;gap:11px;padding:13px;border:1px solid #efc9b8;border-radius:20px;background:rgba(255,253,249,.98);box-shadow:0 18px 45px rgba(80,40,24,.22)}
  .kw-install.is-visible{display:flex}
  .kw-install img{width:46px;height:46px;border-radius:13px;flex:0 0 auto}
  .kw-install-copy{min-width:0;flex:1}
  .kw-install-copy strong{display:block;font-size:.95rem;line-height:1.25}
  .kw-install-copy span{display:block;margin-top:2px;color:#6f574d;font-size:.82rem;line-height:1.4}
  .kw-install-action{min-height:48px;padding:0 15px;border:0;border-radius:999px;background:#e85d3f;color:#fff;font:inherit;font-weight:900;cursor:pointer;flex:0 0 auto}
  .kw-install-close{width:44px;height:44px;border:0;border-radius:50%;background:#fff0e7;color:#6f574d;font-size:1.25rem;cursor:pointer;flex:0 0 auto}
}
@media(max-width:600px){
  .experience-grid,.help-grid{grid-template-columns:1fr!important}
  .kw-mobile-nav a span:last-child{transform:scaleX(.84)}
}
@media(max-width:380px){
  .site-header .logo{font-size:.92rem}
  .site-header .button-header{padding-inline:10px;font-size:.84rem}
  .language-link{min-width:42px}
  .hero-actions{grid-template-columns:1fr}
  .product-body{padding:9px}
  .button-small,.product-actions .button{font-size:.8rem}
  .kw-install{align-items:flex-start}
  .kw-install-action{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){.kw-mobile-nav{transition:none}}
/* Gate 3 B/H: bottom nav 102px total, labels never collide at 320px */
:root{--kw-mobile-nav-height:102px}
@media(max-width:760px),(pointer:coarse) and (hover:none) and (max-width:1100px){
 .kw-mobile-nav{height:calc(102px + var(--kw-safe-bottom));min-height:calc(102px + var(--kw-safe-bottom));padding:8px 4px calc(8px + var(--kw-safe-bottom));gap:2px}
 .kw-mobile-nav a{min-height:84px;gap:2px;padding:4px 0;font-size:14px;letter-spacing:-.02em}
 .kw-mobile-nav a span:first-child{height:28px;font-size:1.65rem}
 .kw-mobile-nav a span:last-child{transform:none}
 .badge{font-size:.75rem}
 .product-type{font-size:.75rem}
}
@media(max-width:360px){
 .kw-mobile-nav a{font-size:13.5px}
 .kw-mobile-nav a span:last-child{transform:scaleX(.9)}
}
