/* =========================================================
   JACK GENETICS - PRODUCT CARD ONLY
   File: /assets/css/jg-seed-card.css

   No grid rules here.
   Elementor/WooCommerce controls product columns.
   ========================================================= */

:root {
  --jg-black: #030302;
  --jg-panel: #11100c;
  --jg-panel-2: #17130d;
  --jg-gold: #c89535;
  --jg-gold-light: #f0cf83;
  --jg-gold-dark: #744313;
  --jg-cream: #efe2c8;
  --jg-muted: #b9a984;
  --jg-line: rgba(201, 149, 53, .36);
  --jg-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --jg-body: Arial, Helvetica, sans-serif;
}

/* Card shell */

.seed-card {
  position: relative;
  height: 100%;
  padding: 10px !important;
  border: 1px solid var(--jg-line) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 50% 0, rgba(201,149,53,.10), transparent 34%),
    linear-gradient(180deg, var(--jg-panel-2), #060504) !important;
  color: var(--jg-cream);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.seed-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(201,149,53,.12);
  pointer-events: none;
}

.seed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240,207,131,.56) !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.68);
}

.seed-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */

.seed-card__header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 8px 6px 12px;
}

.seed-card__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--jg-cream);
  font-family: var(--jg-serif);
  font-size: 16px!important;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
  /*text-transform: uppercase;*/
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.seed-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.seed-card__title a:hover {
  color: var(--jg-gold-light) !important;
}

/* Info button */

.info-toggle-btn {
  width: 30px;
  height: 30px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(201,149,53,.46);
  border-radius: 50%;
  background: #070604;
  color: var(--jg-gold-light);
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 30;
  appearance: none;
  -webkit-appearance: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.info-toggle-btn svg {
  display: block !important;
  width: 17px;
  height: 17px;
  fill: currentColor;
  pointer-events: none;
}

.info-toggle-btn:hover,
.info-toggle-btn.is-active {
  background: linear-gradient(180deg, var(--jg-gold-light), var(--jg-gold-dark));
  color: #160d05;
  border-color: rgba(240,207,131,.74);
}

.info-toggle-btn:focus-visible {
  outline: 2px solid var(--jg-gold-light);
  outline-offset: 3px;
}

/* Image area */

.seed-card__visual {
  position: relative;
  flex-grow: 0;
  margin: 0;
  display: block;
  /* border: 1px solid rgba(201,149,53,.25);*/
  background: transparent !important;
  overflow: hidden;
}

.seed-card__image-link {
  display: block;
  width: 100%;
  text-decoration: none !important;
}

.seed-card__image {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent !important;
  overflow: hidden;
}

.seed-card__image img,
.woocommerce ul.products li.product.seed-card a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 220px !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 auto !important;
  transition: transform .24s ease;
}

.seed-card:hover .seed-card__image img {
  transform: scale(1.018);
}

/* Badges */

.seed-card__badges {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-sale,
.badge-bogo {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 0;
  color: #160d05;
  background: linear-gradient(180deg, var(--jg-gold-light), #a36520);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  font-family: var(--jg-serif);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-sale {
  background: linear-gradient(180deg, #ffe0a0, var(--jg-gold));
}

.badge-bogo {
  background: linear-gradient(180deg, var(--jg-gold-light), #8b531a);
}

/* Stats overlay */

.seed-card__stats-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3,3,2,.94);
  color: var(--jg-cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: opacity .22s ease, visibility .22s ease;
}

/* Match the simple JS pattern */
.seed-card__stats-overlay[hidden] {
  display: flex;
}

.seed-card__stats-overlay .stats-list,
.stats-list {
  width: 100%;

}

.seed-card__stats-overlay .stats-list,
.seed-card__stats-overlay .stat-item,
.seed-card__stats-overlay .stat-label,
.seed-card__stats-overlay .stat-value {
  pointer-events: none;
}

/* Desktop hover */
@media (min-width: 1025px) {
  .seed-card:hover .seed-card__stats-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* Mobile/tap open */
.seed-card.show-info .seed-card__stats-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,149,53,.22);
  color: var(--jg-cream);
  font-family: var(--jg-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--jg-muted);
  white-space: nowrap;
}

.stat-value {
  min-width: 0;
  padding-left: 8px;
  color: var(--jg-gold-light);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-item--category-title {
  display: flex;
  justify-content: center;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(201,149,53,.22);
  text-align: center;
}

.stat-category-title {
  display: block;
  width: 100%;
  color: var(--jg-cream);
  font-family: var(--jg-serif);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Keep Genetics stacked and readable */
.stat-item--genetics {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 0;
  text-align: center;
}

.stat-item--genetics .stat-label {
  white-space: normal;
  text-align: center;
  color: var(--jg-gold);
  text-transform: uppercase;
}

.stat-item--genetics .stat-value {
  width: 100%;
  padding-left: 0;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}

/* Footer */

.seed-card__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 13px 6px 4px;
}

.seed-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  width: 100%;
}

.seed-card__price-group {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.seed-card__rating {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Price */

.price-amount,
.price-amount .amount,
.seed-card .price,
.seed-card .price .amount {
  color: var(--jg-gold-light) !important;
  font-family: var(--jg-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.seed-card del {
  color: rgba(185,169,132,.68) !important;
  opacity: 1 !important;
}

.seed-card ins {
  text-decoration: none !important;
}

/* Rating */

.seed-card__rating .star-rating,
.seed-card .star-rating {
  float: none !important;
  display: block !important;
  width: 5.4em !important;
  height: 1em;
  margin: 0 !important;
  color: var(--jg-gold-light) !important;
  font-family: star !important;
  font-size: .78em !important;
  line-height: 1;
  overflow: hidden;
  position: relative;
}

.seed-card .star-rating::before {
  color: rgba(240,207,131,.42) !important;
}

.seed-card .star-rating span::before {
  color: var(--jg-gold-light) !important;
}

/* Availability */

.seed-card__availability {
  color: var(--jg-muted);
  font-family: var(--jg-body);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
}

.price-meta {
  display: block;
  color: var(--jg-muted);
  text-align: center;
}

.price-meta span {
  display: block;
  color: var(--jg-gold);
  font-weight: 900;
}

/* Button */

.seed-card__action {
  margin-top: 2px;
}

.seed-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(201,149,53,.55);
  border-radius: 0;
  background: rgba(0,0,0,.42);
  color: var(--jg-cream) !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  font-family: var(--jg-serif);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.seed-card__button:hover {
  background: linear-gradient(180deg, var(--jg-gold-light), var(--jg-gold-dark));
  color: #160d05 !important;
  border-color: rgba(240,207,131,.76);
}

.seed-card__button:focus-visible {
  outline: 2px solid var(--jg-gold-light);
  outline-offset: 3px;
}

/* Mobile card internals only */

@media (max-width: 640px) {
  .seed-card {
    padding: 12px !important;
  }

  .seed-card__header {
    padding: 10px 6px 12px;
  }

  .seed-card__title {
    font-size: 16px !important;
    line-height: 1.15;
  }

  .stat-item {
    font-size: 10px;
    gap: 5px;	  
    padding: 5px 0;
  }

  .seed-card__footer {
    padding-top: 14px;
  }

  .seed-card__price-row {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .seed-card__price-group,
  .seed-card__rating {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .price-amount,
  .price-amount .amount,
  .seed-card .price,
  .seed-card .price .amount {
    font-size: 18px;
  }

  .seed-card__button {
    min-height: 44px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .seed-card__title {
    font-size: 14px !important;
  }

  .seed-card__button {
    font-size: 10px;
  }
  .seed-card__stats-overlay {
    padding: 0 5px;
  }	
}

/* Touch devices */

@media (hover: none), (pointer: coarse) {
  .seed-card:hover {
    transform: none;
  }

  .seed-card:hover .seed-card__image img {
    transform: none;
  }

  .seed-card:hover .seed-card__stats-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .seed-card.show-info .seed-card__stats-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}