/* ========================================================
   DRC Single Product Layout v2 — 2026-05-17 (clean grid)
   ======================================================== */

/* ===== Single product genel ===== */
.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) !important;
  gap: 40px !important;
  margin: 24px 0 32px 0 !important;
  align-items: start !important;
}
@media (max-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Gallery */
.single-product .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__wrapper {
  border: 1px solid var(--gray-200, #e5e7eb) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fafafa !important;
}
.single-product .woocommerce-product-gallery img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  padding: 32px !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Summary */
.single-product .summary.entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .summary .product_title {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 16px 0 !important;
  color: var(--dark, #0f2748) !important;
}
.single-product .summary .price {
  font-size: 26px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  color: var(--primary, #0b5394) !important;
}
.single-product .summary .price del { opacity: .5; font-size: 18px; margin-right: 10px; font-weight: 500; }
.single-product .summary .price ins { text-decoration: none; }
.single-product .summary .stock {
  display: inline-block !important;
  padding: 4px 10px !important;
  background: #e6f4ea !important;
  color: #137333 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}
.single-product .summary .stock.out-of-stock { background: #fee2e2 !important; color: #b91c1c !important; }
.single-product .summary form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 20px 0 !important;
}
.single-product .summary form.cart .quantity input {
  width: 70px !important;
  padding: 12px !important;
  font-size: 16px !important;
  border: 1px solid var(--gray-200, #e5e7eb) !important;
  border-radius: 6px !important;
  text-align: center !important;
}
.single-product .summary .single_add_to_cart_button,
.single-product .summary .button.alt {
  background: var(--primary, #0b5394) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  border: 0 !important;
  cursor: pointer !important;
}
.single-product .summary .single_add_to_cart_button:hover { background: #094275 !important; }
.single-product .product_meta {
  margin-top: 24px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--gray-200, #e5e7eb) !important;
  font-size: 13px !important;
  color: var(--gray-600, #4b5563) !important;
}
.single-product .product_meta > span { display: block !important; margin: 4px 0 !important; }

/* Tabs */
.single-product .woocommerce-tabs {
  margin-top: 40px !important;
  border-top: 1px solid var(--gray-200, #e5e7eb) !important;
  padding-top: 28px !important;
}
.single-product .woocommerce-tabs .wc-tabs {
  display: flex !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  border-bottom: 2px solid var(--gray-200, #e5e7eb) !important;
  list-style: none !important;
}
.single-product .woocommerce-tabs .wc-tabs li { margin: 0 !important; list-style: none !important; background: none !important; border: 0 !important; }
.single-product .woocommerce-tabs .wc-tabs li::before,
.single-product .woocommerce-tabs .wc-tabs li::after { display: none !important; }
.single-product .woocommerce-tabs .wc-tabs li a {
  padding: 14px 22px !important;
  display: block !important;
  color: var(--gray-600, #4b5563) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  transition: color .15s, border-color .15s !important;
}
.single-product .woocommerce-tabs .wc-tabs li.active a {
  color: var(--primary, #0b5394) !important;
  border-bottom-color: var(--primary, #0b5394) !important;
}
.single-product .woocommerce-tabs .panel { padding: 20px 0 !important; line-height: 1.7 !important; color: var(--gray-700, #374151) !important; }


/* ============================================
   v3 — full-bleed container + auto-fit grid
   ============================================ */
.related.products,
.upsells.products {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 56px !important;
  padding: 36px 24px 32px 24px !important;
  border-top: 2px solid var(--gray-200, #e5e7eb) !important;
  background: #f8fafc !important;
  clear: both !important;
  float: none !important;
  box-sizing: border-box !important;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--dark, #0f2748) !important;
  margin: 0 auto 24px auto !important;
  padding: 0 !important;
  text-align: center !important;
  max-width: 1200px !important;
}

.related.products > .products,
.related.products ul.products,
.upsells.products > .products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  justify-content: center !important;
}

.related.products .products li.product,
.upsells.products .products li.product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
  padding: 16px !important;
  background: #fff !important;
  border: 1px solid var(--gray-200, #e5e7eb) !important;
  border-radius: 10px !important;
  min-height: 380px !important;
  margin: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: box-shadow .2s, transform .2s, border-color .2s !important;
}
.related.products .products li.product:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
  transform: translateY(-3px) !important;
  border-color: var(--primary, #0b5394) !important;
}

.related.products .products li.product img {
  width: 100% !important;
  height: 180px !important;
  object-fit: contain !important;
  background: #fafafa !important;
  border-radius: 8px !important;
  padding: 10px !important;
  margin: 0 0 12px 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

.related.products .products li.product .woocommerce-loop-product__title,
.related.products .products li.product h2,
.related.products .products li.product h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--dark, #0f2748) !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 38px !important;
}

.related.products .products li.product .price {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--primary, #0b5394) !important;
  margin: 0 0 10px 0 !important;
  min-height: 24px !important;
}
.related.products .products li.product .price del {
  opacity: .45; font-size: 12px; margin-right: 6px; font-weight: 500;
}
.related.products .products li.product .price ins { text-decoration: none; }
.related.products .products li.product .price .screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px) !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  padding: 0 !important; margin: 0 !important;
}

.related.products .products li.product .button,
.related.products .products li.product .add_to_cart_button,
.related.products .products li.product a.button {
  margin-top: auto !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 11px 14px !important;
  background: var(--primary, #0b5394) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.related.products .products li.product .button:hover { background: #094275 !important; }

.related.products .products li.product .onsale {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #d92534 !important;
  color: #fff !important;
  padding: 3px 9px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  z-index: 2 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}
.related.products .products li.product .drc-request-quote { background: #6b7280 !important; }
.related.products .products li.product .drc-price-on-request {
  font-size: 13px !important; color: var(--gray-600, #4b5563) !important;
  margin: 0 0 10px 0 !important; min-height: 24px !important;
}
