/*
Theme Name: Bosa Ecommerce Child
Template: bosa
Version: 1.0
*/

.product-disclaimer {
    display: block !important;
    clear: both;
    margin-top: 10px;
    color: #666;
    font-size:14px;
}

/* Out of stock badge on product listings */
.outofstock-badge {
    background-color: maroon !important;
}

/* Out of stock badge on product listings */
/* .outofstock-badge {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: maroon;
    border-radius: 0;
    font-weight: 400;
    line-height: initial;
    padding: 5px 10px;
    color: #fff;
    font-size: .857em;
    z-index: 9;
    margin: 0;
}
*/
/* Sale badge */
/* .onsale {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c; 
    padding: 5px 10px;
    font-size: .857em;
    font-weight: bold;
    color: #fff;
    z-index: 10;
}*/

/* Disable theme's pseudo-element badge */
.onsale::before {
    content: none !important;
}

/* Sale badge styling */
.onsale {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c; /* red */
    padding: 5px 10px;
    font-size: .857em;
    font-weight: bold;
    color: #fff;
    z-index: 10;
}

/* Out of stock badge styling */
.outofstock-badge {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: maroon;
    border-radius: 0;
    font-weight: 400;
    line-height: initial;
    padding: 5px 10px;
    color: #fff;
    font-size: .857em;
    z-index: 10;
    margin: 0;
}



/*
woocommerce span.outofstock-badge {
    border-radius: 0px;
    min-width: auto;
    min-height: auto;
    font-weight: 400;
    line-height: initial;
    padding: 5px 10px;
color: #fff;
    font-size: .857em;
    z-index: 9;
margin: 0;
    top: 15px;
    left: 15px;
}


.stock-badge {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    z-index: 10;
}
*/
/*.onsale {
    background: #e74c3c; 
} */


/**********************************/
/**********************************************
**** DISPLAYING PRODUCTS **********************
************************************/
/* Enhanced fallback message styling */

.custom-archive-container {
  max-width: 1200px;   /* adjust as needed */
  margin: 0 auto;      /* centers the box */
  padding: 0 20px;     /* breathing space */
}

/* Breadcrumb spacing + style */
.woocommerce-breadcrumb {
  margin-top: 25px;        /* space below nav bar */
  margin-bottom: 20px;     /* space before title */
  font-size: 0.9rem;
  color: #6b7280;          /* subtle gray */
}

.woocommerce-breadcrumb a {
  color: #4f46e5;          /* link color (indigo) */
  text-decoration: none;
  transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
  color: #9333ea;          /* hover accent */
}
/***********ENDS HERE ****************/

/* Page title styling */
.page-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #1f2937;          /* dark gray */
  margin-bottom: 10px;
  text-align: left;      /* center align for emphasis */
}

/* Divider under title */
.title-divider {
  border: 0;
  border-top: 2px solid #e5e7eb;
  margin: 15px auto 30px;
  width: 100%;              /* shorter line for elegance */
}

@media (max-width: 575px) {
  .page-title {
    font-size: 1.3rem;
  }
  .title-divider {
    width: 80%;
  }
}

/***********ENDS HERE ****************/

.no-products {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6); /* subtle gradient for depth */
  border: 1px solid #e5e7eb;
  padding: 30px 25px;
  text-align: center;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* soft shadow for elevation */
  animation: fadeIn 0.6s ease-in-out; /* smooth entry */
}

.no-products p {
  margin: 12px 0;
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.6;
}

.no-products p:first-child {
  font-weight: 600;
  color: #1f2937; /* darker for emphasis */
}

.no-products .button {
  display: inline-block;
  background: linear-gradient(90deg, #6b21a8, #9333ea); /* platinum purple gradient */
  color: #fff;
  padding: 12px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(107,33,168,0.3);
}

.no-products .button:hover {
  background: linear-gradient(90deg, #9333ea, #a855f7);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(107,33,168,0.4);
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/********************************************************/

/* Force WooCommerce product grid to behave consistently */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Desktop: 3 products per row */
ul.products.columns-3 li.product {
  flex: 0 0 calc(33.333% - 24px);
}

/* Tablet: 2 products per row */
@media (max-width: 991px) {
  ul.products.columns-3 li.product {
    flex: 0 0 calc(50% - 24px);
  }
}

/* Mobile: 1 product per row */
@media (max-width: 575px) {
  ul.products.columns-3 li.product {
    flex: 0 0 100%;
  }
}

/* Ensure product cards look consistent */
ul.products li.product {
  margin: 0;
  text-align: center;
  position: relative; /* needed for absolute sale badge */
}

ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  line-height: 1.4;
  margin: 10px 0;
}

ul.products li.product .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}


/***************************************************************
Style for Unified availability logic for single product page 
***************************************************************/
.variation-list {
  margin-top: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0; /* minimalist border */
  border-radius: 6px;
  background: #fafafa; /* subtle platinum background */
  font-size: 14px;
  line-height: 1.6;
}

.variation-list strong {
  font-weight: 600;
  color: #333;
  margin-right: 6px;
}

.variation-list span {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}

.variation-list span.in-stock {
  color: #222;
}

.variation-list span.out-of-stock {
  text-decoration: line-through;
  opacity: 0.5;
  background: #f5f5f5;
}

.variation-sizes {
  margin-bottom: 10px; /* spacing between rows */
}

@media (max-width: 768px) {
  .variation-list {
    font-size: 13px;
    padding: 8px 10px;
  }
  .variation-list span {
    padding: 3px 8px;
    margin: 0 4px 4px 0;
  }
}
/*************************************/