.ap-product-page {
  color: #172033;
}

.ap-product-page.container {
  width: calc(100% - 24px);
  max-width: 1420px;
}

.ap-product-page * {
  box-sizing: border-box;
}

.ap-product-page__breadcrumbs .breadcrumb {
  margin: 12px 0 18px;
  padding: 0;
  background: transparent;
  font-size: 13px;
}

.ap-product-page__breadcrumbs .breadcrumb > li + li:before {
  color: #9aa3b2;
}

.ap-product-page__top {
  display: grid;
  grid-template-columns: minmax(560px, 620px) minmax(300px, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.ap-product-gallery {
  display: grid;
  grid-template-columns: 82px minmax(360px, 1fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.ap-product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.ap-product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.ap-product-gallery__thumb:hover,
.ap-product-gallery__thumb--active {
  border-color: #2f6fed;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, .12);
}

.ap-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ap-product-gallery__main {
  min-height: 520px;
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ap-product-gallery__zoom {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-product-gallery__image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  padding: 22px;
}

.ap-product-gallery__empty {
  min-height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab2bf;
  font-size: 48px;
}

.ap-product-page__info,
.ap-product-buybox,
.ap-product-detail-section {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 10px;
}

.ap-product-page__info {
  padding: 22px;
}

.ap-product-title {
  margin: 0 0 14px;
  color: #172033;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.ap-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 16px;
  color: #667085;
  font-size: 13px;
}

.ap-product-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #315fd6;
  font: inherit;
}

.ap-product-rating__stars {
  color: #f2a900;
  white-space: nowrap;
}

.ap-product-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.ap-product-link-button,
.ap-product-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #315fd6;
  padding: 0;
  font: inherit;
  font-weight: 600;
}

.ap-product-link-button {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #344054;
}

.ap-product-link-button:hover,
.ap-product-anchor:hover,
.ap-product-rating:hover {
  color: #1f4fbd;
}

.ap-product-facts,
.ap-product-specs dl {
  margin: 0;
}

.ap-product-facts {
  display: grid;
  gap: 10px;
  padding: 0 0 18px;
  border-bottom: 1px solid #edf1f6;
}

.ap-product-facts div,
.ap-product-specs dl div {
  display: grid;
  grid-template-columns: minmax(110px, 42%) 1fr;
  gap: 12px;
  align-items: baseline;
}

.ap-product-facts dt,
.ap-product-specs dt {
  color: #7b8494;
  font-weight: 400;
}

.ap-product-facts dd,
.ap-product-specs dd {
  margin: 0;
  color: #172033;
}

.ap-product-specs--short {
  margin-top: 18px;
}

.ap-product-specs--short h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.ap-product-specs--short dl {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.ap-product-buybox {
  position: sticky;
  top: 92px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .08);
}

.ap-product-price {
  margin-bottom: 16px;
}

.ap-product-price__old {
  margin-bottom: 4px;
  color: #8a93a3;
  font-size: 15px;
  text-decoration: line-through;
}

.ap-product-price__current {
  color: #172033;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.ap-product-price__current--special {
  color: #d92d20;
}

.ap-product-price__note {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
}

.ap-product-discounts {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
}

.ap-product-options {
  display: grid;
  gap: 14px;
}

.ap-product-options__heading {
  color: #172033;
  font-size: 16px;
  font-weight: 700;
}

.ap-product-options .form-group {
  margin: 0;
}

.ap-product-options .control-label {
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.ap-product-options .form-control {
  min-height: 42px;
  border-color: #d8dee8;
  border-radius: 8px;
  box-shadow: none;
}

.ap-product-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-product-choice-list .radio,
.ap-product-choice-list .checkbox {
  margin: 0;
}

.ap-product-choice-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.ap-product-choice-list input {
  margin: 0;
}

.ap-product-choice-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ap-product-choice-list em {
  color: #667085;
  font-style: normal;
}

.ap-product-qty {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
  align-items: center;
}

.ap-product-qty .control-label {
  margin: 0;
}

.ap-product-cart-button {
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #2f6fed;
  font-weight: 800;
  letter-spacing: 0;
}

.ap-product-cart-button:hover,
.ap-product-cart-button:focus {
  background: #1f5bd6;
}

.ap-product-minimum {
  margin: 0;
}

.ap-product-delivery {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
  color: #475467;
  font-size: 13px;
}

.ap-product-delivery__row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}

.ap-product-delivery .fa {
  margin-top: 2px;
  color: #2f6fed;
}

.ap-product-page__details {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.ap-product-detail-section {
  padding: 24px;
}

.ap-product-detail-section h2 {
  margin: 0 0 18px;
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.ap-product-specs--full {
  display: grid;
  gap: 22px;
}

.ap-product-specs__group h3 {
  margin: 0 0 12px;
  color: #344054;
  font-size: 17px;
  font-weight: 800;
}

.ap-product-specs--full dl {
  display: grid;
  gap: 10px;
}

.ap-product-description {
  color: #344054;
  font-size: 15px;
  line-height: 1.65;
}

.ap-product-review-form h3 {
  margin: 18px 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.ap-product-review-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ap-product-related .row-flex {
  display: flex;
  flex-wrap: wrap;
}

.ap-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 13px;
}

.ap-product-tags a {
  color: #315fd6;
}

@media (max-width: 1199px) {
  .ap-product-page__top {
    grid-template-columns: minmax(360px, 1.1fr) minmax(250px, .9fr);
  }

  .ap-product-buybox {
    grid-column: 2;
    position: sticky;
  }
}

@media (max-width: 991px) {
  .ap-product-page__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ap-product-buybox {
    position: static;
    grid-column: auto;
  }

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

  .ap-product-gallery__main {
    order: 1;
    min-height: 420px;
  }

  .ap-product-gallery__zoom {
    min-height: 420px;
  }

  .ap-product-gallery__thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ap-product-gallery__thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 767px) {
  .ap-product-page {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }

  .ap-product-page__breadcrumbs .breadcrumb {
    margin: 8px 0 12px;
    white-space: nowrap;
    overflow-x: auto;
  }

  .ap-product-gallery__main,
  .ap-product-gallery__zoom,
  .ap-product-gallery__empty {
    min-height: 320px;
    max-width: 100%;
  }

  .ap-product-gallery__image {
    padding: 14px;
    max-height: 320px;
  }

  .ap-product-page__info,
  .ap-product-buybox,
  .ap-product-detail-section {
    border-radius: 8px;
    padding: 16px;
  }

  .ap-product-title {
    font-size: 22px;
  }

  .ap-product-price__current {
    font-size: 28px;
  }

  .ap-product-facts div,
  .ap-product-specs dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ap-product-info-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ap-product-link-button {
    justify-content: center;
  }

  .ap-product-choice-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ap-product-qty {
    grid-template-columns: 1fr 76px;
  }

  .ap-product-detail-section h2 {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .ap-product-page.container {
    width: 100%;
    max-width: 100%;
  }

  .ap-product-info-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .ap-product-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ap-product-gallery__main,
  .ap-product-gallery__zoom,
  .ap-product-gallery__empty {
    min-height: 284px;
  }

  .ap-product-gallery__thumb {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }

  .ap-product-info-actions {
    grid-template-columns: 1fr;
  }

  .ap-product-cart-button {
    height: 50px;
  }
}
