/* Container */
.lp-container { max-width:1200px; margin:0 auto; padding:16px; font-family:'Inter', sans-serif; color:#111; }

/* Toolbar */
.lp-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.lp-toolbar h1 { font-size: 28px; font-weight:700; margin:0; }
.lp-controls { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* View Buttons */
.lp-view-buttons { display:flex; border:1px solid #ccc; border-radius:8px; overflow:hidden; }
.lp-view-buttons button { padding:8px 16px; border:none; cursor:pointer; background:#fff; font-size:0.875rem; white-space:nowrap; }
.lp-view-buttons button.active { background:#7FAD39; color:#fff; }

/* Sort */
.lp-sort { border:1px solid #ccc; border-radius:8px; font-size:0.875rem; white-space:nowrap; }

/* Product Grid */
#lp-productGrid { display:grid; gap:16px; }
.lp-grid-view { grid-template-columns: repeat(5,1fr); }
.lp-list-view { display:grid; gap:16px; grid-template-columns: repeat(2,1fr); }

/* Product Card */
.lp-card { background:#fff; border:1px solid #e0e0e0; border-radius:1rem; overflow:hidden; display:flex; flex-direction:column; position:relative; transition:all 0.25s ease; }
.lp-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.08); }
.lp-card img { width:100%; height:160px; object-fit:cover; border-radius:1rem 1rem 0 0; }
.lp-content { padding:12px; flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.lp-title { font-size:0.875rem; font-weight:600; margin-bottom:4px; text-decoration:none; color:#111; transition:color 0.2s; }
.lp-title:hover { color:#7FAD39; }
.lp-price { display:flex; align-items:center; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.lp-sell { font-weight:700; color:green; }
.lp-regular { text-decoration: line-through; color:#888; font-size:0.75rem; }

/* Actions */
.lp-actions { display:flex; gap:8px; margin-top:auto; flex-wrap:nowrap; }
.lp-icon { width:36px; height:36px; background:#f0f0f0; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; flex-shrink:0; }
.lp-icon:hover { background:#e0e0e0; }

/* List Card */
.lp-list-card { flex-direction:row; padding:16px; gap:16px; align-items:center; }
.lp-list-card img { width:144px; height:144px; border-radius:8px; flex-shrink:0; object-fit:cover; }



.lp-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}
.lp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Discount badge (top-left) */
.lp-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: red;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Rating badge (bottom-right) */
.lp-rating {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lp-rating i {
  color: #ffb400; /* golden star */
  font-size: 0.8rem;
}



.lp-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  flex:1;
  background: #7FAD39;
  color:#fff;
  border:none;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:0.875rem;
  white-space:nowrap;
}

/* hover animation layer */
.lp-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #000;
  z-index: -1;
  transition: width 0.6s ease;
}

.lp-btn:hover::before {
  width: 100%; /* ✅ বাম থেকে ডানে কালো রঙ ভরে যাবে */
}






/* Responsive */
@media(max-width:1200px){ .lp-grid-view { grid-template-columns:repeat(4,1fr); } .lp-list-view { grid-template-columns:repeat(2,1fr); } }
@media(max-width:992px){ .lp-grid-view { grid-template-columns:repeat(3,1fr); } .lp-list-view { grid-template-columns:repeat(2,1fr); } }
@media(max-width:768px){ .lp-grid-view { grid-template-columns:repeat(2,1fr); } .lp-list-view { grid-template-columns:1fr; } .lp-list-card { flex-direction:column; align-items:flex-start; } .lp-list-card img { width:100%; height:auto; margin-bottom:12px; } .lp-actions { flex-wrap:wrap; justify-content:space-between; } }
@media(max-width:576px){ .lp-grid-view, .lp-list-view { grid-template-columns:1fr; } }
