/* NEXORA v21 — fixed navigation + light footer + uniform compact cards */

/* ---------- FIXED NAVIGATION ---------- */
.topbar{
  position:fixed !important;
  top:14px !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;
  width:min(1520px,calc(100% - 36px)) !important;
  margin:0 !important;
  z-index:5000 !important;
}
.page-shell{
  padding-top:82px !important;
}
body{
  padding-top:0 !important;
}

/* ---------- LIGHT FOOTER: OVERRIDES LEGACY DARK LAYER ---------- */
.site-footer{
  background:#f7f6f2 !important;
  color:#151617 !important;
  border-top:1px solid #cec9bf !important;
  box-shadow:0 -12px 40px rgba(30,28,23,.035) !important;
  border-radius:12px 12px 0 0 !important;
  padding:34px 28px 18px !important;
}
.site-footer .footer-grid{
  color:#151617 !important;
}
.site-footer .footer-grid h4{
  color:#151617 !important;
}
.site-footer .footer-grid p,
.site-footer .footer-grid span,
.site-footer .footer-grid a{
  color:#62615d !important;
}
.site-footer .footer-grid a:hover{
  color:#2647f5 !important;
}
.site-footer .footer-bottom{
  color:#77746e !important;
  border-top:1px solid #d8d3ca !important;
}
.site-footer .footer-brand,
.site-footer .footer-brand b,
.site-footer .footer-brand small{
  color:#151617 !important;
}
.site-footer .footer-brand small{
  color:#85817a !important;
}
.site-footer .brand-mark{
  background:#151617 !important;
  color:#d9ff45 !important;
}

/* ---------- UNIFORM COMPACT PRODUCT CARDS ---------- */
.n19-product-grid,
.n19-shop-grid,
.product-grid{
  align-items:stretch !important;
}

.n19-product-grid .n19-product-card,
.n19-shop-grid .n19-product-card,
.product-grid .product-card{
  width:100% !important;
  height:468px !important;
  min-height:468px !important;
  max-height:468px !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  overflow:hidden !important;
  border-radius:10px !important;
}

/* Product image is the full upper area of every card, never cropped. */
.n19-product-grid .n19-card-media,
.n19-shop-grid .n19-card-media,
.n19-product-grid .product-image,
.n19-shop-grid .product-image{
  flex:0 0 238px !important;
  height:238px !important;
  min-height:238px !important;
  max-height:238px !important;
  width:100% !important;
  margin:0 !important;
  padding:10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:#f1eee7 !important;
  border-bottom:1px solid #d9d4ca !important;
}

.n19-product-grid .n19-card-media img,
.n19-shop-grid .n19-card-media img,
.n19-product-grid .product-image img,
.n19-shop-grid .product-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
  margin:0 !important;
}

.n19-product-grid .n19-card-info,
.n19-shop-grid .n19-card-info{
  flex:1 1 auto !important;
  min-height:230px !important;
  max-height:230px !important;
  display:flex !important;
  flex-direction:column !important;
  padding:12px 13px !important;
  overflow:hidden !important;
}
.n19-product-grid .n19-card-info h3,
.n19-shop-grid .n19-card-info h3{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:44px !important;
  max-height:44px !important;
  font-size:15px !important;
  line-height:1.45 !important;
  margin:5px 0 3px !important;
}
.n19-product-grid .n19-card-kicker,
.n19-shop-grid .n19-card-kicker,
.n19-product-grid .n19-card-meta,
.n19-shop-grid .n19-card-meta{
  min-height:20px !important;
  max-height:20px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
.n19-product-grid .n19-card-buy,
.n19-shop-grid .n19-card-buy{
  margin-top:auto !important;
  padding-top:9px !important;
}
.n19-product-grid .n19-card-actions,
.n19-shop-grid .n19-card-actions{
  margin-top:8px !important;
}

/* Legacy card variant: keep every visible product card uniform too. */
.product-grid .product-card{
  height:468px !important;
}
.product-grid .product-card .product-image{
  flex:0 0 238px !important;
}
.product-grid .product-card .product-info{
  flex:1 1 auto !important;
}

/* Desktop: keep cards dense enough to resemble a compact commerce grid. */
@media (min-width:1181px){
  .n19-product-grid,
  .n19-shop-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
  }
}

@media (max-width:1180px){
  .topbar{
    width:calc(100% - 24px) !important;
    top:10px !important;
  }
  .n19-product-grid,
  .n19-shop-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width:760px){
  .topbar{
    width:calc(100% - 16px) !important;
    top:8px !important;
  }
  .page-shell{
    padding-top:74px !important;
  }
  .n19-product-grid,
  .n19-shop-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .n19-product-grid .n19-product-card,
  .n19-shop-grid .n19-product-card,
  .product-grid .product-card{
    height:430px !important;
    min-height:430px !important;
    max-height:430px !important;
  }
  .n19-product-grid .n19-card-media,
  .n19-shop-grid .n19-card-media,
  .n19-product-grid .product-image,
  .n19-shop-grid .product-image,
  .product-grid .product-card .product-image{
    flex-basis:205px !important;
    height:205px !important;
    min-height:205px !important;
    max-height:205px !important;
  }
  .n19-product-grid .n19-card-info,
  .n19-shop-grid .n19-card-info{
    min-height:225px !important;
    max-height:225px !important;
    padding:10px 11px !important;
  }
}

@media (max-width:460px){
  .n19-product-grid,
  .n19-shop-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .n19-product-grid .n19-product-card,
  .n19-shop-grid .n19-product-card,
  .product-grid .product-card{
    height:405px !important;
    min-height:405px !important;
    max-height:405px !important;
  }
  .n19-product-grid .n19-card-media,
  .n19-shop-grid .n19-card-media,
  .n19-product-grid .product-image,
  .n19-shop-grid .product-image,
  .product-grid .product-card .product-image{
    flex-basis:185px !important;
    height:185px !important;
    min-height:185px !important;
    max-height:185px !important;
    padding:8px !important;
  }
}
