/* Sellios Creator PWA v1: scoped to phones and tablets, desktop untouched. */
@media (max-width:820px) {
 html,body{overflow-x:clip!important}
 html{scroll-padding-top:12px}
 body,body[data-template=academy],body[data-template=premium]{
  padding-top:0!important;
  padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
 }
 body .site-header,body[data-template=academy] .site-header,body[data-template=premium] .site-header {
  position:relative!important;z-index:12!important;
  width:calc(100% - 28px)!important;max-width:none!important;
  margin:12px 14px -71px!important;padding:10px 13px!important;
  min-height:58px!important;border-radius:50px!important;
  display:flex!important;align-items:center!important;
  gap:10px!important;
 }
 body .brand{font-size:clamp(14px,3.9vw,18px)!important;gap:8px!important;min-width:0}
 body .brand #brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body .brand-mark{width:34px;height:34px;flex-shrink:0}
 body .site-header .desktop-nav{display:none!important}
 body .site-header .header-cta,body[data-template=premium] .site-header .header-cta {
  display:inline-flex!important;flex-shrink:0!important;align-items:center;justify-content:center;
  padding:11px 17px!important;border-radius:999px;font-size:12px!important;margin-left:auto;
 }
 body .hero,body[data-template=academy] .hero,body[data-template=premium] .hero {
  margin:0!important;width:100%!important;max-width:none!important;
  min-height:0!important;border-radius:0!important;
  padding:139px 20px 56px!important;
  background:var(--herobg)!important;
  overflow:hidden!important;
 }
 body[data-template=academy] .hero{
  background:linear-gradient(110deg,#ffe3bf 0%,#fbe3ee 47%,#e9d9ff 100%)!important;
 }
 body[data-template=premium] .hero{background:linear-gradient(125deg,#251632,#422053 65%,#251632)!important}
 body .hero::after,body[data-template=academy] .hero::after,body[data-template=premium] .hero::after{
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,0))!important;
 }
 body .hero-content{width:100%;max-width:100%!important}
 body .hero h1{font-size:clamp(31px,8.7vw,47px)!important;line-height:1.13!important}
 body .hero p{margin:0 auto 20px!important;font-size:14px!important}
 body .hero-actions{justify-content:center!important;gap:8px!important}
 body .hero-actions .btn{padding:12px 15px!important;font-size:11px!important}
 /* Bottom nav, always visible; chat is its fifth tab. */
 body .mobile-nav {
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
  position:fixed!important;inset:auto 0 0!important;z-index:65!important;
  background:var(--page)!important;border-top:1px solid var(--border)!important;
  padding:9px 5px calc(8px + env(safe-area-inset-bottom))!important;
  min-height:68px;box-shadow:0 -8px 25px #2b14401c;
  align-items:center!important;justify-content:stretch!important;
 }
 body .mobile-nav a,body .mobile-nav button {
  font:inherit!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important;
  padding:4px 0!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:5px!important;
  width:100%!important;min-width:0!important;min-height:45px!important;
  border:0!important;background:transparent!important;color:var(--foreground)!important;
  text-decoration:none!important;cursor:pointer!important;
 }
 body .mobile-nav span{font-size:22px!important;line-height:1!important}
 body .mobile-nav a[aria-current="page"],body .mobile-nav button[aria-expanded="true"]{color:var(--accent)!important}
 body .creator-chat-trigger{display:none!important}
 body .creator-chat{position:static!important}
 body .creator-chat-panel{
  position:fixed!important;z-index:70!important;
  right:12px!important;left:12px!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;
  width:auto!important;max-width:420px!important;margin-left:auto!important;
  max-height:calc(100dvh - 115px)!important;overflow-y:auto!important;
 }
 /* Every multi-card collection uses an accessible horizontal swipe rail. */
 body #categories{padding-top:27px!important;padding-bottom:24px!important}
 body #categories .categories {
  display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;
  flex-wrap:nowrap!important;grid-template-columns:none!important;
  scroll-snap-type:x mandatory!important;scroll-padding-inline:2px;
  gap:11px!important;padding:6px 2px 16px!important;
  scrollbar-width:none;touch-action:pan-x pan-y;
 }
 body #categories .categories::-webkit-scrollbar,
 body #products .product-grid::-webkit-scrollbar,
 body #events .event-cards::-webkit-scrollbar{display:none}
 body #categories .categories a{
  flex:0 0 clamp(137px,43vw,188px)!important;scroll-snap-align:start!important;
  min-width:0!important;padding:18px 10px!important;
 }
 body #products .product-grid,body #products .product-grid:first-child{
  display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;
  overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;
  gap:14px!important;padding:0 1px 20px!important;
  margin:0!important;scrollbar-width:none!important;
  max-width:none!important;
 }
 body #products .product-card,body #products .product-card:first-child,body #products .product-card:not(:first-child){
  flex:0 0 clamp(235px,77vw,335px)!important;
  width:clamp(235px,77vw,335px)!important;max-width:none!important;
  scroll-snap-align:start!important;scroll-snap-stop:always;
 }
 body #products .product-card .product-visual,body #products .product-card:first-child .product-visual{
  height:170px!important;min-height:170px!important;
 }
 body #products .product-info{padding:16px!important}
 body #products .product-info h3{font-size:19px!important;min-height:50px!important}
 body #products .filters{scroll-snap-type:x proximity}
 body #events .event-cards {
  display:flex!important;grid-template-columns:none!important;
  overflow-x:auto!important;scroll-snap-type:x mandatory!important;
  scrollbar-width:none;gap:12px!important;padding:6px 1px 18px!important;
 }
 body #events .event-card {
  flex:0 0 clamp(250px,82vw,360px)!important;
  width:clamp(250px,82vw,360px)!important;
  scroll-snap-align:start!important;
 }
 body .featured-showcase .featured-track {scroll-snap-type:x mandatory!important;touch-action:pan-x pan-y!important}
 body .featured-showcase .featured-card {scroll-snap-align:start!important}
 body .featured-showcase .featured-controls{display:none!important}
 body .featured-showcase .featured-heading{min-height:0!important;margin:0!important}
 body .featured-showcase{margin-bottom:25px!important}
 body .footer{padding-bottom:35px!important}
}
@media(max-width:380px){
 body .site-header{width:calc(100% - 20px)!important;margin:9px 10px -68px!important}
 body .site-header .header-cta{padding:9px 13px!important}
 body .hero{padding-top:127px!important}
 body .hero-actions .btn{padding:11px 12px!important}
}

/* PWA footer centered: brand, tagline, links, socials and copyright. */
@media(max-width:820px){
 body #site-footer,body #site-footer .footer-main,body #site-footer .footer-column{
  text-align:center!important;align-items:center!important;justify-content:center!important;
 }
 body #site-footer .footer-main{display:flex!important;flex-direction:column!important;gap:19px!important}
 body #site-footer .footer-identity{width:100%!important}
 body #site-footer .footer-identity p{max-width:none!important}
 body #site-footer .footer-links{width:100%!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:12px 17px!important}
 body #site-footer .footer-links a{white-space:normal!important;text-align:center!important}
 body #site-footer #footer-social.footer-social{flex:0 0 100%!important;width:100%!important;justify-content:center!important;margin:10px auto 0!important;max-width:none!important}
 body #site-footer .footer-contact{align-items:center!important}
 body #site-footer .footer-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important}
}

/* Testimoni peserta: editorial cards; responsive PWA swipe. */
body #testimonials.testimonial{
 width:min(1170px,calc(100% - 40px))!important;max-width:1170px!important;
 margin:36px auto 48px!important;padding:56px 0 35px!important;text-align:center;
}
body #testimonials .testimonial-heading{max-width:640px;margin:0 auto 30px}
body #testimonials .testimonial-heading h2{margin:12px 0!important;font-size:clamp(30px,3.2vw,44px)}
body #testimonials .testimonial-heading p{font-size:14px;margin:0;color:var(--foreground);opacity:.72}
body #testimonials .testimonial-cards{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;text-align:left;
}
body #testimonials .testimonial-card{
 background:linear-gradient(150deg,#fff7fb,#f5edff);
 border:1px solid #eaddf5;border-radius:22px;padding:27px;
 display:flex;flex-direction:column;min-height:280px;
}
body[data-template=premium] #testimonials .testimonial-card{
 background:linear-gradient(145deg,#30203f,#271b39);border-color:#584168;
}
body #testimonials .testimonial-stars{color:#ec9c32;font-size:18px;letter-spacing:3px;margin-bottom:18px}
body #testimonials blockquote{margin:0!important;font-size:16px;line-height:1.7;font-weight:550;color:var(--foreground);flex:1}
body #testimonials .testimonial-author{display:flex;align-items:center;gap:12px;margin-top:28px}
body #testimonials .testimonial-avatar{
 width:42px;height:42px;flex-shrink:0;border-radius:50%;
 display:grid;place-items:center;background:linear-gradient(135deg,#b566e1,#ed95ae);color:white;font-weight:800;font-size:12px;
}
body #testimonials .testimonial-author div{display:grid;gap:3px}
body #testimonials .testimonial-author strong{font-size:14px}
body #testimonials .testimonial-author small{font-size:11px;color:var(--foreground);opacity:.65}
@media(max-width:820px){
 body #testimonials.testimonial{width:calc(100% - 28px)!important;margin:18px auto 32px!important;padding:35px 0 24px!important}
 body #testimonials .testimonial-heading{padding:0 8px}
 body #testimonials .testimonial-cards{
  display:flex!important;grid-template-columns:none!important;gap:12px!important;
  overflow-x:auto!important;scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;padding:4px 2px 16px!important;
 }
 body #testimonials .testimonial-cards::-webkit-scrollbar{display:none}
 body #testimonials .testimonial-card{flex:0 0 min(82vw,340px)!important;scroll-snap-align:start!important;min-height:260px;padding:23px!important}
 body #testimonials blockquote{font-size:14px}
}
