/* Sama Luxury v5 — presentation-only correction of product grids and category carousel.
   Does not alter prices, products, orders or other application state. */
body.s4-active #shop #products.sama-product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch;
  justify-content:stretch;
  gap:18px;
  min-width:0;
  width:100%;
}
body.s4-active #shop #products>.sama-product-card {
  min-width:0;
  max-width:100%;
  width:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:17px;
  border:1px solid #e4e9ef;
  box-shadow:0 5px 20px rgba(9,32,53,.09);
}
body.s4-active #shop #products>.sama-product-card .sama-card-image {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:4/3;
  height:auto!important;
  min-height:0;
  max-height:none;
  margin:9px 9px 0;
  padding:10px;
  font-size:45px;
  line-height:1;
  background:#f5f7fa;
  color:#988fbb;
  overflow:hidden;
}
body.s4-active #shop #products>.sama-product-card .sama-card-image img {
  display:block;
  height:100%;
  width:100%;
  max-width:100%;
  object-fit:contain;
  object-position:center;
}
body.s4-active #shop #products>.sama-product-card .sama-card-body {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  padding:13px 14px 15px;
  min-width:0;
}
body.s4-active #shop #products>.sama-product-card .sama-card-body h3 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:2.9em;
  line-height:1.45;
  font-size:15px;
  margin:1px 0 3px;
  overflow-wrap:anywhere;
}
body.s4-active #shop #products>.sama-product-card .sama-card-body .price {
  margin:0 0 2px;
  min-height:0;
  font-size:21px;
}
body.s4-active #shop #products>.sama-product-card .sama-card-body .sstock-availability {
  margin:0 0 5px;
}
body.s4-active #shop #products>.sama-product-card .sama-card-cta {
  width:100%;
  margin-top:auto;
  min-height:44px;
  white-space:normal;
  line-height:1.4;
}
body.s4-active #shop #products>.sama-empty-search{grid-column:1/-1;min-width:0}
/* Graceful compact horizontal categories: preserve existing categories and clicks. */
body.s4-active .s4-categories-top {align-items:center;}
body.s4-active .s5-category-nav {display:flex;gap:7px;align-items:center;flex:none;direction:ltr;}
body.s4-active .s5-category-arrow {
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  min-width:38px;
  border:1px solid #dfcfad;
  border-radius:999px;
  background:#fffaf0;
  color:#74521e;
  padding:0;
  font-family:inherit;
  font-size:22px;
  line-height:1;
  box-shadow:0 1px 5px #14253b12;
}
body.s4-active .s5-category-arrow:hover {background:#e8c98d;color:#13283c;}
body.s4-active .s5-category-arrow:focus-visible {outline:3px solid #16717b;outline-offset:2px;}
body.s4-active .s4-category-list {
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:4px 2px 8px;
  overscroll-behavior-inline:contain;
  scroll-behavior:smooth;
}
body.s4-active .s4-category-list::-webkit-scrollbar {display:none;}
body.s4-active .s4-category-tile {min-width:0;}
body.s4-active .s4-category-photo img{object-position:center;}
@media (max-width:1250px){body.s4-active #shop #products.sama-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media (max-width:900px){body.s4-active #shop #products.sama-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;}}
@media (max-width:650px){
 body.s4-active #shop #products>.sama-product-card .sama-card-image{margin:7px 7px 0;padding:6px;font-size:36px;}
 body.s4-active #shop #products>.sama-product-card .sama-card-body{gap:5px;padding:10px;}
 body.s4-active #shop #products>.sama-product-card .sama-card-body h3{font-size:13px;}
 body.s4-active #shop #products>.sama-product-card .sama-card-body .price{font-size:18px;}
 body.s4-active .s5-category-arrow{width:34px;min-width:34px;height:34px;font-size:18px;}
 body.s4-active .s4-categories-top{gap:8px;flex-direction:row;flex-wrap:wrap;}
}
@media (max-width:359px){body.s4-active #shop #products.sama-product-grid{grid-template-columns:minmax(0,1fr)!important;}}
@media (prefers-reduced-motion:reduce){body.s4-active .s4-category-list{scroll-behavior:auto;}}
