.woocommerce ul.products,
.woocommerce-page ul.products,
.vh-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.vh-product-grid {
  --vh-grid-columns: 3;
  --vh-grid-gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--vh-grid-gap);
}

.vh-product-grid .product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  display: flex;
  height: 100%;
}

@media (min-width: 1100px) {
  .vh-product-grid {
    grid-template-columns: repeat(var(--vh-grid-columns, 3), minmax(0, 1fr));
  }
}

body.vh-view-slide .vh-product-grid {
  grid-template-columns: 1fr;
}

.vh-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--vh-space-12, 12px);
  background: var(--vh-color-bg-surface, #ffffff);
  border: 1px solid var(--vh-color-border-subtle, #e4d8c7);
  border-radius: var(--vh-radius-lg, 18px);
  padding: var(--vh-space-16, 16px);
  box-shadow: var(--vh-shadow-soft, 0 12px 22px rgba(0, 0, 0, 0.08));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}

.vh-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
  border-color: #d8cfc0;
}

.vh-product-card__thumb {
  position: relative;
  margin: calc(-1 * var(--vh-space-16, 16px));
  margin-bottom: 0;
  border-radius: var(--vh-radius-lg, 18px);
  overflow: hidden;
  background: var(--vh-color-bg-chip, #f8f2e7);
}

.vh-product-card__thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
}

.vh-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.22s ease;
}

.vh-card__image--hover {
  opacity: 0;
}

.vh-product-card:hover .vh-card__image {
  transform: scale(1.03);
}

.vh-product-card:hover .vh-card__image--hover {
  opacity: 1;
}

.vh-product-card:hover .vh-card__image--primary {
  opacity: 0;
}

.vh-product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.6rem;
  border-radius: var(--vh-radius-md, 12px);
  background: var(--vh-color-accent, #fead52);
  color: var(--vh-color-text-main, #1b1a28);
  font-weight: var(--vh-weight-bold, 700);
  text-transform: uppercase;
  font-size: var(--vh-font-xs, 12px);
  letter-spacing: 0.05em;
}

.vh-badge--sale {
  background: #c0392b;
  color: #fff;
}

.vh-badge--new {
  background: #8c9e6d;
  color: #ffffff;
}

.vh-badge--featured {
  background: #0f0f17;
  color: #ffffff;
}

.vh-product-card__actions-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vh-product-card:hover .vh-product-card__actions-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .vh-product-card__actions-top {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.vh-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--vh-radius-md, 12px);
  border: 1px solid var(--vh-color-border-subtle, #e4d8c7);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.vh-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  border-color: var(--vh-color-accent, #fead52);
  background: #fff;
}

.vh-wishlist-btn.is-active {
  border-color: var(--vh-color-accent, #fead52);
  background: #fff5e6;
}

.vh-wishlist__icon {
  width: 18px;
  height: 18px;
  color: var(--vh-ink);
}

.vh-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: var(--vh-space-12, 12px);
  flex: 1 1 auto;
}

.vh-product-card__category {
  font-size: var(--vh-font-xs, 12px);
  color: var(--vh-color-text-muted, #5b5450);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vh-product-card__title {
  margin: 0;
  font-size: var(--vh-font-md, 16px);
  font-family: var(--vh-font-heading);
  color: var(--vh-color-text-main, #1b1a28);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vh-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.vh-product-card__excerpt {
  margin: 0;
  color: var(--vh-color-text-muted, #5b5450);
  line-height: 1.5;
  font-size: var(--vh-font-sm, 14px);
}

.vh-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--vh-font-sm, 14px);
  color: var(--vh-color-text-muted, #5b5450);
  text-decoration: none;
}

.vh-product-card__rating .star-rating {
  margin: 0;
}

.vh-rating__count {
  color: var(--vh-color-text-muted, #5b5450);
  font-size: var(--vh-font-xs, 12px);
}

.vh-product-card__price {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: var(--vh-weight-bold, 700);
  color: var(--vh-color-text-main, #1b1a28);
  letter-spacing: 0.02em;
}

.vh-product-card__price del {
  color: #8c7f76;
  margin-right: 0.15rem;
}

.vh-product-card__price ins {
  color: var(--vh-color-accent, #fead52);
  text-decoration: none;
}

.vh-product-card__price .woocommerce-Price-amount {
  font-weight: var(--vh-weight-bold, 700);
}

.vh-product-card__footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.vh-product-card__footer .button {
  flex: 1 1 150px;
  text-align: center;
  border-radius: var(--vh-radius-md, 12px);
  padding: 0.75rem 0.9rem;
  background: linear-gradient(120deg, #f2b35c, #1b1a28);
  color: #ffffff;
  border: 1px solid #1b1a28;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.vh-product-card__footer .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

.vh-button.vh-button--ghost,
.vh-product-card__footer .vh-button--ghost {
  flex: 0 1 140px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--vh-radius-md, 12px);
  border: 1px solid var(--vh-color-border-subtle, #e4d8c7);
  background: #ffffff;
  color: var(--vh-color-text-main, #1b1a28);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.vh-product-card__footer .vh-button--ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.vh-product-card--slide {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) 1.05fr;
  gap: var(--vh-space-16, 16px);
  align-items: stretch;
}

.vh-product-card--slide .vh-product-card__thumb {
  margin: 0;
  height: 100%;
}

.vh-product-card--slide .vh-product-card__thumb-link {
  height: 100%;
  aspect-ratio: auto;
  min-height: 220px;
}

.vh-product-card--slide .vh-card__image {
  position: absolute;
  inset: 0;
}

.vh-product-card--slide .vh-product-card__body {
  margin-top: 0;
  gap: 0.4rem;
}

.vh-product-card--slide .vh-product-card__title {
  font-size: var(--vh-font-lg, 18px);
}

.vh-product-card--slide .vh-product-card__footer {
  justify-content: flex-start;
}

.vh-product-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #625c6b;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.vh-product-card__actions .button {
  flex: 1 1 160px;
  text-align: center;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(120deg, #f2b35c, #1b1a28);
  color: #ffffff;
  border: 1px solid #1b1a28;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.vh-product-card__actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}
