/* NCCM v18 — mobile/app style for catalog and catalog category pages
   Desktop remains untouched. This only changes screens under 760px. */
@media (max-width:760px){
  body.catalog-app-index,
  body.catalog-app-category{
    background:
      radial-gradient(circle at 12% 0%,rgba(216,179,132,.16),transparent 32%),
      linear-gradient(180deg,#1a100b 0%,#0f0a07 56%,#130d09 100%)!important;
    color:#fffaf3!important;
    padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
    overflow-x:hidden!important;
  }

  /* Make catalog pages feel like an app card, not a stretched website hero */
  body.catalog-app-index .catalog-showroom-hero,
  body.catalog-app-category .catalog-showroom-hero{
    margin:86px 12px 16px!important;
    min-height:310px!important;
    height:auto!important;
    padding:0!important;
    border-radius:28px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:flex-end!important;
    background-size:cover!important;
    background-position:center center!important;
    box-shadow:0 22px 56px rgba(0,0,0,.42)!important;
    border:1px solid rgba(255,255,255,.13)!important;
    position:relative!important;
  }
  body.catalog-app-index .catalog-showroom-hero::before,
  body.catalog-app-category .catalog-showroom-hero::before{
    content:""!important;
    position:absolute!important;inset:0!important;pointer-events:none!important;
    background:
      linear-gradient(90deg,rgba(12,7,4,.72),rgba(12,7,4,.35) 55%,rgba(12,7,4,.10)),
      linear-gradient(0deg,rgba(0,0,0,.52),rgba(0,0,0,0) 60%)!important;
    z-index:1!important;
  }
  body.catalog-app-index .catalog-showroom-hero::after,
  body.catalog-app-category .catalog-showroom-hero::after{
    content:"✦"!important;
    position:absolute!important;right:14px!important;bottom:14px!important;width:44px!important;height:44px!important;
    border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;
    background:rgba(48,30,18,.78)!important;border:1px solid rgba(255,255,255,.22)!important;color:#f2d39b!important;
    font-size:22px!important;z-index:2!important;box-shadow:0 16px 34px rgba(0,0,0,.38)!important;
  }
  body.catalog-app-index .catalog-showroom-hero .container,
  body.catalog-app-category .catalog-showroom-hero .container{
    position:relative!important;z-index:3!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0 18px 25px!important;
  }
  body.catalog-app-index .catalog-showroom-hero .breadcrumbs,
  body.catalog-app-category .catalog-showroom-hero .breadcrumbs{
    display:inline-flex!important;margin:0 0 12px!important;padding:8px 11px!important;max-width:calc(100vw - 58px)!important;
    border-radius:999px!important;background:rgba(255,255,255,.17)!important;border:1px solid rgba(255,255,255,.18)!important;
    color:#f5d09a!important;font-size:12px!important;font-weight:1000!important;text-transform:uppercase!important;letter-spacing:.2px!important;
    line-height:1.15!important;text-shadow:0 2px 12px rgba(0,0,0,.55)!important;white-space:normal!important;
  }
  body.catalog-app-index .catalog-showroom-hero .title,
  body.catalog-app-category .catalog-showroom-hero .title{
    font-size:clamp(34px,10vw,46px)!important;
    line-height:.98!important;letter-spacing:-1.1px!important;color:#fffaf3!important;margin:0 0 11px!important;
    max-width:92vw!important;text-shadow:0 6px 24px rgba(0,0,0,.58)!important;
  }
  body.catalog-app-index .catalog-showroom-hero .lead,
  body.catalog-app-category .catalog-showroom-hero .lead{
    font-size:16px!important;line-height:1.36!important;max-width:92vw!important;margin:0!important;color:#fff8ec!important;
    text-shadow:0 4px 18px rgba(0,0,0,.58)!important;
  }
  body.catalog-app-index .catalog-hero-actions,
  body.catalog-app-category .catalog-hero-actions{
    display:flex!important;gap:9px!important;flex-wrap:wrap!important;margin-top:16px!important;
  }
  body.catalog-app-index .catalog-hero-actions a,
  body.catalog-app-category .catalog-hero-actions a{
    border-radius:999px!important;padding:11px 14px!important;font-size:12px!important;font-weight:1000!important;letter-spacing:.45px!important;
    text-decoration:none!important;text-transform:uppercase!important;box-shadow:0 12px 28px rgba(0,0,0,.30)!important;
  }
  body.catalog-app-index .catalog-hero-actions .primary,
  body.catalog-app-category .catalog-hero-actions .primary{
    background:linear-gradient(135deg,#c7975e,#e8c78f)!important;color:#20130c!important;border:1px solid rgba(255,255,255,.20)!important;
  }
  body.catalog-app-index .catalog-hero-actions .secondary,
  body.catalog-app-category .catalog-hero-actions .secondary{
    background:rgba(255,255,255,.15)!important;color:#fffaf3!important;border:1px solid rgba(255,255,255,.25)!important;
  }

  /* App chips under the hero */
  body.catalog-app-index .catalog-category-strip,
  body.catalog-app-category .catalog-category-strip{
    background:transparent!important;padding:0 0 12px!important;
  }
  body.catalog-app-index .catalog-see-all,
  body.catalog-app-category .catalog-see-all{
    display:flex!important;gap:8px!important;overflow-x:auto!important;padding:0 14px 10px!important;scroll-snap-type:x mandatory!important;
    max-width:100%!important;
  }
  body.catalog-app-index .catalog-see-all::-webkit-scrollbar,
  body.catalog-app-category .catalog-see-all::-webkit-scrollbar{display:none!important;}
  body.catalog-app-index .catalog-see-all a,
  body.catalog-app-category .catalog-see-all a{
    flex:0 0 auto!important;scroll-snap-align:start!important;padding:10px 14px!important;border-radius:999px!important;
    background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fffaf3!important;
    text-decoration:none!important;font-size:12px!important;font-weight:1000!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;
  }
  body.catalog-app-index .catalog-see-all a.active,
  body.catalog-app-category .catalog-see-all a.active{
    background:linear-gradient(135deg,#c7975e,#e8c78f)!important;color:#21150d!important;border-color:rgba(255,255,255,.20)!important;
  }

  /* Hide website intro blocks on category pages so the app goes straight to photos/products */
  body.catalog-app-category .catalog-page-intro{display:none!important;}
  body.catalog-app-category section.section:has(.catalog-page-intro){display:none!important;}

  /* Catalog landing page: category cards become app tiles */
  body.catalog-app-index #categorias,
  body.catalog-app-index section.section,
  body.catalog-app-category #productos,
  body.catalog-app-category section.section{
    background:transparent!important;
    padding:16px 0 20px!important;
  }
  body.catalog-app-index .page-intro{
    display:block!important;background:rgba(255,250,243,.94)!important;color:#1e120b!important;border-radius:24px!important;
    margin:0 12px 16px!important;padding:18px!important;box-shadow:0 18px 48px rgba(0,0,0,.24)!important;border:1px solid rgba(255,255,255,.18)!important;
  }
  body.catalog-app-index .page-intro .title{font-size:32px!important;line-height:1.05!important;margin:4px 0 10px!important;color:#1a100b!important;}
  body.catalog-app-index .page-intro .lead{font-size:15px!important;color:#6d5d4f!important;line-height:1.45!important;}
  body.catalog-app-index .page-intro .btn{margin-top:12px!important;display:inline-flex!important;}
  body.catalog-app-index .catalog-showroom-grid{
    display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:0 14px!important;max-width:100%!important;
  }
  body.catalog-app-index .catalog-showroom-card{
    display:grid!important;grid-template-columns:120px 1fr!important;gap:12px!important;align-items:center!important;
    min-height:126px!important;border-radius:22px!important;padding:10px!important;background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 18px 42px rgba(0,0,0,.24)!important;color:#fffaf3!important;text-decoration:none!important;overflow:hidden!important;
  }
  body.catalog-app-index .catalog-showroom-card .media{
    height:106px!important;border-radius:17px!important;background-size:cover!important;background-position:center!important;filter:saturate(1.04) contrast(1.03)!important;
  }
  body.catalog-app-index .catalog-showroom-card .body{padding:0!important;position:relative!important;background:transparent!important;color:#fffaf3!important;}
  body.catalog-app-index .catalog-showroom-card h3{font-size:22px!important;line-height:1!important;margin:0 0 6px!important;color:#fffaf3!important;}
  body.catalog-app-index .catalog-showroom-card p{font-size:12.5px!important;line-height:1.25!important;color:#e3c79a!important;margin:0 0 8px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  body.catalog-app-index .catalog-showroom-card strong{font-size:12px!important;color:#f1c982!important;}

  /* Product section becomes an app gallery */
  body.catalog-app-category .catalog-products-head,
  body.catalog-app-index .catalog-products-head{
    display:block!important;padding:0 14px 10px!important;color:#fffaf3!important;max-width:100%!important;
  }
  body.catalog-app-category .catalog-products-head .kicker,
  body.catalog-app-index .catalog-products-head .kicker{
    color:#e8c78f!important;font-size:11px!important;letter-spacing:3px!important;text-transform:uppercase!important;font-weight:1000!important;
  }
  body.catalog-app-category .catalog-products-head h2,
  body.catalog-app-index .catalog-products-head h2{
    color:#fffaf3!important;font-size:28px!important;line-height:1.05!important;margin:5px 0 6px!important;
  }
  body.catalog-app-category .catalog-products-head p,
  body.catalog-app-index .catalog-products-head p{
    color:#d7c2a6!important;font-size:14px!important;line-height:1.35!important;margin:0 0 10px!important;
  }
  body.catalog-app-category .catalog-products-head .btn,
  body.catalog-app-index .catalog-products-head .btn{
    display:inline-flex!important;margin-top:10px!important;padding:10px 14px!important;border-radius:999px!important;
    background:linear-gradient(135deg,#c7975e,#e8c78f)!important;color:#20130c!important;font-size:12px!important;font-weight:1000!important;
  }
  body.catalog-app-category .featured-catalog-grid,
  body.catalog-app-index .featured-catalog-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;
    padding:0 14px 18px!important;max-width:100%!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-card,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-card{
    border-radius:19px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.24)!important;overflow:hidden!important;color:#fffaf3!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-media,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-media{
    aspect-ratio:1.05/1!important;border:0!important;background:#160e0a!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-media img,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-media img{
    object-fit:cover!important;filter:saturate(1.04) contrast(1.02)!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-body,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-body{
    padding:10px 10px 11px!important;background:transparent!important;color:#fffaf3!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-body .tag,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-body .tag{
    display:inline-flex!important;margin:0 0 7px!important;padding:4px 7px!important;font-size:9px!important;letter-spacing:.5px!important;
    border-radius:999px!important;background:rgba(232,199,143,.14)!important;color:#f1d19a!important;border:1px solid rgba(232,199,143,.18)!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-body h3,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-body h3{
    color:#fffaf3!important;font-size:16px!important;line-height:1.05!important;margin:0 0 5px!important;letter-spacing:-.2px!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-body p,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-body p{
    color:#d8b384!important;font-size:12px!important;line-height:1.25!important;margin:0 0 7px!important;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  body.catalog-app-category [data-dyn-catalog-list] .catalog-meta,
  body.catalog-app-index [data-dyn-catalog-list] .catalog-meta{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:6px 0!important;}
  body.catalog-app-category [data-dyn-catalog-list] .catalog-meta span,
  body.catalog-app-index [data-dyn-catalog-list] .catalog-meta span{
    font-size:9.5px!important;padding:4px 6px!important;background:rgba(255,255,255,.08)!important;color:#fffaf3!important;border-radius:999px!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-actions,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-actions{gap:5px!important;margin-top:8px!important;}
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-actions .mini-btn,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-actions .mini-btn{
    padding:8px 9px!important;font-size:10.5px!important;border-radius:999px!important;white-space:nowrap!important;
  }
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-actions .mini-btn.light,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-actions .mini-btn.light{display:none!important;}

  /* Keep content above app nav */
  body.catalog-app-index .footer,
  body.catalog-app-category .footer{display:none!important;}
}

@media (max-width:390px){
  body.catalog-app-category .featured-catalog-grid,
  body.catalog-app-index .featured-catalog-grid{gap:9px!important;padding-left:10px!important;padding-right:10px!important;}
  body.catalog-app-category [data-dyn-catalog-list] .clean-catalog-body h3,
  body.catalog-app-index [data-dyn-catalog-list] .clean-catalog-body h3{font-size:15px!important;}
  body.catalog-app-index .catalog-showroom-card{grid-template-columns:105px 1fr!important;}
  body.catalog-app-index .catalog-showroom-card .media{height:96px!important;}
}
