/* Styles for the live API-powered home page */
:root {
  /* API Pazz — final warm orange UI palette */
  --api-orange: #F26622;
  --api-orange-hover: #E44F25;
  --api-orange-pressed: #C43D27;
  --api-orange-soft: #F89D4C;
  --api-cream: #FEEEE0;
  --api-ink: #37291F;
  --api-muted: #7E736D;
  --api-neutral-400: #ABA29D;
  --api-line: #F1E5DE;
  --api-soft: #FFF8F4;
  --api-page: #FFFCFA;
  --api-image-bg: #FFF7F1;
  --api-yellow: #FBB614;

  /* Legacy aliases — keep existing selectors/JS compatible */
  --api-green: var(--api-orange);
  --api-green-dark: var(--api-orange-hover);
}
html,
body {
  background: #FFFCFA;
}

body.api-modal-open {
  overflow: hidden;
}

.api-home {
  min-height: 100vh;
  color: var(--api-ink);
}

.api-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(242, 102, 34, 0.06);
  box-shadow: 0 8px 24px rgba(242, 102, 34, 0.04);
  padding: 14px 20px 12px;
  backdrop-filter: blur(12px);
}

.api-header__inner {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.api-header h1 {
  padding: 0;
  font-size: 22px;
  line-height: 1.35;
  color: var(--api-green);
}

.api-eyebrow,
.api-section-kicker {
  color: #ABA29D;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 2px;
}

.api-header__mark {
  /* لوگو مستطیلی است؛ ارتفاع ثابت می‌ماند و فقط عرض متناسب می‌شود. */
  width: 132px;
  height: 66px;
  flex: 0 0 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--api-cream);
  font-size: 22px;
  overflow: visible;
}

.api-header__mark svg {
  width: 39px;
  height: 39px;
  display: block;
}

.api-header__mark .api-header__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
  /* بدون scale؛ تصویر با نسبت مستطیلی خودش در همان ارتفاع جا می‌گیرد. */
    transform: scale(2.1);

  /* transform: none; */
}

.api-header__inner > div {
  min-width: 0;
  flex: 1 1 auto;
}

.api-header h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-main {
  padding-top: 126px;
  padding-bottom: 44px;
}

.api-search {
  margin-bottom: 24px;
}

.api-search input {
  padding-right: 44px;
  padding-left: 44px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 8px 24px rgba(242, 102, 34, 0.06);
  margin-top: 20px;
}

.api-search input:focus {
  border-color: rgba(242, 102, 34, 0.25);
}

.api-search__icon {
  position: absolute;
  right: 15px;
  top: 12px;
  z-index: 1;
  color: var(--api-green);
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 30px;
  transform: rotate(-20deg);
  pointer-events: none;
}

.api-search__clear {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--api-soft);
  border: 0;
  color: var(--api-green);
  font-size: 23px;
  line-height: 1;
}



.api-section-heading {
  min-height: 42px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.api-section-heading--compact {
  min-height: auto;
  align-items: center;
  margin-bottom: 10px;
}

.api-section-heading h2 {
  color: var(--api-green);
  font-size: 19px;
  line-height: 1.45;
}

.api-section-heading--compact h2 {
  font-size: 17px;
}

.api-heading-icon {
  color: var(--api-yellow);
  font-size: 22px;
  vertical-align: -1px;
  margin-right: 3px;
}

.api-section-count {
  flex-shrink: 0;
  color: #ABA29D;
  font-size: 12px;
  white-space: nowrap;
}

.api-category-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 13px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.api-category-list::-webkit-scrollbar,
.api-horizontal-list::-webkit-scrollbar {
  display: none;
}

.api-category-button {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px 8px 13px;
  border: 1px solid var(--api-line);
  border-radius: 10px;
  background: #fff;
  color: var(--api-green);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.api-category-button:hover,
.api-category-button.is-active {
  border-color: var(--api-green);
  background: var(--api-green);
  color: var(--api-cream);
  box-shadow: 0 7px 16px rgba(242, 102, 34, 0.16);
}

.api-category-button img {
  width: 29px;
  height: 29px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.api-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 12px 0 22px;
  padding: 13px 14px;
  border: 1px dashed rgba(242, 102, 34, 0.2);
  border-radius: 16px;
  background: rgba(242, 102, 34, 0.035);
  color: var(--api-green);
  font-size: 13px;
  text-align: center;
}

.api-status.is-error {
  border-style: solid;
  border-color: rgba(185, 61, 48, 0.2);
  background: #fff7f5;
  color: #a74638;
}

.api-status[hidden] {
  display: none;
}

.api-status__retry {
  width: auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #a74638;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.api-loader {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 2px solid rgba(242, 102, 34, 0.18);
  border-top-color: var(--api-green);
  border-radius: 50%;
  display: inline-block;
  animation: api-spin 0.75s linear infinite;
}

@keyframes api-spin {
  to { transform: rotate(360deg); }
}

.api-inline-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--api-muted);
  font-size: 12px;
  padding: 8px 2px;
}

.api-section {
  margin-top: 30px;
}

.api-section--last {
  padding-bottom: 8px;
}

.api-horizontal-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 17px;
  margin: 0 -2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.api-horizontal-list .api-product-card {
  flex: 0 0 min(79vw, 232px);
  scroll-snap-align: start;
}

.api-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 102, 34, 0.055);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(242, 102, 34, 0.075);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.api-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(242, 102, 34, 0.12);
}

.api-product-card__image-wrap {
  position: relative;
  width: calc(100% - 14px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 7px 7px 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--api-soft);
}

.api-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.api-product-card:hover .api-product-card__image {
  transform: scale(1.035);
}

.api-product-card__id {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(242, 102, 34, 0.82);
  color: #fff;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.api-product-card__body {
  padding: 11px 12px 12px;
}

.api-product-card__name {
  min-height: 24px;
  margin-bottom: 4px;
  color: var(--api-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.api-product-card__name a {
  color: inherit;
}

.api-product-card__group {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  color: #7E736D;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-product-card__detail {
  min-height: 33px;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: #7E736D;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.api-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.api-product-card__price {
  color: var(--api-green);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.api-product-card__price small {
  display: block;
  color: #ABA29D;
  font-size: 9px;
  font-weight: 400;
}

.api-product-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-details-button,
.api-add-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.api-details-button {
  width: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--api-green);
  font-size: 11px;
  font-weight: 700;
}

.api-details-button:hover {
  color: #C43D27;
}

.api-add-button {
  width: 31px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--api-green);
  color: var(--api-cream);
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.api-add-button:hover {
  background: var(--api-green-dark);
  color: #fff;
}

.api-vertical-list {
  display: grid;
  gap: 10px;
}

.api-vertical-list .api-product-card {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 126px;
  padding-right: 20px;
}

.api-vertical-list .api-product-card__image-wrap {
  width: 126px;
  height: 126px;
  min-height: 126px;
  aspect-ratio: 1 / 1;
  flex: 0 0 126px;
  margin: 7px 0 7px 7px;
}

.api-vertical-list .api-product-card__body {
  flex: 1;
  min-width: 0;
  padding: 14px 13px 12px;
}

.api-vertical-list .api-product-card__detail {
  min-height: 30px;
  margin-bottom: 7px;
}

.api-vertical-list .api-product-card__name {
  font-size: 14px;
}

.api-show-more {
  width: 100%;
  margin-top: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(242, 102, 34, 0.18);
  border-radius: 14px;
  background: #fff;
  color: var(--api-green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.api-show-more:hover {
  border-color: var(--api-green);
  background: var(--api-green);
  color: var(--api-cream);
}

.api-show-more[hidden] {
  display: none;
}

.api-empty {
  padding: 24px 16px;
  border-radius: 16px;
  background: var(--api-soft);
  color: var(--api-muted);
  font-size: 13px;
  text-align: center;
}

.api-skeleton-list {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.api-skeleton {
  flex: 0 0 230px;
  height: 275px;
  border-radius: 18px;
  background: linear-gradient(90deg, #FFF8F4 25%, #F1E5DE 37%, #FFF8F4 63%);
  background-size: 400% 100%;
  animation: api-shimmer 1.35s ease infinite;
}

@keyframes api-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.api-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(242, 102, 34, 0.08);
  color: var(--api-green);
  font-size: 11px;
}

.api-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.api-modal[hidden] {
  display: none;
}

.api-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 41, 31, 0.34);
}

.api-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(88vh, 690px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
}

.api-modal__close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--api-green);
  font-family: Arial, sans-serif;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.api-modal__image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--api-soft);
}

.api-modal__image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.api-modal__content {
  padding: 20px;
}

.api-modal__content h2 {
  margin: 9px 0 2px;
  color: var(--api-green);
  font-size: 21px;
  line-height: 1.5;
}

.api-modal__id {
  direction: ltr;
  color: #ABA29D;
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-align: right;
}

.api-modal__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 17px 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(242, 102, 34, 0.055);
}

.api-modal__price-row strong {
  color: var(--api-green);
  font-size: 17px;
}

.api-modal__price-row span {
  color: #7E736D;
  font-size: 10px;
}

.api-modal__detail-block {
  padding-top: 14px;
  border-top: 1px solid var(--api-line);
}

.api-modal__detail-block + .api-modal__detail-block {
  margin-top: 15px;
}

.api-modal__detail-block h3 {
  margin-bottom: 6px;
  color: var(--api-green);
  font-size: 14px;
}

.api-modal__detail-block p,
.api-modal__detail-block li {
  color: #7E736D;
  font-size: 13px;
  line-height: 1.9;
}

.api-modal__detail-block ul {
  display: grid;
  gap: 5px;
}

.api-modal__detail-block li {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--api-soft);
}

.api-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 7000;
  max-width: 420px;
  margin: auto;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--api-green);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.25s ease;
}

.api-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .api-main {
    padding-right: 30px;
    padding-left: 30px;
  }

  .api-horizontal-list .api-product-card {
    flex-basis: 240px;
  }
}

@media (min-width: 900px) {
  .api-horizontal-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .api-horizontal-list .api-product-card {
    width: auto;
  }
}

@media (max-width: 420px) {
  .api-header {
    padding: 10px 12px;
  }

  .api-header__mark {
    width: 92px;
    height: 46px;
    flex-basis: 92px;
  }

  .api-header h1 {
    font-size: 18px;
  }

  .api-eyebrow {
    font-size: 10px;
  }

  .api-main {
    padding-top: 101px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .api-vertical-list .api-product-card__image-wrap {
    width: 105px;
    height: 105px;
    min-height: 105px;
    flex-basis: 105px;
  }

  .api-vertical-list .api-product-card__body {
    padding: 11px 10px 10px;
  }

  .api-vertical-list .api-product-card__detail {
    font-size: 10px;
  }

  .api-product-card__price {
    font-size: 12px;
  }
}

@media (max-width: 350px) {
  .api-header h1 {
    font-size: 16px;
  }

  .api-header__mark {
    width: 84px;
    height: 42px;
    flex-basis: 84px;
  }

  .api-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .api-vertical-list .api-product-card__image-wrap {
    width: 88px;
    height: 88px;
    min-height: 88px;
    flex-basis: 88px;
  }
}


/* ==========================================================================\n   API PAZZ — FINAL REFERENCE-MATCH OVERRIDES\n   Visual target: warm white/orange home screen + warm translucent product modal.\n   This section intentionally overrides only presentation; no JS hooks/layout IDs.\n   ========================================================================== */
html,
body {
  background: var(--api-page);
}

body {
  color: var(--api-muted);
}

.api-home {
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 102, 34, 0.035), transparent 32%),
    var(--api-page);
  color: var(--api-ink);
}

/* Header */
.api-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(242, 102, 34, 0.07);
  box-shadow: 0 8px 26px rgba(55, 41, 31, 0.035);
  backdrop-filter: blur(14px);
}

.api-header h1 {
  color: var(--api-orange);
  font-weight: 700;
}

.api-eyebrow,
.api-section-kicker,
.api-section-count {
  color: var(--api-neutral-400);
}

/* Search */
.api-search input {
  background: #FFFFFF;
  color: var(--api-ink);
  border: 1px solid rgba(242, 102, 34, 0.07);
  box-shadow: 0 10px 28px rgba(55, 41, 31, 0.055);
}

.api-search input::placeholder {
  color: var(--api-neutral-400);
  opacity: 1;
}

.api-search input:focus {
  border-color: rgba(242, 102, 34, 0.36);
  box-shadow: 0 10px 30px rgba(242, 102, 34, 0.09);
}

.api-search__icon,
.api-search__clear {
  color: var(--api-orange);
}

.api-search__clear {
  background: var(--api-soft);
}

/* Section headings */
.api-section-heading h2 {
  color: var(--api-orange);
  font-weight: 700;
}

.api-heading-icon {
  color: var(--api-yellow);
}

/* Category chips */
.api-category-button {
  border-color: rgba(242, 102, 34, 0.28);
  background: #FFFFFF;
  color: var(--api-ink);
  box-shadow: none;
}

.api-category-button:hover {
  border-color: rgba(242, 102, 34, 0.42);
  background: var(--api-cream);
  color: var(--api-orange);
  box-shadow: 0 5px 14px rgba(242, 102, 34, 0.08);
}

.api-category-button.is-active,
.api-category-button.is-active:hover {
  border-color: var(--api-orange);
  background: var(--api-orange);
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(242, 102, 34, 0.20);
}

/* Status / loaders */
.api-status {
  border-color: rgba(242, 102, 34, 0.24);
  background: rgba(254, 238, 224, 0.55);
  color: var(--api-orange);
}

.api-loader {
  border-color: rgba(242, 102, 34, 0.18);
  border-top-color: var(--api-orange);
}

.api-inline-loading,
.api-empty {
  color: var(--api-muted);
}

/* Product cards */
.api-product-card {
  border-color: rgba(242, 102, 34, 0.085);
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(55, 41, 31, 0.055);
}

.api-product-card:hover {
  box-shadow: 0 15px 34px rgba(55, 41, 31, 0.09);
}

.api-product-card__image-wrap {
  background: var(--api-image-bg);
}

.api-product-card__id {
  background: rgba(196, 61, 39, 0.88);
}

.api-product-card__name,
.api-product-card__name a {
  color: var(--api-ink);
}

.api-product-card__group,
.api-product-card__detail {
  color: var(--api-muted);
}

.api-product-card__price,
.api-details-button {
  color: var(--api-orange);
}

.api-details-button:hover {
  color: var(--api-orange-pressed);
}

.api-product-card__price small {
  color: var(--api-neutral-400);
}

.api-add-button {
  background: var(--api-orange);
  color: #FFFFFF;
}

.api-add-button:hover {
  background: var(--api-orange-hover);
}

.api-show-more {
  border-color: rgba(242, 102, 34, 0.24);
  background: #FFFFFF;
  color: var(--api-orange);
}

.api-show-more:hover {
  border-color: var(--api-orange);
  background: var(--api-orange);
  color: #FFFFFF;
}

.api-skeleton {
  background: linear-gradient(90deg, #FFF8F4 25%, #FEEEE0 37%, #FFF8F4 63%);
  background-size: 400% 100%;
}

/* Modal */
.api-pill {
  background: var(--api-cream);
  color: var(--api-orange);
}

.api-modal {
  padding: 18px;
}

.api-modal__backdrop {
  background: rgba(55, 41, 31, 0.34);
  backdrop-filter: blur(2px) saturate(0.92);
}

.api-modal__dialog {
  width: min(100%, 430px);
  max-height: min(90vh, 760px);
  border: 1px solid rgba(242, 102, 34, 0.10);
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgba(55, 41, 31, 0.22);
  scrollbar-width: none;
}

.api-modal__dialog::-webkit-scrollbar {
  display: none;
}

.api-modal__close {
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 248, 244, 0.96);
  color: var(--api-orange);
  box-shadow: 0 4px 14px rgba(55, 41, 31, 0.05);
  font-weight: 700;
}

.api-modal__image-wrap {
  background: #FFFFFF;
}

.api-modal__image-wrap img {
  object-fit: contain;
  padding: 12px;
}

.api-modal__content {
  padding: 20px 22px 22px;
  background: #FFFFFF;
}

.api-modal__content h2 {
  margin: 10px 0 3px;
  color: var(--api-ink);
  font-size: 21px;
  font-weight: 800;
}

.api-modal__id {
  color: var(--api-neutral-400);
}

.api-modal__price-row {
  margin: 18px 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(254, 238, 224, 0.72), rgba(255, 248, 244, 0.92));
  border: 1px solid rgba(242, 102, 34, 0.08);
}

.api-modal__price-row strong {
  color: var(--api-orange);
  font-size: 18px;
}

.api-modal__price-row span {
  color: var(--api-muted);
  font-size: 11px;
}

.api-modal__detail-block {
  border-top-color: var(--api-line);
}

.api-modal__detail-block h3 {
  color: var(--api-ink);
  font-weight: 700;
}

.api-modal__detail-block p,
.api-modal__detail-block li {
  color: var(--api-muted);
}

.api-modal__detail-block li {
  background: var(--api-soft);
}

.api-toast {
  background: var(--api-orange);
}

/* The target reference is a spacious mobile UI. */
@media (max-width: 420px) {
  .api-header {
    padding: 12px 16px 10px;
  }

  .api-header__mark {
    width: 104px;
    height: 52px;
    flex-basis: 104px;
  }

  .api-header h1 {
    font-size: 19px;
  }

  .api-main {
    padding-top: 112px;
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: 48px;
  }

  .api-search {
    margin-bottom: 27px;
  }

  .api-search input {
    min-height: 58px;
    border-radius: 18px;
    padding-right: 48px;
    padding-left: 48px;
  }

  .api-search__icon {
    right: 16px;
    top: 14px;
  }


  .api-section-heading {
    margin-bottom: 13px;
  }

  .api-section-heading h2 {
    font-size: 19px;
  }

  .api-section-heading--compact h2 {
    font-size: 18px;
  }

  .api-category-list {
    gap: 9px;
    padding-bottom: 15px;
  }

  .api-category-button {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
  }

  .api-section {
    margin-top: 32px;
  }

  .api-horizontal-list {
    gap: 12px;
  }

  .api-horizontal-list .api-product-card {
    flex-basis: min(64vw, 238px);
  }

  .api-product-card {
    border-radius: 19px;
  }

  .api-product-card__image-wrap {
    border-radius: 15px;
  }

  .api-product-card__body {
    padding: 12px 13px 13px;
  }

  .api-product-card__name {
    font-size: 15px;
  }

  .api-product-card__detail {
    font-size: 11px;
  }

  .api-product-card__price {
    font-size: 14px;
  }

  .api-modal {
    padding: 14px;
  }

  .api-modal__dialog {
    width: 100%;
    max-height: 91vh;
    border-radius: 24px;
  }

  .api-modal__image-wrap img {
    padding: 10px;
  }

  .api-modal__content {
    padding: 18px 18px 20px;
  }

  .api-modal__content h2 {
    font-size: 20px;
  }

  .api-modal__price-row {
    padding: 13px 14px;
  }
}
