/* ==========================================================================
   YardCraft Tools - Single Product Page Styles & Trust Widget (#gh-pb3)
   ========================================================================== */

/* Single Product Top Section */
.single-product .entry-summary {
  padding-left: 15px !important;
}

.single-product .product_title {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #141b52 !important;
  line-height: 1.3 !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.01em !important;
}

.single-product .summary .price {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #2D5A27 !important;
  margin: 0 0 16px 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}

.single-product .summary .price del {
  font-size: 19px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.single-product .summary .price ins {
  text-decoration: none !important;
  color: #2D5A27 !important;
}

.single-product .summary .stock.in-stock {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 5px 14px !important;
  border-radius: 6px !important;
  margin: 0 0 20px 0 !important;
}

/* Row layout for quantity, Add to Cart & Buy Now */
form.cart:not(.variations_form),
.single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 0 14px 0 !important;
}

/* Quantity selector */
form.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  height: 48px !important;
  margin: 0 !important;
  overflow: hidden !important;
  float: none !important;
  transition: border-color .2s ease !important;
}

form.cart .quantity:hover,
form.cart .quantity:focus-within {
  border-color: #2D5A27 !important;
}

form.cart .quantity input.qty {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #141b52 !important;
}

form.cart .quantity .minus,
form.cart .quantity .plus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 36px !important;
  height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #2D5A27 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .2s !important;
}

form.cart .quantity .minus:hover,
form.cart .quantity .plus:hover {
  background: #f0fdf4 !important;
}

/* Add to Cart button - Ultra Specific & Always Visible */
html body.single-product.woocommerce div.summary form.cart button.button.alt.single_add_to_cart_button,
html body.single-product div.summary form.cart button.single_add_to_cart_button,
html body.single-product form.cart button.single_add_to_cart_button,
html body.single-product .single_add_to_cart_button,
form.cart button.single_add_to_cart_button,
form.cart .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-width: 150px !important;
  padding: 0 24px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #2D5A27 !important;
  border: 2px solid #2D5A27 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-indent: 0 !important;
  line-height: normal !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: all .2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html body.single-product form.cart button.single_add_to_cart_button *,
html body.single-product form.cart .single_add_to_cart_button * {
  color: #2D5A27 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body.single-product.woocommerce div.summary form.cart button.button.alt.single_add_to_cart_button:hover,
html body.single-product div.summary form.cart button.single_add_to_cart_button:hover,
html body.single-product form.cart button.single_add_to_cart_button:hover,
html body.single-product .single_add_to_cart_button:hover,
form.cart button.single_add_to_cart_button:hover,
form.cart .single_add_to_cart_button:hover {
  background: #2D5A27 !important;
  background-color: #2D5A27 !important;
  color: #ffffff !important;
  border-color: #2D5A27 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.25) !important;
}

html body.single-product form.cart button.single_add_to_cart_button:hover *,
html body.single-product form.cart .single_add_to_cart_button:hover * {
  color: #ffffff !important;
}

/* Buy Now button */
html body.single-product div.summary form.cart .gh-buy-now,
html body.single-product form.cart .gh-buy-now,
html body.single-product .gh-buy-now,
form.cart .gh-buy-now {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-width: 150px !important;
  padding: 0 24px !important;
  background: #2D5A27 !important;
  background-color: #2D5A27 !important;
  color: #ffffff !important;
  border: 2px solid #2D5A27 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(45, 90, 39, 0.35) !important;
  transition: all .2s ease !important;
}

html body.single-product div.summary form.cart .gh-buy-now:hover,
html body.single-product form.cart .gh-buy-now:hover,
html body.single-product .gh-buy-now:hover,
form.cart .gh-buy-now:hover {
  background: #1e3d1a !important;
  background-color: #1e3d1a !important;
  border-color: #1e3d1a !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(45, 90, 39, 0.45) !important;
}

form.cart .gh-buy-now.gh-loading,
form.cart .single_add_to_cart_button.gh-loading {
  opacity: .7 !important;
  pointer-events: none !important;
}

/* Trust Line below Cart */
.gh-trust-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 6px 0 16px 0 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
}

.gh-trust-line svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}

/* Wishlist adjustment */
.wd-wishlist-btn {
  margin: 6px 0 14px 0 !important;
}

/* ==========================================================================
   #gh-pb3 YardCraft Guarantee Box
   ========================================================================== */
#gh-pb3, #gh-pb3 *, #gh-pb3 *::before, #gh-pb3 *::after {
  box-sizing: border-box !important;
  animation: none !important;
}

#gh-pb3 {
  --navy: #141b52;
  --green: #2D5A27;
  --green-dark: #1e3d1a;
  --tint: #f0fdf4;
  --ink: #0f1733;
  --muted: #5b6478;
  --line: #e2e8f0;
  --ok: #15803d;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 0 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--ink) !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

#gh-pb3 p {
  margin: 0 !important;
  padding: 0 !important;
}

#gh-pb3 svg {
  display: block !important;
  fill: none !important;
  stroke: var(--green) !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#gh-pb3 .gp-shell {
  display: block !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}

/* Header */
#gh-pb3 .gp-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px 16px !important;
  padding: 14px 18px !important;
  background: var(--green) !important;
}

#gh-pb3 .gp-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
}

#gh-pb3 .gp-sub {
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: #dcfce7 !important;
  margin-top: 2px !important;
}

#gh-pb3 .gp-stock {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--ok) !important;
  line-height: 1.2 !important;
}

#gh-pb3 .gp-dot {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--ok) !important;
}

/* Quick facts */
#gh-pb3 .gp-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  border-bottom: 1px solid var(--line) !important;
  background: var(--tint) !important;
}

#gh-pb3 .gp-fact {
  flex: 1 1 150px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 11px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--green-dark) !important;
}

#gh-pb3 .gp-fact svg {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
}

/* Body */
#gh-pb3 .gp-body {
  display: block !important;
  padding: 14px !important;
}

/* Assembly / Highlight card */
#gh-pb3 .gp-assm {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  margin: 0 0 10px 0 !important;
  border: 1px solid var(--line) !important;
  border-left: 3.5px solid var(--green) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

/* Cards grid */
#gh-pb3 .gp-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 10px !important;
}

#gh-pb3 .gp-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

#gh-pb3 .gp-ico {
  flex: 0 0 20px !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin-top: 1px !important;
}

#gh-pb3 .gp-ico svg {
  width: 20px !important;
  height: 20px !important;
}

#gh-pb3 .gp-t {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
}

#gh-pb3 .gp-s {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  margin-top: 2px !important;
}

#gh-pb3 .gp-s a {
  color: var(--green) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* Contact strip */
#gh-pb3 .gp-foot {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px 18px !important;
  padding: 10px 14px !important;
  border-top: 1px solid var(--line) !important;
  background: #ffffff !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}

#gh-pb3 .gp-foot a {
  color: var(--muted) !important;
  text-decoration: none !important;
}

#gh-pb3 .gp-foot a:hover {
  color: var(--green) !important;
  text-decoration: underline !important;
}

/* Added-to-cart popup */
#gh-pop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}
#gh-pop.on {
  display: flex !important;
}
#gh-pop .gp-bg {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .6) !important;
  animation: gp-fade .25s ease both !important;
}
#gh-pop .gp-box {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .45) !important;
  animation: gp-in .3s ease both !important;
}
#gh-pop .gp-head {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 18px !important;
  background: #2D5A27 !important;
  color: #ffffff !important;
}
#gh-pop .gp-check {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #16a34a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#gh-pop .gp-check svg {
  width: 17px !important;
  height: 17px !important;
}
#gh-pop .gp-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #ffffff !important;
}
#gh-pop .gp-sub {
  font-size: 12px !important;
  opacity: .9 !important;
  margin: 2px 0 0 !important;
  color: #dcfce7 !important;
}
#gh-pop .gp-x {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  width: 30px !important;
  height: 30px !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .2) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 30px !important;
  cursor: pointer !important;
  padding: 0 !important;
}
#gh-pop .gp-x:hover {
  background: rgba(255, 255, 255, .35) !important;
}
#gh-pop .gp-item {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 18px !important;
}
#gh-pop .gp-img {
  flex: 0 0 78px !important;
  width: 78px !important;
  height: 78px !important;
  border-radius: 10px !important;
  border: 1px solid #e1e7f5 !important;
  background: #f8fafc center/contain no-repeat !important;
}
#gh-pop .gp-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #141b52 !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;
}
#gh-pop .gp-meta {
  font-size: 13px !important;
  color: #5b6478 !important;
  margin: 0 !important;
}
#gh-pop .gp-meta b {
  color: #2D5A27 !important;
  font-size: 15px !important;
}
#gh-pop .gp-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 0 18px 18px !important;
}
#gh-pop .gp-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all .2s ease !important;
}
#gh-pop .gp-cart {
  background: #ffffff !important;
  color: #2D5A27 !important;
  border: 2px solid #2D5A27 !important;
}
#gh-pop .gp-cart:hover {
  background: #2D5A27 !important;
  color: #ffffff !important;
}
#gh-pop .gp-co {
  background: #2D5A27 !important;
  color: #ffffff !important;
  border: 2px solid #2D5A27 !important;
}
#gh-pop .gp-co:hover {
  background: #1e3d1a !important;
  border-color: #1e3d1a !important;
}
#gh-pop .gp-cont {
  grid-column: 1/-1 !important;
  background: none !important;
  border: none !important;
  color: #5b6478 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  padding: 4px !important;
  text-align: center !important;
}

@keyframes gp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gp-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  #gh-pb3 .gp-head { padding: 12px 14px !important; }
  #gh-pb3 .gp-title { font-size: 15px !important; }
  #gh-pb3 .gp-sub { font-size: 11.5px !important; }
  #gh-pb3 .gp-stock { font-size: 11.5px !important; }
  #gh-pb3 .gp-fact { flex: 1 1 100% !important; justify-content: flex-start !important; padding: 8px 14px !important; }
  #gh-pb3 .gp-grid { grid-template-columns: 1fr !important; }
  form.cart .single_add_to_cart_button,
  form.cart .gh-buy-now { flex: 1 1 130px !important; min-width: 0 !important; padding: 0 12px !important; font-size: 12px !important; }
  #gh-pop { align-items: flex-end !important; padding: 0 !important; }
  #gh-pop .gp-box { max-width: 100% !important; border-radius: 14px 14px 0 0 !important; }
}

/* ==========================================================================
   Product Details Cards (Description, Shipping & Reviews)
   ========================================================================== */
.product-tabs-wrapper {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  background: transparent !important;
}

.woocommerce-tabs {
  display: none !important;
}

.yardcraft-product-cards-wrap {
  width: 100% !important;
  margin-top: 15px !important;
  margin-bottom: 25px !important;
}

.yardcraft-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
}

.yardcraft-card .yc-card-head {
  padding: 20px 28px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
  background: #fafcff !important;
}

.yardcraft-card .yc-card-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #141b52 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.yardcraft-card .yc-card-body {
  padding: 28px 32px !important;
}

/* Description Typography */
.yc-desc-body {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.yc-desc-body p {
  margin: 0 0 16px 0 !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.yc-desc-body strong,
.yc-desc-body b {
  color: #141b52 !important;
  font-weight: 700 !important;
}

.yc-desc-body ul,
.yc-desc-body ol {
  margin: 0 0 20px 0 !important;
  padding-left: 24px !important;
  line-height: 1.8 !important;
}

.yc-desc-body li {
  margin-bottom: 8px !important;
  color: #334155 !important;
}

.yc-desc-body h2,
.yc-desc-body h3,
.yc-desc-body h4 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #141b52 !important;
  margin: 24px 0 12px 0 !important;
}

/* Shipping / Guarantee Grid */
.yardcraft-policy-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
}

.yardcraft-policy-col {
  background: #f8faff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
}

.yardcraft-policy-col .yc-col-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.yardcraft-policy-col h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #2D5A27 !important;
  margin: 0 !important;
}

.yardcraft-policy-col p {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}

.yardcraft-policy-col a {
  color: #2D5A27 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* Reviews styling */
.yardcraft-reviews-card #comments {
  margin: 0 !important;
}

.yardcraft-reviews-card .woocommerce-Reviews-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #141b52 !important;
  margin-bottom: 14px !important;
}

.yardcraft-reviews-card .comment-respond .comment-reply-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #141b52 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .yardcraft-card .yc-card-body {
    padding: 20px 18px !important;
  }
  .yardcraft-card .yc-card-head {
    padding: 16px 20px !important;
  }
}
