/* =========================
   PRODUCT CARD
========================= */
.product-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* =========================
   PRODUCT IMAGE (FULL IMAGE)
========================= */
.product-img {
  position: relative;
}

.product-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* =========================
   DISCOUNT BADGE
========================= */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4d4d;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* =========================
   PRODUCT INFO
========================= */
.product-info {
  padding: 12px;
}

/* CATEGORY NAME */
.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;

  color: #8b8b8b;

  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;

  display: block;
  margin-bottom: 3px;
}

.weight-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 6px 0;

    font-size: 12px;
    font-weight: 600;

    color: #1a1a1a;
    background: #f1f3f6;

    border-radius: 6px;
    border: 1px dashed #d1d5db;

    letter-spacing: 0.3px;
}


.product-info h4 {
    font-size: 17px;
    line-height: 1.3em;

    display: -webkit-box;
    -webkit-line-clamp: 2;      /* show only 2 lines */
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;

    min-height: 2.6em;          /* 2 lines height */
}


/* PRODUCT NAME (FIXED 2 LINES) */
.product-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;     /* MAX 2 LINES */
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 36px;          /* FORCE SPACE EVEN IF 1 LINE */
}

/* =========================
   RATING & WEIGHT
========================= */
.rating {
  font-size: 12px;
  color: #f4b400;
}

.rating span {
  color: #777;
  margin-left: 4px;
}

.weight {
  font-size: 12px;
  color: #777;
  margin: 4px 0;
}

/* =========================
   PRICE
========================= */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: black;
}

.price-row del {
  font-size: 12px;
  color: #999;
}

.price-row .mrp {
  color: #999;
  font-size: 16px;
  text-decoration: line-through;
  opacity: 1;
}

/* =========================
   BUTTONS
========================= */
.btn-group-cart {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-addcart {
  flex: 1;
  background: #0da487;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 0;
  border: none;
  transition: background 0.3s ease;
}

.btn-addcart:hover {
  background: #0b8d73;
}

.btn-buynow {
  flex: 1;
  background: #ff9f00;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  border: none;
  transition: background 0.3s ease;
}

.btn-buynow:hover {
  background: #e68a00;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 576px) {
  .product-img img {
    height: 180px;
  }

  .product-name {
    font-size: 13px;
    min-height: 34px;
  }
}

#priceRange {
    display: none;
}

/* Cart icon animation */
.cart-animate {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ================= FORCE SMALL CATEGORY ON MOBILE ================= */
@media (max-width: 576px) {

    .slider-7_1 .shop-category-box {
        padding: 6px !important;
        min-height: auto !important;
    }

    .slider-7_1 .shop-category-image {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 4px !important;
    }

    .slider-7_1 .shop-category-image img {
        width: 24px !important;
        height: 24px !important;
    }

    .slider-7_1 .category-box-name h6 {
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    /* Reduce each slider item width */
    .slider-7_1 > div {
        padding: 0 3px !important;
    }
}

/* Rating container */
/* Rating container */
.product-rating.custom-rate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 5px;   /* ✅ FIXED */
    padding: 0;
}


/* Rating badge */
.product-rating .rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #0da487;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Feather star icon */
.product-rating .rating-badge svg,
.product-rating .rating-badge i {
    width: 14px;
    height: 14px;
    fill: #ffffff;        /* white filled star */
    stroke: #ffffff;
    stroke-width: 2;
    display: block;
}

/* Review text */
.product-rating .review {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .search-section {
        display: none;
    }
}

 .btn-group-cart form {
    margin: 0;
    width: 100%;
}
    .btn-addcart {
    display: block;      /* important */
    width: 100%; 
    padding: 8px 15px;
    background-color: #00a884;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    
}