/* Vendyl – 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);
}

/**
 * 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.
 */

/* ===== 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;
}

/* 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;
}

/* 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 / …) – left column under media ===== */

.single-product .woocommerce-tabs{
  max-width:560px;                 /* match vendyl product gallery width */
  width:100%;
  margin:24px 0 80px;
  margin-left:0;                   /* align with gallery left edge */
  margin-right:auto;               /* leave summary column untouched */
  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;
}

/* ===== PRODUCT SPECS card (for custom block) ===== */

.single-product .vendyl-specs-shell{
  max-width:560px;              /* same column as media & tabs */
  width:100%;
  margin:16px 0 72px;
  margin-left:0;
  margin-right:auto;
}

/* Mobile / tablet: tabs & specs go full-width and centered */
@media (max-width:1024px){
  .single-product .woocommerce-tabs{
    max-width:100%;
    margin:24px 16px 40px;
  }
  .single-product .vendyl-specs-shell{
    max-width:100%;
    margin:16px 16px 48px;
  }
}

/* ===== 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;
}

/* ===== Related products ===== */

.single-product .related {
  margin-top:52px;
  margin-bottom:40px;
  padding:26px 4px 6px;
  border-radius:28px;
  background:#f4f6fb;
}

/* Heading */

.single-product .related > h2,
.single-product .related > h3 {
  margin:0 0 18px 4px;
  font-size:26px;
  font-weight:800;
  letter-spacing:.01em;
  color:#0f172a;
}

/* Product grid: normal widths */

.single-product .related ul.products {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.single-product .related ul.products li.product {
  width:calc(25% - 14px);
  min-width:220px;
  max-width:260px;
  margin:0;
  padding:14px 14px 16px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 16px 40px rgba(15,23,42,0.06);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  word-break:normal;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Hover lift */

.single-product .related ul.products li.product:hover {
  transform:translateY(-6px);
  box-shadow:0 22px 50px rgba(15,23,42,0.16);
  border-color:rgba(38,107,227,.45);
}

/* Product image */

.single-product .related ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius:18px;
  margin-bottom:10px;
}

/* Title & price */

.single-product .related ul.products li.product .woocommerce-loop-product__title {
  font-size:15px;
  font-weight:600;
  color:#111827;
  margin:0 0 4px;
}

.single-product .related ul.products li.product .price {
  font-size:14px;
  font-weight:600;
  color:#111827;
  margin-bottom:8px;
}

/* “Add to cart” – Vendyl pill button in related grid */

.single-product .related ul.products li.product .button {
  align-self:flex-start;
  margin-top:auto;
  border-radius:999px;
  padding:7px 18px;
  font-size:13px;
  font-weight:600;
  background:#266be3;
  color:#ffffff;
  border:none;
  box-shadow:0 10px 24px rgba(37,99,235,.45);
  transition:background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.single-product .related ul.products li.product .button:hover {
  background:#1d4ed8;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(37,99,235,.55);
}

/* Mobile tweaks */

@media (max-width:1024px){
  .single-product .product {
    padding-inline:14px;
  }
  .single-product .related ul.products li.product {
    width:calc(50% - 10px);
  }
}

@media (max-width:640px){
  .single-product .product {
    padding-inline:10px;
  }
  .single-product .related ul.products {
    gap:14px;
  }
  .single-product .related ul.products li.product {
    width:100%;
    max-width:none;
  }
}


/* 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;
}

/* 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;
  }
}
