/* custom-product.css — affects only product pages */

/* Prices */
.single-product .price {
  display: inline-block;
  margin-top: 10px;
}

.single-product .old-price {
  opacity: 0.6;
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 1.1em;
  color: #777;
}

.single-product .new-price {
  color: #e63946;
  font-weight: 600;
  font-size: 1.3em;
}

/* Description box */
.single-product .woocommerce-product-details__short-description {
  background: #fafafa;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  line-height: 1.6;
}

/* Product Image */
.single-product .woocommerce-product-gallery__image img {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .single-product .new-price {
    font-size: 1.1em;
  }
  .single-product .woocommerce-product-details__short-description {
    padding: 10px;
  }
}

/* === WooCommerce product page cleanup === */
body.woocommerce.single-product .sf-live-cart__panel {
  display: none !important;
}

/* Hide WordPress sidebar widgets (Pages, Archives, Categories) only on product pages */
body.woocommerce.single-product aside,
body.woocommerce.single-product .widget-area,
body.woocommerce.single-product .sidebar,
body.woocommerce.single-product #secondary {
  display: none !important;
}

/* Fix layout cut-off issue on mobile (force full width) */
body.woocommerce.single-product .site-content,
body.woocommerce.single-product main,
body.woocommerce.single-product .content-area,
body.woocommerce.single-product .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Ensure product images and description stay centered and responsive */
body.woocommerce.single-product .product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* --- Fix: hide hidden cart fragments only on product pages --- */
.single-product .widget_shopping_cart_live_region,
.single-product .screen-reader-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* === Product Image === */
.woocommerce-product-gallery {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  width: 94% !important;
  margin: 0 auto 20px auto !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08) !important;
  background: #fff !important;
  padding: 8px !important;
}

.woocommerce-product-gallery img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid #eee !important;
  display: block !important;
}

/* === SALE Badge === */
.onsale {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background-color: #f9ca24 !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
  z-index: 30 !important;
  text-transform: uppercase !important;
}

/* === Add to Cart + Quantity Alignment === */
.single-product form.cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 20px auto 10px auto !important;
  flex-wrap: wrap !important;
}

.single-product form.cart .quantity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.single-product form.cart .quantity input {
  height: 44px !important;
  font-size: 1.1em !important;
  border-radius: 10px !important;
  border: 2px solid #ccc !important;
  text-align: center !important;
  width: 70px !important;
  font-weight: 600 !important;
}

.single-product button.single_add_to_cart_button {
  height: 46px !important;
  font-size: 1.05em !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 0 24px !important;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  transition: all 0.25s ease !important;
}

.single-product button.single_add_to_cart_button:hover {
  background: #000 !important;
  transform: translateY(-2px);
}

/* === White Description === */
.woocommerce-product-details__short-description {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 22px 18px !important;
  margin-top: 15px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
  line-height: 1.7 !important;
  white-space: pre-line !important;
}

/* === Hide WooCommerce Reviews + Description Tabs === */
#reviews,
.woocommerce-Reviews,
.woocommerce-tabs #tab-reviews,
.woocommerce-Tabs-panel--reviews,
.woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce-Tabs-panel--description,
.woocommerce-tabs ul.tabs li.description_tab {
  display: none !important;
}
