/* MatricaDiszkont – termékoldal (Beauty-szerű tipográfia + galéria) */

.md-pd-page,
.j2store-single-product.detail.bs4 {
  --md-pd-font: 'Metropolis', system-ui, sans-serif;
  --md-pd-text: #2d3436;
  --md-pd-title: #6b7585;
  --md-pd-title-strong: #3d4654;
  --md-pd-muted: #556575;
  --md-pd-strike: #7a8796;
  --md-pd-accent: #4a6d92;
  --md-pd-accent-soft: #e8f0f7;
  --md-pd-surface: #f4f6f8;
  --md-pd-border: rgba(15, 23, 42, 0.1);
  --md-pd-radius: 6px;
  --md-pd-img-ratio: 3 / 4;
  --md-pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--md-pd-font);
  color: var(--md-pd-text);
}

/* Vissza gomb */
.j2store-single-product.detail .j2store-view-back-button {
  margin-bottom: 16px;
}

.j2store-single-product.detail .j2store-product-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fff;
  color: var(--md-pd-muted);
  font-family: var(--md-pd-font);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
}

.j2store-single-product.detail .j2store-product-back-btn:hover {
  color: var(--md-pd-accent);
  border-color: rgba(74, 109, 146, 0.3);
  background: #fff;
}

/* ===== Cím – nyomtatott nagybetű ===== */
.j2store-single-product.detail .product-title {
  margin: 0 0 14px;
  font-family: var(--md-pd-font);
  font-size: clamp(17px, 1.9vw, 24px) !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--md-pd-title-strong) !important;
  text-transform: uppercase;
}

/* Textarea .j2store-single-product-view 30px felülírása */
body.j2store-single-product-view .j2store-single-product.detail .product-title,
body.j2store-single-product-view #sp-main-body .j2store-single-product.detail h2.product-title,
body.j2store-single-product-view .sp-column .j2store-single-product.detail .product-title {
  font-size: clamp(17px, 1.9vw, 24px) !important;
  color: var(--md-pd-title-strong) !important;
}

/* ===== Árak ===== */
.j2store-single-product.detail .product-price-container .sale-price,
.j2store-single-product.detail .product-price-container .sale-price * {
  color: var(--md-pd-muted) !important;
  font-family: var(--md-pd-font);
  font-weight: 500;
}

.j2store-single-product.detail .product-price-container .base-price.strike,
.j2store-single-product.detail .product-price-container .base-price.strike * {
  color: var(--md-pd-strike) !important;
}

#sp-main-body .j2store-single-product.detail h2.product-title,
#sp-main-body .j2store-single-product.detail .product-title {
  color: var(--md-pd-title-strong) !important;
  font-weight: 600 !important;
}

#sp-main-body .j2store-single-product.detail .product-price-container .sale-price,
#sp-main-body .j2store-single-product.detail .product-price-container .base-price.strike {
  color: var(--md-pd-title) !important;
}

/* ===== Jobb oldali vásárlói blokk ===== */
.j2store-single-product.detail [class$='-product'] > .row {
  align-items: flex-start !important;
}

.j2store-single-product.detail [class$='-product'] > .row > .col-sm-6 {
  align-self: flex-start;
}

.j2store-single-product.detail [class$='-product'] > .row > .col-sm-6:last-child {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.j2store-single-product.detail .price-sku-brand-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}

.j2store-single-product.detail .price-sku-brand-container > .col-sm-6 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding: 0;
}

.j2store-single-product.detail .product-price-container {
  margin: 0;
}

.j2store-single-product.detail .product-price-container .base-price.strike {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
  opacity: 0.9;
}

.j2store-single-product.detail .product-price-container .sale-price {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.j2store-single-product.detail .discount-percentage {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--md-pd-accent-soft);
  color: var(--md-pd-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(74, 109, 146, 0.18);
}

.j2store-single-product.detail .product-sku,
.j2store-single-product.detail .manufacturer-brand,
.j2store-single-product.detail .product-stock-container,
.j2store-single-product.detail .backorder-notification {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--md-pd-muted);
}

.j2store-single-product.detail .product-sku .sku-text,
.j2store-single-product.detail .manufacturer-brand {
  color: var(--md-pd-strike);
}

.j2store-single-product.detail .product-sku .sku,
.j2store-single-product.detail .manufacturer-brand a {
  color: var(--md-pd-muted);
  text-decoration: none;
}

.j2store-single-product.detail .manufacturer-brand a:hover {
  color: var(--md-pd-accent);
  text-decoration: underline;
}

.j2store-single-product.detail .product-stock-container .instock,
.j2store-single-product.detail .product-stock-container .outofstock {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.j2store-single-product.detail .product-stock-container .instock {
  color: #4a7c59;
}

.j2store-single-product.detail .product-stock-container .outofstock {
  color: #b85c5c;
}

/* Opciók + űrlap */
.j2store-single-product.detail .j2store-addtocart-form {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.j2store-single-product.detail .options,
.j2store-single-product.detail #variable-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
  overflow: visible;
}

.j2store-single-product.detail .options .option.mb-4,
.j2store-single-product.detail #variable-options .option.mb-4 {
  margin-bottom: 0 !important;
}

.j2store-single-product.detail [id^='ChildOptions']:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.j2store-single-product.detail.md-pd-ready .j2store-addtocart-form .md-pd-reveal,
.j2store-single-product.detail.md-pd-ready .j2store-addtocart-form .option {
  opacity: 1;
  transform: none;
}

.j2store-single-product.detail .options br {
  display: none;
}

.j2store-single-product.detail .options .option {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fafbfc;
  overflow: visible;
}

.j2store-single-product.detail .options .option.is-dropdown-open,
.j2store-single-product.detail .options .option:has(.md-pd-select.is-open),
.j2store-single-product.detail .md-pd-child-options .option.is-dropdown-open,
.j2store-single-product.detail .md-pd-child-options .option:has(.md-pd-select.is-open) {
  z-index: 120;
}

/* Gyerek-opciók (AJAX: ChildOptions → doAjaxFilter) */
.j2store-single-product.detail .md-pd-child-options,
.j2store-single-product.detail [id^='ChildOptions'] {
  margin-top: 14px;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.j2store-single-product.detail .md-pd-child-options .options,
.j2store-single-product.detail [id^='ChildOptions'] .options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  overflow: visible;
}

.j2store-single-product.detail .md-pd-child-options .option,
.j2store-single-product.detail [id^='ChildOptions'] .option {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fafbfc;
  overflow: visible;
}

.j2store-single-product.detail .md-pd-child-options .option > b,
.j2store-single-product.detail [id^='ChildOptions'] .option > b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--md-pd-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--md-pd-title);
}

.j2store-single-product.detail .md-pd-child-options br,
.j2store-single-product.detail [id^='ChildOptions'] br {
  display: none;
}

.j2store-single-product.detail .options .option > b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--md-pd-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--md-pd-title);
}

.j2store-single-product.detail .options .required {
  color: #c45c5c;
  margin-right: 3px;
}

.j2store-single-product.detail .options select:not(.md-pd-select__native) {
  width: 100%;
  padding: 11px 38px 11px 12px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fff;
  font-family: var(--md-pd-font);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
}

.j2store-single-product.detail .options input[type='text'],
.j2store-single-product.detail .options input[type='number'],
.j2store-single-product.detail .options textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fff;
  font-family: var(--md-pd-font);
  font-size: 13px;
  line-height: 1.4;
  color: var(--md-pd-text);
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.j2store-single-product.detail .options textarea {
  min-height: 96px;
  resize: vertical;
}

.j2store-single-product.detail .options input:focus,
.j2store-single-product.detail .options textarea:focus {
  border-color: rgba(74, 109, 146, 0.45);
  box-shadow: 0 0 0 3px rgba(74, 109, 146, 0.12);
}

/* Custom select – Beauty dropdown */
.j2store-single-product.detail .md-pd-select {
  position: relative;
  width: 100%;
}

.j2store-single-product.detail .md-pd-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.j2store-single-product.detail .md-pd-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fff;
  font-family: var(--md-pd-font);
  font-size: 13px;
  line-height: 1.4;
  color: var(--md-pd-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.j2store-single-product.detail .md-pd-select__trigger:hover {
  border-color: rgba(74, 109, 146, 0.28);
}

.j2store-single-product.detail .md-pd-select.is-open .md-pd-select__trigger,
.j2store-single-product.detail .md-pd-select__trigger:focus-visible {
  border-color: rgba(74, 109, 146, 0.45);
  box-shadow: 0 0 0 3px rgba(74, 109, 146, 0.12);
  outline: none;
}

.j2store-single-product.detail .md-pd-select__trigger.is-placeholder .md-pd-select__label {
  color: var(--md-pd-strike);
}

.j2store-single-product.detail .md-pd-select__value {
  flex: 1;
  min-width: 0;
}

.j2store-single-product.detail .md-pd-select__parts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.j2store-single-product.detail .md-pd-select__label {
  display: block;
  color: var(--md-pd-text);
  word-break: break-word;
}

.j2store-single-product.detail .md-pd-select__price {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--md-pd-accent);
  letter-spacing: 0.02em;
}

.j2store-single-product.detail .md-pd-select__chevron {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--md-pd-muted);
  border-bottom: 2px solid var(--md-pd-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--md-pd-ease);
}

.j2store-single-product.detail .md-pd-select.is-open .md-pd-select__chevron {
  transform: rotate(-135deg) translateY(2px);
}

.j2store-single-product.detail .md-pd-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.3s var(--md-pd-ease),
    visibility 0.22s ease;
}

.j2store-single-product.detail .md-pd-select.is-open .md-pd-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.j2store-single-product.detail .md-pd-select__item {
  margin: 0;
  padding: 11px 12px;
  border-radius: calc(var(--md-pd-radius) - 2px);
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.28s ease, transform 0.32s var(--md-pd-ease);
  transition-delay: calc(var(--i, 0) * 0.035s);
  opacity: 0;
  transform: translateY(6px);
}

.j2store-single-product.detail .md-pd-select.is-open .md-pd-select__item {
  opacity: 1;
  transform: translateY(0);
}

.j2store-single-product.detail .md-pd-select__item:hover,
.j2store-single-product.detail .md-pd-select__item.is-selected {
  background: var(--md-pd-accent-soft);
}

.j2store-single-product.detail .md-pd-select__item.is-selected .md-pd-select__label {
  color: var(--md-pd-accent);
  font-weight: 500;
}

.j2store-single-product.detail .options label {
  font-size: 13px;
  color: var(--md-pd-text);
  line-height: 1.45;
}

/* Fájlfeltöltés – Beauty-szerű, nem zöld */
.j2store-single-product.detail .drag-zone {
  border: 1px dashed rgba(74, 109, 146, 0.28) !important;
  padding: 22px 18px !important;
  text-align: center;
  background: var(--md-pd-surface) !important;
  border-radius: var(--md-pd-radius) !important;
  margin: 10px 0 16px !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.j2store-single-product.detail .drag-zone.dragover {
  border-color: rgba(74, 109, 146, 0.5) !important;
  background: #eef2f7 !important;
}

.j2store-single-product.detail .drag-zone .fa-cloud-upload-alt {
  color: var(--md-pd-accent);
  opacity: 0.75;
}

.j2store-single-product.detail .drag-zone h4 {
  margin: 8px 0 0;
  font-family: var(--md-pd-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--md-pd-title);
}

.j2store-single-product.detail .upload-info {
  text-align: left !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  color: var(--md-pd-muted) !important;
  margin-bottom: 16px !important;
}

.j2store-single-product.detail .format-type {
  color: var(--md-pd-strike) !important;
}

.j2store-single-product.detail .upload-notice a {
  color: var(--md-pd-accent) !important;
}

.j2store-single-product.detail .options .btn-default {
  margin-top: 0 !important;
  padding: 10px 18px !important;
  border: 1px solid var(--md-pd-border) !important;
  border-radius: var(--md-pd-radius) !important;
  background: #fff !important;
  color: var(--md-pd-muted) !important;
  font-family: var(--md-pd-font);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.j2store-single-product.detail .options .btn-default:hover {
  border-color: rgba(74, 109, 146, 0.35) !important;
  color: var(--md-pd-accent) !important;
  background: #fff !important;
}

.j2store-single-product.detail .upload-progress .progress {
  height: 8px !important;
  margin: 16px 0 10px !important;
  background: #e8edf2 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.j2store-single-product.detail .upload-progress .progress-bar {
  background: linear-gradient(90deg, #4a6d92 0%, #6b8fb8 100%) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.j2store-single-product.detail .upload-status,
.j2store-single-product.detail .file-details,
.j2store-single-product.detail .file-info {
  font-size: 12px;
  color: var(--md-pd-muted);
}

/* Kosár gomb */
.j2store-single-product.detail .j2store-add-to-cart {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.j2store-single-product.detail .j2store-add-to-cart .j2store-cart-button,
.j2store-single-product.detail .j2store-add-to-cart button.j2store-cart-button {
  flex: 1;
  width: 100%;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: var(--md-pd-radius) !important;
  background: var(--md-pd-accent) !important;
  background-image: none !important;
  color: #fff !important;
  font-family: var(--md-pd-font);
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  box-shadow: 0 8px 20px rgba(74, 109, 146, 0.22) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.j2store-single-product.detail .j2store-add-to-cart .j2store-cart-button:hover,
.j2store-single-product.detail .j2store-add-to-cart button.j2store-cart-button:hover {
  background: #3d5a7a !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(74, 109, 146, 0.28) !important;
  transform: translateY(-1px);
}

.j2store-single-product.detail .product-qty .form-control,
.j2store-single-product.detail .product-qty input {
  border: 1px solid var(--md-pd-border);
  border-radius: var(--md-pd-radius);
  font-family: var(--md-pd-font);
}

/* AI designer – Beauty UI + ambient mesh / particles */
.j2store-single-product.detail .md-ai-designer {
  position: relative;
  isolation: isolate;
  margin: 12px 0 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(74, 109, 146, 0.2) !important;
  border-radius: var(--md-pd-radius) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  color: var(--md-pd-text) !important;
  box-shadow:
    0 10px 32px rgba(74, 109, 146, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65) !important;
  overflow: visible !important;
}

.j2store-single-product.detail .md-ai-designer > *:not(.md-ai-ambient) {
  position: relative;
  z-index: 1;
}

.j2store-single-product.detail .md-ai-ambient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.j2store-single-product.detail .md-ai-ambient__mesh {
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(circle at 18% 24%, rgba(74, 109, 146, 0.28), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(107, 143, 184, 0.22), transparent 38%),
    radial-gradient(circle at 64% 78%, rgba(232, 240, 247, 0.95), transparent 46%),
    radial-gradient(circle at 10% 72%, rgba(74, 109, 146, 0.16), transparent 40%),
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.75), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 246, 248, 0.88) 100%);
  animation: md-ai-mesh-flow 22s ease-in-out infinite;
  will-change: transform;
}

.j2store-single-product.detail .md-ai-ambient__mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.42) 46%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: md-ai-mesh-sheen 9s ease-in-out infinite;
  opacity: 0.55;
}

.j2store-single-product.detail .md-ai-ambient__particles {
  position: absolute;
  inset: 0;
}

.j2store-single-product.detail .md-ai-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(74, 109, 146, 0.82);
  opacity: var(--opacity);
  box-shadow: 0 0 6px rgba(74, 109, 146, 0.35);
  animation: md-ai-particle-drift var(--dur) var(--delay, 0s) ease-in-out infinite;
  will-change: transform, opacity;
}

.j2store-single-product.detail .md-ai-particle.is-ring {
  background: transparent;
  border: 1.5px solid rgba(74, 109, 146, 0.52);
  box-shadow: 0 0 8px rgba(74, 109, 146, 0.22);
}

.j2store-single-product.detail .md-ai-particle.is-glow {
  background: rgba(107, 143, 184, 0.55);
  filter: blur(1px);
  box-shadow:
    0 0 10px rgba(74, 109, 146, 0.45),
    0 0 18px rgba(107, 143, 184, 0.28);
}

@keyframes md-ai-mesh-flow {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(2.5%, -2%) scale(1.04) rotate(0.6deg);
  }
  66% {
    transform: translate(-2%, 2.5%) scale(1.03) rotate(-0.5deg);
  }
}

@keyframes md-ai-mesh-sheen {
  0%,
  42% {
    transform: translateX(-120%);
    opacity: 0;
  }
  52% {
    opacity: 0.55;
  }
  72%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes md-ai-particle-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: var(--opacity);
  }
  50% {
    transform: translate(16px, -20px) scale(1.35);
    opacity: min(0.92, calc(var(--opacity) * 1.55));
  }
}

.j2store-single-product.detail .md-ai-designer::before {
  display: none !important;
  animation: none !important;
}

.j2store-single-product.detail .md-ai-hero {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
  overflow: visible !important;
}

.j2store-single-product.detail .md-ai-hero::after {
  display: none !important;
  animation: none !important;
}

.j2store-single-product.detail .md-ai-designer h3,
.j2store-single-product.detail .md-ai-designer h3.md-ai-typing-title {
  margin: 0 0 6px !important;
  font-family: var(--md-pd-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--md-pd-title-strong) !important;
  min-height: 0 !important;
  text-shadow: 0 1px 12px rgba(74, 109, 146, 0.12);
}

.j2store-single-product.detail .md-ai-designer.is-generating .md-ai-ambient__mesh {
  animation-duration: 14s;
}

.j2store-single-product.detail .md-ai-designer.is-generating .md-ai-particle {
  animation-duration: 7s;
  box-shadow: 0 0 10px rgba(74, 109, 146, 0.5);
}

.j2store-single-product.detail .md-ai-typing-cursor {
  background: var(--md-pd-accent) !important;
}

.j2store-single-product.detail .md-ai-designer > p {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--md-pd-muted) !important;
}

.j2store-single-product.detail .md-ai-designer > p small {
  font-size: 11px !important;
  color: var(--md-pd-strike) !important;
}

.j2store-single-product.detail .md-ai-brief-shell {
  margin: 0 0 10px !important;
  padding: 12px !important;
  border-radius: var(--md-pd-radius) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(74, 109, 146, 0.14) !important;
  box-shadow: 0 6px 18px rgba(74, 109, 146, 0.06) !important;
  animation: none !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  overflow: visible !important;
}

.j2store-single-product.detail .md-ai-brief-shell::before {
  display: none !important;
  animation: none !important;
}

.j2store-single-product.detail .md-ai-brief-header {
  gap: 4px !important;
  margin: 0 0 8px !important;
}

.j2store-single-product.detail .md-ai-brief-kicker {
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: var(--md-pd-accent-soft) !important;
  color: var(--md-pd-accent) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.j2store-single-product.detail .md-ai-brief-kicker::before {
  display: none !important;
  content: none !important;
}

.j2store-single-product.detail .md-ai-brief-header h4 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  color: var(--md-pd-title-strong) !important;
}

.j2store-single-product.detail .md-ai-brief-header p {
  margin: 0 !important;
  max-width: none !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: var(--md-pd-muted) !important;
}

.j2store-single-product.detail .md-ai-brief-field {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.j2store-single-product.detail .md-ai-designer #md_ai_user_prompt {
  min-height: 96px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(74, 109, 146, 0.16) !important;
  border-radius: var(--md-pd-radius) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--md-pd-font) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--md-pd-text) !important;
  box-shadow: none !important;
  resize: vertical;
}

.j2store-single-product.detail .md-ai-designer #md_ai_user_prompt:focus {
  border-color: rgba(74, 109, 146, 0.45) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(74, 109, 146, 0.12) !important;
  outline: none !important;
}

.j2store-single-product.detail .md-ai-next-note {
  display: block !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--md-pd-strike) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.j2store-single-product.detail .md-ai-next-note::before {
  display: none !important;
  content: none !important;
}

.j2store-single-product.detail .md-ai-next-note strong {
  color: var(--md-pd-muted) !important;
  font-weight: 500 !important;
}

.j2store-single-product.detail .md-ai-style-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
}

.j2store-single-product.detail .md-ai-designer label[for='md_ai_style'] {
  display: block;
  margin: 0 !important;
  font-family: var(--md-pd-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--md-pd-title);
}

.j2store-single-product.detail .md-ai-designer label[for='md_ai_style'] strong {
  font-weight: 500;
}

.j2store-single-product.detail .md-ai-designer select#md_ai_style:not(.md-pd-select__native) {
  width: 100%;
  margin: 0 !important;
  padding: 11px 38px 11px 12px !important;
  border: 1px solid var(--md-pd-border) !important;
  border-radius: var(--md-pd-radius) !important;
  background: #fff !important;
  font-family: var(--md-pd-font) !important;
  font-size: 13px !important;
  color: var(--md-pd-text) !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.j2store-single-product.detail .md-ai-designer .md-pd-select {
  position: relative;
  z-index: 1;
}

.j2store-single-product.detail .md-ai-designer .md-pd-select.is-open {
  z-index: 200;
}

.j2store-single-product.detail .md-ai-designer #md_ai_generate_btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 180px;
  margin: 0 0 8px !important;
  padding: 11px 18px !important;
  border: 0 !important;
  border-radius: var(--md-pd-radius) !important;
  background: var(--md-pd-accent) !important;
  color: #fff !important;
  font-family: var(--md-pd-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 6px 16px rgba(74, 109, 146, 0.2) !important;
  transform: none !important;
  cursor: pointer;
}

.j2store-single-product.detail .md-ai-designer #md_ai_generate_btn:hover {
  background: #3d5a7a !important;
  transform: translateY(-1px) !important;
}

.j2store-single-product.detail .md-ai-designer #md_ai_generate_btn:disabled {
  background: #9aa8b8 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed;
}

.j2store-single-product.detail .md-ai-designer button.md-ai-generated-item {
  border-radius: var(--md-pd-radius) !important;
  border-color: var(--md-pd-border) !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.j2store-single-product.detail .md-ai-designer button.md-ai-generated-item.is-selected {
  border-color: var(--md-pd-accent) !important;
  box-shadow: 0 0 0 3px rgba(74, 109, 146, 0.12) !important;
}

.j2store-single-product.detail #md_ai_status {
  margin: 6px 0 0 !important;
  font-size: 12px !important;
  color: var(--md-pd-muted) !important;
}

.j2store-single-product.detail #md_ai_preview {
  margin: 0 !important;
}

.j2store-single-product.detail .md-ai-generated-empty {
  margin: 8px 0 0 !important;
  padding: 12px !important;
  border: 1px dashed rgba(74, 109, 146, 0.22) !important;
  border-radius: var(--md-pd-radius) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: var(--md-pd-muted) !important;
  font-size: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  .j2store-single-product.detail .md-ai-ambient__mesh,
  .j2store-single-product.detail .md-ai-ambient__mesh::after,
  .j2store-single-product.detail .md-ai-particle {
    animation: none !important;
  }
}

.j2store-single-product.detail .md-ai-preview-card,
.j2store-single-product.detail .md-ai-source-box {
  margin-top: 10px !important;
  padding: 12px !important;
  border: 1px solid var(--md-pd-border) !important;
  border-radius: var(--md-pd-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.j2store-single-product.detail .md-ai-designer button:not(#md_ai_generate_btn):not(.md-ai-generated-item):not(.md-ai-modal-select) {
  border-radius: var(--md-pd-radius) !important;
}

/* Scroll reveal animációk */
.md-pd-page.md-pd-ready .md-pd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--md-pd-ease),
    transform 0.75s var(--md-pd-ease);
  transition-delay: var(--md-pd-delay, 0s);
}

.md-pd-page.md-pd-ready .md-pd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Termékleírás */
.j2store-single-product.detail .md-pd-description-row,
.j2store-single-product.detail .md-pd-description-block,
.j2store-single-product.detail .md-pd-description {
  margin-top: 42px;
}

.j2store-single-product.detail .md-pd-description__header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--md-pd-border);
}

.j2store-single-product.detail .md-pd-description__title {
  margin: 0;
  font-family: var(--md-pd-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-pd-strike);
}

.j2store-single-product.detail .md-pd-description__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.j2store-single-product.detail .md-pd-desc-short,
.j2store-single-product.detail .md-pd-desc-long,
.j2store-single-product.detail .product-sdesc,
.j2store-single-product.detail .product-ldesc {
  font-family: var(--md-pd-font);
  font-size: 14px;
  line-height: 1.75;
  color: var(--md-pd-muted);
}

.j2store-single-product.detail .md-pd-desc-short p,
.j2store-single-product.detail .md-pd-desc-long p,
.j2store-single-product.detail .product-sdesc p,
.j2store-single-product.detail .product-ldesc p {
  margin: 0 0 12px;
}

.j2store-single-product.detail .md-pd-desc-short h1,
.j2store-single-product.detail .md-pd-desc-short h2,
.j2store-single-product.detail .md-pd-desc-short h3,
.j2store-single-product.detail .md-pd-desc-long h1,
.j2store-single-product.detail .md-pd-desc-long h2,
.j2store-single-product.detail .md-pd-desc-long h3 {
  margin: 18px 0 10px;
  font-family: var(--md-pd-font);
  font-weight: 500;
  color: var(--md-pd-title);
  letter-spacing: 0.04em;
}

.j2store-single-product.detail .md-pd-desc-short ul,
.j2store-single-product.detail .md-pd-desc-long ul,
.j2store-single-product.detail .md-pd-desc-short ol,
.j2store-single-product.detail .md-pd-desc-long ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.j2store-single-product.detail .md-pd-desc-short a,
.j2store-single-product.detail .md-pd-desc-long a {
  color: var(--md-pd-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.j2store-single-product.detail .md-pd-desc-long {
  padding-top: 4px;
}

/* Tab nézet – leírás fül */
.j2store-single-product.detail .nav-tabs {
  margin-top: 42px;
  border-bottom: 1px solid var(--md-pd-border);
  gap: 4px;
}

.j2store-single-product.detail .nav-tabs .nav-link {
  border: 0;
  border-radius: var(--md-pd-radius) var(--md-pd-radius) 0 0;
  padding: 10px 16px;
  font-family: var(--md-pd-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-pd-muted);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.j2store-single-product.detail .nav-tabs .nav-link:hover {
  color: var(--md-pd-accent);
  background: rgba(232, 240, 247, 0.5);
}

.j2store-single-product.detail .nav-tabs .nav-link.active {
  color: var(--md-pd-accent);
  background: var(--md-pd-accent-soft);
  border-bottom: 2px solid var(--md-pd-accent);
}

.j2store-single-product.detail .tab-content {
  padding-top: 22px;
}

.j2store-single-product.detail #description.md-pd-description .mdgrev-wrap {
  margin-bottom: 28px;
}

/* ===== Galéria – Beauty: nagy főkép + 2 oszlopos bélyegképek ===== */
.md-pd-gallery {
  width: 100%;
}

.md-pd-gallery__stage {
  position: relative;
}

.md-pd-gallery__viewport {
  overflow: hidden;
  border-radius: var(--md-pd-radius);
  background: #f4f6f8;
  touch-action: pan-y pinch-zoom;
}

.md-pd-gallery__track {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 133.333%;
  aspect-ratio: 3 / 4;
}

.md-pd-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(6%);
  transition: opacity 0.45s var(--md-pd-ease), transform 0.55s var(--md-pd-ease);
  pointer-events: none;
}

.md-pd-gallery__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.md-pd-gallery__main {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: var(--md-pd-radius);
  background: #fff;
}

.md-pd-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4a5568;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.md-pd-gallery__nav > span {
  display: none;
}

.md-pd-gallery__nav::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}

.md-pd-gallery__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.md-pd-gallery__nav--next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

.md-pd-gallery__nav:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.md-pd-gallery__nav--prev {
  left: 10px;
}

.md-pd-gallery__nav--next {
  right: 10px;
}

.md-pd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.md-pd-gallery__thumb {
  appearance: none;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--md-pd-radius);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 0;
  padding: 0;
  padding-top: 133.333%;
  aspect-ratio: 3 / 4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.md-pd-gallery__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: calc(var(--md-pd-radius) - 1px);
}

.md-pd-gallery__thumb.is-active,
.md-pd-gallery__thumb:hover {
  opacity: 1;
  border-color: rgba(74, 109, 146, 0.45);
  box-shadow: 0 0 0 2px rgba(74, 109, 146, 0.14);
}

/* Régi J2Store thumb lista elrejtése, ha maradt */
.j2store-single-product.detail .j2store-product-additional-images,
.j2store-single-product.detail .additional-image-list {
  display: none !important;
}

.j2store-single-product.detail .j2store-mainimage:not(.md-pd-gallery .j2store-mainimage) {
  display: none;
}

/* Layout finomítás */
.j2store-single-product.detail [class$='-product'] > .row {
  row-gap: 28px;
}

@media (min-width: 768px) {
  .j2store-single-product.detail [class$='-product'] > .row > .col-sm-6:first-child {
    padding-right: 22px;
  }

  .j2store-single-product.detail [class$='-product'] > .row > .col-sm-6:last-child {
    padding-left: 10px;
  }
}

@media (max-width: 767px) {
  .j2store-single-product.detail .product-title,
  body.j2store-single-product-view .j2store-single-product.detail .product-title,
  body.j2store-single-product-view #sp-main-body .j2store-single-product.detail h2.product-title {
    font-size: 17px !important;
    color: var(--md-pd-title-strong) !important;
    margin-bottom: 12px;
  }

  .j2store-single-product.detail .options .option {
    padding: 14px;
  }

  .j2store-single-product.detail .j2store-add-to-cart {
    flex-direction: column;
  }

  .md-pd-gallery__nav {
    width: 36px;
    height: 36px;
  }

  .md-pd-gallery__nav::before {
    width: 8px;
    height: 8px;
  }

  .md-pd-gallery__thumbs {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-pd-gallery__slide {
    transition: none;
    transform: none;
  }

  .md-pd-page .md-pd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .md-pd-select__menu,
  .md-pd-select__item {
    transition: none;
  }
}
