/* =========================================================
   SPARE DETAIL
   ========================================================= */

/* =========================================================
   SPARE DETAIL PAGE
   ========================================================= */

.spare-detail-page {
  padding: 0 0 75px;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.spare-detail-layout {
  display: grid;

  grid-template-columns: 260px minmax(0, 1fr);

  gap: 28px;

  align-items: start;
}

.spare-detail-main {
  min-width: 0;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.spare-detail-sidebar {
  position: sticky;
  top: 20px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--white);

  box-shadow: var(--shadow);
}

.spare-detail-sidebar__header {
  padding: 20px;

  border-bottom: 1px solid var(--border);

  background: linear-gradient(135deg, var(--orange-soft), var(--white));
}

.spare-detail-sidebar__header span {
  display: block;

  margin-bottom: 3px;

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--orange);
}

.spare-detail-sidebar__header h2 {
  margin: 0;

  font-size: 17px;
  font-weight: 750;

  color: var(--text);
}

.spare-detail-sidebar__list {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   SIDEBAR ITEM
   ========================================================= */

.spare-detail-sidebar__item {
  position: relative;

  display: flex;
  align-items: center;

  gap: 11px;

  min-height: 67px;

  padding: 11px 14px;

  text-decoration: none;

  border-bottom: 1px solid #f1eeea;

  color: var(--text);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.spare-detail-sidebar__item:last-child {
  border-bottom: 0;
}

.spare-detail-sidebar__item:hover {
  color: var(--orange-dark);

  background: var(--orange-soft);
}

.spare-detail-sidebar__item.is-active {
  color: var(--orange-dark);

  background: var(--orange-light);
}

.spare-detail-sidebar__item.is-active::before {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 4px;

  content: "";

  background: var(--orange);
}

.spare-detail-sidebar__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  border-radius: 9px;

  font-size: 12px;

  color: var(--orange);

  background: var(--orange-light);
}

.spare-detail-sidebar__item-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.spare-detail-sidebar__item-content strong {
  overflow: hidden;

  font-size: 11px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.spare-detail-sidebar__item-content small {
  margin-top: 2px;

  font-size: 9px;

  color: #a09b96;
}

.spare-detail-sidebar__item-arrow {
  flex: 0 0 auto;

  font-size: 9px;

  color: #bbb5af;
}

.spare-detail-sidebar__item.is-active .spare-detail-sidebar__item-arrow {
  color: var(--orange);
}

/* =========================================================
   INTRO
   ========================================================= */

.spare-detail-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 12px;
  padding: 22px 24px;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: var(--white);

  box-shadow: var(--shadow);
}

.spare-detail-intro__eyebrow {
  display: block;

  margin-bottom: 5px;

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.11em;
  text-transform: uppercase;

  color: var(--orange);
}

.spare-detail-intro h2 {
  margin: 0 0 5px;

  font-size: 21px;
  font-weight: 750;

  color: var(--text);
}

.spare-detail-intro p {
  margin: 0;

  font-size: 12px;
  line-height: 1.6;

  color: var(--text-soft);
}

.spare-detail-intro__count {
  display: flex;
  align-items: center;

  gap: 6px;

  flex: 0 0 auto;

  padding: 9px 12px;

  border-radius: 9px;

  color: var(--orange-dark);

  background: var(--orange-light);
}

.spare-detail-intro__count strong {
  font-size: 16px;
}

.spare-detail-intro__count span {
  font-size: 9px;
  font-weight: 700;
}

/* =========================================================
   BACK
   ========================================================= */

.spare-detail-back {
  margin-bottom: 14px;
}

.spare-detail-back a {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  padding: 7px 10px;

  font-size: 10px;
  font-weight: 650;

  text-decoration: none;

  border-radius: 8px;

  color: var(--orange-dark);

  background: var(--orange-light);
}

.spare-detail-back a:hover {
  color: #fff;

  background: var(--orange);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .spare-detail-layout {
    grid-template-columns: 215px minmax(0, 1fr);

    gap: 18px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .spare-detail-page {
    padding-bottom: 45px;
  }

  .spare-detail-layout {
    display: block;
  }

  .spare-detail-sidebar {
    position: static;

    margin-bottom: 17px;
  }

  .spare-detail-sidebar__header {
    padding: 15px;
  }

  .spare-detail-sidebar__list {
    flex-direction: row;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
  }

  .spare-detail-sidebar__item {
    min-width: 185px;

    border-right: 1px solid #f1eeea;
    border-bottom: 0;
  }

  .spare-detail-sidebar__item.is-active::before {
    top: auto;
    right: 0;
    bottom: 0;

    width: auto;
    height: 3px;
  }

  .spare-detail-intro {
    align-items: flex-start;
    flex-direction: column;

    padding: 18px;
  }
}

/* =========================================================
   ACCORDION
   ========================================================= */

.spare-accordion {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.spare-accordion__item {
  overflow: hidden;

  border: 1px solid var(--border) !important;
  border-radius: 14px !important;

  background: var(--white);

  box-shadow: 0 5px 20px rgba(45, 49, 53, 0.04);
}

.spare-accordion__button {
  display: flex;
  align-items: center;

  gap: 14px;

  min-height: 78px;

  padding: 15px 20px;

  color: var(--text);

  background: var(--white);
}

.spare-accordion__button:not(.collapsed) {
  color: var(--text);

  background: linear-gradient(90deg, var(--orange-soft), var(--white));

  box-shadow: none;
}

.spare-accordion__button:focus {
  border: 0;

  box-shadow: none;
}

.spare-accordion__button::after {
  margin-left: 15px;
}

.spare-accordion__number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  font-size: 11px;
  font-weight: 750;

  border-radius: 10px;

  color: var(--orange);

  background: var(--orange-light);
}

.spare-accordion__title {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.spare-accordion__title small {
  margin-bottom: 2px;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #a09a94;
}

.spare-accordion__title strong {
  overflow: hidden;

  font-size: 14px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;

  color: #393d40;
}

.spare-accordion__count {
  flex: 0 0 auto;

  padding: 6px 10px;

  font-size: 10px;
  font-weight: 700;

  border-radius: 8px;

  color: #807a75;

  background: #f7f5f2;
}

.spare-accordion__body {
  padding: 25px;

  border-top: 1px solid #f0ede9;

  background: #fcfbfa;
}

/* =========================================================
   DIAGRAM
   ========================================================= */

.spare-diagram {
  margin-bottom: 28px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--white);
}

.spare-diagram__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 18px;

  border-bottom: 1px solid #efebe7;
}

.spare-diagram__header span {
  display: block;

  margin-bottom: 2px;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--orange);
}

.spare-diagram__header strong {
  display: block;

  font-size: 13px;

  color: var(--text);
}

.spare-diagram__header > i {
  font-size: 15px;

  color: var(--orange);
}

.spare-diagram__image {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 300px;

  padding: 25px;

  background: #ffffff;
}

.spare-diagram__image img {
  display: block;

  max-width: 100%;
  max-height: 620px;

  object-fit: contain;
}

/* =========================================================
   LIST HEADING
   ========================================================= */

.spare-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 17px;
}

.spare-list-heading span {
  display: block;

  margin-bottom: 2px;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--orange);
}

.spare-list-heading h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 750;

  color: var(--text);
}

.spare-list-heading > strong {
  padding: 6px 10px;

  font-size: 10px;
  font-weight: 700;

  border-radius: 8px;

  color: #7c7772;

  background: #f2efeb;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.spare-product-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.spare-product-card {
  overflow: hidden;

  border: 1px solid #ebe7e2;
  border-radius: 13px;

  background: var(--white);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.spare-product-card:hover {
  border-color: #f3c8a3;

  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(55, 45, 37, 0.07);
}

/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.spare-product-card__image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 195px;

  padding: 18px;

  border-bottom: 1px solid #f0ede9;

  background: #ffffff;
}

.spare-product-card__image img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}

.spare-product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 68px;
  height: 68px;

  font-size: 23px;

  border-radius: 16px;

  color: #c6bcb3;

  background: #f7f4f1;
}

.spare-product-card__view {
  position: absolute;

  top: 10px;
  left: 10px;

  padding: 5px 8px;

  font-size: 9px;
  font-weight: 750;

  border-radius: 6px;

  color: #ffffff;

  background: var(--orange);

  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.18);
}

/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.spare-product-card__content {
  padding: 17px;
}

.spare-product-card__content h4 {
  min-height: 40px;

  margin: 0 0 14px;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;

  color: #363a3e;
}

/* =========================================================
   META
   ========================================================= */

.spare-product-card__meta {
  display: flex;
  flex-direction: column;

  margin-bottom: 14px;

  border-top: 1px solid #f1efec;
}

.spare-product-card__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  min-height: 35px;

  border-bottom: 1px solid #f1efec;
}

.spare-product-card__meta span {
  font-size: 10px;

  color: #96918c;
}

.spare-product-card__meta strong {
  font-size: 10px;
  font-weight: 700;

  text-align: right;

  color: #53575b;
}

.spare-product-card__meta .view-code {
  color: var(--orange-dark);
}

/* =========================================================
   PRICES
   ========================================================= */

.spare-product-card__prices {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;

  margin-top: 13px;
}

.spare-product-card__prices > div {
  padding: 9px;

  text-align: center;

  border-radius: 8px;

  background: var(--orange-soft);
}

.spare-product-card__prices span {
  display: block;

  margin-bottom: 2px;

  font-size: 9px;

  color: #8e837a;
}

.spare-product-card__prices strong {
  display: block;

  font-size: 14px;
  font-weight: 750;

  color: var(--orange-dark);
}

.spare-product-card__discount {
  margin-top: 8px;

  font-size: 10px;
  font-weight: 650;

  color: #5b865e;
}

.spare-product-card__discount i {
  margin-right: 4px;
}

.spare-product-card__price-unavailable {
  margin-top: 12px;

  padding: 8px;

  font-size: 10px;

  text-align: center;

  border-radius: 7px;

  color: #929292;

  background: #f5f5f5;
}

/* =========================================================
   LOGIN PRICE
   ========================================================= */

.spare-product-card__login {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 38px;

  margin-top: 13px;
  padding: 8px 10px;

  font-size: 10px;
  font-weight: 650;

  text-decoration: none;

  border-radius: 8px;

  color: var(--orange-dark);

  background: var(--orange-light);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.spare-product-card__login:hover {
  color: #ffffff;

  background: var(--orange);
}

/* =========================================================
   EMPTY
   ========================================================= */

.spare-empty {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 22px;

  border: 1px dashed #ded9d3;
  border-radius: 12px;

  background: #ffffff;
}

.spare-empty--page {
  margin-top: 20px;
}

.spare-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  flex: 0 0 45px;

  border-radius: 11px;

  color: var(--orange);

  background: var(--orange-light);
}

.spare-empty strong {
  display: block;

  margin-bottom: 3px;

  font-size: 13px;

  color: var(--text);
}

.spare-empty p {
  margin: 0;

  font-size: 11px;
  line-height: 1.6;

  color: var(--text-soft);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .spare-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .spare-accordion__button {
    min-height: 72px;

    padding: 13px 14px;
  }

  .spare-accordion__count {
    display: none;
  }

  .spare-accordion__body {
    padding: 16px;
  }

  .spare-diagram__image {
    min-height: 230px;

    padding: 15px;
  }

  .spare-product-grid {
    grid-template-columns: 1fr;
  }

  .spare-product-card__image {
    height: 230px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
  .spare-accordion__number {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }

  .spare-accordion__title strong {
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .spare-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =========================================================
   PRODUCT IMAGE BUTTON
   ========================================================= */

.spare-product-card__image-button {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  cursor: zoom-in;
}

.spare-product-card__image-button img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  transition: transform 0.25s ease;
}

.spare-product-card__image-button:hover img {
  transform: scale(1.035);
}

/* =========================================================
   ZOOM ICON
   ========================================================= */

.spare-product-card__zoom {
  position: absolute;

  right: 8px;
  bottom: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border: 1px solid #eee8e2;
  border-radius: 50%;

  font-size: 10px;

  color: var(--orange);

  background: rgba(255, 255, 255, 0.94);

  box-shadow: 0 4px 12px rgba(45, 49, 53, 0.08);

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.spare-product-card__image-button:hover .spare-product-card__zoom {
  color: #ffffff;

  background: var(--orange);

  transform: scale(1.06);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

body.lightbox-open {
  overflow: hidden;
}

.product-lightbox {
  position: fixed;
  z-index: 99999;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.product-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

/* =========================================================
   BACKDROP
   ========================================================= */

.product-lightbox__backdrop {
  position: absolute;

  inset: 0;

  background: rgba(35, 38, 41, 0.72);

  backdrop-filter: blur(3px);

  cursor: zoom-out;
}

/* =========================================================
   DIALOG
   ========================================================= */

.product-lightbox__dialog {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  width: min(920px, 92vw);
  max-height: 92vh;

  overflow: hidden;

  border-radius: 17px;

  background: #ffffff;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);

  transform: scale(0.96);

  transition: transform 0.2s ease;
}

.product-lightbox.is-open .product-lightbox__dialog {
  transform: scale(1);
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.product-lightbox__close {
  position: absolute;
  z-index: 5;

  top: 13px;
  right: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: 1px solid #ece8e3;
  border-radius: 50%;

  font-size: 13px;

  color: #64686c;

  background: rgba(255, 255, 255, 0.94);

  box-shadow: 0 5px 16px rgba(45, 49, 53, 0.08);

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.product-lightbox__close:hover {
  color: #ffffff;

  background: var(--orange);

  transform: rotate(90deg);
}

/* =========================================================
   LIGHTBOX IMAGE
   ========================================================= */

.product-lightbox__image {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 300px;
  max-height: calc(92vh - 80px);

  padding: 35px;

  overflow: auto;

  background: #ffffff;
}

.product-lightbox__image img {
  display: block;

  max-width: 100%;
  max-height: calc(92vh - 150px);

  object-fit: contain;
}

/* =========================================================
   LIGHTBOX FOOTER
   ========================================================= */

.product-lightbox__footer {
  padding: 14px 19px;

  border-top: 1px solid #eeeae6;

  background: #faf9f7;
}

.product-lightbox__footer span {
  display: block;

  margin-bottom: 2px;

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--orange);
}

.product-lightbox__footer strong {
  display: block;

  font-size: 12px;
  font-weight: 700;

  color: var(--text);
}

/* =========================================================
   LIGHTBOX MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
  .product-lightbox {
    padding: 14px;
  }

  .product-lightbox__dialog {
    width: 100%;
    max-height: 94vh;

    border-radius: 13px;
  }

  .product-lightbox__image {
    min-height: 250px;

    padding: 20px;
  }

  .product-lightbox__image img {
    max-height: calc(94vh - 135px);
  }

  .product-lightbox__close {
    top: 9px;
    right: 9px;

    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   ADD TO CART
   ========================================================= */

.spare-product-card__cart {
  margin-top: 14px;
}

.spare-product-card__add {
  display: flex;
  align-items: center;

  gap: 9px;

  width: 100%;

  min-height: 42px;

  padding: 7px 10px;

  border: 1px solid #f3c8a3;
  border-radius: 9px;

  font-size: 10px;
  font-weight: 700;

  color: var(--orange-dark);

  background: linear-gradient(90deg, var(--orange-soft), #ffffff);

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.spare-product-card__add:hover {
  color: #ffffff;

  border-color: var(--orange);

  background: var(--orange);

  transform: translateY(-1px);

  box-shadow: 0 6px 16px rgba(245, 130, 32, 0.16);
}

.spare-product-card__add-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 27px;

  flex: 0 0 27px;

  border-radius: 7px;

  color: var(--orange);

  background: var(--orange-light);
}

.spare-product-card__add:hover .spare-product-card__add-icon {
  color: var(--orange-dark);

  background: #ffffff;
}

.spare-product-card__add-arrow {
  margin-left: auto;

  font-size: 8px;
}

.spare-product__buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.spare-product__price {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.spare-product__price-label {
  color: var(--text-soft);
  font-size: 13px;
}

.spare-product__price strong {
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.spare-product__discount {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.spare-product__add {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 575.98px) {
  .spare-product__buy-row {
    gap: 8px;
  }

  .spare-product__price strong {
    font-size: 17px;
  }

  .spare-product__add {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
}


/* =========================================================
   PRICE + CART INLINE
   ========================================================= */
.spare-product-card__buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}
.spare-product-card__buy-row .spare-product-card__prices {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.spare-product-card__buy-row .spare-product-card__prices > div {
  flex: 0 0 auto;
  min-width: 68px;
}
.spare-product-card__buy-row .spare-product-card__discount {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.spare-product-card__buy-row .spare-product-card__cart {
  flex: 0 0 auto;
  margin: 0;
}
.spare-product-card__buy-row .spare-product-card__add {
  width: auto;
  min-width: 125px;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .spare-product-card__buy-row { gap: 7px; }
  .spare-product-card__buy-row .spare-product-card__add { min-width: 0; }
}
