/* Prices page — tables and sections */

/* ─── Price Tables ─── */
.prices-table-wrap {
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
}

.prices-table thead {
  background: linear-gradient(135deg, #2c2620 0%, #3d3428 100%);
  color: #faf8f4;
}

.prices-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.prices-table th:not(:first-child) {
  text-align: center;
}

.prices-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
}

.prices-table td:not(:first-child) {
  text-align: center;
  font-weight: 500;
  color: var(--color-price);
  white-space: nowrap;
}

.prices-table tbody tr {
  transition: background var(--transition-fast);
}

.prices-table tbody tr:hover {
  background: rgba(196, 180, 154, 0.08);
}

.prices-table .prices-table__unit {
  color: var(--color-secondary);
  font-weight: 400;
  font-size: var(--text-xs);
}

/* ─── Section styling ─── */
.prices-section {
  margin-bottom: var(--space-10);
}

.prices-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: #1c1a15;
  margin-bottom: var(--space-4);
}

.prices-section__title em {
  font-style: italic;
  color: var(--color-primary);
}

/* ─── Promo cards ─── */
.prices-promos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.prices-promo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--space-5) var(--space-5);
}

.prices-promo-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: #1c1a15;
}

.prices-promo-card__discount {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-price);
  margin-bottom: var(--space-2);
}

.prices-promo-card__text {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.5;
}

/* ─── Minimum order info box ─── */
.prices-info-box {
  background: linear-gradient(135deg, rgba(196, 180, 154, 0.12), rgba(196, 180, 154, 0.04));
  border: 1px solid rgba(196, 180, 154, 0.25);
  border-radius: 16px;
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.prices-info-box__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: #1c1a15;
}

.prices-info-box__text {
  font-size: var(--text-base);
  color: #78736a;
  line-height: 1.6;
}

.prices-info-box__text strong {
  color: var(--color-price);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .prices-promos {
    grid-template-columns: 1fr;
  }

  .prices-section__title {
    font-size: 20px;
  }

  /* Card layout for wide tables on mobile */
  .prices-table--cards thead {
    display: none;
  }

  .prices-table--cards,
  .prices-table--cards tbody,
  .prices-table--cards tr,
  .prices-table--cards td {
    display: block;
  }

  .prices-table--cards tr {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
  }

  .prices-table--cards tr:hover {
    background: var(--glass-bg);
  }

  .prices-table--cards td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: right;
    white-space: normal;
  }

  .prices-table--cards td:first-child {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-gray-900);
    display: block;
    text-align: left;
    padding-bottom: var(--space-2);
    margin-bottom: 2px;
    border-bottom: 1px solid var(--glass-border);
  }

  .prices-table--cards td:last-child {
    border-bottom: none;
  }

  .prices-table--cards td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 400;
    color: var(--color-gray-500);
    font-size: 13px;
    text-align: left;
    margin-right: auto;
    padding-right: var(--space-3);
    flex-shrink: 0;
  }


  /* Hide empty dash cells on mobile cards */
  .prices-table--cards td.prices-td-empty {
    display: none;
  }

  /* Non-card tables: just shrink padding */
  .prices-table:not(.prices-table--cards) th,
  .prices-table:not(.prices-table--cards) td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
