/**
 * Vendyl – Single product styling
 * ------------------------------------------------------------
 * This file only loads on is_product() (see functions.php).
 * All rules are scoped under `.single-product` so they don't
 * leak into archives, explore, or vendor store fronts.
 */

/* ================================
   Vendyl – Add to Cart + Chat CTAs
   ================================ */

/* Keep Add to cart button visible AND style it to Vendyl schema */
body.single-product .single_add_to_cart_button,
body.single-product .single_add_to_cart_button.added,
body.single-product .single_add_to_cart_button.loading {
  /* visibility + layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;

  /* Vendyl pill styling */
  border-radius: 999px !important;
  padding: 0.9rem 2.8rem !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  background: #ffffff !important;
  color: #266be3 !important;
  border: 2px solid #266be3 !important;
  box-shadow: 0 10px 24px rgba(38, 107, 227, 0.18) !important;
  text-shadow: none !important;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* Hover / focus – gentle fill */
body.single-product .single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:focus {
  background: #266be3 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(38, 107, 227, 0.32) !important;
  transform: translateY(-1px);
}

/* View cart / added link next to button */
body.single-product a.added_to_cart,
body.single-product a.view-cart,
body.single-product .cart a.view-cart-link {
  margin-left: 14px;
  font-weight: 600;
  font-size: 14px;
  color: #266be3;
  text-decoration: none;
}

body.single-product a.added_to_cart:hover,
body.single-product a.view-cart:hover,
body.single-product .cart a.view-cart-link:hover {
  text-decoration: underline;
}

/* Vendyl – Single Product CTA row (Add to Cart + inline Chat) */
.vendyl-single-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;  /* small nudge so it hugs the Add to Cart nicely */
}

/* Make sure the Chat button behaves like a pill CTA */
.vendyl-single-cta-row .vendyl-product-quote__btn {
  margin: 0;
}

/* Chat button in the “Chat with this supplier” card + any Vendyl chat CTA */
body.single-product .vd-chat-cta,
body.single-product .vendyl-product-quote__btn,
body.single-product .vendyl-live-chat .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 0.9rem 2.2rem !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border: 2px solid #266be3 !important;
  background: #ffffff !important;
  color: #266be3 !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 107, 227, 0.16) !important;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

body.single-product .vd-chat-cta:hover,
body.single-product .vendyl-product-quote__btn:hover,
body.single-product .vendyl-live-chat .button:hover {
  background: #266be3 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(38, 107, 227, 0.32) !important;
  transform: translateY(-1px);
}

/* ===== Global single-product canvas ===== */

.single-product .site-main,
.single-product .content-area {
  background:#f5f7fb;
}

.single-product .product {
  max-width:1200px;
  margin:0 auto 72px;
  padding:32px 16px 0;
}

/* =========================================================
   FIX: FORCE TOP ROW TO BE 2 COLUMNS ON DESKTOP
   (gallery left / summary right)
   - Targets the real Woo parent first (div.product)
   - Also supports your custom wrapper if present
   - Keeps ONLY Row 1 as 2-col; everything else spans full width
   ========================================================= */

@media (min-width: 960px){

  /* 1) Primary: default WooCommerce structure */
  body.single-product.woocommerce div.product{
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 32px !important;
    align-items: start !important;
  }

  /* Pin gallery + summary into the Row 1 columns */
  body.single-product.woocommerce div.product > .woocommerce-product-gallery{
    grid-column: 1;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
  }

  body.single-product.woocommerce div.product > .summary{
    grid-column: 2;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
  }

  /* Everything else goes below Row 1, full width */
  body.single-product.woocommerce div.product > *:not(.woocommerce-product-gallery):not(.summary){
    grid-column: 1 / -1;
  }

  /* 2) Secondary: if you have a custom wrapper used by product-general-page.php */
  body.single-product .vd-product-general__inner{
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 32px !important;
    align-items: start !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product .vd-product-general__media,
  body.single-product .vd-product-general__summary{
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
  }

  body.single-product .vd-product-general__summary{
    justify-self: end !important;
  }

  /* Ensure gallery inside your wrapper behaves */
  body.single-product .vd-product-general__media .woocommerce-product-gallery,
  body.single-product .vd-product-general__media .woocommerce-product-gallery__wrapper,
  body.single-product .vd-product-general__media .flex-viewport,
  body.single-product .vd-product-general__media .vendyl-product-gallery{
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  /* Prevent the gallery from being artificially capped */
  body.single-product .vd-product-general__media .vendyl-product-gallery{
    max-width: none !important;
  }

  body.single-product .vd-product-general__media img,
  body.single-product .vd-product-general__media video{
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  body.single-product .vendyl-moq-card{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Tablet/mobile: stack */
@media (max-width: 959px){
  body.single-product.woocommerce div.product{
    display: block !important;
  }

  body.single-product .vd-product-general__inner{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Title + price spacing */
.single-product .product .product_title {
  margin-bottom:12px;
}

/* Hide native WooCommerce price on summary – MOQ card takes over */
.single-product .product .summary .price {
  font-size:24px;
  font-weight:600;
  color:#0f172a;
  margin-bottom:18px;
  display:none !important;
}

/* Summary column as a modern card */
.single-product .product .summary {
  background:#ffffff;
  border-radius:24px;
  border:1px solid #e5e7eb;
  box-shadow:0 18px 45px rgba(15,23,42,0.08);
  padding:24px 28px 26px;
  box-sizing:border-box;
}

/* Inner “info cards” (lead time, OEM, key selling points) */
.single-product .product .summary > .vendyl-info-card,
.single-product .product .summary .dokan-panel,
.single-product .product .summary .dokan-panel-default {
  border-radius:22px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  box-shadow:none;
}

/* Fallback: wrap Dokan-generated rows that already look like cards */
.single-product .product .summary .dokan-edit-row,
.single-product .product .summary .vendyl-card {
  border-radius:22px;
}

/* Labels inside summary cards */
.single-product .product .summary h2,
.single-product .product .summary h3 {
  font-size:17px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#6b7280;
}

/* Meta row (category, SKU, etc.) */
.single-product .product .product_meta {
  margin-top:18px;
  font-size:13px;
  color:#6b7280;
}

.single-product .product .product_meta a {
  color:#111827;
  font-weight:500;
}

.single-product .product .product_meta span {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-right:10px;
}

/* ===== Tabs (Description / Shipping / …) – original card styling ===== */

.single-product .woocommerce-tabs{
  max-width:1200px;            /* match main product width */
  width:100%;
  margin:24px auto 80px;       /* center it under the gallery */
  border-radius:22px;
  background:#f9fafb;
  box-shadow:
    0 18px 45px rgba(15,23,42,0.14),
    0 0 0 1px rgba(148,163,184,0.22);
  padding:0;
  border:0;
  overflow:hidden;
}

/* Remove theme borders so our card edge is clean */
.single-product .woocommerce-tabs::before {
  display:none !important;
}

/* Tab list – support both `tabs` and `wc-tabs` classes */
.single-product .woocommerce-tabs ul.tabs,
.single-product .woocommerce-tabs ul.wc-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  margin:0;
  padding:16px 20px 0;
  list-style:none;
  border:0;
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce-tabs ul.wc-tabs li{
  margin:0;
  padding:0;
  border:0;
}

.single-product .woocommerce-tabs ul.tabs li a,
.single-product .woocommerce-tabs ul.wc-tabs li a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  color:#4b5563;
  background:#e5e7eb;
  text-decoration:none;
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.wc-tabs li.active a{
  background:#266be3;
  color:#ffffff;
  box-shadow:0 10px 24px rgba(37,99,235,0.4);
  transform:translateY(-1px);
}

.single-product .woocommerce-tabs ul.tabs li a:hover,
.single-product .woocommerce-tabs ul.wc-tabs li a:hover{
  background:#e5edff;
}

/* Tab panel body */
.single-product .woocommerce-tabs .panel{
  border:0;
  padding:18px 20px 24px;
  margin:0;
  background:transparent;
  font-size:15px;
  line-height:1.6;
  color:#111827;
}

/* ===== Vendor card (Gummy Lab, rating, etc.) ===== */

.single-product .dokan-single-seller,
.single-product .dokan-store-info,
.single-product .dokan-right-sidebar,
.single-product .product .vendyl-vendor-card {
  background:#ffffff;
  border-radius:22px;
  border:1px solid #e5e7eb;
  box-shadow:0 16px 40px rgba(15,23,42,0.06);
  padding:18px 22px;
  margin-top:24px;
}

/* Keep logo nicely rounded */
.single-product .dokan-single-seller img,
.single-product .dokan-store-info img {
  border-radius:999px;
}

/* ===== Live Chat CTA alignment ===== */

.single-product .product .summary .vendyl-live-chat,
.single-product .product .summary .vendyl-chat-cta {
  margin-top:20px;
}

/* -------------------------------------------------
   (Everything below here is non-related-products UI)
   ------------------------------------------------- */

/* Hide native "Additional information" tab just in case any plugin re-adds it */
.single-product .woocommerce-tabs li.additional_information_tab,
.single-product .woocommerce-tabs li.additional_tab {
  display: none !important;
}

/* ================================
   Vendyl – Share + Report controls
   ================================ */

/* Ensure product wrapper can anchor the absolute share pill */
.single-product div.product {
  position: relative !important;
}

/* Share wrapper – top-right above title */
.single-product div.product .vendyl-share-wrapper {
  position: absolute !important;
  top: 8px !important;
  right: 24px !important;
  z-index: 20;
}

/* Vendyl pill styling for share trigger */
.single-product .vendyl-share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #266be3;
  background: #ffffff;
  color: #266be3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 107, 227, 0.18);
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.single-product .vendyl-share-trigger:hover {
  background: #266be3;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(38, 107, 227, 0.32);
  transform: translateY(-1px);
}

/* Share icon – keep small, thin, outline */
.single-product .vendyl-share-icon svg {
  width: 14px;
  height: 14px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none !important;   /* kill any rotate/flip from theme */
}

/* Dropdown menu */
.single-product .vendyl-share-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 190px;
  padding: 6px 0;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15,23,42,0.18);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.single-product .vendyl-share-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu items */
.single-product .vendyl-share-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  color: #111827;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.single-product .vendyl-share-item:hover {
  background: #f3f4ff;
  color: #266be3;
}

/* Report pill lower on the page */
.single-product .vendyl-report-wrapper {
  margin-top: 16px;
}

.single-product .vendyl-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #6b7280;
  background: #ffffff;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.single-product .vendyl-report-btn:hover {
  border-color: #f97373;
  color: #b91c1c;
  background: #fff1f2;
}

/* Mobile: nudge share button slightly */
@media (max-width: 640px) {
  .single-product div.product .vendyl-share-wrapper {
    top: 12px !important;
    right: 14px !important;
  }
}

/* Vendyl – force product tabs to span full product width */
html body.single-product .woocommerce-tabs {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 24px auto 80px !important;
  border-radius: 22px;
}

/* Mobile / tablet: edge-to-edge with a little side padding if theme applies it */
@media (max-width: 1024px) {
  html body.single-product .woocommerce-tabs {
    max-width: 100% !important;
    margin: 24px 0 60px !important;
  }
}

/* Vendyl – full-width card behind product tabs */
html body.single-product .woocommerce-tabs {
  position: relative;
}

/* Big card overlay */
html body.single-product .woocommerce-tabs::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  bottom: 16px;

  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(226, 232, 240, 0.6);
  z-index: 0;
}

/* Make the tab content sit on top of the overlay and lose any own card */
html body.single-product .woocommerce-tabs .panel {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: 0 !important;
  padding: 24px 32px 28px;
}

/* Mobile tweak: card hugs viewport */
@media (max-width: 1024px) {
  html body.single-product .woocommerce-tabs::before {
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 56px;
    bottom: 12px;
  }

  html body.single-product .woocommerce-tabs .panel {
    padding: 20px 18px 24px;
  }
}

/* ============================================
   Vendyl – Standalone specs overview card
   (between native tabs and Related products)
   ============================================ */

.single-product .vendyl-specs-overview {
  max-width: 1200px;
  margin: 24px auto 56px;
  padding: 0 16px;
}

.single-product .vendyl-specs-overview__card {
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow:
    0 18px 45px rgba(15,23,42,0.06),
    0 0 0 1px rgba(226,232,240,0.6);
  padding: 20px 24px 22px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.vendyl-specs-overview__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9ca3af;
  margin: 0 0 4px;
}

.vendyl-specs-overview__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111827;
}

.vendyl-specs-overview__copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #111827;
}

.vendyl-specs-overview__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vendyl-specs-overview__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px dashed #e5e7eb;
  font-size: 14px;
}

.vendyl-specs-overview__row:first-child {
  border-top: none;
}

.vendyl-specs-overview__label {
  flex: 0 0 34%;
  max-width: 200px;
  font-weight: 500;
  color: #4b5563;
}

.vendyl-specs-overview__value {
  flex: 1;
  color: #111827;
}

@media (max-width: 640px) {
  .single-product .vendyl-specs-overview {
    margin: 20px auto 40px;
    padding: 0 12px;
  }
  .single-product .vendyl-specs-overview__card {
    padding: 16px 16px 18px;
  }
  .vendyl-specs-overview__row {
    flex-direction: column;
    gap: 4px;
  }
  .vendyl-specs-overview__label {
    max-width: none;
  }
}

/* Vendyl – hide native WooCommerce tabs card on single product (newer approach) */
body.single-product .woocommerce-tabs {
  display: none !important;
}

/* ================================
   Vendyl – Key information specs card
   ================================ */

.single-product .vendyl-specs-overview{
  max-width: 1200px;
  margin: 32px auto 72px;
  padding: 0 16px;
}

.single-product .vendyl-specs-overview__card{
  width: 100%;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow:
    0 18px 45px rgba(15,23,42,0.06),
    0 0 0 1px rgba(226,232,240,0.6);
  padding: 22px 26px 24px;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* Eyebrow + title */

.vendyl-specs-overview__eyebrow{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #9ca3af;
  margin: 0 0 4px;
}

.vendyl-specs-overview__title{
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #111827;
}

/* Tabs row */

.vendyl-specs-tabs{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 18px;
}

.vendyl-specs-tab{
  border-radius: 999px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: #e5e7eb;
  color: #4b5563;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.45);
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.vendyl-specs-tab:hover{
  background: #e5edff;
  transform: translateY(-1px);
}

.vendyl-specs-tab.is-active{
  background: #266be3;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
}

/* Panels */

.vendyl-specs-panels{
  margin-top: 4px;
}

.vendyl-specs-panel{
  display: none;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

.vendyl-specs-panel.is-active{
  display: block;
}

/* Attributes list inside the first panel */

.vendyl-specs-overview__list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.vendyl-specs-overview__row{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px dashed #e5e7eb;
  font-size: 14px;
}

.vendyl-specs-overview__row:first-child{
  border-top: none;
}

.vendyl-specs-overview__label{
  flex: 0 0 30%;
  max-width: 220px;
  font-weight: 500;
  color: #4b5563;
}

.vendyl-specs-overview__value{
  flex: 1;
  color: #111827;
}

/* Empty-state copy */

.vendyl-specs-overview__copy{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
}

/* Responsive tweaks */

@media (max-width: 768px){
  .single-product .vendyl-specs-overview{
    padding: 0 12px;
    margin: 24px auto 56px;
  }

  .single-product .vendyl-specs-overview__card{
    padding: 18px 18px 20px;
  }

  .vendyl-specs-overview__title{
    font-size: 20px;
  }

  .vendyl-specs-overview__row{
    flex-direction: column;
    gap: 4px;
  }

  .vendyl-specs-overview__label{
    max-width: none;
  }
}

/* =========================================
   Vendyl – custom related products strip
   (new standalone section; replaces native)
   ========================================= */

.single-product .vendyl-related{
  max-width:1200px;
  margin:40px auto 60px;
  padding:0 16px;
}

.single-product .vendyl-related__heading{
  margin:0 0 18px;
  font-size:26px;
  font-weight:800;
  letter-spacing:.01em;
  color:#0f172a;
}

.single-product .vendyl-related__grid{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.single-product .vendyl-related__card{
  flex:0 0 calc(25% - 14px);
  min-width:220px;
  max-width:260px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 16px 40px rgba(15,23,42,0.06);
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
}

.single-product .vendyl-related__thumb img{
  width:100%;
  height:auto;
  border-radius:18px;
  margin-bottom:10px;
}

.single-product .vendyl-related__title{
  font-size:16px;
  font-weight:600;
  color:#111827;
  margin:0 0 4px;
}

.single-product .vendyl-related__title a{
  color:inherit;
  text-decoration:none;
}
.single-product .vendyl-related__title a:hover{
  text-decoration:underline;
}

.single-product .vendyl-related__price{
  font-size:14px;
  font-weight:600;
  color:#111827;
  margin-bottom:10px;
}

.single-product .vendyl-related__cta-row{
  margin-top:auto;
  display:flex;
  gap:8px;
}

.single-product .vendyl-related__btn{
  flex:1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Chat – outline pill */
.single-product .vendyl-related__btn--chat{
  background:#ffffff;
  color:#266be3;
  border:1px solid #266be3;
  box-shadow:0 0 0 1px rgba(37,99,235,0.18);
}
.single-product .vendyl-related__btn--chat:hover{
  background:#e6f0ff;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(37,99,235,0.35);
}

/* View – solid blue pill */
.single-product .vendyl-related__btn--view{
  background:#266be3;
  color:#ffffff;
  border:none;
  box-shadow:0 10px 24px rgba(37,99,235,0.45);
}
.single-product .vendyl-related__btn--view:hover{
  background:#1553be;
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(37,99,235,0.55);
}

/* Tablet: 2-up */
@media (max-width:1024px){
  .single-product .vendyl-related__card{
    flex:0 0 calc(50% - 10px);
    max-width:none;
  }
}

/* Mobile: 1-up */
@media (max-width:640px){
  .single-product .vendyl-related__grid{
    gap:14px;
  }
  .single-product .vendyl-related__card{
    flex:0 0 100%;
  }
}

/* Vendyl – Related strip: horizontal slider-style row */
.vendyl-related__grid{
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.vendyl-related__card{
  flex: 0 0 260px;
  max-width: 260px;
}

/* Optional: on small screens, let cards be a bit wider */
@media (max-width: 768px){
  .vendyl-related__card{
    flex: 0 0 75%;
    max-width: 75%;
  }
}

/* =======================================================
 * Vendyl – Vendor store catalogue cards
 * Make catalogue cards visually identical to related cards
 * ======================================================= */

body.dokan-store .vd-cat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1024px) {
  body.dokan-store .vd-cat__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.dokan-store .vd-cat__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.dokan-store .vd-cat__grid {
    grid-template-columns: 1fr;
  }
}

/* Card shell – clone of .single-product .vendyl-related__card */
body.dokan-store .vd-cat__grid .vendyl-related__card {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Thumbnail */
body.dokan-store .vd-cat__grid .vendyl-related__thumb img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 10px;
}

/* Title */
body.dokan-store .vd-cat__grid .vendyl-related__title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

body.dokan-store .vd-cat__grid .vendyl-related__title a {
  color: inherit;
  text-decoration: none;
}

body.dokan-store .vd-cat__grid .vendyl-related__title a:hover {
  text-decoration: underline;
}

/* Price + MOQ line */
body.dokan-store .vd-cat__grid .vendyl-related__price {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

/* CTA row */
body.dokan-store .vd-cat__grid .vendyl-related__cta-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* Buttons – exact clone of related-strip buttons, without .single-product */
body.dokan-store .vd-cat__grid .vendyl-related__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* Chat – outline pill */
body.dokan-store .vd-cat__grid .vendyl-related__btn--chat {
  background: #ffffff;
  color: #266be3;
  border: 1px solid #266be3;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

body.dokan-store .vd-cat__grid .vendyl-related__btn--chat:hover {
  background: #e6f0ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* View – solid blue pill */
body.dokan-store .vd-cat__grid .vendyl-related__btn--view {
  background: #266be3;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

body.dokan-store .vd-cat__grid .vendyl-related__btn--view:hover {
  background: #1553be;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.55);
}
@media (min-width: 960px){
  body.single-product .vd-product-general__inner{
    display:grid !important;
    grid-template-columns:minmax(0, 2fr) minmax(0, 1.2fr) !important;
    gap:32px !important;
    align-items:start !important;
  }

  body.single-product .vd-product-general__inner > .vd-product-general__media{
    grid-column:1 !important;
    min-width:0 !important;
  }

  body.single-product .vd-product-general__inner > .vd-product-general__summary{
    grid-column:2 !important;
    min-width:0 !important;
    align-self:start !important;
  }
}

@media (max-width: 959px){
  body.single-product .vd-product-general__inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
}
/* =========================================================
   ROW 1 HARD LOCK (desktop): media left + summary right
   - Flex is more “theme-proof” than grid in Solace/Neve layouts
   ========================================================= */

@media (min-width: 960px){

  html body.single-product .vd-product-general__inner{
    display: flex !important;
    align-items: flex-start !important;
    gap: 32px !important;

    /* kill any theme layout shenanigans */
    flex-wrap: nowrap !important;
  }

  /* Media column grows */
  html body.single-product .vd-product-general__inner > .vd-product-general__media{
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
  }

  /* Summary column fixed rail */
  html body.single-product .vd-product-general__inner > .vd-product-general__summary,
  html body.single-product .vd-product-general__inner > .summary.entry-summary{
    flex: 0 0 420px !important;
    width: 420px !important;
    max-width: 420px !important;
    min-width: 320px !important;

    margin: 0 !important;          /* stop “centered below” behaviour */
    float: none !important;
    clear: none !important;
  }

  /* Stop WC gallery floats/widths from breaking flex */
  html body.single-product .vd-product-general__media .woocommerce-product-gallery{
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile/tablet: stack */
@media (max-width: 959px){
  html body.single-product .vd-product-general__inner{
    display: block !important;
  }

  html body.single-product .vd-product-general__summary,
  html body.single-product .summary.entry-summary{
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}
/* Break specs out of any narrow parent (last-resort CSS escape hatch) */
body.single-product .vendyl-specs-overview{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-product .vendyl-specs-overview__card{
  max-width: 1200px !important;
  margin: 0 auto !important;
}
