
/* =========================================================
   ZIOR Mobile App Version - Public responsive polish only
   Desktop UI remains controlled by original CSS files.
   ========================================================= */

.mobile-app-tabbar{display:none;}

@media (max-width: 768px){
  :root{
    --mobile-nav-height: 66px;
    --mobile-tabbar-height: 76px;
    --mobile-page-x: 12px;
    --mobile-card-radius: 26px;
    --mobile-soft-border: rgba(0,0,0,.08);
    --mobile-soft-shadow: 0 18px 50px rgba(0,0,0,.08);
  }

  html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
  }

  body{
    width:100%;
    min-width:0;
    overflow-x:hidden;
    background:#fff;
    padding-bottom:calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
  }

  img, video, canvas, svg{
    max-width:100%;
  }

  .page,
  .about-page-shell,
  .contact-page-shell,
  .models-page-shell,
  .packages-page-shell,
  .portfolio-page-shell{
    width:100%;
    max-width:none;
    padding-left:var(--mobile-page-x) !important;
    padding-right:var(--mobile-page-x) !important;
    padding-top:calc(var(--mobile-nav-height) + 10px) !important;
    margin:0 auto;
  }

  .navbar{
    height:var(--mobile-nav-height) !important;
    min-height:var(--mobile-nav-height);
    padding:8px var(--mobile-page-x) !important;
    background:rgba(255,255,255,.92) !important;
    border-bottom:1px solid rgba(0,0,0,.06);
    box-shadow:0 14px 38px rgba(0,0,0,.06);
    backdrop-filter:blur(18px) saturate(160%);
    -webkit-backdrop-filter:blur(18px) saturate(160%);
  }

  .nav-container{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    max-width:none;
    gap:12px;
  }

  .logo{
    font-size:19px !important;
    letter-spacing:.13em;
    gap:8px;
    min-width:0;
  }

  .logo svg,
  .logo-v{
    width:22px !important;
    height:22px !important;
    flex:0 0 auto;
  }

  .nav-links{display:none !important;}

  .nav-icons{
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    gap:7px !important;
  }

  .nav-icons .icon-btn{
    display:none !important;
  }

  .nav-icons .icon-btn[aria-label="Shopping bag"],
  .nav-icons .menu-toggle,
  .menu-toggle{
    display:inline-grid !important;
    place-items:center;
  }

  .nav-icons .icon-btn[aria-label="Shopping bag"],
  .menu-toggle{
    width:42px !important;
    height:42px !important;
    border-radius:15px !important;
    background:#f4f4f4 !important;
    color:#111 !important;
    border:1px solid rgba(0,0,0,.06) !important;
  }

  .nav-icons .icon-btn[aria-label="Shopping bag"]::before{
    top:8px !important;
    right:8px !important;
  }

  .mobile-menu{
    width:min(88vw, 340px) !important;
    border-radius:28px 0 0 28px;
    padding:18px 16px calc(26px + env(safe-area-inset-bottom,0px)) !important;
  }

  .mobile-menu-links a{
    min-height:52px;
    display:flex;
    align-items:center;
    border-radius:16px;
    padding:0 14px !important;
    margin-bottom:6px;
    border-bottom:0 !important;
    background:#f7f7f7;
  }

  .mobile-menu-links a.active{
    background:#111;
    color:#fff;
  }

  main,
  .about-main,
  .contact-main,
  .models-main,
  .packages-main,
  .portfolio-main{
    width:100%;
    overflow:hidden;
  }

  section{
    max-width:100%;
  }

  /* Home hero - app style */
  .hero{
    display:flex !important;
    flex-direction:column;
    min-height:auto !important;
    width:100%;
    max-width:none !important;
    padding:18px 0 26px !important;
    margin:0 !important;
    transform:none !important;
    gap:20px;
    overflow:hidden;
  }

  .hero-text{
    width:100%;
    max-width:none !important;
    text-align:left !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
  }

  .main-heading{
    width:100%;
    max-width:100% !important;
    font-size:clamp(38px, 14.2vw, 66px) !important;
    line-height:.88 !important;
    letter-spacing:-.045em !important;
    overflow:visible;
  }

  .main-heading .top-line,
  .top-line{
    display:block !important;
    width:max-content !important;
    max-width:calc(100vw - 24px) !important;
    font-size:clamp(45px, 15.8vw, 76px) !important;
    line-height:.82 !important;
    letter-spacing:.01em !important;
    white-space:nowrap !important;
    transform:scaleX(1.035) !important;
    transform-origin:left center !important;
    margin:0 0 4px 0 !important;
  }

  .bottom-line{
    display:block !important;
    width:100%;
    max-width:calc(100vw - 24px);
    font-size:clamp(31px, 10.8vw, 53px) !important;
    line-height:.92 !important;
    letter-spacing:-.035em !important;
    white-space:nowrap !important;
  }

  .hero-description{
    width:100%;
    max-width:none !important;
  }

  .hero-description p{
    width:100%;
    max-width:96% !important;
    margin-top:18px !important;
    font-size:14px !important;
    line-height:1.72 !important;
    color:#6d6d6d;
  }

  .social-bar{
    width:calc(100% + 24px);
    max-width:none !important;
    margin-left:-12px;
    margin-top:18px !important;
    padding:0 12px 8px;
    display:flex;
    gap:8px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .social-bar::-webkit-scrollbar{display:none;}

  .social-link{
    flex:0 0 auto;
    min-height:42px;
    padding:0 14px !important;
    border-radius:999px;
    font-size:12px !important;
    scroll-snap-align:start;
    background:#fff;
    box-shadow:0 10px 26px rgba(0,0,0,.055);
  }

  .hero-images{
    position:relative !important;
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:10px;
    width:100% !important;
    height:auto !important;
    margin:0 !important;
    transform:none !important;
    pointer-events:auto !important;
  }

  .img-container,
  .img-left,
  .img-right{
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    top:auto !important;
    width:100% !important;
    height:clamp(210px, 58vw, 320px) !important;
    transform:none !important;
    clip-path:none !important;
    border-radius:24px !important;
    box-shadow:var(--mobile-soft-shadow) !important;
  }

  .img-left{margin-top:18px;}
  .img-right{margin-top:0;}

  /* Shared section rhythm */
  .product-section,
  .customize-section,
  .choose-models-section,
  .why-choose-section,
  .faq-section,
  .about-hero,
  .about-story-section,
  .about-principles-section,
  .about-process-section,
  .about-cta-section,
  .contact-hero,
  .contact-content,
  .pricing-hero,
  .pricing-section,
  .models-hero,
  .models-grid-section,
  .portfolio-filter-section,
  .portfolio-grid-section,
  .portfolio-bottom-cta{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .product-section-inner,
  .why-choose-container,
  .faq-container,
  .about-section-head,
  .contact-form-wrap,
  .pricing-hero-inner{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .section-title-match,
  .product-title,
  .customize-heading,
  .choose-models-title,
  .why-title,
  .faq-title,
  .pricing-title,
  .models-title,
  .portfolio-title,
  .about-section-head h2,
  .contact-hero h1{
    font-size:clamp(34px, 12vw, 58px) !important;
    line-height:.9 !important;
    letter-spacing:-.055em !important;
    max-width:100%;
  }

  .product-subtitle,
  .customize-section-subtitle,
  .choose-models-subtitle,
  .why-subtitle,
  .faq-subtitle,
  .pricing-subtitle,
  .models-subtitle,
  .about-intro,
  .contact-hero-copy p{
    max-width:100% !important;
    font-size:14px !important;
    line-height:1.75 !important;
  }

  /* Product cards */
  .product-section{
    padding-top:20px !important;
  }

  .product-tabs,
  .portfolio-filter-wrap{
    width:calc(100% + 24px);
    margin-left:-12px;
    padding:0 12px 8px !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .product-tabs::-webkit-scrollbar,
  .portfolio-filter-wrap::-webkit-scrollbar{display:none;}

  .product-tab,
  .portfolio-filter-btn{
    flex:0 0 auto;
    min-height:42px;
    padding:0 16px !important;
    border-radius:999px !important;
    white-space:nowrap;
  }

  .product-grid,
  .portfolio-grid,
  #portfolioGridSection{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
    width:100%;
  }

  .product-card,
  .portfolio-card,
  .model-card,
  .pricing-card,
  .why-card,
  .faq-item,
  .story-card,
  .story-side-card,
  .principle-card,
  .process-card,
  .contact-side-card,
  .contact-form-wrap{
    border-radius:var(--mobile-card-radius) !important;
  }

  .product-card{
    min-height:auto !important;
  }

  .product-card-media{
    min-height:auto !important;
    aspect-ratio:3/4;
    border-radius:22px !important;
  }

  .product-card-media img,
  .portfolio-card img,
  .model-card img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .product-image-tag{
    left:10px !important;
    bottom:10px !important;
    right:10px !important;
    width:auto !important;
    max-width:none !important;
    font-size:10px !important;
    padding:8px 10px !important;
    text-align:center;
  }

  /* Customize mode */
  .customize-layout,
  .customize-layout-refined,
  .customize-layout-premium,
  .choose-models-layout,
  .about-story-grid,
  .about-principles-grid,
  .about-process-grid,
  .contact-hero,
  .contact-content{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .customize-details-panel,
  .customize-stage-panel,
  .customize-stage-frame{
    width:100% !important;
    max-width:100% !important;
  }

  .customize-stage-frame{
    min-height:470px !important;
    border-radius:30px !important;
    overflow:hidden;
  }

  .customize-main-image{
    max-height:430px !important;
    width:auto !important;
    object-fit:contain !important;
  }

  .customize-option-rail{
    left:12px !important;
    right:12px !important;
    bottom:12px !important;
    top:auto !important;
    width:auto !important;
    display:grid !important;
    grid-template-columns:repeat(4, 1fr);
    gap:8px !important;
    transform:none !important;
  }

  .preview-card{
    width:100% !important;
    height:58px !important;
    border-radius:16px !important;
  }

  .preview-card img{display:none !important;}
  .preview-chip{font-size:10px !important;}
  .customize-labels{display:none !important;}

  .details-stat-grid,
  .why-grid,
  .pricing-grid,
  .models-grid,
  .about-principles-grid,
  .about-process-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  /* Choose models */
  .choose-models-layout{
    padding:0 !important;
  }

  .choose-models-stack,
  .choose-models-stack-center,
  .choose-models-stack-side,
  .choose-models-stack-extra,
  .choose-models-side-wrap{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    margin:0 !important;
    transform:none !important;
  }

  .choose-side-divider{display:none !important;}

  .choose-model-card,
  .choose-model-card-top,
  .choose-model-card-bottom,
  .choose-model-card-side,
  .choose-model-card-extra{
    width:100% !important;
    max-width:100% !important;
    min-height:auto !important;
    transform:none !important;
    margin:0 !important;
    border-radius:26px !important;
  }

  .choose-model-media{
    min-height:250px !important;
    border-radius:22px !important;
  }

  /* FAQ / Footer */
  .faq-section{padding-bottom:30px !important;}

  .faq-item summary{
    gap:14px;
    align-items:center;
  }

  .site-footer{
    margin-left:calc(var(--mobile-page-x) * -1) !important;
    margin-right:calc(var(--mobile-page-x) * -1) !important;
    margin-bottom:0;
    border-radius:32px 32px 0 0;
    overflow:hidden;
  }

  .site-footer-inner,
  .site-footer-bottom{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .footer-links-wrap{
    grid-template-columns:1fr !important;
  }

  /* About page */
  .about-hero{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
    padding-top:18px !important;
  }

  .about-hero-copy h1{
    font-size:clamp(32px, 10.8vw, 54px) !important;
    line-height:.96 !important;
    letter-spacing:-.055em !important;
  }

  .about-hero-panel,
  .about-hero-panel-inner{
    min-height:auto !important;
    border-radius:28px !important;
  }

  .about-hero-pills,
  .contact-hero-pills{
    display:flex;
    overflow-x:auto;
    flex-wrap:nowrap !important;
    gap:8px !important;
    padding-bottom:6px;
    scrollbar-width:none;
  }

  .about-hero-pills::-webkit-scrollbar,
  .contact-hero-pills::-webkit-scrollbar{display:none;}

  .about-hero-pills span,
  .contact-hero-pills span{
    flex:0 0 auto;
  }

  /* Contact page */
  .contact-hero{
    padding-top:18px !important;
  }

  .contact-form-grid,
  .contact-mini-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select{
    min-height:48px;
    font-size:16px !important;
  }

  .contact-whatsapp-direct,
  .contact-submit-btn,
  .plan-cta,
  .portfolio-primary-btn,
  .portfolio-secondary-btn{
    min-height:50px;
    border-radius:999px !important;
  }

  /* Packages page */
  .packages-main,
  .pricing-section{
    overflow:visible !important;
  }

  .pricing-hero{
    padding-top:18px !important;
    min-height:auto !important;
  }

  .pricing-card{
    width:100% !important;
    max-width:100% !important;
    transform:none !important;
  }

  .pricing-card-inner{
    padding:20px !important;
  }

  .plan-price-wrap,
  .plan-credit-box{
    border-radius:22px !important;
  }

  /* Models / Portfolio */
  .models-hero{
    padding-top:18px !important;
    min-height:auto !important;
  }

  .models-grid-section{
    padding-top:16px !important;
  }

  .models-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .model-card{
    min-height:auto !important;
  }

  .model-card-media,
  .portfolio-card-media{
    aspect-ratio:3/4;
    min-height:auto !important;
    border-radius:22px !important;
  }

  .portfolio-bottom-cta-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
    border-radius:28px !important;
    padding:22px !important;
  }

  .portfolio-bottom-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  /* Fixed app bottom navigation */
  .mobile-app-tabbar{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom, 0px));
    z-index:9998;
    height:var(--mobile-tabbar-height);
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:4px;
    align-items:center;
    padding:8px;
    background:rgba(18,18,18,.92);
    color:#fff;
    border:1px solid rgba(255,255,255,.14);
    border-radius:26px;
    box-shadow:0 18px 44px rgba(0,0,0,.24);
    backdrop-filter:blur(18px) saturate(160%);
    -webkit-backdrop-filter:blur(18px) saturate(160%);
  }

  .mobile-app-tabbar a{
    min-width:0;
    height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    color:rgba(255,255,255,.72);
    text-decoration:none;
    border-radius:18px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.02em;
    transition:background .22s ease, color .22s ease, transform .22s ease;
    -webkit-tap-highlight-color:transparent;
  }

  .mobile-app-tabbar a i{
    font-size:17px;
    line-height:1;
  }

  .mobile-app-tabbar a.active{
    color:#111;
    background:#fff;
    transform:translateY(-2px);
  }

  .mobile-app-tabbar a span{
    overflow:hidden;
    max-width:100%;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

@media (max-width: 420px){
  .main-heading{
    font-size:clamp(34px, 13vw, 54px) !important;
  }

  .main-heading .top-line,
  .top-line{
    font-size:clamp(40px, 15vw, 62px) !important;
    transform:scaleX(1.02) !important;
  }

  .bottom-line{
    font-size:clamp(28px, 10.2vw, 43px) !important;
  }

  .product-grid,
  .portfolio-grid,
  #portfolioGridSection,
  .models-grid{
    gap:8px !important;
  }

  .mobile-app-tabbar{
    left:8px;
    right:8px;
    border-radius:24px;
  }

  .mobile-app-tabbar a{
    font-size:9px;
  }
}


/* === ZERO LIMIT OF: top-row width match only (bottom row untouched) === */
@media (max-width: 768px){
  .main-heading .top-line,
  .top-line{
    font-size:clamp(47px, 16.8vw, 82px) !important;
    letter-spacing:.052em !important;
    transform:scaleX(1.095) !important;
    transform-origin:left center !important;
    line-height:.80 !important;
    margin-bottom:5px !important;
  }
}

@media (max-width: 420px){
  .main-heading .top-line,
  .top-line{
    font-size:clamp(44px, 16.4vw, 70px) !important;
    letter-spacing:.045em !important;
    transform:scaleX(1.085) !important;
  }
}


/* === Mobile hero image slider: mobile only, original desktop untouched === */
@media (max-width: 768px){
  .hero-images{
    display:flex !important;
    grid-template-columns:none !important;
    gap:12px !important;
    width:calc(100% + 24px) !important;
    max-width:none !important;
    margin:2px 0 0 -12px !important;
    padding:2px 12px 14px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory !important;
    scroll-padding-left:12px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .hero-images::-webkit-scrollbar{
    display:none !important;
  }

  .hero-images .img-container,
  .hero-images .img-left,
  .hero-images .img-right{
    flex:0 0 min(82vw, 360px) !important;
    width:min(82vw, 360px) !important;
    max-width:min(82vw, 360px) !important;
    height:clamp(310px, 92vw, 455px) !important;
    margin:0 !important;
    scroll-snap-align:start !important;
    scroll-snap-stop:always !important;
    border-radius:30px !important;
    overflow:hidden !important;
  }

  .hero-images .img-shell{
    width:100% !important;
    height:100% !important;
    border-radius:inherit !important;
    overflow:hidden !important;
  }

  .hero-images img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
  }

  .hero-images::after{
    content:"";
    flex:0 0 1px;
  }
}

@media (max-width: 420px){
  .hero-images .img-container,
  .hero-images .img-left,
  .hero-images .img-right{
    flex-basis:86vw !important;
    width:86vw !important;
    max-width:86vw !important;
    height:clamp(295px, 96vw, 420px) !important;
  }
}


/* === Mobile hero overflow final fix: prevents title/image clipping on public mobile === */
@media (max-width: 768px){
  html,
  body,
  .page{
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .hero,
  .hero-text,
  .main-heading{
    min-width:0 !important;
  }

  .main-heading{
    width:100% !important;
    max-width:calc(100vw - 22px) !important;
    overflow:visible !important;
    transform:none !important;
  }

  .main-heading .top-line,
  .main-heading .bottom-line,
  .top-line,
  .bottom-line{
    display:block !important;
    width:max-content !important;
    max-width:none !important;
    white-space:nowrap !important;
    transform-origin:left center !important;
    will-change:transform, letter-spacing;
  }

  .main-heading .top-line,
  .top-line{
    font-size:clamp(40px, 14.3vw, 64px) !important;
    line-height:.82 !important;
    letter-spacing:.018em !important;
    margin-bottom:5px !important;
  }

  .main-heading .bottom-line,
  .bottom-line{
    font-size:clamp(27px, 9.45vw, 42px) !important;
    line-height:.92 !important;
    letter-spacing:-.055em !important;
  }

  .hero-images .img-shell{
    position:relative !important;
    background:#ededed !important;
  }

  .hero-images .img-shell.image-fallback{
    background:
      radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 32%),
      linear-gradient(145deg, #f6f6f6 0%, #e8e8e8 52%, #dcdcdc 100%) !important;
  }

  .hero-images .img-shell.image-fallback::after{
    content:"";
    position:absolute;
    inset:18px;
    border-radius:24px;
    border:1px solid rgba(0,0,0,.055);
    pointer-events:none;
  }
}

@media (max-width: 420px){
  .main-heading{
    max-width:calc(100vw - 22px) !important;
  }

  .main-heading .top-line,
  .top-line{
    font-size:clamp(38px, 14.05vw, 58px) !important;
    letter-spacing:.012em !important;
  }

  .main-heading .bottom-line,
  .bottom-line{
    font-size:clamp(25px, 9.15vw, 38px) !important;
    letter-spacing:-.06em !important;
  }
}


/* === Mobile hero touch control fix: remove horizontal lock feeling and keep page scroll natural === */
@media (max-width: 768px){
  .hero-images{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    margin:6px 0 0 !important;
    padding:0 !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
    touch-action:pan-y pinch-zoom !important;
    -webkit-overflow-scrolling:auto !important;
  }

  .hero-images .img-container,
  .hero-images .img-left,
  .hero-images .img-right{
    flex:none !important;
    width:100% !important;
    max-width:100% !important;
    height:clamp(210px, 58vw, 315px) !important;
    min-width:0 !important;
    scroll-snap-align:none !important;
  }

  .hero-images::after{display:none !important;}

  .hero-images .img-shell{
    cursor:pointer;
  }
}

/* === Portfolio simple category grid: one clean row with 4 placeholders per category === */
.portfolio-category-panel{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:24px 26px;
  margin-bottom:18px;
  text-align:center;
  border:1px solid rgba(0,0,0,0.07);
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,244,244,0.96));
  box-shadow:0 24px 55px rgba(0,0,0,0.07);
}

.portfolio-category-panel::before{
  content:'';
  position:absolute;
  inset:10px;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,0.72);
  pointer-events:none;
}

.portfolio-category-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.portfolio-card-copy .portfolio-card-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  margin-bottom:10px;
  border-radius:999px;
  background:rgba(0,0,0,0.06);
  color:#444;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media (max-width: 1180px){
  .portfolio-category-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media (max-width: 640px){
  .portfolio-category-panel{padding:20px 18px;}
  .portfolio-category-grid{grid-template-columns:1fr;}
}


/* === Final mobile interaction + layout polish === */
@media (max-width: 768px){
  body,
  .page,
  main,
  section,
  .hero,
  .product-section,
  .social-bar,
  .product-tabs,
  .product-grid,
  .mobile-app-tabbar,
  a,
  button,
  .social-link,
  .product-tab,
  .menu-toggle,
  .icon-btn,
  .mobile-menu,
  .mobile-menu-backdrop{
    pointer-events:auto !important;
    touch-action:manipulation;
  }

  .hero-images{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    width:100% !important;
    max-width:100% !important;
    gap:10px !important;
    margin:4px 0 0 !important;
    padding:0 !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
    touch-action:pan-y !important;
  }

  .hero-images .img-container,
  .hero-images .img-left,
  .hero-images .img-right{
    width:100% !important;
    max-width:100% !important;
    flex:none !important;
    height:clamp(175px, 48vw, 250px) !important;
    min-width:0 !important;
    margin:0 !important;
    border-radius:24px !important;
  }

  .hero-images .img-shell,
  .hero-images img{
    width:100% !important;
    height:100% !important;
  }

  .social-bar{
    width:100% !important;
    max-width:100% !important;
    margin:16px 0 0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    gap:10px !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
  }

  .social-link{
    min-width:0 !important;
    width:100% !important;
    min-height:50px !important;
    height:50px !important;
    padding:0 !important;
    border-radius:999px !important;
    justify-content:center !important;
    gap:0 !important;
    box-shadow:0 10px 24px rgba(0,0,0,.06) !important;
  }

  .social-link span{display:none !important;}
  .social-link i{font-size:16px !important;}

  .product-tabs{
    width:100% !important;
    max-width:100% !important;
    margin:14px 0 0 !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    gap:8px !important;
    overflow:visible !important;
  }

  .product-tab{
    min-width:0 !important;
    width:100% !important;
    min-height:40px !important;
    height:40px !important;
    padding:0 6px !important;
    font-size:11px !important;
    letter-spacing:.08em !important;
    border-radius:999px !important;
  }

  .product-grid{
    margin-top:14px !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .product-card-media{
    aspect-ratio:3/4 !important;
  }
}

@media (max-width: 420px){
  .main-heading .top-line,
  .top-line{
    font-size:clamp(37px, 13.7vw, 52px) !important;
    letter-spacing:.008em !important;
  }

  .main-heading .bottom-line,
  .bottom-line{
    font-size:clamp(23px, 8.6vw, 34px) !important;
    letter-spacing:-.05em !important;
  }

  .hero-description p{
    font-size:13px !important;
    line-height:1.7 !important;
  }

  .social-link{
    min-height:46px !important;
    height:46px !important;
  }

  .product-tab{
    font-size:10px !important;
    letter-spacing:.05em !important;
  }

  .hero-images .img-container,
  .hero-images .img-left,
  .hero-images .img-right{
    height:clamp(160px, 46vw, 220px) !important;
  }
}


/* === EMERGENCY MOBILE CLICK FIX ===
   Fixes the issue where mobile can scroll but taps/clicks do not work.
   Main causes protected here:
   1) invisible menu/backdrop overlay above page,
   2) non-open mobile menu receiving taps,
   3) touch-action conflicts on interactive items.
*/
@media (max-width: 768px){
  [hidden]{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  .mobile-menu-backdrop[hidden],
  .mobile-menu-backdrop:not(.is-visible){
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  .mobile-menu:not(.is-open){
    pointer-events:none !important;
    visibility:hidden !important;
  }

  .mobile-menu.is-open{
    pointer-events:auto !important;
    visibility:visible !important;
  }

  body:not(.menu-open) .mobile-menu,
  body:not(.menu-open) .mobile-menu-backdrop{
    pointer-events:none !important;
  }

  a,
  button,
  input,
  textarea,
  select,
  label,
  summary,
  .product-tab,
  .portfolio-filter-btn,
  .social-link,
  .mobile-app-tabbar,
  .mobile-app-tabbar a,
  .menu-toggle,
  .mobile-menu-close,
  .icon-btn{
    pointer-events:auto !important;
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:rgba(0,0,0,0.08);
  }

  .hero-images{
    pointer-events:none !important;
    touch-action:auto !important;
  }

  .hero-images *,
  .hero-images img,
  .hero-images .img-shell,
  .hero-images .img-container{
    pointer-events:none !important;
  }

  main,
  .page,
  .hero,
  .product-section,
  .portfolio-main,
  .models-main,
  .contact-main,
  .about-main{
    pointer-events:auto !important;
  }

  .mobile-app-tabbar{
    z-index:99999 !important;
    pointer-events:auto !important;
  }

  .navbar{
    z-index:99990 !important;
    pointer-events:auto !important;
  }
}

/* === KTG responsive stability patch: mobile/tablet/laptop polish === */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

img,
svg,
video,
canvas{
  max-width:100%;
}

.page,
main,
section{
  min-width:0;
}

@media (max-width: 1180px){
  .nav-links{
    gap:clamp(18px, 3vw, 32px) !important;
  }

  .nav-icons{
    gap:clamp(12px, 2vw, 20px) !important;
  }

  .main-heading,
  .section-title-match,
  .product-title,
  .customize-heading,
  .choose-models-title,
  .why-title,
  .faq-title,
  .pricing-title,
  .models-title,
  .portfolio-copy h1,
  .portfolio-row-title,
  .about-hero-copy h1,
  .about-section-head h2,
  .contact-hero h1{
    max-width:100%;
    overflow-wrap:break-word;
    text-wrap:balance;
  }
}

@media (min-width: 769px) and (max-width: 1180px){
  .page,
  .about-page-shell,
  .contact-page-shell,
  .models-page-shell,
  .packages-page-shell,
  .portfolio-page-shell{
    width:100%;
    max-width:none;
    padding-left:24px !important;
    padding-right:24px !important;
  }

  .portfolio-hero,
  .portfolio-filter-section,
  .portfolio-grid-section,
  .portfolio-bottom-cta,
  .models-hero,
  .models-grid-section,
  .pricing-hero,
  .pricing-section,
  .about-hero,
  .about-story-section,
  .about-principles-section,
  .about-process-section,
  .about-cta-section,
  .contact-hero,
  .contact-content{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .portfolio-hero-inner,
  .contact-content,
  .about-story-grid,
  .choose-models-layout,
  .customize-layout,
  .customize-layout-refined,
  .customize-layout-premium{
    grid-template-columns:1fr !important;
  }

  .pricing-grid,
  .models-grid,
  .about-principles-grid,
  .about-process-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }

  .portfolio-row-slider .portfolio-card{
    flex:0 0 calc((100% - 18px) / 2) !important;
    max-width:calc((100% - 18px) / 2) !important;
  }
}

@media (max-width: 768px){
  html,
  body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .page,
  .about-page-shell,
  .contact-page-shell,
  .models-page-shell,
  .packages-page-shell,
  .portfolio-page-shell{
    overflow:hidden;
  }

  .navbar,
  .nav-container,
  main,
  .about-main,
  .contact-main,
  .models-main,
  .packages-main,
  .portfolio-main{
    max-width:100% !important;
    min-width:0 !important;
  }

  .main-heading,
  .main-heading .top-line,
  .main-heading .bottom-line,
  .top-line,
  .bottom-line{
    width:100% !important;
    max-width:100% !important;
    transform:none !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
  }

  .main-heading .top-line,
  .top-line{
    font-size:clamp(38px, 12.8vw, 52px) !important;
    line-height:.88 !important;
    letter-spacing:.01em !important;
  }

  .main-heading .bottom-line,
  .bottom-line{
    font-size:clamp(25px, 8.7vw, 36px) !important;
    line-height:.95 !important;
    letter-spacing:-.04em !important;
  }

  .section-title-match,
  .product-title,
  .customize-heading,
  .choose-models-title,
  .why-title,
  .faq-title,
  .pricing-title,
  .models-title,
  .portfolio-copy h1,
  .portfolio-row-title,
  .portfolio-bottom-cta-card h2,
  .about-hero-copy h1,
  .about-section-head h2,
  .contact-hero h1{
    max-width:100% !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    text-wrap:balance;
  }

  .customize-heading{
    font-size:clamp(31px, 10.5vw, 48px) !important;
  }

  .product-card,
  .model-card,
  .pricing-card,
  .portfolio-card,
  .why-card,
  .faq-item,
  .story-card,
  .story-side-card,
  .principle-card,
  .process-card,
  .contact-side-card,
  .contact-form-wrap{
    min-width:0 !important;
  }

  .product-card::before,
  .portfolio-card::before,
  .model-card::before,
  .pricing-card::before{
    pointer-events:none;
  }

  .product-card-glow,
  .customize-stage-glow-orb,
  .pricing-card-glow,
  .model-card-glow{
    max-width:100% !important;
    overflow:hidden !important;
  }

  .customize-stage-frame,
  .contact-form-wrap,
  .faq-item,
  .site-footer,
  .portfolio-bottom-cta-card{
    max-width:100% !important;
  }

  /* Portfolio page: keep rows as rows, not broken 2-column grid */
  .portfolio-page-shell{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .portfolio-main{
    overflow:visible !important;
  }

  .portfolio-hero,
  .portfolio-filter-section,
  .portfolio-grid-section,
  .portfolio-bottom-cta{
    width:100% !important;
    max-width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .portfolio-hero{
    padding-top:12px !important;
  }

  .portfolio-hero-inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .portfolio-copy,
  .portfolio-side-card{
    padding:22px !important;
    border-radius:28px !important;
  }

  .portfolio-copy h1{
    font-size:clamp(36px, 11vw, 56px) !important;
    line-height:.92 !important;
    letter-spacing:-.055em !important;
  }

  .portfolio-copy p,
  .portfolio-row-subtitle,
  .portfolio-card-copy p,
  .portfolio-bottom-cta-card p{
    font-size:13px !important;
    line-height:1.65 !important;
  }

  .portfolio-pills{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    overflow-x:auto !important;
    scrollbar-width:none;
    padding-bottom:4px;
  }

  .portfolio-pills::-webkit-scrollbar{display:none;}

  .portfolio-pills span{
    flex:0 0 auto;
    font-size:10px !important;
    padding:10px 12px !important;
  }

  .portfolio-side-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .side-mini-card{
    min-height:96px !important;
    padding:14px !important;
    border-radius:20px !important;
  }

  .side-mini-card strong{
    font-size:28px !important;
  }

  .side-mini-card span{
    font-size:10px !important;
  }

  #portfolioGridSection,
  .portfolio-grid-section{
    display:block !important;
    grid-template-columns:none !important;
    gap:0 !important;
  }

  .portfolio-filter-section{
    top:calc(var(--mobile-nav-height) + 6px) !important;
    padding-top:12px !important;
  }

  .portfolio-filter-wrap{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    border-radius:22px !important;
    scroll-snap-type:x proximity;
  }

  .portfolio-filter-btn{
    flex:0 0 auto !important;
    min-width:86px !important;
    min-height:42px !important;
    height:42px !important;
    padding:0 16px !important;
    font-size:13px !important;
    scroll-snap-align:start;
  }

  .portfolio-row{
    width:100% !important;
    margin-bottom:22px !important;
  }

  .portfolio-row-head{
    padding:18px 16px !important;
    margin-bottom:12px !important;
    border-radius:24px !important;
  }

  .portfolio-row-badge{
    min-height:30px !important;
    padding:0 12px !important;
    font-size:9px !important;
    letter-spacing:.16em !important;
  }

  .portfolio-row-title{
    margin-top:10px !important;
    font-size:clamp(27px, 8.5vw, 36px) !important;
    line-height:.95 !important;
  }

  .portfolio-row-slider{
    width:100% !important;
    overflow:hidden !important;
    border-radius:28px;
  }

  .portfolio-row-slider .portfolio-row-grid{
    display:flex !important;
    grid-template-columns:none !important;
    width:100% !important;
    max-width:100% !important;
    gap:12px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory !important;
    scroll-padding-left:0 !important;
    padding:0 2px 8px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .portfolio-row-slider .portfolio-row-grid::-webkit-scrollbar{display:none !important;}

  .portfolio-row-slider .portfolio-card{
    flex:0 0 78% !important;
    width:78% !important;
    max-width:78% !important;
    min-width:0 !important;
    scroll-snap-align:start !important;
    border-radius:26px !important;
    padding:10px !important;
  }

  .portfolio-card-media{
    border-radius:20px !important;
  }

  .portfolio-card-copy{
    padding:12px 4px 4px !important;
  }

  .portfolio-card-copy h3{
    font-size:19px !important;
    line-height:1.08 !important;
  }

  .portfolio-row-arrow{
    display:none !important;
  }

  .portfolio-bottom-cta{
    padding-bottom:18px !important;
  }
}

@media (max-width: 430px){
  .portfolio-row-slider .portfolio-card{
    flex-basis:84% !important;
    width:84% !important;
    max-width:84% !important;
  }

  .portfolio-copy,
  .portfolio-side-card,
  .portfolio-bottom-cta-card{
    padding:20px !important;
  }

  .portfolio-copy h1{
    font-size:clamp(34px, 10.6vw, 48px) !important;
  }

  .customize-heading{
    font-size:clamp(29px, 10vw, 42px) !important;
  }
}

/* === Top gap + filter row final alignment === */
@media (max-width: 768px){
  .about-main,
  .contact-main,
  .models-main,
  .packages-main,
  .portfolio-main{
    padding-top:0 !important;
  }

  .models-filter-bar,
  .model-section{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }

  .models-filter-inner{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-start !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    border-radius:22px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .models-filter-inner::-webkit-scrollbar{display:none !important;}

  .filter-chip{
    flex:0 0 auto !important;
    min-height:42px !important;
    height:42px !important;
    padding:0 14px !important;
    font-size:12px !important;
    white-space:nowrap !important;
  }

  .pricing-grid,
  .models-grid,
  .about-principles-grid,
  .about-process-grid,
  .contact-mini-list{
    width:100% !important;
    max-width:100% !important;
  }
}

/* === Laptop width wrapping fix (keeps desktop look but removes side overflow) === */
@media (min-width: 1181px) and (max-width: 1450px){
  .page{
    max-width:100% !important;
    padding-left:28px !important;
    padding-right:28px !important;
  }

  .hero{
    max-width:1280px !important;
    grid-template-columns:minmax(0, 1fr) minmax(460px, .82fr) !important;
    column-gap:20px !important;
    transform:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .hero-images{
    width:620px !important;
    height:620px !important;
    margin-left:0 !important;
    transform:none !important;
  }

  .img-left{
    left:40px !important;
    top:36px !important;
    transform:rotate(-8deg) scale(1.48) perspective(800px) rotateY(-6deg) !important;
  }

  .img-right{
    left:275px !important;
    top:78px !important;
    transform:rotate(7deg) scale(1.08) perspective(800px) rotateY(6deg) !important;
  }

  .main-heading{
    font-size:clamp(42px, 4.45vw, 72px) !important;
  }

  .portfolio-hero,
  .portfolio-filter-section,
  .portfolio-grid-section,
  .portfolio-bottom-cta,
  .models-hero,
  .models-filter-bar,
  .model-section,
  .pricing-section,
  .pricing-hero-inner,
  .about-hero,
  .about-story-section,
  .about-principles-section,
  .about-process-section,
  .about-cta-section,
  .contact-hero,
  .contact-content{
    max-width:1280px !important;
  }
}


/* === Final host-ready CMS/tablet fix === */
.portfolio-row-badge{
  display:none !important;
}

@media (min-width: 769px) and (max-width: 1180px){
  html,
  body{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  body.menu-open{
    overflow:hidden !important;
  }

  .page,
  main,
  section,
  .hero,
  .hero-text,
  .hero-images,
  .product-section-inner,
  .customize-section,
  .choose-models-section,
  .choose-models-layout,
  .portfolio-main,
  .portfolio-row,
  .portfolio-row-slider,
  .portfolio-row-grid{
    max-width:100% !important;
    min-width:0 !important;
  }

  .hero-images{
    margin-left:auto !important;
    margin-right:auto !important;
    transform:none !important;
    pointer-events:auto !important;
  }

  .choose-models-layout,
  .customize-layout,
  .customize-layout-refined,
  .customize-layout-premium{
    transform:none !important;
  }

  .cms-layout-safe{
    min-width:0 !important;
    max-width:100% !important;
  }
}
