/* Product Grid (desktop 4 columns, mobile 2 columns) */

/* Keep backward compatible qto-* classes and new googooweb-* classes */
.qto-pg-wrap, .googooweb-pg-wrap { margin: 0 auto; }

.qto-pg-grid, .googooweb-pg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  .qto-pg-grid, .googooweb-pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.qto-pg-card, .googooweb-pg-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.qto-pg-thumb, .googooweb-pg-thumb {
  display: block;
  position: relative;
  padding-top: 100%;
  background: #f7f7f7;
  overflow: hidden;
}

.qto-pg-thumb img, .googooweb-pg-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qto-pg-body, .googooweb-pg-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.qto-pg-title, .googooweb-pg-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.qto-pg-title a, .googooweb-pg-title a { text-decoration: none; color: inherit; }

.qto-pg-price.googooweb-pg-price span {
    font-size: 18px;
}

.qto-pg-actions, .googooweb-pg-actions { margin-top: auto; }

.qto-pg-actions .button, .googooweb-pg-actions .button {
    width: 100%;
    text-align: center;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

.qto-pg-wrap .woocommerce .price,
.qto-pg-wrap .price,
.googooweb-pg-wrap .woocommerce .price,
.googooweb-pg-wrap .price { margin: 0; }
