/* MALTEZOS SHOP — final product-card polish
   Visual-only layer. Product data, stock, links and JS remain unchanged. */

#products .products {
  gap: 18px !important;
  align-items: stretch !important;
}

#products .product {
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(10, 11, 13, .10) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(10, 11, 13, .07) !important;
  transform: translateZ(0);
}

#products .product-media {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(239, 35, 60, .055), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7f6f3 100%) !important;
  border-bottom: 1px solid rgba(10, 11, 13, .08) !important;
}

#products .product-rotating-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1) !important;
}

@media (hover: hover) {
  #products .product:hover .product-rotating-image {
    transform: scale(1.045) !important;
  }
}

#products .product-body {
  min-width: 0 !important;
  height: 100% !important;
  padding: 17px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}

#products .product-title {
  margin: 0 !important;
  color: #0b0c0f !important;
  font-size: clamp(.96rem, 1.25vw, 1.08rem) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

#products .product-meta {
  margin: 0 !important;
  color: #777a80 !important;
  font-size: .82rem !important;
  line-height: 1.48 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: 2.42em !important;
}

#products .product-stock {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 3px 0 0 !important;
  padding: 8px 10px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
  border-radius: 14px !important;
  white-space: normal !important;
  overflow: hidden !important;
}

#products .product-stock .dot {
  width: 7px !important;
  height: 7px !important;
}

#products .product-stock .label {
  min-width: 0 !important;
  font-size: .61rem !important;
  line-height: 1.1 !important;
  letter-spacing: .075em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#products .product-stock .value {
  margin-left: auto !important;
  font-size: .76rem !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#products .price-row {
  width: 100% !important;
  min-width: 0 !important;
  margin-top: auto !important;
  padding-top: 7px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
}

#products .price {
  min-width: 0 !important;
  color: #090a0c !important;
  font-size: 1.24rem !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  white-space: nowrap !important;
}

#products .buy-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  background: #ef233c !important;
  color: #fff !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  box-shadow: 0 10px 22px rgba(239, 35, 60, .18) !important;
}

@media (max-width: 980px) {
  #products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #products .products {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  #products .product {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px !important;
  }

  #products .product-media {
    aspect-ratio: 16 / 10 !important;
    padding: 16px 22px !important;
  }

  #products .product-body {
    padding: 16px !important;
    gap: 9px !important;
  }

  #products .product-title {
    font-size: 1.04rem !important;
    line-height: 1.18 !important;
  }

  #products .product-meta {
    font-size: .82rem !important;
    min-height: 0 !important;
  }

  #products .product-stock {
    border-radius: 13px !important;
  }

  #products .price-row {
    grid-template-columns: auto minmax(145px, 1fr) !important;
    gap: 12px !important;
  }

  #products .price {
    font-size: 1.34rem !important;
  }

  #products .buy-btn {
    min-height: 44px !important;
    font-size: .76rem !important;
  }
}

@media (max-width: 370px) {
  #products .price-row {
    grid-template-columns: 1fr !important;
  }

  #products .price {
    text-align: center !important;
  }
}
