/* ===============================
   PRODUCT CARD – HORIZONTAL
   =============================== */

.product-card-horizontal {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  width: 100%;
  min-height: 40px;
}

/* LEFT IMAGE */
.product-left {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-left img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

/* RIGHT CONTENT */
.product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TITLE */
.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 🔑 max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: calc(1.35em * 2); /* 🔑 reserve space */
  margin-bottom: 4px;
}


/* PRICE */
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: #e67e22;
}

/* PACKAGE SLABS */
.package-slabs {
  margin-top: 6px;
  font-size: 13px;
  min-height: 60px;

  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.package-slabs.is-empty {
  visibility: hidden;
}
.package-slabs .slab-row {
    display: flex;
    justify-content: space-between;
    line-height: 1.4;
    gap: 8px;
}

.package-slabs .slab-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CONTROLS */
.cart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  flex-wrap: wrap;
}

/* QTY */
.product-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-qty button {
  width: 32px;
  height: 32px;
}

.product-qty input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: none;  outline: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  pointer-events: none;
}


/* ADD BUTTON */
.addtocartbtn {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent-color);
  font-weight: 600;
  white-space: nowrap;
}

/* EYE BUTTON */
.eye-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;

  display: inline-flex;          /* better than flex for buttons */
  align-items: center;           /* vertical center */
  justify-content: center;       /* horizontal center */

  padding: 0;                    /* remove bootstrap padding */
  line-height: 1;                /* prevent icon offset */
}

.eye-btn i {
  font-size: 18px;
  line-height: 1;
}

/* ===============================
   MOBILE VIEW
   =============================== */
@media (max-width: 576px) {
  .product-card-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .product-left img {
    height: 180px;
  }

  .cart-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* Brand Watermark on Product */
.product-card .image-wrapper { position: relative; overflow: hidden; }
.product-card .image-wrapper img.product-img { position: relative; z-index: 1; }
.product-card .brand-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0.20;
  pointer-events: none;
}
.product-card .brand-watermark img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
  filter: grayscale(100%);
}
.product-card:hover .brand-watermark { opacity: 0.14; }

.skeleton {
  background-color: #e9ecef;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .product-left {
    flex: 0 0 34%;
  }
}

/* ===============================
   QTY CHANGE ANIMATION
   =============================== */

.product-qty input {
  transition: transform 0.15s ease, color 0.15s ease;
}

/* When quantity increases */
.qty-bump {
  transform: scale(1.2);
  color: #198754; /* bootstrap success */
}

/* When quantity decreases */
.qty-drop {
  transform: scale(0.9);
  color: #dc3545; /* bootstrap danger */
}

/* Button click feedback */
.product-qty button {
  transition: transform 0.12s ease;
}
.product-qty button:active {
  transform: scale(0.85);
}
