/* SM FARMSS V38 - slim product cards, desktop + mobile.
   Overrides V29 large card controls without changing product markup or scripts. */
.store-shell.page-section{padding-top:24px!important;padding-bottom:38px!important}
.store-products{gap:15px!important}
.store-card{
  display:grid!important;
  grid-template-columns:minmax(0,240px) minmax(0,1fr)!important;
  border-radius:21px!important;
  box-shadow:0 8px 21px rgba(4,33,18,.065);
}
.store-photo{padding:11px!important;gap:7px!important;border-right:1px solid #ece7da;background:#fbf8f2}
.store-photo .store-main-image{
  width:100%!important;height:164px!important;min-height:164px!important;max-height:164px!important;
  border-radius:13px!important;object-fit:cover!important;
}
.store-gallery{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;align-items:center}
.store-gallery .thumb{
  flex:0 0 37px!important;width:37px!important;height:37px!important;
  min-width:37px!important;max-width:37px!important;min-height:37px!important;
  border-radius:8px!important;
}
.store-gallery .thumb img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
.store-content{padding:13px 18px!important;min-width:0}
.store-title-line{display:flex;flex-direction:row;align-items:flex-start;gap:10px;flex-wrap:wrap}
.store-title-line small{margin-bottom:3px;font-size:9px;letter-spacing:.14em}
.store-title-line h2{font-size:clamp(25px,2.8vw,30px)!important;line-height:1.08}
.store-content>p{font-size:11px!important;line-height:1.4!important;margin:6px 0 9px!important}
.stock-badge{padding:5px 9px!important;font-size:8px!important;line-height:1.25}
.unit-switch{gap:6px!important}
.unit-btn{padding:6px 10px!important;min-height:31px!important;font-size:9px!important;line-height:1.2}
.store-pricing{margin:9px 0!important;display:flex;flex-wrap:wrap;gap:9px!important;align-items:baseline!important}
.current-price{font-size:24px!important;line-height:1.1}
.price-note-small{font-size:10px!important}
.qty-row{gap:6px!important;flex-wrap:wrap}
.qty-btn{width:33px!important;height:33px!important;min-height:33px!important;min-width:33px!important;font-size:18px!important}
.qty-input{width:58px!important;height:33px!important;min-height:33px!important;font-size:14px!important;padding:4px 8px!important}
.line-total{width:auto!important;margin-left:auto!important;white-space:nowrap;font-size:10px!important}
.line-total b{font-size:13px!important}
.store-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:10px!important}
.store-actions .button{
  min-height:36px!important;padding:8px 13px!important;
  white-space:normal!important;font-size:9px!important;
  line-height:1.2;letter-spacing:.045em;max-width:100%;
}
@media (max-width:1050px){
  .store-card{grid-template-columns:minmax(0,220px) minmax(0,1fr)!important}
}
@media (max-width:690px){
  .store-shell.page-section{padding-top:16px!important;padding-bottom:26px!important}
  .store-products{gap:11px!important}
  .store-card{display:block!important;border-radius:19px!important}
  .store-photo{border-right:0;border-bottom:1px solid #ece7da;padding:9px!important;gap:6px!important}
  .store-photo .store-main-image{height:142px!important;min-height:142px!important;max-height:142px!important;border-radius:12px!important}
  .store-gallery .thumb{flex-basis:36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important}
  .store-content{padding:11px 13px 13px!important}
  .store-title-line{display:flex;flex-direction:row;align-items:flex-start!important;gap:6px!important;justify-content:space-between;flex-wrap:wrap}
  .store-title-line h2{font-size:clamp(23px,6vw,27px)!important;line-height:1.1}
  .store-content>p{font-size:10.5px!important;line-height:1.4!important;margin:6px 0 9px!important}
  .stock-badge{font-size:7.5px!important;padding:5px 8px!important}
  .unit-switch{gap:5px!important}
  .unit-btn{min-height:35px!important;padding:7px 10px!important;font-size:9px!important}
  .store-pricing{margin:8px 0!important;gap:7px!important}
  .current-price{font-size:24px!important}
  .qty-row{gap:6px!important}
  .qty-btn{width:35px!important;height:35px!important;min-height:35px!important;min-width:35px!important}
  .qty-input{height:35px!important;min-height:35px!important;width:55px!important;font-size:16px!important}
  .line-total{margin-left:auto!important;font-size:9.5px!important}
  .line-total b{font-size:12px!important}
  .store-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:10px!important}
  .store-actions .button{min-height:39px!important;font-size:8.5px!important;padding:8px 6px!important;line-height:1.25!important}
}
@media(max-width:355px){
  .store-photo .store-main-image{height:132px!important;min-height:132px!important;max-height:132px!important}
  .store-title-line h2{font-size:23px!important}
  .store-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .store-actions .button{font-size:8px!important}
}
