/* Dealbox product detail v1 – Shoptet Step */

body.type-product .p-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: start;
  gap: 42px;
}

body.type-product .p-image-wrapper,
body.type-product .p-data-wrapper {
  width: auto;
  max-width: none;
  float: none;
  margin: 0;
  padding: 0;
}

body.type-product .p-image-wrapper {
  min-width: 0;
}

body.type-product .p-image {
  overflow: hidden;
  border: 1px solid #e3e6e8;
  border-radius: 18px;
  background: #f7f8f9;
  box-shadow: 0 14px 34px rgba(15, 20, 22, .07);
}

body.type-product .p-image #wrap,
body.type-product .p-image .p-main-image {
  display: block;
  width: 100%;
}

body.type-product .p-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

body.type-product .p-thumbnails-wrapper {
  margin-top: 14px;
}

body.type-product .p-thumbnails a {
  overflow: hidden;
  border: 1px solid #e2e5e7;
  border-radius: 10px;
  background: #fff;
}

body.type-product .p-thumbnails a:hover,
body.type-product .p-thumbnails .active {
  border-color: #ef3434;
}

body.type-product .p-data-wrapper {
  padding-top: 2px;
}

body.type-product .p-detail-inner-header h1 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.03;
  letter-spacing: .4px;
  color: #111416;
}

body.type-product .stars-wrapper {
  margin-bottom: 4px;
  color: #6e7780;
}

body.type-product .p-short-description {
  margin: 0 0 20px;
  color: #3e4852;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
}

body.type-product .p-short-description strong {
  color: #15191c;
  font-weight: 700;
}

body.type-product .dbx-product-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

body.type-product .dbx-product-specs--1 {
  grid-template-columns: minmax(0, 1fr);
}

body.type-product .dbx-product-specs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.type-product .dbx-product-specs--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.type-product .dbx-product-spec {
  min-width: 0;
  min-height: 108px;
  padding: 15px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dde2e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 20, 22, .045);
}

body.type-product .dbx-product-spec__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fdecec;
  color: #ef3434;
}

body.type-product .dbx-product-spec__icon svg {
  width: 22px;
  height: 22px;
}

body.type-product .dbx-product-spec__text {
  min-width: 0;
  display: block;
}

body.type-product .dbx-product-spec small {
  display: block;
  margin-bottom: 3px;
  color: #727b84;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35px;
}

body.type-product .dbx-product-spec strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111416;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
}

body.type-product .p-to-cart-block {
  margin-top: 18px;
  padding: 26px 28px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid #e2e5e7;
  border-radius: 18px;
  background: #f8f9fa;
  box-shadow: 0 14px 34px rgba(15, 20, 22, .06);
}

body.type-product .p-final-price-wrapper {
  margin: 0;
}

body.type-product .p-final-price-wrapper .price-final,
body.type-product .p-final-price-wrapper strong {
  color: #ef3434;
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
}

body.type-product .p-final-price-wrapper .price-additional {
  display: block;
  margin-top: 7px;
  color: #77808a;
  font-size: 12px;
}

body.type-product .dbx-purchase-status {
  margin-top: 20px;
  color: #159447;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

body.type-product .dbx-purchase-status .availability-label {
  color: inherit !important;
}

body.type-product .dbx-purchase-status .availability-label::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: #13aa52;
  box-shadow: 0 0 0 4px rgba(19, 170, 82, .10);
}

body.type-product .dbx-purchase-delivery {
  width: 100%;
  margin: 6px 0 20px;
  border: 0;
}

body.type-product .dbx-purchase-delivery th,
body.type-product .dbx-purchase-delivery td {
  padding: 0;
  border: 0;
  background: transparent;
  color: #606a74;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
}

body.type-product .dbx-purchase-delivery .delivery-time-label {
  margin-right: 4px;
}

body.type-product .dbx-purchase-delivery .delivery-time {
  display: inline;
}

body.type-product .dbx-purchase-delivery .shipping-options {
  display: inline-block;
  margin-left: 10px;
  color: #171a1d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.type-product .p-add-to-cart-wrapper {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #dde2e6;
}

body.type-product .add-to-cart {
  display: grid;
  grid-template-columns: 132px minmax(190px, 1fr);
  align-items: stretch;
  gap: 14px;
}

body.type-product .add-to-cart .quantity {
  width: 132px;
  min-height: 58px;
  border: 1px solid #d6dce1;
  border-radius: 11px;
  background: #fff;
}

body.type-product .add-to-cart .quantity input,
body.type-product .add-to-cart .quantity button {
  min-height: 56px;
}

body.type-product .add-to-cart-button {
  min-height: 58px;
  padding: 14px 24px;
  border: 0;
  border-radius: 11px;
  background: #ef3434;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 52, 52, .24);
}

body.type-product .add-to-cart-button:hover {
  background: #d92727;
  transform: translateY(-1px);
}

body.type-product .dbx-purchase-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dde2e6;
}

body.type-product .dbx-purchase-trust__item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5660;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

body.type-product .dbx-purchase-trust__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171a1d;
}

body.type-product .dbx-purchase-trust__icon svg {
  width: 26px;
  height: 26px;
}

body.type-product .p-variants-block.dbx-variants-empty {
  display: none;
}

body.type-product .p-basic-info-block.dbx-product-meta {
  margin: 13px 0 0;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  color: #69737d;
  font-size: 12px;
  line-height: 1.4;
}

body.type-product .p-basic-info-block.dbx-product-meta .block {
  width: auto;
  margin: 0;
  padding: 0 14px;
  border: 0;
}

body.type-product .p-basic-info-block.dbx-product-meta .block:first-child {
  padding-left: 0;
}

body.type-product .p-basic-info-block.dbx-product-meta .block + .block {
  border-left: 1px solid #d7dce0;
}

body.type-product .p-basic-info-block.dbx-product-meta a {
  color: #343b41;
  font-weight: 700;
}

body.type-product .p-param-block {
  margin-top: 14px;
}

body.type-product .detail-parameters.second {
  width: 100%;
  margin: 0;
  border-top: 1px solid #eceeef;
}

body.type-product .detail-parameters.second tr {
  border-bottom: 1px solid #eceeef;
}

body.type-product .detail-parameters.second th,
body.type-product .detail-parameters.second td {
  padding: 8px 6px;
  font-size: 13px;
  line-height: 1.3;
}

body.type-product.dbx-product-enhanced .detail-parameters.second tr.dbx-param-promoted {
  display: none;
}

body.type-product.dbx-purchase-enhanced .benefitBanner.position--benefitProduct {
  display: none;
}

body.type-product:not(.dbx-purchase-enhanced) .benefitBanner.position--benefitProduct {
  margin: 34px 0 26px;
  padding: 20px 22px;
  border: 1px solid #e1e5e8;
  border-radius: 16px;
  background: #f7f8f9;
  box-shadow: none;
}

body.type-product .benefitBanner.position--benefitProduct .benefitBanner__item {
  min-width: 0;
}

body.type-product .shp-tabs-holder ul.shp-tabs {
  border-bottom: 1px solid #e0e4e7;
}

body.type-product .shp-tabs-holder ul.shp-tabs li.active a {
  color: #ef3434;
  border-bottom-color: #ef3434;
}

@media (max-width: 1199px) {
  body.type-product .p-detail-inner {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr);
    gap: 28px;
  }

  body.type-product .dbx-product-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.type-product .dbx-product-specs--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  body.type-product .dbx-product-spec {
    min-height: 90px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  body.type-product .p-to-cart-block {
    padding: 22px;
  }

  body.type-product .p-final-price-wrapper .price-final,
  body.type-product .p-final-price-wrapper strong {
    font-size: 44px;
  }
}

@media (max-width: 991px) {
  body.type-product .p-detail-inner {
    display: flex;
    flex-direction: column;
  }

  body.type-product .p-image-wrapper {
    display: contents;
  }

  body.type-product .p-image-wrapper > * {
    width: 100%;
    order: 1;
  }

  body.type-product .p-data-wrapper {
    display: contents;
  }

  body.type-product .p-data-wrapper > * {
    width: 100%;
    order: 6;
  }

  body.type-product .p-detail-inner-header {
    order: 2;
  }

  body.type-product .p-short-description {
    order: 3;
  }

  body.type-product #product-detail-form {
    width: 100%;
    order: 4;
  }

  body.type-product .dbx-product-specs {
    order: 5;
  }

  body.type-product .p-image-wrapper,
  body.type-product .p-data-wrapper {
    width: 100%;
  }

  body.type-product .p-image {
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(15, 20, 22, .06);
  }

  body.type-product .p-data-wrapper {
    padding-top: 22px;
  }

  body.type-product .p-detail-inner-header h1 {
    margin-top: 8px;
    font-size: 32px;
    line-height: 1.04;
  }

  body.type-product .p-short-description {
    font-size: 15px;
    line-height: 1.55;
  }

  body.type-product .dbx-product-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
  }

  body.type-product .dbx-product-specs--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  body.type-product .dbx-product-spec {
    min-height: 112px;
    padding: 14px 12px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  body.type-product .dbx-product-spec__icon {
    width: 34px;
    height: 34px;
  }

  body.type-product .dbx-product-spec strong {
    font-size: 15px;
  }

  body.type-product .p-to-cart-block {
    margin-top: 14px;
    padding: 20px 16px 16px;
    border-radius: 14px;
  }

  body.type-product .p-final-price-wrapper .price-final,
  body.type-product .p-final-price-wrapper strong {
    font-size: 40px;
  }

  body.type-product .dbx-purchase-status {
    margin-top: 16px;
    font-size: 16px;
  }

  body.type-product .dbx-purchase-delivery {
    margin-bottom: 16px;
  }

  body.type-product .add-to-cart {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.type-product .add-to-cart .quantity {
    width: 100%;
  }

  body.type-product .add-to-cart-button {
    width: 100%;
  }

  body.type-product .dbx-purchase-trust {
    gap: 8px;
  }

  body.type-product .dbx-purchase-trust__item {
    align-items: flex-start;
    gap: 5px;
    font-size: 10px;
  }

  body.type-product .dbx-purchase-trust__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body.type-product .dbx-purchase-trust__icon svg {
    width: 22px;
    height: 22px;
  }

  body.type-product .p-basic-info-block.dbx-product-meta {
    display: block;
    padding: 0;
  }

  body.type-product .p-basic-info-block.dbx-product-meta .block {
    display: inline-block;
    padding: 0 10px 0 0;
  }

  body.type-product .p-basic-info-block.dbx-product-meta .block + .block {
    padding-left: 10px;
  }

  body.type-product .benefitBanner.position--benefitProduct {
    margin-top: 26px;
    padding: 16px;
  }
}

@media (max-width: 380px) {
  body.type-product .dbx-product-specs {
    grid-template-columns: 1fr;
  }

  body.type-product .dbx-product-spec {
    min-height: 76px;
    flex-direction: row;
    align-items: center;
  }

  body.type-product .dbx-purchase-trust {
    grid-template-columns: 1fr;
  }
}
