/* ==========================================================================
   Product Grid & Loop Layout (Custom Vanilla CSS)
   ========================================================================== */

.product-grid {
  display: grid;
  gap: 1.25rem;
  /* Mobile default: Exactly 2 columns */
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

/* Tablet view: 4 columns */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Laptop & Desktop view: Maximum 6 columns */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==========================================================================
   Product Card Component
   ========================================================================== */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   Link & Keyboard Focus (100% Accessibility Compliance)
   ========================================================================== */

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  outline: none;
}

.product-card__link:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==========================================================================
   Figure & Image (Strict 200x300px Aspect Ratio)
   ========================================================================== */

.product-card__figure {
  margin: 0;
  position: relative;
  background-color: #f9f9f9;
}

.product-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3; /* Locks the 200x300 proportion without distortion */
  object-fit: cover;
  transition: opacity 0.3s ease;
  max-width: 220px;
  min-width: 200px;
}

.product-card__link:hover .product-card__image {
  opacity: 0.82;
}

.product-card__image--hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card__link:hover .product-card__image--hover {
  opacity: 1;
}

/* ==========================================================================
   Sale Badge
   ========================================================================== */

.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #141414;
  color: #d4af37;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  z-index: 2;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Product Title & Typography
   ========================================================================== */

.product-card__title {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 0.88rem;
  text-transform: uppercase !important;
  font-weight: 600;
  line-height: 1.35;
  margin: 10px 8px 6px 8px;
  color: #1a1a1a;
  /* Truncate long titles neatly to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 1px !important;
      height: 5.6em;
	}

.product-card__link:hover .product-card__title {
  color: #c5a059;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.product-card__price {
  font-size: 0.95rem;
  color: #111111;
  font-weight: 600;
  margin: 0 8px 12px 8px;
  margin-top: auto; /* Pushes price alignment to the bottom of the card */
}

.product-card__price del {
  color: #767676;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 4px;
}

.product-card__price ins {
  text-decoration: none;
  color: #c9151b;
}

/* ==========================================================================
   Accessibility Utilities (Screen Readers)
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}



element.style {
}
span.onsale {
    background-color: #5E4E12 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 10px !important;
    letter-spacing: 1px;
    font-weight: 600;
    min-height: unset !important;
    line-height: 1 !important;
    padding: 5px 12px !important;
    border-radius: 0 !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
}
.wc-block-grid__product-onsale, .onsale {
    padding: 0.102em 0.4em;
    font-size: .7em;
}
.wc-block-grid__product-onsale, .onsale {
    border: 1px solid;
    border-color: #43454b;
    color: #43454b;
    padding: .202em .6180469716em;
    font-size: .875em;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1em;
    border-radius: 3px;
    position: relative;
}