/* Product detail page — new design */

.page.nd-product-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.nd-product-detail-legacy {
  width: 100%;
}

.nd-product-detail .main-page {
  width: 100%;
  max-width: none;
  padding: 0;
}

.nd-product-detail .car-lists.productlisting {
  margin: 0;
  padding: 0;
}

.nd-product-detail .car-lists > .col-md-12 {
  padding: 0;
  max-width: 100%;
}

.nd-product-detail .red1 {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--radius, 12px);
  background: rgba(15, 59, 120, 0.06);
}

.nd-product-detail .prod-detail {
  background: var(--white);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  padding: 24px;
  margin-bottom: 32px;
}

.nd-product-detail .prod-detail .prod-header {
  display: none !important;
}

.nd-product-detail .prod-detail .childparent-arrow,
.nd-product-detail .prod-detail .minimize_block {
  display: none !important;
}

.nd-product-detail .prod-detail .row > .col-lg-5,
.nd-product-detail .prod-detail .row > .col-lg-7 {
  width: 100%;
}

@media (min-width: 992px) {
  .nd-product-detail .prod-detail [class*="minimize_block_"] > .row {
    display: grid;
    /* Image column: only as wide as needed; details take the rest */
    grid-template-columns: clamp(240px, 32%, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .nd-product-detail .prod-detail .col-lg-5,
  .nd-product-detail .prod-detail .col-lg-7 {
    width: auto;
    max-width: none;
    flex: none;
  }

  .nd-product-detail .prod-detail .col-lg-5 {
    justify-self: start;
    min-width: 0;
  }

  .nd-product-detail .prod-detail .col-lg-7 {
    min-width: 0;
  }

  .nd-product-detail .product-slider-container {
    width: 100%;
    max-width: 380px;
  }
}

.nd-product-detail .product-slider-container {
  border-radius: var(--radius, 12px);
  background: #f8fafc;
}

.nd-product-detail .product-slider-container .slider-for .slick-slide .fig,
.nd-product-detail .product-slider-container .slider-nav .fig {
  padding: 5px;
  border: 1px solid #ddd;
  margin: 5px;
  background: #fff;
}

.nd-product-detail .product-slider-container .slider-for .fig {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.nd-product-detail .product-slider-container .slider-for .carousel_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nd-product-detail .product-slider-container .slider-for img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.nd-product-detail .product-slider-container .slider-nav img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.nd-product-detail input.width50px,
.nd-product-detail input.quantity.width50px {
  width: 50px !important;
  min-width: 50px;
  max-width: 50px;
  box-sizing: border-box;
  padding: 4px 6px;
  text-align: center;
}

.nd-product-detail .prod-descp p span.position-relative {
  display: inline-block;
  vertical-align: middle;
}

.nd-product-detail .prod-descp .ele_name {
  color: var(--blue-950);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.nd-product-detail .displaynon {
  display: none !important;
}

.nd-product-detail .quantity_err.blink_error:empty {
  display: none !important;
}

.nd-product-detail .prod-descp p {
  margin: 0 0 12px;
  color: var(--text, #1f2937);
  font-size: 14px;
  line-height: 1.55;
}

.nd-product-detail .prod-descp p span strong {
  color: var(--blue-800);
  font-weight: 800;
}

.nd-product-detail .prod-descp .user_comment {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.nd-product-detail .add_crt_btn.actn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--orange, #f97316) !important;
  color: var(--white) !important;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.nd-product-detail .add_crt_btn.actn-btn:hover {
  filter: brightness(0.96);
}

.nd-product-detail .add_crt_btn.actn-btn:disabled,
.nd-product-detail .add_crt_btn.actn-btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.nd-product-detail .nav-prex-next.removebuttons {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.nd-product-detail .nav-prex-next .actn-btn {
  border-radius: 999px;
  font-weight: 800;
}

.nd-product-detail .related_product_block {
  margin-top: 8px;
  padding: 0;
}

.nd-product-detail .related_product_block > .col-md-12 {
  padding: 0;
  max-width: 100%;
}

.nd-related-products {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.nd-related-products__title {
  margin: 0 0 20px;
  color: var(--blue-950);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.2;
}

.nd-related-products__grid-wrap {
  width: 100%;
}

.nd-product-detail .nd-related-products #menu_product_list_block {
  float: none !important;
  width: 100%;
}

.nd-product-detail .nd-product-detail-legacy > div[style*="width:1px"] {
  display: none !important;
}

/* ND PDP — SKU / title */
.nd-product-detail .nd-pdp-sku {
  margin: 0 0 8px;
  color: var(--blue-800, #1d4ed8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-product-detail .prod-descp .ele_name {
  margin-bottom: 20px;
}

/* ND PDP — boxed "Your price" panel (brand colors) */
.nd-product-detail .nd-pdp-price {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-left: 4px solid var(--blue-950, #0f3b78);
  border-radius: 12px;
  background: rgba(15, 59, 120, 0.06);
}

.nd-product-detail .nd-pdp-price__label {
  color: var(--blue-950, #0f3b78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nd-product-detail .nd-pdp-price__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-product-detail .nd-pdp-price__value {
  color: var(--blue-950, #0f3b78);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.1;
}

.nd-product-detail .nd-pdp-price__old {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  text-decoration: line-through;
}

.nd-product-detail .nd-pdp-price__note {
  color: #64748b;
  font-size: 12px;
}

/* ND PDP — stock */
.nd-product-detail .nd-pdp-stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text, #1f2937);
  font-size: 15px;
}

.nd-product-detail .nd-pdp-stock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  flex: 0 0 auto;
}

.nd-product-detail .nd-pdp-stock__label {
  color: #15803d;
}

/* ND PDP — purchase (qty + add to cart on one row) */
.nd-product-detail .nd-pdp-purchase {
  margin: 0 0 20px;
}

.nd-product-detail .nd-pdp-purchase__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.nd-product-detail .nd-pdp-qty,
.nd-checkout .nd-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.nd-checkout .nd-cart-qty {
  margin-bottom: 14px;
}

.nd-product-detail .nd-pdp-qty__btn,
.nd-checkout .nd-cart-qty__btn {
  width: 42px;
  height: 46px;
  border: 0;
  background: #f8fafc;
  color: var(--blue-950, #0f3b78);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.nd-product-detail .nd-pdp-qty__btn:hover,
.nd-checkout .nd-cart-qty__btn:hover {
  background: #eef2f7;
}

.nd-product-detail .nd-pdp-qty__input,
.nd-checkout .nd-cart-qty__input {
  width: 56px !important;
  min-width: 56px;
  max-width: 56px;
  height: 46px;
  margin: 0;
  border: 0 !important;
  border-left: 1px solid var(--border, #e5e7eb) !important;
  border-right: 1px solid var(--border, #e5e7eb) !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 700;
}

.nd-product-detail .nd-pdp-addcart.add_crt_btn.actn-btn {
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 420px;
  min-height: 46px;
  background: var(--yellow, #f5c518) !important;
  color: var(--blue-950, #0f3b78) !important;
  border-radius: 12px !important;
}

.nd-product-detail .nd-pdp-fulfillment-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 18px !important;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.nd-product-detail .nd-pdp-fulfillment-note__icon {
  flex: 0 0 auto;
  font-weight: 900;
}

/* ND PDP — specs table (Dimensions / Gross weight) */
.nd-product-detail .nd-pdp-specs {
  margin: 8px 0 4px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.nd-product-detail .nd-pdp-specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nd-product-detail .nd-pdp-specs__label {
  color: #64748b;
  font-size: 14px;
}

.nd-product-detail .nd-pdp-specs__value {
  color: var(--blue-950, #0f3b78);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* ND PDP — bottom "Product information" section */
.nd-product-detail .nd-pdp-info {
  margin-top: 24px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
}

.nd-product-detail .nd-pdp-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.nd-product-detail .nd-pdp-info__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.nd-product-detail .nd-pdp-info__kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-800, #1d4ed8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-product-detail .nd-pdp-info__heading {
  margin: 0 0 16px;
  color: var(--blue-950, #0f3b78);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}

.nd-product-detail .nd-pdp-taxonomy {
  margin: 0;
}

.nd-product-detail .nd-pdp-taxonomy__row {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nd-product-detail .nd-pdp-taxonomy__row:last-child {
  border-bottom: 0;
}

.nd-product-detail .nd-pdp-taxonomy dt {
  flex: 0 0 auto;
  color: var(--blue-950, #0f3b78);
  font-weight: 700;
  font-size: 14px;
}

.nd-product-detail .nd-pdp-taxonomy dd {
  margin: 0;
  color: var(--text, #1f2937);
  font-size: 14px;
}

.nd-product-detail .nd-pdp-info__right {
  min-width: 0;
}

.nd-product-detail .nd-pdp-info__subheading {
  margin: 18px 0 8px;
  color: var(--blue-950, #0f3b78);
  font-size: 16px;
  font-weight: 800;
}

.nd-product-detail .nd-pdp-info__desc {
  color: var(--text, #1f2937);
  font-size: 15px;
  line-height: 1.65;
}

.nd-product-detail .nd-pdp-info__desc + .nd-pdp-info__desc {
  margin-top: 12px;
}

.nd-product-detail .nd-pdp-info__extra {
  margin-top: 16px;
}

.nd-product-detail .nd-pdp-info__attr {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nd-product-detail .nd-pdp-info__attr-label {
  color: var(--blue-950, #0f3b78);
  font-weight: 700;
  font-size: 14px;
}

.nd-product-detail .nd-pdp-info__attr-value {
  color: var(--text, #1f2937);
  font-size: 14px;
}

@media (max-width: 991px) {
  .nd-product-detail .nd-pdp-info__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .page.nd-product-detail {
    padding: 20px 14px 36px;
  }

  .nd-product-detail .prod-detail {
    padding: 16px;
  }

  .nd-product-detail .nd-pdp-info {
    padding: 18px;
  }

  .nd-product-detail .nd-pdp-addcart.add_crt_btn.actn-btn {
    flex: 1 1 100%;
    max-width: none;
  }

  .nd-related-products {
    margin-top: 28px;
    padding-top: 22px;
  }
}
