.product-wrapper-card {
  max-width: 1200px;
  margin: 20px auto 40px auto;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background-color: #f7f8fa;
  background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 32px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .04), 0 10px 26px rgba(0, 0, 0, .06);
  transition: box-shadow 0.3s ease;
}

.product-wrapper-card::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(246, 145, 29, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product-wrapper-card::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(212, 119, 19, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 36px;
  padding: 2px;
}

.product-card {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(160deg, rgba(255, 255, 255, .88), rgba(255, 247, 240, .68)),
    rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 22px;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, .05),
    0 10px 26px rgba(0, 0, 0, .09),
    inset 0 1px 1px rgba(255, 255, 255, .8);

  padding: 14px;
  width: 200px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 1px;

  transition: box-shadow 0.25s ease;
}

.product-card:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .05),
    0 12px 28px rgba(0, 0, 0, .08),
    inset 0 1px 1px rgba(255, 255, 255, .8);
}

.product-card > a {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 2px;
}

.product-card h3,
.product-name {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 4px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3a3a3a;
  min-height: 44px;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.product-weight {
  display: inline-block;
  align-self: center;
  font-size: 12.5px;
  color: #8a8a8a;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.price-cart-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.price-section {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.price-section .final-price {
  font-size: 19px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}

.price-section.has-sale .old-price {
  font-size: 13px;
  color: #a4a4a8;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.1;
  opacity: 0.8;
}

.price-section.has-sale .final-price {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
}

.sale-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;

  background-image: linear-gradient(to right, #f6911d, #d47713);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(246, 145, 29, .20);
}

.product-card .action-wrapper {
  width: 100%;
}

.product-card .action-wrapper button.add-to-cart {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  border: none;
  border-radius: 999px;
  background-image: linear-gradient(to right, #f6911d, #d47713);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(246, 145, 29, .18);
  transition: filter 0.2s ease;
}

.product-card .action-wrapper button.add-to-cart:hover {
  filter: brightness(1.04);
}

.product-card .action-wrapper button.add-to-cart:active {
  filter: brightness(0.97);
}

.cart-controls {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.cart-controls button {
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  transition: background-color 0.2s ease;
}

.cart-controls button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.cart-controls .quantity {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.product-card .action-wrapper .cart-controls > button.increase {
  color: #19bd04;
  -webkit-text-fill-color: #19bd04;
  font-weight: 700;
}

.product-card .action-wrapper .cart-controls > button.decrease {
  color: #c21212;
  -webkit-text-fill-color: #c21212;
  font-weight: 700;
}

.product-card .action-wrapper .cart-controls > button.increase:hover,
.product-card .action-wrapper .cart-controls > button.increase:focus {
  filter: brightness(0.98);
  outline: none;
}

.product-card .action-wrapper .cart-controls > button.decrease:hover,
.product-card .action-wrapper .cart-controls > button.decrease:focus {
  filter: brightness(0.98);
  outline: none;
}

@media (max-width: 480px) {
  .product-wrapper-card {
    margin: 10px 8px;
    padding: 12px 6px;
    border-radius: 24px;
    background-size: 20px 20px;
  }

  .product-wrapper-card::before {
    width: 200px;
    height: 200px;
  }

  .product-wrapper-card::after {
    width: 250px;
    height: 250px;
  }

  .product-grid {
    gap: 16px 12px;
  }

  .product-card {
    width: 40%;
    padding: 8px;
    min-height: 280px;
    border-radius: 18px;
  }

  .product-card > a {
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .product-card > a::after {
    border-radius: 12px;
  }

  .product-card img {
    height: 140px;
  }

  .product-card h3,
  .product-name {
    font-size: 13.5px;
    min-height: 36px;
    margin: 2px 0 4px;
  }

  .product-weight {
    font-size: 11px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .price-section .final-price,
  .product-card .price,
  .final-price {
    font-size: 15px;
  }

  .price-section.has-sale .final-price {
    font-size: 17px;
  }

  .price-section.has-sale .old-price {
    font-size: 11px;
  }

  .sale-badge {
    font-size: 9px;
    padding: 2px 7px;
  }

  .product-card .action-wrapper button.add-to-cart {
    height: 34px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  .cart-controls {
    height: 34px;
    padding: 0 4px;
  }

  .cart-controls button { width: 26px; height: 26px; font-size: 13px !important; }
  .cart-controls .quantity { font-size: 12.5px; }
}