/*!
 * BarghTheme — shop.css
 * -----------------------------------------------------------------------------
 * style.css ships the design system for the home and product pages. This file
 * extends the exact same tokens to every other screen of the shop (catalog,
 * cart, checkout, auth, user panel, blog, static pages) and neutralises the
 * parts of Bootstrap 4 we still load for its grid, utilities and modal.
 */

/* ============================================================ 1. bootstrap bridge */

body {
  font-family: Dana, Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
}

/* Only normalise the family — forcing a colour here would black out headings
   on the dark surfaces (footer ribbon, promo banners, hero). */
h1, h2, h3, h4, h5, h6 { font-family: inherit; }

a { color: inherit; }
a:hover { color: var(--red); text-decoration: none; }

.container-xl > .row { margin-inline: 0; }

/* Bootstrap paints its own look on these; the theme owns them instead. */
.btn, .form-control, .card, .badge, .alert, .dropdown-menu, .modal-content, .close {
  font-family: inherit;
}

.page-pad { padding-top: 18px; }
.page-shell { padding-bottom: 56px; }

/* ============================================================ 2. shared primitives */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.panel--flush { padding: 0; overflow: hidden; }
.panel + .panel { margin-top: 18px; }

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
}

.panel-title small { color: var(--muted); font-weight: 500; font-size: 12.5px; }

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}

.page-head h1 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -.01em;
}

.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }

/* Breadcrumb — style.css defines the product page variant, this is the shared one. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 6px;
  background: none;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb b, .breadcrumb .active { color: var(--ink); font-weight: 700; }

/* ============================================================ 3. buttons */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}

.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.btn-soft:hover { background: var(--red-soft); color: var(--red); }

.btn-danger-soft {
  background: var(--red-soft);
  color: var(--red);
}

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-primary[disabled], .btn-outline[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--red);
}

/* ============================================================ 4. forms */

.field { margin-bottom: 16px; }

.field > label,
.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field-label .req { color: var(--red); margin-inline-start: 3px; }

.input,
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field input[type=number],
.field input[type=password],
.field input[type=search],
.field input[type=date],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea { min-height: 120px; resize: vertical; line-height: 1.9; }

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: left 20px center, left 15px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 16px;
  padding-inline-start: 40px;
}

.ltr-page .field select { background-position: right 20px center, right 15px center; }

.field .help { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field .error, .invalid-feedback, label.error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.field input.error, .field select.error, .field textarea.error { border-color: var(--red); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--red); flex: none; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.form-grid .col-full { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row img.captcha { height: 50px; border-radius: 12px; cursor: pointer; border: 1.5px solid var(--line); }

/* code input used by the sms verification screens */
.activation-code-inputs { display: flex; gap: 10px; direction: ltr; }
.activation-code-inputs input {
  width: 52px;
  height: 58px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.activation-code-inputs input::-webkit-outer-spin-button,
.activation-code-inputs input::-webkit-inner-spin-button { appearance: none; margin: 0; }

/* ============================================================ 5. header extras */

.nav-drop { position: relative; }

.nav-drop__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-drop__panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav-drop:hover .nav-drop__panel,
.nav-drop.is-open .nav-drop__panel { display: grid; }

.nav-drop__head { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
.nav-drop__col ul { list-style: none; margin: 0; padding: 0; }
.nav-drop__col li + li { margin-top: 5px; }
.nav-drop__col a { font-size: 12.5px; color: var(--muted); }
.nav-drop__col a:hover { color: var(--red); }

.account-menu { position: relative; }

.account-drop {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 70;
}

.account-drop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.account-drop a:hover { background: var(--soft); color: var(--red); }
.account-drop a i { font-size: 17px; color: var(--muted); }
.account-drop a:hover i { color: var(--red); }
.account-drop__out { color: var(--red); }

.search-results { margin-top: 16px; }
.search-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.search-results li a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--soft);
}

.search-results li a:hover { background: var(--red-soft); }
.search-results li img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; }
.search-results li b { display: block; font-size: 13.5px; font-weight: 700; }
.search-results li small { color: var(--muted); font-size: 12px; }
.search-results li strong { font-size: 13px; white-space: nowrap; }

.search-results__all {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
}

.drawer-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.drawer-empty svg { color: var(--line); margin-bottom: 14px; }
.drawer-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.drawer-empty p { margin: 0 0 18px; font-size: 13px; }

.cart-total { padding: 18px; border-top: 1px solid var(--line); background: var(--panel); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.cart-item b a { font-weight: 700; }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
}
.footer-socials a:hover { background: var(--red); color: #fff; }
.footer-trust img { max-width: 96px; border-radius: 12px; }

.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 90px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 40;
}

/* ============================================================ 6. catalog */

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel { position: sticky; top: 90px; }

.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }

.filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}

.filter-group__head i { color: var(--muted); transition: transform .25s var(--ease); }
.filter-group.is-closed .filter-group__body { display: none; }
.filter-group.is-closed .filter-group__head i { transform: rotate(-90deg); }

.filter-group__body { margin-top: 14px; display: grid; gap: 9px; max-height: 260px; overflow: auto; }
.filter-group__body::-webkit-scrollbar { width: 6px; }
.filter-group__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }

.filter-price { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.filter-price input { width: 100%; min-height: 42px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 13px; }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.sort-bar__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }

.sort-bar a {
  padding: 7px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.sort-bar a.is-active { background: var(--red-soft); color: var(--red); font-weight: 800; }
.sort-bar__count { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }

.filter-toggle { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12.5px;
  font-weight: 600;
}
.active-filters a:hover { background: var(--red-soft); color: var(--red); }

.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.category-strip { display: flex; gap: 10px; overflow: auto; padding-bottom: 6px; margin-bottom: 20px; }
.category-strip::-webkit-scrollbar { height: 6px; }
.category-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }
.category-strip a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.category-strip a:hover { border-color: var(--red); color: var(--red); }
.category-strip img { width: 26px; height: 26px; object-fit: contain; }

/* ============================================================ 7. empty state & pagination */

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 60px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.empty-state__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--soft);
  color: var(--muted);
  margin-bottom: 4px;
}

.empty-state b { font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); max-width: 46ch; }

.pagination-wrap { display: flex; justify-content: center; margin-top: 32px; }

.pagination-wrap .pagination { display: flex; gap: 7px; list-style: none; margin: 0; padding: 0; }

.pagination-wrap .page-item .page-link,
.pagination-wrap .page-link {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.pagination-wrap .page-item.active .page-link { background: var(--red); border-color: var(--red); color: #fff; }
.pagination-wrap .page-item.disabled .page-link { opacity: .4; }
.pagination-wrap .page-link:hover { border-color: var(--red); color: var(--red); }
.pagination-wrap .page-item.active .page-link:hover { color: #fff; }

/* ============================================================ 8. tables */

.data-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }

.data-table th {
  padding: 14px 16px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  text-align: start;
}

.data-table th:first-child { border-start-start-radius: 14px; }
.data-table th:last-child { border-start-end-radius: 14px; }

.data-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafafc; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
}

.badge-pill--ok { background: rgba(29, 167, 122, .12); color: var(--green); }
.badge-pill--warn { background: rgba(244, 181, 28, .16); color: #a9760a; }
.badge-pill--danger { background: var(--red-soft); color: var(--red); }

/* ============================================================ 9. cart & checkout */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.checkout-sidebar { position: sticky; top: 90px; }

.cart-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: 0; }

.cart-row__media {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  overflow: hidden;
}

.cart-row__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-row__title { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.cart-row__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cart-row__meta span { font-size: 12px; color: var(--muted); background: var(--soft); padding: 4px 10px; border-radius: 9px; }
.cart-row__side { display: grid; gap: 10px; justify-items: end; text-align: end; }
.cart-row__price { font-size: 16px; font-weight: 800; }
.cart-row__price del { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 13.5px;
}

.summary-row + .summary-row { border-top: 1px dashed var(--line); }
.summary-row span { color: var(--muted); }
.summary-row b { font-weight: 700; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; font-size: 15px; }
.summary-row--total b { font-size: 19px; font-weight: 900; }
.summary-row--discount b { color: var(--green); }

.discount-box { display: flex; gap: 8px; margin-top: 14px; }
.discount-box input { flex: 1; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 13px; font: inherit; font-size: 13px; }

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.option-card + .option-card { margin-top: 10px; }
.option-card:hover { border-color: var(--red); }
.option-card input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.option-card b { display: block; font-size: 14px; }
.option-card small { color: var(--muted); font-size: 12.5px; }
.option-card__price { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }
.option-card input:checked ~ * { color: inherit; }
.option-card:has(input:checked) { border-color: var(--red); background: var(--red-soft); }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.steps span.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps span i { font-style: normal; font-weight: 800; }

/* ============================================================ 10. user panel */

.account-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-nav { position: sticky; top: 90px; padding: 16px; }

.account-nav__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.account-nav__avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
  flex: none;
}

.account-nav__user b { display: block; font-size: 14px; }
.account-nav__user small { color: var(--muted); font-size: 12px; }

.account-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.account-nav a i { font-size: 18px; }
.account-nav a:hover { background: var(--soft); color: var(--ink); }
.account-nav a.is-active { background: var(--red-soft); color: var(--red); font-weight: 800; }
.account-nav a.account-nav__out { color: var(--red); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }

.stat-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
}

.stat-box span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat-box b { font-size: 22px; font-weight: 900; }
.stat-box small { font-size: 12px; font-weight: 500; color: var(--muted); }

.order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.order-card + .order-card { margin-top: 14px; }

.order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.order-card__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card__thumbs img { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: var(--soft); }

.ticket-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.ticket-msg__body { background: var(--soft); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; max-width: 78%; }
.ticket-msg--mine { flex-direction: row-reverse; }
.ticket-msg--mine .ticket-msg__body { background: var(--red-soft); }
.ticket-msg time { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* ============================================================ 11. auth */

.auth-shell {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding: 40px 0 70px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card__head { text-align: center; margin-bottom: 26px; }
.auth-card__head a { display: inline-block; }
/* The logo is centred explicitly: in RTL a full-width anchor would otherwise
   push the image to the right edge of the card. */
.auth-card__head img { height: 46px; width: auto; object-fit: contain; display: block; margin: 0 auto 16px; }
.auth-card__head h1 { font-size: 21px; font-weight: 900; margin: 0 0 6px; }
.auth-card__head p { margin: 0; color: var(--muted); font-size: 13.5px; }

.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--red); font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; margin-top: 12px; }

/* ============================================================ 12. blog & static pages */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-sidebar { position: sticky; top: 90px; }

.prose { font-size: 15px; line-height: 2.1; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 32px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose img { max-width: 100%; height: auto; border-radius: 18px; margin: 12px 0; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--red); font-weight: 600; }
.prose blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--red);
  background: var(--soft);
  border-radius: 0 16px 16px 0;
  color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.prose table th, .prose table td { padding: 11px 14px; border: 1px solid var(--line); }
.prose table th { background: var(--soft); font-weight: 700; }

.article-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 16 / 7;
  background: var(--soft);
}

.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-list { display: grid; gap: 12px; }
.sidebar-list a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.sidebar-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; background: var(--soft); }
.sidebar-list b { font-size: 13px; font-weight: 700; line-height: 1.7; }
.sidebar-list small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }

.comment {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.comment:first-child { border-top: 0; padding-top: 0; }
.comment__avatar { width: 46px; height: 46px; border-radius: 15px; background: var(--soft); display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment__head b { font-size: 13.5px; }
.comment__head time { font-size: 11.5px; color: var(--muted); }
.comment__body { font-size: 13.5px; color: var(--ink-2); }
.comment--reply { margin-inline-start: 46px; }

/* ============================================================ 13. product page extras */

.gallery-main { cursor: zoom-in; }

.stock-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.variant-list { display: grid; gap: 9px; margin: 6px 0 16px; }

.variant {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
}

.variant:hover { border-color: var(--red); }
.variant.is-active { border-color: var(--red); background: var(--red-soft); }
.variant input { accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.variant b { font-size: 13.5px; }
.variant small { display: block; color: var(--muted); font-size: 12px; }
.variant__price { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }

.share-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.share-list a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  font-size: 18px;
  color: var(--muted);
}
.share-list a:hover { background: var(--red-soft); color: var(--red); }

.compare-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  padding: 14px 22px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(29, 22, 27, .1);
}

/* ============================================================ 14. vendor overrides */

/* noUiSlider — price filter */
.noUi-target { border: 0; box-shadow: none; background: var(--line); height: 5px; border-radius: 9px; margin: 22px 10px; }
.noUi-connect { background: var(--red); }
.noUi-handle { width: 20px !important; height: 20px !important; right: -10px !important; top: -8px !important; border: 3px solid var(--red); border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .16); cursor: grab; }
.noUi-handle::before, .noUi-handle::after { display: none; }

/* toastr */
#toast-container > div { border-radius: 15px !important; box-shadow: var(--shadow) !important; opacity: 1 !important; padding: 15px 18px 15px 46px !important; font-family: inherit !important; font-size: 13.5px !important; }
#toast-container > .toast-success { background-color: var(--green) !important; }
#toast-container > .toast-error { background-color: var(--red) !important; }
#toast-container > .toast-warning { background-color: var(--yellow) !important; }

/* bootstrap modal */
.modal-content { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.modal-title { font-size: 16px; font-weight: 800; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--line); padding: 16px 22px; }
.modal-backdrop.show { opacity: .5; }

/* sweetalert */
.swal2-popup { border-radius: var(--radius-sm) !important; font-family: inherit !important; }
.swal2-title { font-size: 19px !important; font-weight: 800 !important; }
.swal2-styled.swal2-confirm { background: var(--red) !important; border-radius: 13px !important; }
.swal2-styled.swal2-cancel { background: var(--soft) !important; color: var(--ink) !important; border-radius: 13px !important; }

/* ============================================================ 15. responsive */

@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .account-layout { grid-template-columns: 226px minmax(0, 1fr); }
  .product-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .catalog-layout,
  .checkout-layout,
  .article-layout,
  .account-layout { grid-template-columns: minmax(0, 1fr); }

  .filter-panel,
  .checkout-sidebar,
  .article-sidebar,
  .account-nav { position: static; }

  .filter-toggle { display: inline-flex; }

  .filter-panel {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(360px, 88vw);
    z-index: 90;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(var(--filter-hidden, -102%));
    transition: transform .35s var(--ease);
  }

  .rtl-page .filter-panel { --filter-hidden: 102%; inset-inline-start: auto; inset-inline-end: 0; }
  .filter-panel.is-open { transform: none; }

  .account-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
  .account-nav__user { display: none; }
  .account-nav a { flex: none; white-space: nowrap; }

  .product-grid--3,
  .product-grid--5,
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-row { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-row__media { width: 84px; height: 84px; }
  .cart-row__side { grid-column: 1 / -1; justify-items: stretch; text-align: start; }
  .to-top { bottom: 86px; }
}

@media (max-width: 560px) {
  .panel { padding: 18px; }
  .auth-card { padding: 24px; }
  .page-head h1 { font-size: 21px; }
  .data-table td, .data-table th { padding: 12px; }
  .activation-code-inputs input { width: 44px; height: 52px; font-size: 18px; }
}

/* ============================================================ 16. widget extras
 * Components the home page widgets add on top of style.css.
 */

.hero-slides { position: absolute; inset: 0; }
.hero-slide,
.hero-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero-slide.is-active, .hero-static { opacity: 1; }

.product-labels {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.product-labels span {
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.rating-star { display: inline-flex; align-items: center; gap: 3px; color: var(--yellow); font-weight: 700; }
.price-row strong del { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }

.section-actions { display: flex; justify-content: center; margin-top: 26px; }
.consult-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.consult-visual { display: grid; place-items: center; }
.consult-visual img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.service-card__arrow { display: block; margin-top: 14px; font-style: normal; color: var(--red); font-weight: 800; }

.promo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--soft);
  aspect-ratio: 880 / 330;
}
.promo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.promo-tile:hover img { transform: scale(1.04); }
.promo-tile__copy {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 22px;
  background: linear-gradient(to top, rgba(33, 27, 30, .86), transparent);
  color: #fff;
}
.promo-tile__copy strong { display: block; font-size: 17px; font-weight: 800; }
.promo-tile__copy small { opacity: .85; font-size: 12.5px; }

.offer-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 26px; align-items: center; }
.offer-rail { min-width: 0; }
.offer-countdown { margin: 20px 0; }
.offer-countdown__label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.offer-countdown__clock { display: flex; align-items: center; gap: 6px; direction: ltr; }
.offer-countdown__clock b {
  min-width: 46px;
  padding: 9px 0;
  text-align: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.offer-countdown__clock span { color: var(--muted); font-weight: 800; }

.fullscreen-slide { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.fullscreen-slide img { width: 100%; height: auto; display: block; }
.fullscreen-slide__copy {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(33, 27, 30, .82), transparent);
  color: #fff;
}
.fullscreen-slide__copy strong { display: block; font-size: 20px; font-weight: 800; }

.testimonial-card {
  margin: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.testimonial-card blockquote { margin: 0 0 18px; font-size: 14px; line-height: 2; color: var(--ink-2); }
.testimonial-card figcaption { display: flex; align-items: center; gap: 11px; }
.testimonial-card figcaption img { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 900px) {
  .offer-shell { grid-template-columns: minmax(0, 1fr); }
  .consult-visual { display: none; }
}

/* ============================================================ 17. product page
 * Pieces the static template did not need because it had no variants,
 * no login and no real cart.
 */

.password-field { position: relative; }
.password-field input { width: 100%; padding-inline-end: 48px; }
.password-field .toggle-password {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
}
.password-field .toggle-password:hover { background: var(--soft); color: var(--ink); }

.variant-panel .mini-label span { color: var(--ink); font-weight: 700; }

.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.variant-chips .product-attribute label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.variant-chips .product-attribute label input { position: absolute; opacity: 0; pointer-events: none; }
.variant-chips .product-attribute:hover label { border-color: var(--red); }
.variant-chips .product-attribute.is-active label { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.variant-chips .product-attribute.unavailable label { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.ui-variant-shape { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); display: inline-block; }

.price-was { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.price-was del { color: var(--muted); font-size: 13.5px; }

.availability-box--out span { background: var(--muted) !important; }

.spec-group { margin: 22px 0 10px; font-size: 15px; font-weight: 800; }
.spec-group:first-of-type { margin-top: 12px; }

.share-btn, .favorite-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.share-btn:hover, .favorite-btn:hover { color: var(--red); }
.favorite-btn.is-active, .favorite-btn.favorites { background: var(--red); color: #fff; }

.filter-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-inline-start: 6px;
  border: 1px solid rgba(0, 0, 0, .12);
  vertical-align: -2px;
}

/* Cart quantity stepper — shares the look of the product page `.qty`. */
.counter-box {
  display: inline-grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.counter-box button {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
.counter-box button:hover { background: var(--soft); color: var(--red); }
.counter-box input {
  width: 100%;
  min-width: 44px;
  text-align: center;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  -moz-appearance: textfield;
}
.counter-box input::-webkit-outer-spin-button,
.counter-box input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.qty input {
  width: 100%;
  text-align: center;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { appearance: none; margin: 0; }

/* Reviews */
.review-list { display: grid; gap: 0; margin-top: 18px; }
.review { padding: 20px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.review__head b { font-size: 14.5px; }
.review__head span, .review__head time { font-size: 12px; color: var(--muted); }
.review p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.review__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.review__point { padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.review__point span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.review__point ul { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.review__point li { position: relative; padding-inline-start: 14px; }
.review__point li::before { content: ''; position: absolute; inset-inline-start: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.review__point--pro { color: var(--green); background: rgba(29, 167, 122, .08); }
.review__point--con { color: var(--red); background: var(--red-soft); }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.comments-likes { display: flex; gap: 8px; }
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.btn-like:hover { border-color: var(--red); color: var(--red); }

/* Price chart modal */
.chart-prices-label { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.chart-prices-label label {
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12.5px;
  cursor: pointer;
}
.chart-prices-label label:hover, .chart-prices-label label.active { border-color: var(--red); color: var(--red); }
.empty-chart { padding: 40px; text-align: center; color: var(--muted); }

.copy-text input { text-align: center; }

/* ============================================================ 18. odds and ends */

.lang-switch { display: flex; gap: 4px; align-items: center; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--soft); color: var(--ink); }
.lang-switch img { border-radius: 3px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.favorite-cell { display: flex; flex-direction: column; gap: 10px; }
.favorite-cell .favorite-remove-btn { align-self: stretch; }

.ticket-thread { display: flex; flex-direction: column; }
.message-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.message-files a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  font-size: 11.5px;
  font-weight: 600;
}

/* Review composer */
.product-review-rate { display: flex; gap: 8px; }
.product-review-rate input { position: absolute; opacity: 0; pointer-events: none; }
.review-rate-item label {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.review-rate-item label:hover { border-color: var(--red); color: var(--red); }
.product-review-rate input:checked + .review-rate-item label {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.product-review-suggest { display: flex; flex-wrap: wrap; gap: 10px; }
.product-review-suggest input { position: absolute; opacity: 0; pointer-events: none; }
.review-suggest-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
}
.review-suggest-item label p { margin: 0; }
.product-review-suggest input:checked + .review-suggest-item label {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.ui-input--add-point { display: flex; gap: 8px; }
.ui-input--add-point .ui-input-field {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  font: inherit;
  font-size: 13.5px;
}
.ui-input-point {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--soft);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.ui-input-point:hover { background: var(--red); color: #fff; }

.form-comment-dynamic-labels { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.form-comment-dynamic-labels span,
.form-comment-dynamic-labels div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12.5px;
}
.form-comment-title--positive .form-comment-dynamic-labels span { background: rgba(29, 167, 122, .1); color: var(--green); }
.form-comment-title--negative .form-comment-dynamic-labels span { background: var(--red-soft); color: var(--red); }
.js-icon-form-remove { cursor: pointer; opacity: .6; }
.js-icon-form-remove:hover { opacity: 1; }

/* Comparison table */
.comparison-table th { vertical-align: top; }
.comparison-group th { background: var(--soft); font-weight: 800; color: var(--ink); }
.comparison-item { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 8px 0; }
.comparison-item img { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; background: var(--soft); }
.comparison-item-title { font-size: 13px; font-weight: 700; line-height: 1.7; }
.remove-item {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  cursor: pointer;
}

.compare-picker { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.compare-picker .option-card img { width: 48px; height: 48px; object-fit: contain; border-radius: 11px; background: var(--soft); }

/* Utilities used by a handful of blades */
.text-green { color: var(--green); }
.contact-pro-item + .contact-pro-item { margin-top: 10px; }
.d-md-none { display: none; }

@media (max-width: 900px) {
  .d-md-none { display: inline-flex; }
}

/* Category tile fallback when a category has no uploaded image. */
.mnav__cat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--red-2);
  flex: none;
}

/* ============================================================ 19. product rails
 * style.css sizes its rails for the narrow column the static template used.
 * The widget rails run the full container width, so they get their own
 * cards-per-view ladder — smaller cards, more products in view.
 */

.products-rail { --per: 5; }

@media (max-width: 1360px) { .products-rail { --per: 4.2; } }
@media (max-width: 1120px) { .products-rail { --per: 3.4; } }
@media (max-width: 900px)  { .products-rail { --per: 2.6; } }
@media (max-width: 680px)  { .products-rail { --per: 2.1; } }
@media (max-width: 480px)  { .products-rail { --per: 1.5; } }

/* Slimmer card chrome so the denser rail still breathes. */
.products-rail .product-card { padding: 12px; border-radius: 20px; }
.products-rail .product-card .product-media { border-radius: 14px; }
.products-rail .product-card h3 { font-size: 13.5px; }
.products-rail .price-row strong { font-size: 15px; }

/* Same density for the offers rail, which also spans the full width. */
.offer-section .offer-swiper { --per: 3.2; }
@media (max-width: 1120px) { .offer-section .offer-swiper { --per: 2.4; } }
@media (max-width: 900px)  { .offer-section .offer-swiper { --per: 2; } }
@media (max-width: 680px)  { .offer-section .offer-swiper { --per: 1.5; } }

/* Grid widget: match the rail's tighter card. */
.product-grid .product-card { padding: 12px; border-radius: 20px; }

/* Brand chips hold a logo when one is uploaded, otherwise the brand name.
   The name can be long in Persian, so soften the fixed-size chip. */
.brand-chip { flex: none; padding: 0 16px; font-size: 15px; text-align: center; line-height: 1.5; overflow: hidden; }
.brand-chip img { max-width: 78%; max-height: 60%; object-fit: contain; }
.brand-row-scroll { overflow-x: auto; scrollbar-width: none; }
.brand-row-scroll::-webkit-scrollbar { display: none; }

/* style.css fixes the services grid at 3 columns. The widget accepts up to
   four items, so let the column count follow how many are actually filled in
   and avoid a lone orphan card on the second row. */
.services-grid--4 { grid-template-columns: repeat(4, 1fr); }
.services-grid--2 { grid-template-columns: repeat(2, 1fr); }
.services-grid--1 { grid-template-columns: 1fr; }

@media (max-width: 1120px) { .services-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px)  { .services-grid--4, .services-grid--2 { grid-template-columns: 1fr; } }
