/* Product Page Design — Classic / Link / Showcase
   Scoped under .ppd-classic, .ppd-link, .ppd-showcase. Commerce partials stay shared. */

.ppd-preview-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  background: #0b1f4d;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.ppd-preview-banner a {
  color: #e7cfa3;
  font-weight: 600;
  text-decoration: underline;
}

.ppd-classic.product-single,
.ppd-link.product-single,
.ppd-showcase.product-single {
  padding-top: 28px;
  padding-bottom: 48px;
}

.ppd-classic .product-single-gallery figure,
.ppd-classic .product-single-gallery .thumbnail-img {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f5;
}

.ppd-classic .product-single-details .product-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ppd-classic .product-single-details .product-price {
  font-size: 1.5rem;
  gap: 10px;
  margin-block: 12px 16px;
}

.ppd-classic .product-single-details .btn.btn-primary {
  min-height: 48px;
  padding-inline: 22px;
  font-weight: 600;
  border-radius: 12px;
}

.ppd-classic .product-single-details .form-radio-label {
  border-radius: 999px;
  padding: 8px 14px;
}

.ppd-classic .product-single-tab {
  padding-top: 36px;
}

.ppd-classic .product-single-tab .nav-tabs {
  border: 0;
  gap: 8px;
}

.ppd-classic .product-single-tab .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #f4f4f5;
  color: inherit;
}

.ppd-classic .product-single-tab .nav-link.active {
  background: var(--color-primary, #0b1f4d);
  color: #fff;
}

.ppd-classic .pt-100 {
  padding-top: 40px;
}

/* Classic — gallery beside a sticky purchase card */
.ppd-classic .ppd-classic-stage {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .ppd-classic .ppd-classic-info {
    position: sticky;
    top: 24px;
  }
}

.ppd-classic .product-single-details {
  padding: 8px 4px 8px 8px;
}

html[dir="rtl"] .ppd-classic .product-single-details {
  padding: 8px 8px 8px 4px;
}

/* Shared chrome for Link + Showcase.
   The store header is position:absolute (.header-mt-fix) or position:fixed
   (.header-fixed). Classic clears it with .page-title-area.header-next
   (theme margin-top and/or the banner’s own padding). That block must stay
   in the flow. Hiding it pulls the breadcrumb and product up into the nav. */

.ppd-link.product-single,
.ppd-showcase.product-single {
  padding-top: 8px;
}

.ppd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--storefront-text-muted, var(--storefront-text-body));
}

.ppd-crumb a {
  color: inherit;
  text-decoration: none;
}

.ppd-crumb a:hover {
  color: var(--storefront-text-link-hover, var(--color-primary));
}

.ppd-crumb__sep::before {
  content: "›";
}

html[dir="rtl"] .ppd-crumb__sep::before {
  content: "‹";
}

.ppd-crumb__current {
  color: var(--storefront-text-heading);
  font-weight: 600;
}

.ppd-kicker {
  margin: 0 0 4px;
  color: var(--storefront-text-product-category, var(--storefront-text-muted));
  font-size: 14px;
}

.ppd-link .product-single-default .product-single-gallery,
.ppd-showcase .product-single-default .product-single-gallery {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 0;
}

.ppd-link .product-single-default .product-single-slider2,
.ppd-showcase .product-single-default .product-single-slider2,
.ppd-link .product-single-default .slider-thumbnails2,
.ppd-showcase .product-single-default .slider-thumbnails2 {
  display: block;
  width: 100%;
  flex: none;
}

.ppd-link .product-single-gallery .product-single-slider2,
.ppd-showcase .product-single-gallery .product-single-slider2 {
  order: -1;
}

.ppd-link .slider-thumbnails2 .slick-slide,
.ppd-showcase .slider-thumbnails2 .slick-slide {
  height: auto;
}

.ppd-link .product-single-gallery .thumbnail-img,
.ppd-showcase .product-single-gallery .thumbnail-img {
  margin-bottom: 0;
  cursor: pointer;
}

.ppd-link .product-single-slider2 .slick-dots,
.ppd-showcase .product-single-slider2 .slick-dots {
  display: none !important;
}

.ppd-link .product-single-details .product-text,
.ppd-showcase .product-single-details .product-text {
  color: var(--storefront-text-body);
  line-height: 1.6;
}

.ppd-buy-ready .product-action > .d-flex .btn-icon-group {
  display: none;
}

.ppd-link .ppd-buy-row,
.ppd-showcase .ppd-buy-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.ppd-link .ppd-buy-row {
  grid-template-columns: 1fr 1fr;
}

.ppd-showcase .ppd-buy-stack {
  grid-template-columns: 1fr;
}

.ppd-link .ppd-buy-row .btn.btn-primary,
.ppd-showcase .ppd-buy-stack .btn.btn-primary,
.ppd-link .ppd-buy-row .add-to-wish,
.ppd-link .ppd-buy-row .remove-wish,
.ppd-showcase .ppd-buy-stack .add-to-wish,
.ppd-showcase .ppd-buy-stack .remove-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
}

/* Link — photo left, purchase column right. Colors come from theme tokens. */
.ppd-link {
  background: transparent;
  color: var(--storefront-text-body);
}

.ppd-link .product-single-slider2 figure,
.ppd-link .product-single-slider2 .lazy-container {
  border: 0;
  border-radius: 12px;
  background: var(--storefront-surface-soft, var(--storefront-surface));
  overflow: hidden;
}

.ppd-link .product-single-gallery .thumbnail-img {
  border: 1px solid var(--storefront-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--storefront-surface);
}

.ppd-link .slider-thumbnails2 .slick-current .thumbnail-img {
  border-color: var(--storefront-action-bg, var(--color-primary));
  box-shadow: 0 0 0 1px var(--storefront-action-bg, var(--color-primary));
}

.ppd-link .product-single-details {
  padding-top: 4px;
}

.ppd-link .product-single-details .product-title {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--storefront-text-heading);
}

.ppd-link .product-single-details .product-title .label {
  display: none;
}

.ppd-link .product-single-details .product-price {
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 18px;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--storefront-text-price-current, var(--color-primary));
}

.ppd-link .product-single-details .product-price .new-price,
.ppd-link .product-single-details .product-price .new-price-currency {
  color: var(--storefront-text-price-current, var(--color-primary));
  font-weight: 700;
}

.ppd-link .product-single-details .product-price .old-price,
.ppd-link .product-single-details .product-price .old-price-area {
  color: var(--storefront-text-price-previous);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: line-through;
}

.ppd-link .product-single-details .product-price .discountoff {
  color: var(--storefront-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
}

.ppd-link .stock-status {
  margin-inline-start: auto;
}

.ppd-link .stock-status .badge {
  background: transparent !important;
  color: var(--storefront-text-muted) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
}

.ppd-link .product-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ppd-link .list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--storefront-text-heading);
}

.ppd-link .form-radio-label {
  border-radius: 8px;
  border: 1px solid var(--storefront-border);
  background: var(--storefront-surface);
  color: var(--storefront-text-body);
  min-width: 36px;
  min-height: 32px;
  padding: 6px 10px;
}

.ppd-link .input-radio:checked + .form-radio-label {
  border-color: var(--storefront-action-bg, var(--color-primary));
  box-shadow: 0 0 0 1px var(--storefront-action-bg, var(--color-primary));
}

.ppd-link .quantity-input {
  width: auto;
  border: 1px solid var(--storefront-border);
  border-radius: 6px;
  background: var(--storefront-surface);
}

.ppd-link .ppd-buy-row .btn.btn-primary,
.ppd-showcase .ppd-buy-stack .btn.btn-primary {
  background-color: var(--storefront-action-bg, var(--color-primary));
  border-color: var(--storefront-action-bg, var(--color-primary));
  color: var(--storefront-action-text, #fff);
}

.ppd-link .ppd-buy-row .btn.btn-primary:is(:hover, :focus),
.ppd-showcase .ppd-buy-stack .btn.btn-primary:is(:hover, :focus) {
  background-color: var(--storefront-action-hover-bg, var(--storefront-action-bg, var(--color-primary)));
  border-color: var(--storefront-action-hover-bg, var(--storefront-action-bg, var(--color-primary)));
  color: var(--storefront-action-text, #fff);
}

.ppd-link .ppd-buy-row .add-to-wish,
.ppd-link .ppd-buy-row .remove-wish {
  background: var(--storefront-surface);
  border: 1px solid var(--storefront-action-bg, var(--color-primary));
  color: var(--storefront-action-bg, var(--color-primary));
}

.ppd-link .product-single-tab {
  padding-top: 36px;
}

.ppd-link .product-single-tab .nav-tabs {
  justify-content: center;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid var(--storefront-border);
}

.ppd-link .product-single-tab .nav-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--storefront-text-muted);
  padding: 10px 2px 12px;
  font-family: inherit;
  font-weight: 600;
}

.ppd-link .product-single-tab .nav-link.active {
  color: var(--storefront-text-heading);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--storefront-action-bg, var(--color-primary));
}

.ppd-link .product-single-tab .tab-content {
  background: transparent;
  box-shadow: none;
  padding-top: 22px;
}

.ppd-link .product-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ppd-link .product-spec-table th,
.ppd-link .product-spec-table td {
  border: 1px solid var(--storefront-border);
  padding: 10px 14px;
  color: var(--storefront-text-body);
}

.ppd-link .product-spec-table th {
  width: 28%;
  background: var(--storefront-surface-soft, var(--storefront-surface));
  color: var(--storefront-text-heading);
  font-weight: 600;
}

.ppd-link .section-title .title {
  font-size: 1.35rem;
  font-weight: 700;
}

.ppd-link .product-default {
  background: var(--storefront-surface);
  border: 1px solid var(--storefront-border);
  border-radius: 10px;
  padding: 12px;
}

.ppd-link .social-link a {
  width: 34px;
  height: 34px;
}

/* Showcase — framed gallery and purchase column. Colors and fonts follow the theme. */
.ppd-showcase {
  background: transparent;
  color: var(--storefront-text-body);
}

.ppd-showcase .ppd-crumb__current {
  font-weight: 600;
}

.ppd-showcase-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px 56px;
  align-items: start;
}

.ppd-showcase .product-single-slider2 figure,
.ppd-showcase .product-single-slider2 .lazy-container {
  border: 1px solid var(--storefront-border);
  border-radius: 2px;
  background: var(--storefront-surface-soft, var(--storefront-surface));
  overflow: hidden;
  padding: 18px;
}

.ppd-showcase .product-single-gallery .thumbnail-img {
  border: 1px solid var(--storefront-border);
  border-radius: 2px;
  background: var(--storefront-surface);
  overflow: hidden;
  max-width: 84px;
}

.ppd-showcase .slider-thumbnails2 .slick-current .thumbnail-img {
  border-color: var(--storefront-action-bg, var(--color-primary));
}

.ppd-showcase .product-single-details .product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--storefront-text-heading);
}

.ppd-showcase .product-single-details .product-title .label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--storefront-text-heading);
  background: var(--storefront-surface-soft, var(--storefront-surface));
}

.ppd-showcase .product-single-details .product-price {
  margin: 8px 0 18px;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--storefront-text-price-current, var(--color-primary));
}

.ppd-showcase .product-single-details .product-price .new-price,
.ppd-showcase .product-single-details .product-price .new-price-currency {
  color: var(--storefront-text-price-current, var(--color-primary));
}

.ppd-showcase .product-single-details .product-price .old-price,
.ppd-showcase .product-single-details .product-price .old-price-area {
  font-size: 1rem;
  color: var(--storefront-text-price-previous);
}

.ppd-showcase .rating-wrapper,
.ppd-showcase .stock-status .badge {
  font-size: 14px;
}

.ppd-showcase .stock-status .badge {
  background: transparent !important;
  color: var(--storefront-text-muted) !important;
  font-weight: 500;
}

.ppd-showcase .product-action {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ppd-showcase .quantity-input {
  width: auto;
  border: 1px solid var(--storefront-border);
  border-radius: 2px;
  background: var(--storefront-surface);
}

.ppd-showcase .ppd-buy-stack .btn.btn-primary {
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.ppd-showcase .ppd-buy-stack .add-to-wish,
.ppd-showcase .ppd-buy-stack .remove-wish {
  background: transparent;
  border: 1px solid var(--storefront-action-bg, var(--color-primary));
  color: var(--storefront-action-bg, var(--color-primary));
  border-radius: 2px;
}

.ppd-showcase .product-single-tab {
  padding-top: 18px;
}

.ppd-showcase .product-single-tab .nav-tabs {
  gap: 22px;
  border: 0;
  border-bottom: 1px solid var(--storefront-border);
}

.ppd-showcase .product-single-tab .nav-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--storefront-text-muted);
  padding: 8px 0 12px;
  font-family: inherit;
  font-weight: 500;
}

.ppd-showcase .product-single-tab .nav-link.active {
  color: var(--storefront-text-heading);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--storefront-action-bg, var(--color-primary));
}

.ppd-showcase .product-single-tab .tab-content,
.ppd-showcase .tab-description .content {
  background: transparent;
  box-shadow: none;
  color: var(--storefront-text-body);
  font-size: 15px;
  line-height: 1.7;
}

.ppd-showcase .product-single-tab .tab-content {
  padding-top: 16px;
}

.ppd-showcase .pt-100 {
  padding-top: 56px;
}

.ppd-showcase .section-title .title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--storefront-text-section-title, var(--storefront-text-heading));
}

.ppd-showcase .section-title .btn {
  background: transparent;
  color: var(--storefront-action-bg, var(--color-primary));
  border: 1px solid var(--storefront-action-bg, var(--color-primary));
  border-radius: 2px;
}

.ppd-showcase .product-default {
  background: transparent;
  text-align: start;
}

.ppd-showcase .product-default .product-details,
.ppd-showcase .product-default .product-title,
.ppd-showcase .product-default .product-price {
  text-align: start;
  justify-content: flex-start;
}

.ppd-showcase .product-default .product-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--storefront-text-product-title, var(--storefront-text-heading));
}

.ppd-showcase .product-default figure {
  background: var(--storefront-surface-soft, var(--storefront-surface));
  border: 1px solid var(--storefront-border);
}

@media (max-width: 991.98px) {
  .ppd-classic.product-single,
  .ppd-link.product-single,
  .ppd-showcase.product-single {
    padding-top: 12px;
  }

  .ppd-showcase-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ppd-link .ppd-buy-row {
    grid-template-columns: 1fr;
  }

  .ppd-link .product-single-tab .nav-tabs,
  .ppd-showcase .product-single-tab .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }
}
