/* =====================================================================
   BDevs Tech — custom WooCommerce styles
   Marketplace-style single product details (buy box, item info, tags).
   Loaded by kimox-child after kimox-woocommerce.css.
   ===================================================================== */

:root {
  --bdvs-primary: #22c55e;
  --bdvs-primary-dark: #16a34a;
  --bdvs-heading: #242629;
  --bdvs-body: #777a7e;
  --bdvs-border: #e9ebed;
  --bdvs-soft: #f2f3f5;
  --bdvs-white: #ffffff;
  --bdvs-radius: 10px;
}

/* ---------------------------------------------------------------------
   1. Page shell
   ------------------------------------------------------------------ */
.woocommerce-wrapper .woocommerce-notices-wrapper:empty {
  display: none;
}

.bdvs-pd {
  color: var(--bdvs-body);
}

.bdvs-pd img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------
   2. Header row — title, license, live preview
   ------------------------------------------------------------------ */

.bdvs-pd-title {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--bdvs-heading);
  margin: 0 0 10px;
}

.bdvs-pd-license {
  font-size: 15px;
  color: var(--bdvs-body);
  margin: 0;
}

.bdvs-pd-license strong {
  color: var(--bdvs-heading);
  font-weight: 600;
}

.bdvs-pd-livepreview {
  margin-top: 6px;
}

.bdvs-pd-btn-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 32px;
  border: 1px solid var(--bdvs-border);
  border-radius: 8px;
  background: var(--bdvs-white);
  color: var(--bdvs-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bdvs-pd-btn-border:hover,
.bdvs-pd-btn-border:focus {
  background: var(--bdvs-primary);
  border-color: var(--bdvs-primary);
  color: var(--bdvs-white);
}

/* ---------------------------------------------------------------------
   3. Left column — preview image
   ------------------------------------------------------------------ */
.bdvs-pd-thumb {
  position: relative;
  margin-bottom: 30px;
}

.bdvs-pd-thumb .product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.bdvs-pd-thumb .product-badge .onsale {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--bdvs-primary);
  color: var(--bdvs-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

.bdvs-pd-thumb .woocommerce-product-gallery {
  margin: 0;
  float: none;
  width: 100%;
}

.bdvs-pd-thumb .woocommerce-product-gallery__image img,
.bdvs-pd-thumb .product-details-thumb img {
  width: 100%;
  border-radius: var(--bdvs-radius);
  border: 1px solid var(--bdvs-border);
  display: block;
}

.bdvs-pd-thumb .swiper.product-details-active {
  border-radius: var(--bdvs-radius);
  overflow: hidden;
}

/* WooCommerce zoom/lightbox helpers that would otherwise overlap the image */
.bdvs-pd-thumb .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bdvs-white);
  color: var(--bdvs-heading);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   4. Buy box (sidebar on >=lg, inline on smaller screens)
   ------------------------------------------------------------------ */
.bdvs-pd-sidebar {
  position: sticky;
  top: 110px;
  padding-left: 10px;
}

.bdvs-pd-action-mobile {
  margin-bottom: 30px;
}

.bdvs-pd-action-box {
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--bdvs-border);
  border-radius: var(--bdvs-radius);
  background: var(--bdvs-white);
  box-shadow: 0 6px 30px rgba(36, 38, 41, 0.04);
}

.bdvs-pd-action-top {
  margin-bottom: 14px;
}

.bdvs-pd-widget-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bdvs-heading);
  margin: 0 0 20px;
}

.bdvs-pd-action-top .bdvs-pd-widget-title {
  margin: 0;
}

.bdvs-pd-action-top .product__details-offer {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--bdvs-primary-dark);
  font-size: 14px;
  font-weight: 600;
}

.bdvs-pd-price .price {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--bdvs-heading);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.bdvs-pd-price .price del {
  font-size: 22px;
  font-weight: 500;
  color: var(--bdvs-body);
  opacity: 1;
}

.bdvs-pd-price .price ins {
  text-decoration: none;
  color: var(--bdvs-heading);
}

.bdvs-pd-price .price .screen-reader-text {
  display: none;
}

.bdvs-pd-price-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--bdvs-body);
}

/* Add-to-cart form — stack quantity above a full-width button */
.bdvs-pd-cart {
  margin-top: 22px;
}

.bdvs-pd-cart .product-details-action-inner {
  display: block !important;
}

.bdvs-pd-cart .product-details-quantity {
  margin-bottom: 12px;
}

.bdvs-pd-cart .quantity {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid var(--bdvs-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bdvs-soft);
}

.bdvs-pd-cart .quantity .qty_button {
  width: 52px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bdvs-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease;
  user-select: none;
}

/* The theme's FontAwesome Pro sheet is dequeued on Elementor pages, so the
   +/- glyphs are drawn in CSS instead of relying on the icon font. */
.bdvs-pd-cart .quantity .qty_button i {
  display: none;
}

.bdvs-pd-cart .quantity .qty_button.minus::before {
  content: "\2212";
}

.bdvs-pd-cart .quantity .qty_button.plus::before {
  content: "+";
}

.bdvs-pd-cart .quantity .qty_button:hover {
  color: var(--bdvs-primary);
}

.bdvs-pd-cart .quantity input.qty,
.bdvs-pd-cart .quantity input[type="number"],
.bdvs-pd-cart .quantity input[type="text"] {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--bdvs-heading);
  -moz-appearance: textfield;
}

.bdvs-pd-cart .quantity input::-webkit-outer-spin-button,
.bdvs-pd-cart .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bdvs-pd-cart .quantity .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bdvs-pd-cart .product-details-add-to-cart {
  width: 100%;
}

.bdvs-pd-cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 15px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--bdvs-primary);
  color: var(--bdvs-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.bdvs-pd-cart .single_add_to_cart_button:hover,
.bdvs-pd-cart .single_add_to_cart_button:focus {
  background: var(--bdvs-primary-dark);
  color: var(--bdvs-white);
  transform: translateY(-1px);
}

.bdvs-pd-cart .added_to_cart {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bdvs-primary-dark);
}

/* Perks */
.bdvs-pd-perks {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--bdvs-border);
}

.bdvs-pd-perks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bdvs-body);
}

.bdvs-pd-perks li:last-child {
  margin-bottom: 0;
}

.bdvs-pd-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--bdvs-primary);
  border-bottom: 2px solid var(--bdvs-primary);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------------
   5. Documentation / support links
   ------------------------------------------------------------------ */
.bdvs-pd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.bdvs-pd-links  img {
  width: 165px;
  height: auto;
  flex: 0 0 auto;
}

.bdvs-pd-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px;
  border-radius: 8px;
  border: 1px solid var(--bdvs-border);
  background: var(--bdvs-white);
  color: var(--bdvs-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bdvs-pd-link svg {
  color: var(--bdvs-primary);
  flex: 0 0 auto;
  transition: color 0.3s ease;
}


.bdvs-pd-link:hover svg {
  color: var(--bdvs-white);
}

/* ---------------------------------------------------------------------
   6. Description
   ------------------------------------------------------------------ */
.bdvs-pd-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bdvs-body);
  word-wrap: break-word;
}

.bdvs-pd-desc > *:first-child {
  margin-top: 0;
}

.bdvs-pd-desc h1,
.bdvs-pd-desc h2,
.bdvs-pd-desc h3,
.bdvs-pd-desc h4,
.bdvs-pd-desc h5,
.bdvs-pd-desc h6 {
  color: var(--bdvs-heading);
  font-weight: 700;
  margin: 34px 0 14px;
  line-height: 1.3;
}

.bdvs-pd-desc h2 {
  font-size: 28px;
}

.bdvs-pd-desc h3 {
  font-size: 22px;
}

.bdvs-pd-desc h4 {
  font-size: 18px;
}

.bdvs-pd-desc p {
  margin: 0 0 18px;
}

.bdvs-pd-desc strong,
.bdvs-pd-desc b {
  color: var(--bdvs-heading);
  font-weight: 600;
}

.bdvs-pd-desc a {
  color: var(--bdvs-body);
  text-decoration: none;
}

.bdvs-pd-desc a:hover {
  text-decoration: underline;
}

.bdvs-pd-desc ul,
.bdvs-pd-desc ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.bdvs-pd-desc ol {
  list-style: decimal;
  padding-left: 20px;
}

.bdvs-pd-desc ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
}

.bdvs-pd-desc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bdvs-body);
}

.bdvs-pd-desc ol li {
  margin-bottom: 10px;
}

.bdvs-pd-desc blockquote {
  margin: 0 0 30px;
  padding: 28px 30px;
  border: 1px solid var(--bdvs-border);
  border-left: 4px solid var(--bdvs-primary);
  border-radius: var(--bdvs-radius);
  background: var(--bdvs-soft);
}

.bdvs-pd-desc blockquote > *:last-child {
  margin-bottom: 0;
}

.bdvs-pd-desc blockquote h2 {
  margin-top: 0;
  font-size: 22px;
}

.bdvs-pd-desc img {
  border-radius: 8px;
  margin: 6px 0;
}

.bdvs-pd-desc table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.bdvs-pd-desc table th,
.bdvs-pd-desc table td {
  padding: 10px 14px;
  border: 1px solid var(--bdvs-border);
  text-align: left;
}

/* ---------------------------------------------------------------------
   7. Sidebar widgets — Info + Related Tags
   ------------------------------------------------------------------ */
.bdvs-pd-widget {
  padding: 28px 30px;
  margin-bottom: 30px;
  border: 1px solid var(--bdvs-border);
  border-radius: var(--bdvs-radius);
  background: var(--bdvs-white);
}

.bdvs-pd-widget .bdvs-pd-widget-title {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bdvs-border);
  font-size: 22px;
}

.bdvs-pd-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--bdvs-border);
}

.bdvs-pd-meta-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bdvs-pd-meta-title {
  flex: 0 0 auto;
  width: 46%;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bdvs-heading);
  line-height: 1.5;
}

.bdvs-pd-meta-item p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bdvs-body);
}

.bdvs-pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bdvs-pd-tags a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--bdvs-border);
  border-radius: 30px;
  background: var(--bdvs-soft);
  color: var(--bdvs-body);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bdvs-pd-tags a:hover {
  background: var(--bdvs-primary);
  border-color: var(--bdvs-primary);
  color: var(--bdvs-white);
}

/* ---------------------------------------------------------------------
   8. Related / up-sell products
   ------------------------------------------------------------------ */
.woocommerce-wrapper .related.products,
.woocommerce-wrapper .up-sells.upsells {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--bdvs-border);
}

.woocommerce-wrapper .related.products > h2,
.woocommerce-wrapper .up-sells.upsells > h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--bdvs-heading);
  margin-bottom: 30px;
}

.woocommerce-wrapper .related.products .product-wrapper .product-title a {
  color: var(--bdvs-heading);
}

.woocommerce-wrapper .related.products .product-wrapper .product-title a:hover {
  color: var(--bdvs-primary);
}

.woocommerce-notices-wrapper {
  margin: 20px 0;
  padding: 15px 20px;
  border: 1px solid var(--bdvs-border);
  border-radius: var(--bdvs-radius);
  background: var(--bdvs-soft);
}

.woocommerce-notices-wrapper .woocommerce-message {
  color: var(--bdvs-body);
  font-size: 16px;
}

.woocommerce-notices-wrapper .woocommerce-message a {
  color: var(--bdvs-primary);
  text-decoration: none;
  font-weight: 600;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  color: var(--bdvs-heading);
  font-size: 16px !important;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata__description p {
  text-align: left;
  font-size: 14px;
}

/* ---------------------------------------------------------------------
   9. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1199px) {
  .bdvs-pd-title {
    font-size: 30px;
  }

  .bdvs-pd-meta-title {
    width: 50%;
  }
}

@media (max-width: 991px) {
  .bdvs-pd-sidebar {
    position: static;
    padding-left: 0;
  }

  .bdvs-pd-head .col-lg-5 {
    justify-content: flex-start !important;
  }

  .bdvs-pd-livepreview {
    margin-top: 16px;
  }
}

@media (max-width: 767px) {
  .bdvs-pd-title {
    font-size: 26px;
  }

  .bdvs-pd-action-box,
  .bdvs-pd-widget {
    padding: 22px 20px;
  }

  .bdvs-pd-price .price {
    font-size: 32px;
  }

  .bdvs-pd-desc h2 {
    font-size: 23px;
  }

  .bdvs-pd-desc h3 {
    font-size: 20px;
  }

  .bdvs-pd-meta-item {
    display: block;
  }

  .bdvs-pd-meta-title {
    width: 100%;
    margin-bottom: 2px;
  }
}
