/* HUYULA SMART BUSINESS v1.3 — Responsive public storefront */
html,body{max-width:100%;overflow-x:hidden}
body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,select,textarea{font:inherit;max-width:100%}
.container{width:min(1160px,calc(100% - 32px))}
.mobile-nav-toggle{display:none;border:1px solid #ffffff22;background:#ffffff0d;color:#fff;width:43px;height:43px;border-radius:11px;font-size:22px;align-items:center;justify-content:center;cursor:pointer}
.mobile-nav-overlay{display:none}

@media (min-width:1440px){
  .container{width:min(1240px,calc(100% - 48px))}
  .hero-grid{min-height:660px}
}

@media (max-width:1100px){
  .topbar nav{gap:12px;font-size:13px}
  .hero-grid{gap:34px}
  .hero h1{font-size:50px}
  .product-card img{height:300px}
}

@media (max-width:900px){
  body.public-nav-open{overflow:hidden}
  .nav-wrap{min-height:68px;gap:12px}
  .brand{min-width:0;flex:1}
  .brand>span:last-child{min-width:0}
  .brand b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
  .brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
  .mobile-nav-toggle{display:flex;flex:0 0 43px;z-index:42}
  .topbar nav{
    display:flex!important;position:fixed;top:0;right:0;bottom:0;width:min(330px,86vw);height:100dvh;
    background:linear-gradient(180deg,#0b0b0b,#1a0b0c);padding:max(84px,calc(68px + env(safe-area-inset-top))) 20px max(24px,env(safe-area-inset-bottom));
    flex-direction:column;align-items:stretch;gap:7px;z-index:41;transform:translateX(105%);transition:transform .24s ease;
    box-shadow:-24px 0 55px #0007;overflow-y:auto
  }
  .public-nav-open .topbar nav{transform:translateX(0)}
  .topbar nav a,.topbar nav a:not(.cart-link):not(.btn){display:block!important;padding:12px 13px;border-radius:10px;font-size:14px}
  .topbar nav a:hover{background:#ffffff0d}
  .topbar nav .cart-link{background:#ffffff0c}
  .topbar nav .btn{margin-top:4px;text-align:center}
  .public-nav-open .mobile-nav-overlay{display:block;position:fixed;inset:0;background:#0009;backdrop-filter:blur(2px);z-index:40}

  .hero-grid,.split,.impact,.product-detail,.cart-layout,.checkout-grid{grid-template-columns:1fr}
  .hero-grid{min-height:auto;padding:54px 0;gap:34px}
  .hero h1{font-size:43px}
  .hero-media{max-width:720px;margin:auto;width:100%}
  .hero-media img{height:400px}
  .product-grid,.brochure-grid{grid-template-columns:1fr}
  .split{gap:34px}
  .impact{padding:28px;gap:28px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .cart-layout,.checkout-grid{gap:20px}
  .summary{position:static}
  .section{padding:62px 0}
  .product-detail{gap:32px}
  .detail-img{height:480px}
}

@media (max-width:640px){
  .container{width:min(100% - 22px,1160px)}
  .topbar{padding-top:env(safe-area-inset-top)}
  .nav-wrap{min-height:62px}
  .brand-mark{width:38px;height:38px;font-size:19px;border-radius:10px}
  .brand b{font-size:13px;max-width:51vw}
  .brand small{font-size:9px;max-width:54vw}
  .mobile-nav-toggle{width:40px;height:40px;flex-basis:40px}

  .hero-grid{padding:42px 0 46px}
  .hero h1{font-size:35px;line-height:1.08;margin:10px 0 16px}
  .hero p{font-size:15px;line-height:1.65}
  .hero-actions{flex-direction:column;margin:22px 0}
  .hero-actions .btn{width:100%;text-align:center}
  .hero-points{gap:10px 16px;font-size:11px}
  .hero-media:before{inset:6% -5% -5% 6%;border-radius:20px}
  .hero-media img{height:330px;border-radius:20px}

  .section{padding:48px 0}
  .section-head{margin-bottom:26px}
  .section-head h2,.section-head h1{font-size:31px}
  .section-head p{font-size:14px}
  .product-grid{gap:16px}
  .product-card{border-radius:16px}
  .product-card img{height:245px}
  .product-body{padding:18px}
  .product-body h3{font-size:21px}
  .product-bottom{align-items:flex-start;gap:12px;flex-direction:column}
  .product-bottom a{width:100%;padding:10px 12px;text-align:center;border-radius:9px;background:#faf5e6}

  .split h2{font-size:31px}
  .feature-list>div{padding:15px 0}
  .impact{padding:20px;border-radius:20px}
  .impact h2{font-size:29px}
  .footer{padding:42px 0 20px}
  .footer-grid{grid-template-columns:1fr;gap:20px}

  .product-detail h1{font-size:34px}
  .detail-img{height:340px;border-radius:18px}
  .lead{font-size:15px}
  .price{font-size:27px}
  .buy-form{display:grid;grid-template-columns:84px 1fr;gap:9px}
  .buy-form input{width:100%;font-size:16px}

  .cart-item{grid-template-columns:70px minmax(0,1fr);gap:11px;padding:13px 4px}
  .cart-item img{width:64px;height:64px}
  .cart-item>*:nth-child(n+3){grid-column:2/3}
  .cart-item input{font-size:16px}
  .summary,.form-card{padding:18px;border-radius:15px}
  .form-card input,.form-card textarea,.form-card select{font-size:16px}
  .success-box{padding:32px 18px;border-radius:18px}
  .order-code{font-size:22px;overflow-wrap:anywhere}

  .brochure-grid{gap:18px}
  .brochure-grid img{border-radius:14px}
}

@media (max-width:390px){
  .container{width:min(100% - 18px,1160px)}
  .brand small{display:none}
  .brand b{max-width:58vw}
  .hero h1{font-size:31px}
  .hero-media img{height:285px}
  .product-card img{height:220px}
  .section-head h2,.section-head h1{font-size:28px}
  .buy-form{grid-template-columns:1fr}
}

@media (max-height:520px) and (orientation:landscape) and (max-width:950px){
  .topbar nav{width:min(360px,58vw);padding-top:70px}
  .hero-grid{grid-template-columns:1fr 1fr;padding:28px 0;gap:24px}
  .hero h1{font-size:32px}
  .hero p{font-size:13px}
  .hero-media img{height:270px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
