/*
Theme Name: Luchiana-Child
Theme URI: https://parkofideas.com/luchiana/
Text Domain: luchiana-child
Description: Cosmetics and Beauty Shop Theme
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.2
Template: luchiana
Author: parkofideas.com
Author URI: https://parkofideas.com
Tags: right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, theme-options, translation-ready
*/

/* === Product Grid === */
/* === Custom WooCommerce Product Grid === */
ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.products li.product {
  width: 250px;
  flex: 0 0 250px;
  box-sizing: border-box;
  display: flex;
}

/* === Product Card === */
.sterling-product-card {
  width: 25%;
margin-right: 10px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.sterling-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === Image Wrapper === */
.sterling-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 16px;
}

.sterling-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* === Title === */
.sterling-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

.sterling-title a {
  color: inherit;
  text-decoration: none;
}

/* === Category === */
.sterling-category {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

/* === Price === */
.sterling-price {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

/* === Stock Notice === */
.sterling-stock.sterling-low {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 600;
  margin-bottom: 10px;
}

/* === Rating === */
.sterling-rating {
  margin-bottom: 6px;
}

/* === Add to Cart Button === */
.sterling-cart-btn {
  margin-top: auto;
}

.sterling-cart-btn .button {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  text-transform: none;
  transition: background 0.3s ease;
}

.sterling-cart-btn .button:hover {
  background-color: #333;
}

/* === Responsive Fixes === */
@media (max-width: 1024px) {
  ul.products li.product {
    width: calc(25% - 24px);
    flex: 0 0 calc(25% - 24px);
  }
}

@media (max-width: 768px) {
  ul.products li.product {
    width: calc(50% - 24px);
    flex: 0 0 calc(50% - 24px);
  }
}

@media (max-width: 480px) {
  ul.products li.product {
    width: 100%;
    flex: 0 0 100%;
  }
}

