/* VAPEMAGYAR single product CRO layer.
   Scoped to WooCommerce product pages and compatible with WoodMart markup. */

:root {
  --vm-bg: #111216;
  --vm-card: #1A1B22;
  --vm-card-2: #20212A;
  --vm-border: rgba(255,255,255,.08);
  --vm-border-strong: rgba(255,255,255,.16);
  --vm-primary: #8B5CF6;
  --vm-primary-hover: #A855F7;
  --vm-accent: #FF4D6D;
  --vm-text: #FFFFFF;
  --vm-muted: #B8BCC8;
  --vm-soft: rgba(139,92,246,.18);
  --vm-radius: 18px;
  --vm-radius-sm: 12px;
  --vm-shadow: 0 22px 60px rgba(0,0,0,.32);
}

body.single-product {
  background: var(--vm-bg) !important;
  color: var(--vm-text);
}

body.single-product .main-page-wrapper,
body.single-product .site-content,
body.single-product .wd-page-content {
  background: var(--vm-bg) !important;
}

body.single-product.vm-cro-ready .container,
body.single-product.vm-cro-ready .wd-content-layout {
  max-width: 100%;
}

.vm-cro-hero {
  width: min(1400px, calc(100vw - 32px));
  margin: 40px auto 56px;
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr);
  gap: 32px;
  align-items: start;
}

.vm-cro-gallery,
.vm-cro-panel {
  min-width: 0;
  width: 100%;
}

.vm-cro-gallery {
  position: sticky;
  top: 104px;
}

.vm-cro-gallery .woocommerce-product-gallery {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.vm-cro-gallery .woocommerce-product-gallery,
.vm-cro-summary {
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: var(--vm-shadow);
}

.vm-cro-gallery .woocommerce-product-gallery {
  padding: 18px;
}

.vm-cro-gallery .woocommerce-product-gallery .wd-carousel-container,
.vm-cro-gallery .woocommerce-product-gallery .woocommerce-product-gallery__image,
.vm-cro-gallery .woocommerce-product-gallery img {
  border-radius: var(--vm-radius) !important;
}

.vm-cro-gallery .woocommerce-product-gallery img {
  background: #fff;
  object-fit: contain;
}

.vm-cro-gallery .wd-gallery-thumbnails {
  margin-top: 12px;
  padding: 0 !important;
}

.vm-cro-gallery .wd-gallery-thumbnails .wd-carousel-wrap {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  scrollbar-width: thin;
  scrollbar-color: var(--vm-primary) transparent;
}

.vm-cro-gallery .wd-gallery-thumbnails .wd-carousel-item {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  border-radius: 12px !important;
  border: 1px solid var(--vm-border-strong) !important;
  opacity: .64;
  overflow: hidden !important;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.vm-cro-gallery .wd-gallery-thumbnails .wd-carousel-item:hover,
.vm-cro-gallery .wd-gallery-thumbnails .wd-carousel-item.wd-active {
  opacity: 1;
  border-color: var(--vm-primary) !important;
  transform: translateY(-1px);
}

.vm-cro-summary {
  padding: clamp(22px, 2.2vw, 34px);
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box;
}

body.single-product.vm-cro-ready .vm-cro-panel > .vm-cro-summary,
body.single-product.vm-cro-ready .vm-cro-panel > .elementor-element-d4d8441,
body.single-product.vm-cro-ready .vm-cro-panel > [class*="elementor-element-d4d8441"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  flex-basis: 100% !important;
  --width: 100% !important;
  --flex-basis: 100% !important;
}

.vm-cro-summary .wd-single-nav,
.vm-cro-summary .wd-single-action-btn,
.vm-cro-summary .wd-wishlist-btn,
.vm-cro-summary .wd-social-icons,
.vm-cro-summary .wd-single-share,
.vm-cro-summary .product-share,
.vm-cro-summary .elementor-element-68c569c {
  display: none !important;
}

.vm-cro-hide-top-nav {
  display: none !important;
}

.vm-cro-summary > .e-con-inner,
.vm-cro-summary > .elementor-element,
.vm-cro-summary .elementor-element-4dabe8a,
.vm-cro-summary .elementor-element-2f90bda,
.vm-cro-summary .elementor-element-858df44 {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

.vm-cro-summary .elementor-element-3148a24,
.vm-cro-summary .elementor-element-ae56efe,
.vm-cro-summary .wd-single-price,
.vm-cro-summary .wd-single-add-cart {
  width: 100% !important;
  max-width: 100% !important;
}

.vm-cro-summary .elementor-element-4dabe8a {
  display: block !important;
}

.vm-cro-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vm-cro-brand-badge,
.vm-cro-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--vm-border);
  color: var(--vm-muted);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.vm-cro-stock-pill {
  color: #7BE2B8;
  border-color: rgba(123,226,184,.28);
  background: rgba(16,185,129,.10);
}

.vm-cro-summary .product_title {
  margin: 0 0 12px !important;
  color: var(--vm-text) !important;
  font-size: clamp(28px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.vm-cro-summary .woocommerce-product-rating,
.vm-cro-summary .wd-star-rating,
.vm-cro-summary .star-rating {
  margin-bottom: 4px;
}

.vm-cro-rating-note {
  margin: 0 0 18px;
  color: var(--vm-muted);
  font-size: 13px;
}

.vm-cro-summary .price {
  margin: 18px 0 16px !important;
  color: var(--vm-text) !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

.vm-cro-summary .price del {
  color: rgba(255,255,255,.42);
  font-size: .58em;
  margin-right: 10px;
}

.vm-cro-summary .price ins {
  color: var(--vm-primary);
  text-decoration: none;
}

.vm-cro-summary .wd-single-short-desc,
.vm-cro-summary .woocommerce-product-details__short-description,
.vm-cro-summary .elementor-widget-wd_single_product_short_description {
  max-height: 58px;
  overflow: hidden;
  color: var(--vm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vm-cro-summary .wd-single-short-desc p,
.vm-cro-summary .woocommerce-product-details__short-description p,
.vm-cro-summary .elementor-widget-wd_single_product_short_description p {
  margin: 0 !important;
}

.vm-cro-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 18px;
}

.vm-cro-value-grid > div,
.vm-cro-decision-strip > div,
.vm-cro-trust-grid > div {
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-sm);
  background: rgba(255,255,255,.035);
}

.vm-cro-value-grid > div {
  padding: 13px 12px;
}

.vm-cro-value-grid strong {
  display: block;
  color: var(--vm-text);
  font-size: 15px;
  line-height: 1.15;
}

.vm-cro-value-grid span,
.vm-cro-decision-strip span,
.vm-cro-trust-grid span {
  display: block;
  margin-top: 4px;
  color: var(--vm-muted);
  font-size: 12px;
  line-height: 1.25;
}

.vm-cro-decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.vm-cro-decision-strip > div {
  padding: 12px;
}

.vm-cro-decision-strip strong,
.vm-cro-trust-grid strong {
  display: block;
  color: var(--vm-text);
  font-size: 13px;
  line-height: 1.25;
}

.vm-cro-cart {
  margin-top: 18px !important;
  padding: 18px !important;
  border: 1px solid var(--vm-border) !important;
  border-radius: var(--vm-radius) !important;
  background: rgba(8,9,13,.56) !important;
  display: grid !important;
  grid-template-rows: auto minmax(132px, 1fr) auto;
  gap: 12px;
  max-height: 430px;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--vm-primary) rgba(255,255,255,.08);
}

.vm-cro-form-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0;
}

.vm-cro-form-heading strong {
  color: var(--vm-text);
  font-size: 16px;
}

.vm-cro-form-heading span {
  color: var(--vm-muted);
  font-size: 13px;
}

.vm-cro-cart table.variations {
  display: block !important;
  min-height: 0;
  margin: 0 !important;
  overflow: auto;
  padding-right: 4px;
}

.vm-cro-cart .single_variation_wrap {
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(139,92,246,.24);
  border-radius: 14px;
  background: rgba(139,92,246,.08);
}

.vm-cro-cart table.variations tbody,
.vm-cro-cart table.variations tr {
  display: block !important;
  width: 100% !important;
}

.vm-cro-cart .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "qty cart"
    "buy buy";
  align-items: center;
  gap: 10px;
}

.vm-cro-cart .woocommerce-variation-add-to-cart .vape-spec-grid,
.vm-cro-cart .woocommerce-variation-add-to-cart .bang-badge-bar {
  display: none !important;
}

.vm-cro-cart table.variations th,
.vm-cro-cart table.variations td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

.vm-cro-cart table.variations th.label label {
  display: block;
  margin: 10px 0 7px;
  color: var(--vm-text);
  font-size: 13px;
  font-weight: 800;
}

.vm-cro-cart table.variations select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--vm-border-strong);
  background: #111216;
  color: var(--vm-text);
}

.vm-cro-cart .vape-variation-radios {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 8px 0 2px !important;
  max-height: 168px;
  overflow: auto;
  padding-right: 4px;
}

.vm-cro-cart .vape-var-option {
  min-height: 46px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 9px 10px !important;
  border: 1px solid var(--vm-border-strong) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.035) !important;
  color: var(--vm-muted) !important;
  text-align: center;
  font-size: 12px !important;
  line-height: 1.25;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vm-cro-cart .vape-var-option:hover,
.vm-cro-cart .vape-var-option.selected {
  border-color: var(--vm-primary) !important;
  background: var(--vm-soft) !important;
  color: var(--vm-text) !important;
}

.vm-cro-cart .quantity {
  grid-area: qty;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.vm-cro-cart .quantity input,
.vm-cro-cart .quantity button {
  min-width: 0 !important;
}

.vm-cro-main-cta,
.vm-cro-cart .single_add_to_cart_button {
  grid-area: cart;
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--vm-primary), var(--vm-primary-hover)) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 18px 34px rgba(139,92,246,.28) !important;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}

.vm-cro-main-cta:hover,
.vm-cro-cart .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(168,85,247,.36) !important;
}

.vm-cro-buy-now {
  grid-area: buy;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 0 !important;
  border-radius: 13px !important;
  border: 1px solid rgba(139,92,246,.38) !important;
  background: rgba(255,255,255,.92) !important;
  color: #201a32 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.vm-cro-main-cta.disabled,
.vm-cro-cart .single_add_to_cart_button.disabled {
  opacity: .56 !important;
  box-shadow: none !important;
  transform: none !important;
}

.vm-cro-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vm-cro-trust-grid > div {
  padding: 13px 14px;
}

.vm-cro-volume {
  margin-top: 14px;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-sm);
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.vm-cro-volume summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--vm-text);
  font-size: 13px;
  font-weight: 800;
}

.vm-cro-volume .awdr-bulk-customizable-table {
  padding: 0 12px 12px;
}

.vm-cro-volume table,
.vm-cro-volume-table {
  width: calc(100% - 24px);
  margin: 0 !important;
  font-size: 12px;
  margin-left: 12px !important;
  margin-right: 12px !important;
  margin-bottom: 12px !important;
  border-collapse: collapse;
}

.vm-cro-volume-table th,
.vm-cro-volume-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--vm-border);
  color: var(--vm-muted);
  text-align: left;
}

.vm-cro-volume-table th {
  color: var(--vm-text);
  font-weight: 800;
}

.vm-cro-volume-table tr:last-child td {
  border-bottom: 0;
}

.vm-cro-meta {
  margin-top: 18px;
  color: var(--vm-muted);
  font-size: 12px;
}

.vm-cro-original-shell {
  display: none !important;
}

.vm-cro-sticky {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 390;
  width: min(760px, calc(100vw - 28px));
  min-height: 72px;
  transform: translate(-50%, calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--vm-border-strong);
  border-radius: 18px;
  background: rgba(26,27,34,.94);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
  transition: transform .22s ease, opacity .22s ease;
}

.vm-cro-sticky.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.vm-cro-sticky-media img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.vm-cro-sticky-copy {
  min-width: 0;
}

.vm-cro-sticky-copy strong {
  display: block;
  color: var(--vm-text);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-cro-sticky-copy span {
  display: block;
  color: var(--vm-primary);
  font-size: 13px;
  font-weight: 800;
}

.vm-cro-sticky-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--vm-primary);
  color: #fff;
  font-weight: 850;
}

body.single-product .woocommerce-tabs,
body.single-product .wd-single-tabs,
body.single-product .related,
body.single-product .upsells,
.vm-cro-faq {
  width: min(1200px, calc(100vw - 32px));
  margin-left: auto !important;
  margin-right: auto !important;
}

.vm-cro-faq {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 26px;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius);
  background: rgba(255,255,255,.03);
}

.vm-cro-faq h2 {
  margin: 0 0 16px;
  color: var(--vm-text);
  font-size: 24px;
}

.vm-cro-faq details {
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-sm);
  background: rgba(0,0,0,.18);
  margin-top: 10px;
}

.vm-cro-faq summary {
  cursor: pointer;
  padding: 15px 16px;
  color: var(--vm-text);
  font-weight: 800;
}

.vm-cro-faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--vm-muted);
  line-height: 1.7;
}

@media (hover:hover) {
  .vm-cro-trust-grid > div:hover,
  .vm-cro-value-grid > div:hover {
    border-color: rgba(139,92,246,.34);
    background: rgba(139,92,246,.08);
  }
}

@media (max-width: 1024px) {
  .vm-cro-hero {
    grid-template-columns: 1fr;
    width: min(760px, calc(100vw - 28px));
    margin-top: 24px;
  }

  .vm-cro-gallery {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .vm-cro-hero {
    width: calc(100vw - 30px);
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 36px;
  }

  .vm-cro-gallery .woocommerce-product-gallery,
  .vm-cro-summary {
    border-radius: 16px;
  }

  .vm-cro-gallery .woocommerce-product-gallery {
    padding: 8px;
  }

  .vm-cro-gallery .wd-gallery-images img,
  .vm-cro-gallery .woocommerce-product-gallery__image img {
    max-height: 150px;
    object-fit: contain;
  }

  .vm-cro-gallery .wd-gallery-thumbnails {
    margin-top: 8px !important;
  }

  .vm-cro-gallery .wd-gallery-thumbnails .wd-carousel-item {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  .vm-cro-summary {
    padding: 10px 12px 12px;
  }

  .vm-cro-summary .wd-el-breadcrumbs,
  .vm-cro-summary .wd-breadcrumbs,
  .vm-cro-summary .woocommerce-breadcrumb {
    display: none !important;
  }

  .vm-cro-brand-row {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 8px;
  }

  .vm-cro-brand-badge,
  .vm-cro-stock-pill {
    padding: 7px 10px;
    font-size: 11px;
  }

  .vm-cro-brand-badge {
    display: none !important;
  }

  .vm-cro-summary .product_title {
    font-size: 21px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
  }

  .vm-cro-summary .price {
    font-size: 26px !important;
    line-height: 1.05 !important;
    margin: 6px 0 !important;
  }

  .vm-cro-summary .wd-single-short-desc,
  .vm-cro-summary .woocommerce-product-details__short-description,
  .vm-cro-summary .elementor-widget-wd_single_product_short_description {
    display: none !important;
  }

  .vm-cro-value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
    margin: 8px 0 !important;
  }

  .vm-cro-value-grid > div {
    min-height: 50px;
    padding: 7px 6px;
  }

  .vm-cro-value-grid strong {
    font-size: 14px;
  }

  .vm-cro-value-grid span {
    font-size: 10px;
  }

  .vm-cro-decision-strip {
    display: none !important;
  }

  .vm-cro-cart {
    grid-template-rows: auto auto minmax(96px, 1fr);
    gap: 8px;
    max-height: 360px;
    margin-top: 8px !important;
    padding: 10px !important;
  }

  .vm-cro-form-heading {
    display: none !important;
  }

  .vm-cro-form-heading strong {
    font-size: 14px;
  }

  .vm-cro-form-heading span {
    display: none;
  }

  .vm-cro-cart .single_variation_wrap {
    padding: 8px !important;
  }

  .vm-cro-cart .woocommerce-variation-add-to-cart {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .vm-cro-cart .single_add_to_cart_button {
    min-height: 48px;
    font-size: 13px;
  }

  .vm-cro-buy-now {
    min-height: 42px;
  }

  .vm-cro-value-grid,
  .vm-cro-trust-grid,
  .vm-cro-cart .vape-variation-radios {
    grid-template-columns: 1fr 1fr !important;
  }

  .vm-cro-cart .vape-variation-radios {
    max-height: 168px;
  }

  .vm-cro-sticky {
    bottom: 54px;
    grid-template-columns: 42px 1fr auto;
    min-height: 62px;
    border-radius: 16px;
  }

  .vm-cro-sticky-media img {
    width: 42px;
    height: 42px;
  }

  .vm-cro-sticky-button {
    min-height: 42px;
    padding: 0 15px;
  }

  .vm-cro-faq {
    width: calc(100vw - 30px);
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .vm-cro-value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .vm-cro-decision-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .vm-cro-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vm-cro-sticky-copy strong {
    max-width: 150px;
  }
}
