/*
 Theme Name: Delight Woostify Child
 Theme URI: https://woostify.com/
 Description: Woostify WordPress theme example child theme.
 Author: Woostify
 Author URI: https://woostify.com/
 Template: woostify
 Version: 1.0.0
*/



.woocommerce ul.products li.product .price del {
    margin-right: 8px;
    opacity: 0.6;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}



/* ======================================================
   PRODUCT GRID FIX
====================================================== */

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image box same height */
.woocommerce ul.products li.product img {
    height: 260px;
    object-fit: contain;
}

/* Title same height */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    min-height: 0px;
}

/* Price block same height */
.woocommerce ul.products li.product .price {
    min-height: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button aligned bottom */
.woocommerce ul.products li.product .button {
    margin-top: auto;
}








/* ======================================================
   PRODUCT PAGE STYLES — ORGANIZED & MAINTAINABLE
====================================================== */


/* ==========================
   PAGE BACKGROUND
========================== */

.single-product {
  background: #ffffff;
}


/* ==========================
   MAIN PRODUCT WRAP
========================== */

.single-product .product {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================
   PRODUCT HERO GRID
========================== */

.single-product .woocommerce-product-gallery,
.single-product .summary {
  padding: 20px;
}


/* ==========================
   PRODUCT IMAGE
========================== */

.single-product .woocommerce-product-gallery img {
  border-radius: 24px;
  background: #fafafa;
}


/* ==========================
   PRODUCT TITLE
========================== */

.single-product .product_title {
  font-size: 35px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}


/* ==========================
   PRODUCT PRICE
========================== */

/* Style the main price (for both simple & variable products) */
.single-product .price {
    font-size: 30px;
    font-weight: 800;
    color: #111;
    margin: 18px 0 22px;
}

/* Strike-through for sale prices */
.single-product .price del {
    color: #888;
    font-size: 18px;
    margin-right: 10px;
}

/* Hide ONLY the Woostify injected price near title (affects both simple & variable) */
.single-product .woostify-product-price,
.single-product .summary .price:not(.woocommerce-variation-price .price) {
    display: none !important;
}

/* Force the variation price (only for variable products) to always show */
.single-product .summary .woocommerce-variation-price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure the regular price on SIMPLE PRODUCTS is visible */
.single-product:not(.product-type-variable) .summary .price {
    display: block !important;
    visibility: visible !important;
}





/* ==========================
   SHORT DESCRIPTION
========================== */

.single-product .woocommerce-product-details__short-description {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  max-width: 520px;
  margin-bottom: 28px;
}


/* ==========================
   VARIATIONS
========================== */

.single-product .variations select {
  padding: 1px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
}


/* ==========================
   ADD TO CART BUTTON
========================== */

.single-product .single_add_to_cart_button {
  background: #C94528;
  color: #fff;
  border-radius: 54px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

.single-product .single_add_to_cart_button:hover {
  background: #111;
  transform: translateY(-1px);
}




/* ==========================
   WISHLIST
========================== */

.single-product .add-to-wishlist {
  margin-top: 12px;
}


/* ==========================
   TABS SECTION (Wrapper)
========================== */

.single-product .woocommerce-tabs {
  margin-top: 60px;
  text-align: center;
}


/* ==========================
   TABS CONTAINER (Buttons)
========================== */

.single-product .woocommerce-tabs ul.tabs {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 2px solid #ddd;
  background: #fff;
  margin: 0 auto 40px;
}

/* Remove Woo default line */
.single-product .woocommerce-tabs ul.tabs::before {
  display: none;
}


/* ==========================
   TAB ITEMS
========================== */

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}


/* ==========================
   TAB BUTTONS
========================== */

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  color: #C94528;
  background: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover */
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #000;
}

/* Active */
.single-product .woocommerce-tabs ul.tabs li.active a {
  background: #B82100;
  color: #fff;
}

/* Remove underline */
.single-product .woocommerce-tabs ul.tabs li a::before {
  display: none;
}


/* ==========================
   TAB CONTENT
========================== */

.single-product .woocommerce-Tabs-panel {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  animation: fadeIn 0.35s ease;
}


/* ==========================
   TAB CONTENT HEADINGS
========================== */

.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 50px 0 18px;
}


/* ==========================
   TAB CONTENT LISTS
========================== */

.single-product .woocommerce-Tabs-panel ul {
  padding-left: 20px;
}

.single-product .woocommerce-Tabs-panel li {
  margin-bottom: 10px;
}


/* ==========================
   TAB ANIMATION
========================== */

@keyframes fadeIn {
  from {
    opacity: 1;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================
   RELATED PRODUCTS
========================== */

.single-product .related.products {
  margin-top: 100px;
}

.single-product .related.products h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 30px;
}


/* ==========================
   MOBILE OPTIMIZATION
========================== */

@media (max-width: 768px) {

  /* Tabs layout */
  .single-product .woocommerce-tabs ul.tabs {
    width: auto;
    max-width: 100%;
  }

  .single-product .woocommerce-tabs ul.tabs li {
    flex: 1;
  }

  /* Typography */
  .single-product .product_title {
    font-size: 28px;
  }

  .single-product .price {
    font-size: 24px;
  }

  .single-product .woocommerce-product-details__short-description {
    font-size: 16px;
  }

}
