/* Rataplam storefront refinements */
.rataplam-mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e6e9ee;
  background: #ffffff;
  color: #222222;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  position: absolute;
  left: 15px;
  top: 50%;
  margin-top: -21px;
  z-index: 30;
}

.rataplam-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 24, 32, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 1040;
}

.rataplam-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 360px);
  background: #ffffff;
  box-shadow: 18px 0 45px rgba(18, 24, 32, 0.22);
  transform: translateX(-104%);
  transition: transform 0.28s ease;
  z-index: 1041;
  display: flex;
  flex-direction: column;
}

.rataplam-menu-open {
  overflow: hidden;
}

.rataplam-menu-open .rataplam-mobile-backdrop {
  opacity: 1;
  visibility: visible;
}

.rataplam-menu-open .rataplam-mobile-drawer {
  transform: translateX(0);
}

.rataplam-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f3;
}

.rataplam-mobile-drawer-logo img {
  max-height: 48px;
  width: auto;
}

.rataplam-mobile-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f3f5f7;
  color: #222222;
  line-height: 40px;
  text-align: center;
}

.rataplam-mobile-drawer-body {
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.rataplam-mobile-search {
  display: flex;
  align-items: stretch;
  border: 1px solid #e3e7eb;
  background: #ffffff;
  margin-bottom: 18px;
}

.rataplam-mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 12px 14px;
  color: #333333;
}

.rataplam-mobile-search button {
  width: 46px;
  border: 0;
  background: #09afdf;
  color: #ffffff;
}

.rataplam-mobile-drawer .navbar,
.rataplam-mobile-drawer .navbar-collapse,
.rataplam-mobile-drawer .nav-inner,
.rataplam-mobile-drawer .main-menu {
  display: block !important;
  width: 100%;
  float: none;
  padding: 0;
  margin: 0;
}

.rataplam-mobile-drawer .main-menu {
  list-style: none;
}

.rataplam-mobile-drawer .main-menu > li {
  display: block;
  border-bottom: 1px solid #edf0f3;
}

.rataplam-mobile-drawer .main-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #222222;
  padding: 14px 0;
  font-weight: 600;
}

.rataplam-mobile-drawer .main-menu .new {
  margin-left: 8px;
  position: static;
}

.rataplam-mobile-drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rataplam-mobile-drawer-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f9fb;
  color: #222222;
  font-weight: 600;
}

.masonry-grid-fitrows,
.isotope-container {
  display: flex;
  flex-wrap: wrap;
}

.masonry-grid-fitrows > [class*="col-"],
.isotope-container > [class*="col-"] {
  display: flex;
}

.listing-item,
.product-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #edf0f3;
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.06);
  overflow: hidden;
  animation: rataplamCardIn 0.42s ease both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.listing-item:hover,
.product-item:hover {
  transform: translateY(-6px);
  border-color: rgba(9, 175, 223, 0.35);
  box-shadow: 0 18px 38px rgba(18, 24, 32, 0.13);
}

.listing-item .overlay-container,
.product-item-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 260px;
  background: #f6f7f9;
  overflow: hidden;
}

.listing-item .overlay-container img,
.product-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.listing-item:hover .overlay-container img,
.product-item:hover .product-item-img img {
  transform: scale(1.055);
  filter: saturate(1.05);
}

.listing-item .body,
.product-item-title,
.product-item-price {
  padding-left: 18px;
  padding-right: 18px;
}

.listing-item .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 18px;
  padding-bottom: 18px;
}

.listing-item .body h3,
.product-item-title {
  min-height: 52px;
  margin: 0;
}

.listing-item .body h3 a,
.product-item-title a {
  color: #222222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.35;
}

.listing-item .body .small {
  min-height: 62px;
  margin: 10px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #606875;
  line-height: 1.5;
}

.listing-item .elements-list,
.product-item-price {
  margin-top: auto;
}

.product-item-title {
  padding-top: 16px;
  padding-bottom: 8px;
}

.product-item-price {
  min-height: 48px;
  padding-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.product-item-overlay {
  display: flex;
  gap: 8px;
}

.product-item-overlay .btn,
.overlay-to-top .btn-sm-link {
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.product-item-overlay .btn:hover,
.overlay-to-top .btn-sm-link:hover {
  transform: translateY(-2px);
}

@keyframes rataplamCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .rataplam-mobile-menu-toggle {
    display: inline-block;
  }

  .header.shop .middle-inner .logo {
    padding-left: 54px;
  }

  .header.shop .header-inner .menu-area,
  .header.shop .mobile-nav,
  .slicknav_menu {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .listing-item .overlay-container,
  .product-item-img {
    min-height: 230px;
  }

  .listing-item .body h3,
  .product-item-title {
    min-height: auto;
  }

  .listing-item .body .small {
    min-height: auto;
  }
}
