/* ===================================================
   GoodMani PDP Custom Sections  –  devLNX Studio
   =================================================== */
:root {
  --gm-rose:         #B5434A;
  --gm-gold:         #8B6914;
  --gm-gold-bg:      #FDF8ED;
  --gm-gold-border:  #E8D9A0;
  --gm-ink:          #1A1714;
  --gm-ink2:         #3D3730;
  --gm-ink3:         #6B6158;
  --gm-ink4:         #9E958A;
  --gm-surface:      #FAFAF8;
  --gm-border:       #E8E2D9;
  --gm-border2:      #D4CCBF;
  --gm-white:        #FFFFFF;
  --gm-radius:       10px;
}

/* ── Summary specs line (under title, above rating) ── */
.gm-series-line {
  font-size: 12px;
  color: var(--gm-ink4);
  margin: 0 0 8px;
  line-height: 1.5;
}

.gm-series-line strong {
  color: var(--gm-ink2);
  font-weight: 500;
}

.gm-series-sep {
  color: var(--gm-border2);
  margin: 0 2px;
}

/* ── Shipping bar ─────────────────────────────────── */
.gm-shipping-bar {
  display: flex;
  background: var(--gm-white);
  border: 0.5px solid var(--gm-border);
  border-radius: var(--gm-radius);
  overflow: hidden;
  margin: 1.25rem 0 0;
}

.gm-ship-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: .875rem 1.25rem;
}

.gm-ship-item .fa {
  font-size: 20px;
  color: var(--gm-ink3);
  flex-shrink: 0;
}

.gm-ship-item p:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-ink2);
  margin: 0;
}

.gm-ship-item p:last-child {
  font-size: 11px;
  color: var(--gm-ink4);
  margin: 1px 0 0;
}

.gm-ship-divider {
  width: 0.5px;
  background: var(--gm-border);
  flex-shrink: 0;
}

/* ── Section wrapper ──────────────────────────────── */
.gm-section {
  background: var(--gm-white);
  border: 0.5px solid var(--gm-border);
  border-radius: var(--gm-radius);
  padding: 1.375rem 1.75rem;
  margin-top: .875rem;
}

.gm-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--gm-ink);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.gm-section-title .fa {
  font-size: 17px;
  color: var(--gm-ink3);
  flex-shrink: 0;
}

/* ── Divider / sub-label ──────────────────────────── */
.gm-divider {
  height: 0.5px;
  background: var(--gm-border);
  margin: 1rem 0;
}

.gm-subtable-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gm-ink4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 .625rem;
}

/* ── Benefits grid ────────────────────────────────── */
.gm-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gm-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: .75rem .875rem;
  background: var(--gm-surface);
  border: 0.5px solid var(--gm-border);
  border-radius: 8px;
}

.gm-benefit-icon {
  width: 32px;
  height: 32px;
  background: var(--gm-gold-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm-benefit-icon .fa {
  font-size: 16px;
  color: var(--gm-gold);
}

.gm-benefit-text p:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-ink2);
  line-height: 1.3;
  margin: 0;
}

.gm-benefit-text p:last-child {
  font-size: 11.5px;
  color: var(--gm-ink4);
  line-height: 1.45;
  margin: 2px 0 0;
}

/* ── Spec table ───────────────────────────────────── */
.gm-spec-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  border: none;
}

.gm-spec-table tr {
  border-bottom: 0.5px solid var(--gm-border);
}

.gm-spec-table tr:last-child {
  border-bottom: none;
}

.gm-spec-table td {
  padding: 8px 0;
  vertical-align: top;
  border: none;
  border-bottom: 0.5px solid var(--gm-border);
}

.gm-spec-table tr:last-child td {
  border-bottom: none;
}

.gm-spec-table td:first-child {
  color: var(--gm-ink4);
  width: 50%;
}

.gm-spec-table td:last-child {
  color: var(--gm-ink2);
  font-weight: 500;
  text-align: right;
}

/* ── Gradation table ──────────────────────────────── */
.gm-grad-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  border: none;
}

.gm-grad-table th {
  font-size: 10px;
  color: var(--gm-ink4);
  font-weight: 500;
  text-align: left;
  padding: 5px 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-bottom: 0.5px solid var(--gm-border);
  background: var(--gm-surface);
}

.gm-grad-table td {
  padding: 7px 7px;
  border: none;
  border-bottom: 0.5px solid var(--gm-border);
  color: var(--gm-ink2);
}

.gm-grad-table tr:last-child td {
  border-bottom: none;
}

.gm-grad-table tr.gm-grad-current td {
  background: var(--gm-gold-bg);
  font-weight: 500;
}

.gm-grad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,.1);
}

.gm-grad-here {
  color: var(--gm-gold);
  font-size: 11px;
}

/* ── Use cases ────────────────────────────────────── */
.gm-use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gm-use-card {
  padding: .875rem .75rem;
  background: var(--gm-surface);
  border: 0.5px solid var(--gm-border);
  border-radius: 9px;
  text-align: center;
}

.gm-use-card .fa {
  font-size: 22px;
  color: var(--gm-ink3);
  display: block;
  margin-bottom: 6px;
}

.gm-use-card p:first-of-type {
  font-size: 12px;
  font-weight: 500;
  color: var(--gm-ink2);
  line-height: 1.3;
  margin: 0;
}

.gm-use-card p:last-of-type {
  font-size: 11px;
  color: var(--gm-ink4);
  margin: 3px 0 0;
  line-height: 1.3;
}

/* ── For whom ─────────────────────────────────────── */
.gm-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gm-level-card {
  padding: .875rem;
  border: 0.5px solid var(--gm-border);
  border-radius: 9px;
  background: var(--gm-surface);
}

.gm-level-card.gm-level-highlight {
  background: var(--gm-gold-bg);
  border-color: var(--gm-gold-border);
}

.gm-level-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gm-ink4);
  margin-bottom: 5px;
}

.gm-level-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-ink2);
  margin-bottom: 4px;
}

.gm-level-desc {
  font-size: 11px;
  color: var(--gm-ink4);
  line-height: 1.45;
}

/* ── For whom: intro / footer ─────────────────────── */
.gm-for-whom-intro {
  font-size: .9rem;
  color: var(--gm-ink3);
  margin: 0 0 14px;
}

.gm-for-whom-footer {
  font-size: .875rem;
  color: var(--gm-ink4);
  margin: 14px 0 0;
  font-style: italic;
}

/* ── Care steps ───────────────────────────────────── */
.gm-care-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-care-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gm-care-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gm-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.gm-care-content p:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--gm-ink2);
  margin: 0;
}

.gm-care-content p:last-child {
  font-size: 11.5px;
  color: var(--gm-ink4);
  margin: 2px 0 0;
  line-height: 1.45;
}

/* ── Sticky footer ────────────────────────────────── */
.gm-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--gm-white);
  border-top: 0.5px solid var(--gm-border);
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(26,23,20,.09);
}

.gm-sticky-info {
  flex: 1;
  min-width: 0;
}

.gm-sticky-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-sticky-stock {
  font-size: 11px;
  color: var(--gm-ink4);
  margin-top: 2px;
}

.gm-sticky-price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gm-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.gm-sticky-cta.button.alt,
.gm-sticky-cta.button.alt:link,
.gm-sticky-cta.button.alt:visited {
  height: 42px;
  padding: 0 1.375rem;
  background: var(--gm-ink) !important;
  color: #fff !important;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  flex-shrink: 0;
  text-decoration: none;
}

.gm-sticky-cta.button.alt:hover {
  background: var(--gm-ink2) !important;
  color: #fff !important;
}

/* ── Price block ──────────────────────────────────── */
.gm-price-block {
  background: var(--gm-gold-bg);
  border: 0.5px solid var(--gm-gold-border);
  border-radius: 9px;
  padding: .875rem 1.125rem;
}

.gm-price-main {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gm-ink);
  line-height: 1;
}

/* Neutralize WC price wrappers inside our block */
.gm-price-main .price,
.gm-price-main .woocommerce-Price-amount,
.gm-price-main bdi {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.gm-price-main ins { text-decoration: none; }
.gm-price-main del { font-size: 18px; opacity: .55; margin-right: 6px; }

.gm-price-sub {
  font-size: 11px;
  color: var(--gm-ink4);
  margin-top: 4px;
}

.gm-price-note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gm-gold);
  margin-top: 6px;
}

.gm-price-note .fa { font-size: 13px; }

/* ── Trust row ────────────────────────────────────── */
.gm-trust-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.gm-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gm-ink4);
}

.gm-trust-item .fa {
  font-size: 14px;
  color: var(--gm-ink3);
}

/* ── Reviews section ──────────────────────────────── */
.gm-reviews-empty {
  text-align: center;
  padding: 1.75rem;
  border: 0.5px dashed var(--gm-border2);
  border-radius: 9px;
  margin-bottom: 1.25rem;
}

.gm-reviews-empty .fa {
  font-size: 30px;
  color: var(--gm-border2);
  display: block;
  margin-bottom: .625rem;
}

.gm-reviews-empty p {
  font-size: 13px;
  color: var(--gm-ink4);
  margin: 0 0 .875rem;
}

.gm-review-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gm-ink);
  border: 0.5px solid var(--gm-border2);
  padding: 7px 18px;
  border-radius: 7px;
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: background .15s;
}

.gm-review-cta:hover { background: var(--gm-surface); }

/* Hide WC's own reviews heading – we use .gm-section-title */
.gm-reviews-section .woocommerce-Reviews-title { display: none; }

/* ── Product description ──────────────────────────── */
.gm-description-content {
  font-size: 13px;
  color: var(--gm-ink2);
  line-height: 1.7;
}

.gm-description-content p  { margin: 0 0 .75rem; }
.gm-description-content ul,
.gm-description-content ol  { padding-left: 1.25rem; margin: 0 0 .75rem; }
.gm-description-content li  { margin-bottom: .25rem; }
.gm-description-content h2,
.gm-description-content h3  { font-family: 'Playfair Display', serif; font-weight: 500; margin: 1rem 0 .5rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 767px) {
  .gm-benefit-grid  { grid-template-columns: 1fr; }
  .gm-use-grid      { grid-template-columns: 1fr 1fr; }
  .gm-level-cards   { grid-template-columns: 1fr; }
  .gm-shipping-bar  { flex-direction: column; }
  .gm-ship-divider  { width: auto; height: 0.5px; }
  .gm-section       { padding: 1rem; }
  .gm-sticky-footer { padding: .75rem 1rem; gap: .75rem; }
  .gm-sticky-price  { font-size: 16px; }
}

@media (max-width: 480px) {
  .gm-use-grid      { grid-template-columns: 1fr; }
  .gm-sticky-footer { flex-wrap: wrap; }
  .gm-sticky-info   { width: 100%; }
}
