/* ==========================================================================
   MAHABADI — Product category page
   ========================================================================== */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--space-m);
  align-items: start;
  padding-block: var(--space-l) var(--space-2xl);
}

.product-main { display: grid; gap: var(--space-m); min-width: 0; }

/* sidebar is taller than most viewports → scrolling normally reads better */
.product-sidebar { display: grid; gap: var(--space-s); align-content: start; }

/* =============================== PANEL =============================== */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }

/* ============================== TOOLBAR ============================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); flex-wrap: wrap; padding: var(--space-s) var(--space-m); }
.toolbar__count { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--step-0); color: var(--ink-2); }
.toolbar__count strong { color: var(--blue); font-weight: 900; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.toolbar__count svg { width: 19px; height: 19px; color: var(--orange-ink); }
.toolbar__actions { display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; }

.quick-chips { display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap; padding: 0 var(--space-m) var(--space-s); }
.quick-chips__label { display: inline-flex; align-items: center; gap: var(--space-3xs); font-size: var(--step--1); color: var(--ink-3); margin-inline-end: var(--space-3xs); }
.quick-chips__label svg { width: 16px; height: 16px; color: var(--orange-ink); }

/* ============================ PRICE TABLE ============================ */
.price-table { overflow: hidden; scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + var(--space-s)); }

.price-table__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); flex-wrap: wrap; padding: var(--space-s) var(--space-m); }
.price-table__title { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--step-1); font-weight: 700; }
.price-table__title svg { width: 23px; height: 23px; color: var(--orange-ink); }

.price-table__link { display: inline-flex; align-items: center; gap: var(--space-3xs); font-size: var(--step--1); font-weight: 500; color: var(--orange-ink); }
.price-table__link:hover { color: var(--blue); }
.price-table__link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.price-table__link:hover svg { transform: translateX(-4px); }

.table-scroll { overflow-x: auto; }
.price-table table { min-width: 720px; }

/* one unified table skin */
.price-table thead th {
  padding: var(--space-xs) var(--space-s);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--blue);
  text-align: right;
  background: var(--custard);
  border: 0;
  white-space: nowrap;
}
.price-table thead th:first-child { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.price-table thead th:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }

.price-table tbody td { padding: var(--space-s); font-size: var(--step-0); border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background-color var(--dur) var(--ease); }
.price-table tbody tr:hover { background: var(--gold-soft); }

.price-table .col-price { text-align: left; direction: ltr; }
.price-table .price { font-weight: 900; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }

.cell-model { color: var(--ink-2); }
.cell-date { color: var(--ink-3); font-size: var(--step--1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-unit { color: var(--ink-3); font-size: var(--step--1); }

.variance { display: inline-flex; align-items: center; gap: 5px; padding: 3px var(--space-2xs); border-radius: var(--radius-pill); background: var(--sand); color: var(--ink-2); font-size: var(--step--2); font-weight: 500; }
.variance svg { width: 13px; height: 13px; }
.variance--up { background: var(--red-soft); color: var(--danger); }
.variance--down { background: var(--ok-soft); color: var(--ok); }

.price-table__foot { display: flex; align-items: flex-start; gap: var(--space-2xs); padding: var(--space-xs) var(--space-m); background: var(--sand); font-size: var(--step--1); color: var(--ink-2); }
.price-table__foot svg { width: 17px; height: 17px; color: var(--orange-ink); flex: none; margin-top: 5px; }

/* ------------------------ Mobile card tables ------------------------- */
@media (max-width: 680px) {
  .price-table table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table tbody tr { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); margin: var(--space-2xs) var(--space-s); padding: 0 var(--space-s); background: var(--surface); }
  .price-table tbody tr:hover { background: var(--surface); }
  .price-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-xs) 0; border-bottom: 1px dashed var(--line); text-align: left; }
  .price-table tbody td:last-child { border-bottom: 0; }
  .price-table tbody td::before { content: attr(data-label); color: var(--ink-3); font-size: var(--step--1); font-weight: 500; flex: none; }
  .price-table .price { font-size: var(--step-1); }
}

/* ========================= DESCRIPTION BOX ========================== */
.desc-box { padding: var(--space-l); }
.desc-box h2 { font-size: var(--step-2); margin-bottom: var(--space-s); }
.desc-box p { color: var(--ink-2); line-height: 2.05; margin-bottom: var(--space-s); max-width: 92ch; }

.desc-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-m); margin-top: var(--space-s); }
.desc-highlights li { display: flex; align-items: flex-start; gap: var(--space-2xs); font-size: var(--step--1); color: var(--ink-2); }
.desc-highlights svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 5px; }

/* ============================== FAQ ================================= */
.faq { padding: var(--space-m) var(--space-l); }
.faq__title { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--step-2); margin-bottom: var(--space-s); }
.faq__title svg { width: 23px; height: 23px; color: var(--orange-ink); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }

.faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); width: 100%; min-height: 56px; padding: var(--space-s) 0; text-align: right; font-size: var(--step-0); font-weight: 500; color: var(--blue); }
.faq-q svg { width: 30px; height: 30px; padding: 7px; flex: none; color: var(--blue); background: var(--sand); border-radius: var(--radius-pill); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.faq-q:hover svg { background: var(--gold); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); background: var(--gold); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-a__inner { padding: 0 0 var(--space-s); color: var(--ink-2); line-height: 2.05; max-width: 92ch; }
.faq-item.is-open .faq-a { max-height: 460px; }

/* ============================ SIDEBAR =============================== */
.side-card { overflow: hidden; }
.side-card__head { display: flex; align-items: center; gap: var(--space-2xs); padding: var(--space-s) var(--space-m); font-size: var(--step-0); font-weight: 700; color: var(--blue); }
.side-card__head svg { width: 21px; height: 21px; color: var(--orange-ink); }
.side-card__body { padding: 0 var(--space-m) var(--space-m); }

/* Expert */
.expert { text-align: center; }
.expert__photo { position: relative; width: 104px; height: 104px; margin: 0 auto var(--space-xs); }
.expert__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-pill); background: var(--sand); }
.expert__status { position: absolute; bottom: 5px; inset-inline-end: 5px; width: 17px; height: 17px; border-radius: var(--radius-pill); background: var(--ok); border: 3px solid var(--surface); }

.expert__name { font-size: var(--step-1); margin-bottom: 2px; }
.expert__role { font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--space-s); }

.expert__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2xs); }
/* VAT */
.vat-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); }
.vat-row__text strong { display: block; font-size: var(--step-0); font-weight: 700; }
.vat-row__text span { font-size: var(--step--1); color: var(--ink-2); }

.switch { position: relative; display: inline-block; width: 52px; height: 29px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--line-strong); transition: background-color var(--dur) var(--ease); cursor: pointer; }
.switch__slider::before { content: ""; position: absolute; top: 3px; right: 3px; width: 23px; height: 23px; border-radius: var(--radius-pill); background: #fff; transition: transform var(--dur) var(--ease); }
.switch input:checked + .switch__slider { background: var(--blue); }
.switch input:checked + .switch__slider::before { transform: translateX(-23px); background: var(--gold); }

/* Filter */
.filter-group { padding: var(--space-xs) 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xs); width: 100%; min-height: 42px; font-size: var(--step-0); font-weight: 500; color: var(--blue); }
.filter-group__head svg { width: 17px; height: 17px; color: var(--ink-3); transition: transform var(--dur) var(--ease); }
.filter-group.is-open .filter-group__head svg { transform: rotate(180deg); }
.filter-group__body { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.filter-group.is-open .filter-group__body { max-height: 340px; }
.filter-options { padding-top: var(--space-2xs); display: grid; gap: var(--space-2xs); }
.filter-options .checkbox { font-size: var(--step--1); color: var(--ink-2); }
.filter-actions { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2xs); padding: var(--space-s) var(--space-m) var(--space-m); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); }
.calc-field { display: grid; gap: 5px; }
.calc-field label { font-size: var(--step--1); color: var(--ink-2); }
.calc-field .input { min-height: 42px; padding: var(--space-2xs) var(--space-xs); font-size: var(--step--1); text-align: center; direction: ltr; font-variant-numeric: tabular-nums; }

.calc-result { margin-top: var(--space-s); padding: var(--space-s); border-radius: var(--radius); background: var(--blue); color: var(--on-blue-2); text-align: center; }
.calc-result span { display: block; font-size: var(--step--1); margin-bottom: var(--space-3xs); }
.calc-result strong { font-size: var(--step-3); font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc-result small { font-size: var(--step--1); }
.calc-note { margin-top: var(--space-2xs); font-size: var(--step--1); color: var(--ink-3); text-align: center; line-height: 1.9; }

@media print {
  .topbar, .site-header, .product-sidebar, .toolbar__actions, .quick-chips,
  .to-top, .quick-contact, .site-footer, .breadcrumb, .consult-band,
  .post-card__meta, .preloader { display: none !important; }
  body { background: #fff; }
  .product-layout { display: block; padding: 0; }
  .panel { box-shadow: none; }
  .price-table table { min-width: 0; }
}
