/* make rows spaced like cards */
.product-variations-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px; /* vertical gap */
}

/* each row is its own fixed-layout table row "card" */
.product-variation-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  margin: 5px 0px;
  cursor: pointer;
}

/* cells share the card's border, no internal borders */
.product-variation-row td {
  border: none;
  padding: 12px 16px;
  vertical-align: middle;
  text-align: center;
}

/* left column (image + title + tag + sold-out) */
/* 1) Remove padding from the col-main cell */
.product-variation-row .col-main {
  width: 60%;
  display: table-cell;
  text-align: left;
  border-right: 1px solid #eee;
  padding: 0; /* removed so image can fill */
}

/* 2) Re-apply padding inside .info */
.product-variation-row .col-main .info {
  padding: 12px 16px;
}

.product-variation-row .col-main .product-excerpt p {
	font-size: 12px;
}

.product-variation-row:hover>td,
.product-variation-row:hover>th {
  background-color: transparent;
}

.product-variation-row .col-main img {
  float: left;
  width: 120px;      /* bump from 80px up to 120px */
  height: auto;
  margin-right: 16px;
}

.product-variation-row:nth-child(odd) > td,
.product-variation-row:nth-child(odd) > th {
  background-color: transparent;
}

.product-variation-row .info .coa-button {
  margin-top: 8px;
}

.product-variation-row .info .coa-button a {
  color: #fff;
  background: #c53a51;
  padding: .5em 1.5em;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.4;
  text-align: center;
}

.product-variation-row .info .coa-button a:hover {
  background-color: #005f8d;
}

/* Show full text by default, hide short text */
.coa-short {
  display: none;
}

/* header label inside each cell */
.cell-label {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* value inside each cell */
.cell-value {
  font-weight: 600;
  color: #222;
  margin-top: 4px;
  font-size: 1.1em;
  display: block;
}

/* THCA% and size columns */
.product-variation-row .col-thca,
.product-variation-row .col-size-1-4-lb,
.product-variation-row .col-size-1-lb {
  display: table-cell;
}

.info a {
  font-size: 20px;
  font-weight: 700;
}

/* by default (desktop/tablet): hide the mobile-td and show the desktop CoA button */
.col-coa-mobile {
  display: none;
}
.coa-button-desktop {
  display: block;
}

/* restore desktop COA button styling */
.coa-button-desktop {
  margin-top: 8px;
}

.coa-button-desktop a {
  display: inline-block;
  background: #c53a51;
  color: #fff;
  padding: 0.5em 1.5em;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
}

.coa-button-desktop a:hover {
  background-color: #005f8d;
}

@media (max-width: 768px) {

  /* 1) Make the main info cell full-width */
  .product-variation-row .col-main {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border-right: none;
  }

  /* 2) Hide the desktop-only CoA under the tag */
  .coa-button-desktop {
    display: none !important;
  }

  /* 3a) Rows WITH CoA → 4 columns @ 25% */
  .product-variation-row.has-coa .price-cell-td {
    display: inline-block;
    width: 25%;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    padding: 0 4px;
  }

  /* 3b) Rows WITHOUT CoA → 3 columns @ 33.33% */
  .product-variation-row.no-coa .price-cell-td {
    display: inline-block;
    width: 33.3333%;
    box-sizing: border-box;
    text-align: center;
    vertical-align: top;
    padding: 0 4px;
  }

  /* 4) Style the mobile-only CoA link */
  .coa-button-mobile {
    display: inline-block;
    background: #c53a51;
    color: #fff;
    padding: .5em 1.5em;
    border-radius: 5px;
    font-weight: 700;
    font-size: .9em;
    text-decoration: none;
    margin-top: 0;
  }
  .coa-button-mobile:hover {
    background-color: #005f8d;
  }

  /* Stack each "card" */
  .product-variations-table .product-variation-row {
    display: block;
  }

  /* Remove spacing from CoA column label */
  .product-variation-row .col-coa-mobile .cell-label {
    margin-bottom: 0;
    display: none;
  }

  /* Mobile image and info styling */
  .product-variation-row .col-main img {
    float: left;
    display: block;
    margin-right: 12px;
    vertical-align: middle;
    width: 80px;
    height: auto;
  }

  .product-variation-row .col-main .info {
    display: block;
    vertical-align: middle;
    text-align: left;
    overflow: hidden;
  }

  .product-variation-row .col-main .info > a {
    font-size: 1.1rem;
    line-height: 1.2;
    display: block;
  }

  .product-variation-row .col-main .product-tag {
    float: none !important;
    clear: none;
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: #666;
    text-align: left;
  }

  .product-variation-row .col-main .product-excerpt {
    display: none;
  }
}
