/* Studio Motyw popular products: only Elementor MASTER301 draft #78. */
.elementor-78 .sm-popular-controls{display:flex;align-items:center;gap:7px;margin-left:8px;white-space:nowrap;flex-shrink:0}
.elementor-78 .sm-popular-controls[hidden]{display:none!important}
.elementor-78 .sm-popular-nav{width:23px;height:23px;border:1px solid #d8d0c8;border-radius:50%;background:#fff;color:#24211f;font:700 18px/1 Inter,Arial,sans-serif;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.elementor-78 .sm-popular-nav:hover{background:#f0ece5}
.elementor-78 .sm-popular-nav:focus-visible{outline:2px solid #302c29;outline-offset:2px}
.elementor-78 .sm-popular-count{color:#5d5550;font:500 10px/1 Inter,Arial,sans-serif}

/* Keep existing three Elementor cards, but give the garment almost the entire left half.
   The photo widget originally had forced 47% width / 130px height. */
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:194px!important;
  height:194px!important;
  padding:0 8px 0 0!important;
  gap:0!important;
  overflow:hidden!important;
  background:#f3f3f3!important;
  border:1px solid #ded7d0!important;
  border-radius:12px!important;
  box-shadow:0 5px 16px rgba(54,43,33,.10)!important;
  isolation:isolate;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image{
  flex:0 0 57%!important;
  width:57%!important;
  max-width:57%!important;
  height:100%!important;
  min-height:100%!important;
  align-self:stretch!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image .elementor-widget-container{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:scale(1.06);
  transform-origin:center;
  transition:transform .2s ease;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-info{
  position:relative!important;
  z-index:4!important;
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  align-self:stretch!important;
  justify-content:center!important;
  padding:0 16px 0 3px!important;
  gap:2px!important;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(243,243,243,0),rgba(243,243,243,.86) 8px,#f3f3f3 30px);
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-title .elementor-heading-title{
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.25!important;
  color:#171614!important;
  overflow-wrap:break-word;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-price,
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-price *{
  font-size:11px!important;
  line-height:1.3!important;
  color:#24211f!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-arrow{
  z-index:6!important;
  position:absolute!important;
  right:8px!important;
  top:auto!important;
  bottom:calc(50% - 12px)!important;
  margin:0!important;
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-arrow .elementor-button{
  width:23px!important;
  height:23px!important;
  min-height:23px!important;
  padding:3px!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-swatches{
  display:flex;align-items:center;flex-wrap:wrap;gap:5px;
  margin-top:8px;
  padding-right:14px;
  min-height:16px;
  position:relative;
  z-index:5;
  pointer-events:auto;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-swatch{
  -webkit-appearance:none;appearance:none;
  border:1px solid #c4bbb3;
  display:block;
  border-radius:50%;
  width:12px;height:12px;
  min-width:12px;min-height:12px;
  padding:0;margin:0;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.5);
}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-swatch[aria-pressed="true"]{outline:1.5px solid #332920;outline-offset:2px}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-swatch:focus-visible{outline:2px solid #a44c2c;outline-offset:3px}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-extra{font:600 10px/1 Inter,Arial,sans-serif;color:#77706a}

.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-popular-card-link{
  position:absolute;
  inset:0;
  display:block;
  z-index:3;
  cursor:pointer;
  text-decoration:none;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-popular-card-link:focus-visible{
  outline:3px solid #84634e;
  outline-offset:-4px;
  border-radius:12px;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product:hover{
  box-shadow:0 7px 22px rgba(54,43,33,.15)!important;
}
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-product-arrow,
.elementor-78 .sm-product-grid.sm-popular-enhanced .sm-product-arrow *{
  pointer-events:auto;
}
@media(prefers-reduced-motion:no-preference){
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product{transition:box-shadow .2s ease}
}

/* Tablet and narrow cards keep a full-size readable product, no clipping of text. */
@media(max-width:1024px){
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image{flex-basis:53%!important;width:53%!important;max-width:53%!important}
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-info{padding-right:12px!important}
  .elementor-78 .sm-product-grid.sm-popular-enhanced .sm-popular-swatches{gap:4px}
}
@media(max-width:767px){
  .elementor-78 .sm-popular-controls{gap:4px;margin-left:4px}
  .elementor-78 .sm-popular-nav{width:22px;height:22px}
  .elementor-78 .sm-popular-count{font-size:9px}
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product{min-height:194px!important;height:194px!important}
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image{flex-basis:56%!important;width:56%!important;max-width:56%!important}
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-info{padding-right:12px!important}
}
@media(prefers-reduced-motion:reduce){
  .elementor-78 .sm-product-grid.sm-popular-enhanced > .sm-product .sm-product-image img{transition:none!important}
}
