/* 1. Set tab title font size only (no color or alignment changes) */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 18px;
    line-height: 1.4;
}

/* 2. Add top margin to tab content only */
.woocommerce div.product .woocommerce-Tabs-panel {
    margin-top: 15px;
}

/* 3. Clean, horizontal-line-only table styling */
/* Prevent Specifications table from overflowing its tab content */
.woocommerce table.shop_attributes {
    border-collapse: collapse;
    width: auto; /* Let it size naturally */
    max-width: 100%; /* Prevent overflow on smaller screens */
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border: none;
    border-bottom: 1px solid #ddd;
}

/* Optional: Make heading text a bit larger */
.woocommerce .product-spec-heading {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}


/* Main spec grid container */
.spec-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding: 0;
}

.spec-item {
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 0;
    padding-left: 5px;
    border-bottom: 1px solid var(--theme-form-field-border-initial-color);
}

.spec-label {
    font-weight: 600;
    min-width: 40%;
    text-align: left;
    margin-right: 8px;
}

.spec-value {
    text-align: left;
    flex-grow: 1;
}

.spec-row.single .spec-item {
    flex: 0 0 48%;
    max-width: 48%;
}

/* ✅ Desktop-only alternating row background */
@media (min-width: 768px) {
  .spec-row:nth-child(even) .spec-item {
    background-color: rgba(0, 0, 0, 0.03);
  }
}

/* ✅ Mobile layout and alternating per item */
@media (max-width: 767px) {
  .spec-grid {
    display: flex;
    flex-direction: column;
  }

  .spec-row {
    display: contents;
  }

  .spec-item {
    flex: unset;
    max-width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--theme-form-field-border-initial-color);
  }

  .spec-row.single .spec-item {
    flex: unset;
    max-width: 100%;
  }

  .spec-item:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
  }

  .spec-item:nth-child(odd) {
    background-color: #fff;
  }
}
