/* ---------------------------------------------------------
   WP Firefly Cart - Product Loop Items (PLP Card)
   This stylesheet ONLY styles the reusable product card markup:
   templates/partials/product-loop.php
   --------------------------------------------------------- */

/* Card grid wrapper (use this on the container that holds cards) */
.wpfc-plp-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 640px) {
  .wpfc-plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .wpfc-plp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
  .wpfc-plp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card */
.wpfc-plp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.wpfc-plp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
}

/* Media */
.wpfc-plp-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
}

.wpfc-plp-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 14px;
}

.wpfc-plp-card__img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
}

/* Body */
.wpfc-plp-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
}

/* Title */
.wpfc-plp-card__title {
  display: inline-block;
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.wpfc-plp-card__title:hover {
  text-decoration: underline;
}

/* Pricing */
.wpfc-plp-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wpfc-plp-card__price-old {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.65;
  text-decoration: line-through;
}

.wpfc-plp-card__price-now {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wpfc-plp-card__aslowas {
  font-size: 12px;
  opacity: 0.80;
}

/* Actions */
.wpfc-plp-card__actions {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.wpfc-plp-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  cursor: pointer;
}

.wpfc-plp-btn:hover {
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.wpfc-plp-btn--primary {
  background: #1a3fff;
  color: #fff;
  border-color: rgba(26,63,255,0.35);
}

.wpfc-plp-btn--primary:hover {
  border-color: rgba(26,63,255,0.55);
}



.wpfc-plp-card__swatches{
  display:flex;
  gap:8px;
  margin:10px 0 2px;
  flex-wrap:wrap;
}

.wpfc-plp-card__swatch{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 2px rgba(0,0,0,.10);
}


.wpfc-plp-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin: 10px 0 18px;
}

.wpfc-plp-toolbar__form{
  display:flex;
  gap:10px;
  align-items:center;
}

.wpfc-plp-toolbar__label{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:13px;
}

.wpfc-plp-toolbar select{
  padding:8px 10px;
  border:1px solid #e6e6e6;
  border-radius:10px;
  background:#fff;
}

.wpfc-plp-pagination{
  margin-top: 22px;
}

.wpfc-plp-card{
  position:relative;
}

.wpfc-plp-card__badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:5;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#dc1919;
  color:#fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}


