/* =====================================================================
   Template layout variants. Loaded after style.css; colours/fonts come from the
   active template's tokens (see includes/templates.php). A template picks one value
   per group via body classes:  hdr-*  nav-*  card-*  cats-*  hero-*  cols-*
   ===================================================================== */

/* ---------- preview bar (admins only) ---------- */
.tpl-preview-bar{position:fixed;left:10px;right:10px;bottom:84px;z-index:200;display:flex;gap:14px;align-items:center;justify-content:center;background:#111;color:#fff;padding:9px 14px;border-radius:14px;font-size:.76rem;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:520px;margin:0 auto;}
.tpl-preview-bar span{flex:1;min-width:0;}
.tpl-preview-bar a,.tpl-preview-bar button{white-space:nowrap;}
@media (min-width:761px){.tpl-preview-bar{bottom:16px;}}
.tpl-preview-bar a{color:#C6F432;font-weight:800;text-decoration:none;white-space:nowrap;}

/* ---------- header ---------- */
.hdr-gradient .store-header{background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:var(--on-brand);border:none;border-radius:0 0 30px 30px;box-shadow:0 14px 30px -20px rgba(var(--forest-rgb),.6);}
.hdr-gradient .brand,.hdr-gradient .brand-name,.hdr-gradient .brand-tag{color:var(--on-brand);}
.hdr-gradient .brand-tag{opacity:.8;}
.hdr-gradient .icon-btn{background:rgba(255,255,255,.2);border-color:transparent;color:var(--on-brand);}
.hdr-gradient .cart-pill{background:var(--surface);color:var(--brand-dark);box-shadow:none;}
.hdr-gradient .cart-count{background:var(--brand);color:var(--on-brand);}
.hdr-gradient .search-bar{background:var(--surface);}
.hdr-gradient .filter-btn{background:var(--lime);color:var(--on-lime);box-shadow:none;}

.hdr-dark .store-header{background:var(--forest);color:#fff;border:none;}
.hdr-dark .brand,.hdr-dark .brand-name,.hdr-dark .brand-tag{color:#fff;}
.hdr-dark .icon-btn{background:rgba(255,255,255,.12);border-color:transparent;color:#fff;}
.hdr-dark .search-bar{background:rgba(255,255,255,.14);color:#fff;}
.hdr-dark .search-bar input{color:#fff;}
.hdr-dark .search-bar input::placeholder{color:rgba(255,255,255,.6);}

.hdr-center .store-header .header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;}
.hdr-center .brand{grid-column:2;justify-self:center;flex-direction:column;text-align:center;gap:2px;}
.hdr-center .brand-text{align-items:center;}
.hdr-center .brand-name{font-family:var(--font-head,var(--font));font-size:1.35rem;letter-spacing:.02em;max-width:60vw;}
.hdr-center .brand-tag{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;}
.hdr-center .header-actions{grid-column:3;justify-self:end;}
.hdr-center #headerBack{grid-column:1;justify-self:start;}
.hdr-center .brand-logo{width:34px;height:34px;}
.hdr-center .cart-pill{padding:0;width:42px;background:transparent;color:var(--text);box-shadow:none;border:1px solid var(--line);}
.hdr-center .cart-pill .cart-label{display:none;}
.hdr-center .cart-count{position:absolute;top:-6px;right:-6px;background:var(--brand);color:var(--on-brand);}

/* ---------- hero ---------- */
.hero-flat .hero-slideshow{border-radius:0;box-shadow:none;}

/* ---------- bottom nav ---------- */
@media (max-width:760px){
  .nav-bar .mobile-bottom-nav{left:0;right:0;bottom:0;border-radius:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:0 -10px 26px -18px rgba(0,0,0,.35);border-top:1px solid var(--line);gap:0;}
  .nav-bar .mobile-bottom-nav a{flex:1;flex-direction:column;gap:2px;padding:6px 4px;border-radius:12px;color:var(--muted);margin:0;}
  .nav-bar .mobile-bottom-nav a em{display:block;font-size:.66rem;font-weight:700;}
  .nav-bar .mobile-bottom-nav a.active{background:transparent;color:var(--brand);}
  .nav-bar .mobile-bottom-nav a.active em{display:block;}
  .nav-bar.has-mobile-nav .sticky-bar{bottom:64px;left:0;right:0;border-radius:0;}

  .nav-glass .mobile-bottom-nav{background:rgba(var(--forest-rgb),.06);background:color-mix(in srgb,var(--surface) 82%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--line);box-shadow:0 16px 36px -16px rgba(var(--forest-rgb),.4);left:22px;right:22px;padding:6px;}
  .nav-glass .mobile-bottom-nav a{flex:1;margin:0;justify-content:center;padding:11px;color:var(--muted);}
  .nav-glass .mobile-bottom-nav a em{display:none !important;}
  .nav-glass .mobile-bottom-nav a.active{background:var(--brand);color:var(--on-brand);flex:1;box-shadow:0 8px 16px -8px rgba(var(--brand-rgb),.8);}
}

/* ---------- categories ---------- */
.cats-tile .group-slide-card{flex:0 0 88px;width:88px;}
.cats-tile .group-slide-img{border-radius:var(--radius-sm);width:100%;height:auto;aspect-ratio:1/1;}
.cats-pill .group-slide-card{flex:0 0 auto;width:auto;}
.cats-pill .group-slide-img{display:none;}
.cats-pill .group-slide-name{background:var(--surface);border:1px solid var(--line);padding:9px 16px;border-radius:999px;font-weight:700;white-space:nowrap;}
.cats-pill .group-slide-card:first-child .group-slide-name{background:var(--brand);color:var(--on-brand);border-color:var(--brand);}
.cats-photo .group-slide-card{position:relative;flex:0 0 118px;width:118px;border-radius:var(--radius-sm);overflow:hidden;}
.cats-photo .group-slide-img{width:100%;height:150px;aspect-ratio:auto;border-radius:var(--radius-sm);margin:0;}
.cats-photo .group-slide-count{display:none;}
.cats-photo .group-slide-name{position:absolute;left:0;right:0;bottom:0;padding:26px 8px 9px;color:#fff;font-weight:800;text-align:center;background:linear-gradient(transparent,rgba(0,0,0,.65));}
@media (max-width:640px){.cats-photo .group-slide-card{flex:0 0 104px;width:104px;}.cats-photo .group-slide-img{height:132px;}.cats-tile .group-slide-card{flex:0 0 78px;width:78px;}}
.cat-tile-img{border-radius:var(--radius);}

/* ---------- product cards ---------- */
/* centered: price on top, big full-width add button */
.card-centered .item-body{align-items:center;text-align:center;}
.card-centered .item-bottom{display:contents;}
.card-centered .item-price-wrap{order:1;flex-direction:row;gap:6px;align-items:baseline;justify-content:center;flex-wrap:wrap;}
.card-centered .item-price{color:var(--brand);font-size:1.05rem;}
.card-centered .item-name{order:2;min-height:0;}
.card-centered .item-meta,.card-centered .pack-tag,.card-centered .stock-note{order:3;align-self:center;}
.card-centered .item-ctrl{order:4;width:100%;margin-top:8px;}
.card-centered .add-btn:not(.opts):not(.out){width:100%;height:38px;font-size:.8rem;border-radius:calc(var(--radius) * .6);}
.card-centered .add-btn:not(.opts):not(.out)::after{content:' Add to cart';font-size:.78rem;font-weight:700;margin-left:6px;}
.card-centered .add-btn.opts,.card-centered .add-btn.out{width:100%;justify-content:center;}
.card-centered .qty-stepper{width:100%;justify-content:space-between;}
.card-centered .item-img{background:transparent;}
.card-centered .item-img img{object-fit:contain;padding:6px;}

/* tall: fashion-style portrait photos */
.card-tall .item-card{border:none;box-shadow:0 10px 26px -18px rgba(var(--forest-rgb),.35);}
.card-tall .item-img{aspect-ratio:3/4;margin:0;width:100%;border-radius:0;}
.card-tall .item-img img{height:100%;}
.card-tall .item-body{padding:10px 12px 12px;}
.card-tall .item-name{min-height:0;font-weight:600;}
.card-tall .item-price{font-size:1.02rem;}
.card-tall .add-btn{border-radius:50%;}
.card-tall .discount-badge{border-radius:999px;background:var(--surface);color:var(--text);}

/* horizontal: list rows */
.card-horizontal .menu-grid{grid-template-columns:1fr;gap:12px;}
.card-horizontal .item-card{flex-direction:row;align-items:stretch;padding:10px;gap:12px;box-shadow:0 10px 24px -20px rgba(0,0,0,.4);}
.card-horizontal .item-img{width:104px;min-width:104px;margin:0;aspect-ratio:1/1;border-radius:calc(var(--radius) * .7);flex:none;}
.card-horizontal .item-body{padding:2px 4px 2px 0;flex:1;justify-content:space-between;}
.card-horizontal .item-name{min-height:0;font-size:.98rem;}
.card-horizontal .shelf-row .item-card{flex:0 0 260px;width:260px;}
@media (min-width:700px){.card-horizontal .menu-grid{grid-template-columns:repeat(2,1fr);}}

/* 3 per row on phones */
@media (max-width:640px){
  .cols-3 .menu-grid{grid-template-columns:repeat(3,1fr);gap:8px;}
  .cols-3 .menu-grid .item-body{padding:7px 8px 9px;}
  .cols-3 .menu-grid .item-name{font-size:.74rem;}
  .cols-3 .menu-grid .item-price{font-size:.82rem;}
  .cols-3 .menu-grid .item-mrp{display:none;}
  .cols-3 .menu-grid .add-btn{width:28px;height:28px;font-size:1.05rem;border-radius:50%;}
  .cols-3 .menu-grid .add-btn.opts{width:auto;height:26px;font-size:.62rem;padding:0 8px;border-radius:999px;}
  .cols-3 .menu-grid .discount-badge{font-size:.54rem;padding:2px 6px;}
  .cols-3 .menu-grid .qty-stepper{height:28px;}
  .cols-3 .menu-grid .qty-stepper button{height:28px;width:20px;}
  .cols-3 .menu-grid .pack-tag,.cols-3 .menu-grid .item-meta{display:none;}
}

/* ---------- dark templates ---------- */
.is-dark .group-slide-img[class*="tint-"],.is-dark .cat-tile-img[class*="tile-tint-"]{background:var(--surface-2);}
.is-dark .hero-slide-banner,.is-dark .hero-slide-image{background:var(--surface);}
.is-dark .hero-arrow,.is-dark .hero-nav{background:var(--surface-2);color:var(--text);}
.is-dark img{filter:none;}
.is-dark .shop-closed-banner{background:var(--surface-2);color:var(--text);}
@media (max-width:640px){.cols-3 .menu-grid .item-from{display:none;}.cols-3 .menu-grid .item-bottom{flex-wrap:wrap;gap:4px;}}
/* dark templates: text that used the deep "forest" colour on surfaces */
.is-dark .pi-price,.is-dark .buy-qty button,.is-dark .totals-row.grand,.is-dark .cat-page-group-title,.is-dark .group-banner h1,.is-dark .trust-row{color:var(--text);}
.is-dark .pi-price{color:var(--lime);}

/* =====================================================================
   LAYOUT FAMILIES (v8): more card styles, flows, home structures, headings
   ===================================================================== */

/* ---------- favourite heart (shown when a template sets heart: on) ---------- */
.wish{display:none;position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:none;background:var(--surface);color:var(--text);align-items:center;justify-content:center;box-shadow:0 6px 14px -6px rgba(0,0,0,.35);z-index:3;cursor:pointer;padding:0;}
.wish.on{color:#e11d48;}.wish.on svg{fill:currentColor;}
.heart-on .wish{display:flex;}
@media (max-width:640px){.wish{width:28px;height:28px;top:6px;right:6px;}.wish svg{width:15px;height:15px;}}

/* ---------- more bottom bars ---------- */
@media (max-width:760px){
  .nav-dock .mobile-bottom-nav{left:12px;right:12px;bottom:12px;border-radius:26px;padding:8px 6px;background:var(--nav-bg,var(--forest));gap:0;box-shadow:0 18px 34px -14px rgba(0,0,0,.55);}
  .nav-dock .mobile-bottom-nav a{flex:1;flex-direction:column;gap:2px;padding:6px 2px;margin:0;border-radius:16px;color:var(--nav-fg,rgba(255,255,255,.6));}
  .nav-dock .mobile-bottom-nav a em{display:block;font-size:.62rem;font-weight:700;}
  .nav-dock .mobile-bottom-nav a.active{background:transparent;color:var(--brand);}
  .nav-dock .mobile-bottom-nav a.active em{display:block;}
}

/* ---------- hero: full-width tall banner ---------- */
.hero-full .hero-slideshow-wrap.wrap{max-width:none;padding-left:0;padding-right:0;}
.hero-full .hero-slideshow{border-radius:0;box-shadow:none;max-height:none;}
.hero-full .hero-slide{height:clamp(230px,58vw,440px);max-height:none;padding:28px clamp(18px,5vw,64px);}
.hero-full .hero-slide h1,.hero-full .hero-slide h2{font-size:clamp(1.55rem,5.6vw,3.1rem);line-height:1.08;}
.hero-full .hero-dots{bottom:14px;}

/* ---------- home structures ---------- */
.home-editorial #menu{position:relative;z-index:2;margin:-38px auto 8px;max-width:1180px;width:calc(100% - 28px);background:var(--surface);border-radius:var(--radius);padding:16px 8px 8px;box-shadow:0 22px 44px -26px rgba(var(--forest-rgb),.5);}
.home-editorial #menu .section-head{display:none;}
.home-editorial #menu.section.wrap{padding-left:8px;padding-right:8px;}
.home-dealsfirst #menu{margin-top:8px;}
.home-catfirst #menu{padding-top:6px;}

/* ---------- section headings ---------- */
.head-bar .section-head h2,.head-bar .home-shelf-head h3{border-left:5px solid var(--brand);padding-left:10px;line-height:1.15;}
.head-caps .section-head h2,.head-caps .home-shelf-head h3{text-transform:uppercase;letter-spacing:.14em;font-size:.86rem;display:flex;align-items:center;gap:12px;flex:1;}
.head-caps .section-head h2::after,.head-caps .home-shelf-head h3::after{content:'';flex:1;height:1px;background:var(--line);}
.head-caps .section-head-row h2{flex:1;}
.head-center .section-head h2,.head-center .home-shelf-head h3{display:flex;align-items:center;gap:14px;justify-content:center;flex:1;text-align:center;}
.head-center .section-head h2::before,.head-center .section-head h2::after,.head-center .home-shelf-head h3::before,.head-center .home-shelf-head h3::after{content:'';flex:1;height:1px;background:var(--line);max-width:90px;}
.head-center .section-head-row{justify-content:center;}.head-center .section-head-link{display:none;}

/* ---------- more category styles ---------- */
.cats-arch .group-slide-card{flex:0 0 84px;width:84px;}
.cats-arch .group-slide-img{width:100%;height:104px;border-radius:999px 999px 16px 16px;}
.cats-grid .group-slider{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;overflow:visible;}
.cats-grid .group-slide-card{position:relative;flex:none;width:auto;border-radius:var(--radius-sm);overflow:hidden;}
.cats-grid .group-slide-img{width:100%;height:118px;aspect-ratio:auto;border-radius:var(--radius-sm);margin:0;}
.cats-grid .group-slide-count{display:none;}
.cats-grid .group-slide-name{position:absolute;left:0;right:0;bottom:0;padding:26px 6px 9px;color:#fff;font-weight:800;font-size:.7rem;text-align:center;text-transform:uppercase;letter-spacing:.03em;background:linear-gradient(transparent,rgba(0,0,0,.7));}
@media (min-width:760px){.cats-grid .group-slider{grid-template-columns:repeat(6,1fr);}.cats-grid .group-slide-img{height:150px;}}

/* ---------- sections as grids (shelf: grid, bento, masonry) ---------- */
.shelf-grid .shelf-row,.flow-bento .shelf-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:14px;overflow:visible;}
.shelf-grid .shelf-row .item-card,.flow-bento .shelf-row .item-card,.flow-masonry .shelf-row .item-card{flex:none;width:auto;}
@media (max-width:640px){.shelf-grid .shelf-row,.flow-bento .shelf-row{grid-template-columns:repeat(2,1fr);gap:12px;}.cols-3.shelf-grid .shelf-row{grid-template-columns:repeat(3,1fr);gap:8px;}}
@media (min-width:1100px){.shelf-grid .shelf-row,.flow-bento .shelf-row,.menu-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));}}

/* ---------- flows ---------- */
.flow-masonry .menu-grid,.flow-masonry .shelf-row{display:block;column-count:2;column-gap:12px;overflow:visible;}
.flow-masonry .item-card{break-inside:avoid;margin-bottom:12px;width:auto;}
.flow-masonry .item-card:nth-child(3n+1) .item-img{aspect-ratio:4/5;}
.flow-masonry .item-card:nth-child(3n+2) .item-img{aspect-ratio:1/1;}
.flow-masonry .item-card:nth-child(3n) .item-img{aspect-ratio:5/6;}
@media (min-width:700px){.flow-masonry .menu-grid,.flow-masonry .shelf-row{column-count:3;column-gap:16px;}}
@media (min-width:1100px){.flow-masonry .menu-grid,.flow-masonry .shelf-row{column-count:4;}}
.flow-bento .menu-grid,.flow-bento .shelf-row{grid-auto-flow:dense;}
.flow-bento .item-card:nth-child(5n+1){grid-column:span 2;flex-direction:row;align-items:stretch;}
.flow-bento .item-card:nth-child(5n+1) .item-img{width:48%;aspect-ratio:auto;min-height:150px;flex:none;}
.flow-bento .item-card:nth-child(5n+1) .item-body{justify-content:center;padding:14px 16px;gap:8px;}
.flow-bento .item-card:nth-child(5n+1) .item-name{font-size:1.05rem;min-height:0;}
.flow-bento .item-card:nth-child(5n+1) .item-price{font-size:1.3rem;}

/* ---------- card: arch (boutique) ---------- */
.card-arch .item-card{border:none;background:transparent;box-shadow:none;overflow:visible;}
.card-arch .item-img{margin:0;width:100%;aspect-ratio:3/4;border-radius:999px 999px var(--radius) var(--radius);}
.card-arch .item-body{padding:10px 2px 0;text-align:center;align-items:center;}
.card-arch .item-name{min-height:0;}
.card-arch .item-bottom{width:100%;justify-content:center;gap:10px;}
.card-arch .add-btn{border-radius:50%;}
.card-arch .discount-badge{top:auto;bottom:10px;left:50%;transform:translateX(-50%);}
.card-arch .wish{top:46px;right:10px;}

/* ---------- card: circle (toys / kids) ---------- */
.card-circle .item-card{border-radius:999px 999px var(--radius) var(--radius);padding:14px 8px 12px;align-items:center;text-align:center;border:none;box-shadow:0 14px 28px -20px rgba(var(--forest-rgb),.4);}
.card-circle .item-img{width:80%;margin:4px auto 0;aspect-ratio:1/1;border-radius:50%;}
.card-circle .item-body{align-items:center;text-align:center;padding:10px 6px 0;width:100%;}
.card-circle .item-name{min-height:0;}
.card-circle .item-bottom{flex-direction:column;gap:8px;align-items:center;width:100%;}
.card-circle .item-price-wrap{display:flex;gap:6px;align-items:baseline;justify-content:center;}
.card-circle .item-ctrl{width:100%;display:flex;justify-content:center;}
.card-circle .add-btn:not(.opts){border-radius:999px;width:72px;}
.card-circle .discount-badge{top:6px;left:50%;transform:translateX(-50%);}
.card-circle .wish{top:6px;right:auto;left:62%;}

/* ---------- card: overlay (streetwear / fashion photo) ---------- */
.card-overlay .item-card{position:relative;border:none;overflow:hidden;aspect-ratio:3/4.15;background:var(--surface-2);}
.card-overlay .item-img{position:absolute;inset:0;margin:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;}
.card-overlay .item-body{position:absolute;left:0;right:0;bottom:0;padding:44px 12px 12px;background:linear-gradient(transparent,rgba(0,0,0,.78));z-index:2;pointer-events:none;flex:none;}
.card-overlay .item-body a,.card-overlay .item-ctrl,.card-overlay .item-ctrl *{pointer-events:auto;}
.card-overlay .item-name,.card-overlay .item-price{color:#fff;min-height:0;}
.card-overlay .item-mrp,.card-overlay .item-meta,.card-overlay .stock-note{color:rgba(255,255,255,.75);opacity:1;}
.card-overlay .pack-tag{background:rgba(255,255,255,.9);}
.card-overlay .item-card.out-of-stock{aspect-ratio:3/4.15;}
.card-overlay .discount-badge{background:#fff;color:#111;}

/* ---------- card: tech (electronics spec tile) ---------- */
.card-tech .item-card{background:var(--surface);border-radius:var(--radius);}
.card-tech .item-img{margin:8px;width:calc(100% - 16px);aspect-ratio:1/1;border-radius:calc(var(--radius) - 4px);background:var(--surface-2);}
.card-tech .item-img img{object-fit:contain;padding:14px;mix-blend-mode:multiply;}
.is-dark.card-tech .item-img img{mix-blend-mode:normal;}
.card-tech .item-card:nth-child(4n+1) .item-img{background:var(--accent);}
.card-tech .item-body{gap:3px;}
.card-tech .item-bottom{display:contents;}
.card-tech .item-price-wrap{order:1;display:flex;gap:7px;align-items:baseline;flex-wrap:wrap;}
.card-tech .item-price{font-size:1.1rem;letter-spacing:-.02em;}
.card-tech .item-name{order:2;min-height:0;font-weight:500;font-size:.84rem;color:var(--muted);}
.card-tech .item-meta,.card-tech .pack-tag,.card-tech .stock-note{order:3;align-self:flex-start;}
.card-tech .item-ctrl{order:4;width:100%;margin-top:6px;}
.card-tech .add-btn:not(.opts):not(.out){width:100%;height:36px;border-radius:calc(var(--radius) * .55);font-size:.78rem;}
.card-tech .add-btn:not(.opts):not(.out)::after{content:' Add';font-size:.76rem;font-weight:800;margin-left:5px;}
.card-tech .add-btn.opts,.card-tech .add-btn.out{width:100%;justify-content:center;}
.card-tech .qty-stepper{width:100%;justify-content:space-between;}
.card-tech .discount-badge{left:auto;right:8px;top:8px;}
.card-tech .wish{top:auto;bottom:8px;right:8px;}

/* three-up compaction for the new card styles */
@media (max-width:640px){
  .cols-3.card-overlay .item-body{padding:30px 8px 8px;}
  .cols-3.card-circle .item-card{border-radius:999px 999px 14px 14px;padding:10px 5px;}
  .cols-3.card-tech .add-btn:not(.opts):not(.out)::after{content:'';}
}
.flow-bento .item-card:nth-child(5n+1) .item-bottom{flex-wrap:wrap;gap:8px;}
.card-circle .wish{top:auto;bottom:2px;right:0;left:auto;}
.card-circle .item-img{overflow:visible;}
.card-circle .item-img img,.card-circle .item-img .item-img-placeholder{border-radius:50%;}
.card-tech .item-card:nth-child(4n+1) .item-img-placeholder{background:transparent;}
.home-editorial .hero-dots{bottom:52px;}

/* ---------- home categories: layout chosen in Admin -> Settings -> Banner & Home ---------- */
.catlay-slider .group-slider{display:flex;overflow-x:auto;}
.catlay-slider .group-slide-card{flex:0 0 92px;width:92px;}
.catlay-grid .group-slider{display:grid;grid-template-columns:repeat(var(--catcols,3),minmax(0,1fr));gap:12px;overflow:visible;}
.catlay-grid .group-slide-card{flex:none;width:auto;min-width:0;}
.catlay-flex .group-slider{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;overflow:visible;}
.catlay-flex .group-slide-card{flex:0 0 calc((100% - 14px * (var(--catcols,3) - 1)) / var(--catcols,3));width:auto;max-width:150px;}
.catcols-2{--catcols:2;}.catcols-3{--catcols:3;}.catcols-4{--catcols:4;}.catcols-5{--catcols:5;}.catcols-6{--catcols:6;}
@media (min-width:760px){
  .catlay-grid .group-slider{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;}
  .catlay-flex .group-slide-card{flex:0 0 140px;max-width:none;}
}
.catlay-grid .group-slide-img,.catlay-flex .group-slide-img{margin-left:auto;margin-right:auto;}
.catcard-on .group-slide-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm,16px);padding:14px 8px 12px;box-shadow:0 12px 24px -20px rgba(var(--forest-rgb),.45);transition:transform .15s,box-shadow .15s;}
.catcard-on .group-slide-card:hover{transform:translateY(-2px);box-shadow:0 16px 28px -18px rgba(var(--forest-rgb),.55);}
.catcard-on.catlay-slider .group-slide-card{flex:0 0 112px;width:112px;}
/* photo-tile templates: keep the overlay style inside cards */
.catcard-on.cats-photo .group-slide-card,.catcard-on.cats-grid .group-slide-card{padding:0;}
.home-faq details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm,14px);padding:12px 16px;margin-bottom:10px;}
.home-faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:10px;}
.home-faq summary::after{content:'+';font-size:1.2rem;line-height:1;color:var(--brand);}
.home-faq details[open] summary::after{content:'–';}
.home-faq p{margin:10px 0 2px;color:var(--muted);line-height:1.55;}
