/* WebsiteLaunch Product Components */

/* ── Product Grid ── */
.wl-pg { display: grid; grid-template-columns: repeat(var(--wl-cols, 4), 1fr); gap: 1.5rem; }
.wl-pg-loading, .wl-pg-empty { text-align: center; padding: 3rem; color: #888; font-size: 0.95rem; }
@media (max-width: 900px) { .wl-pg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .wl-pg { grid-template-columns: 1fr; } }

/* ── Product Card ── */
.wl-pc { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: all 0.2s; position: relative; }
.wl-pc:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.wl-pc-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.wl-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.wl-pc:hover .wl-pc-img img { transform: scale(1.05); }
.wl-pc-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #ccc; background: #f8f8f8; }
.wl-pc-badge { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.wl-pc-body { padding: 1rem; }
.wl-pc-name { font-size: 0.95rem; font-weight: 600; color: #1a1a1a; margin-bottom: 0.25rem; line-height: 1.3; }
.wl-pc-desc { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; line-height: 1.4; }
.wl-pc-pricing { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.wl-pc-price { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; }
.wl-pc-compare { font-size: 0.85rem; color: #999; text-decoration: line-through; }
.wl-pc-atc {
  width: 100%; padding: 10px 16px; border: none; border-radius: 8px;
  background: #1a1a1a; color: #fff; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.wl-pc-atc:hover { background: #333; }
.wl-pc-atc-lg { font-size: 1rem; padding: 14px 24px; flex: 1; }
.wl-pc-err { padding: 1rem; color: #999; font-size: 0.85rem; text-align: center; }

/* ── Product Detail ── */
.wl-p-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .wl-p-detail { grid-template-columns: 1fr; } }
.wl-p-gallery { border-radius: 12px; overflow: hidden; background: #f5f5f5; }
.wl-p-gallery img { width: 100%; display: block; }
.wl-p-name { font-size: 1.75rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.wl-p-pricing { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.wl-p-price { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; }
.wl-p-desc { font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 1.5rem; }

/* Variants */
.wl-p-variant-group { margin-bottom: 1rem; }
.wl-p-variant-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.wl-p-variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wl-p-variant-btn {
  padding: 8px 16px; border: 2px solid #ddd; border-radius: 8px; background: #fff;
  font-size: 0.85rem; cursor: pointer; transition: all 0.15s; color: #333;
}
.wl-p-variant-btn:hover { border-color: #999; }
.wl-p-variant-btn.active { border-color: #1a1a1a; background: #1a1a1a; color: #fff; }

/* Quantity Offers */
.wl-p-offers { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.wl-p-offer {
  display: flex; align-items: center; gap: 1rem; padding: 10px 14px;
  border: 2px solid #eee; border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.wl-p-offer:hover { border-color: #ccc; }
.wl-p-offer.active { border-color: #1a1a1a; background: #f9f9f9; }
.wl-p-offer-qty { font-weight: 700; font-size: 0.9rem; min-width: 50px; }
.wl-p-offer-price { font-size: 0.85rem; color: #555; }
.wl-p-offer-badge { background: #dcfce7; color: #166534; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.wl-p-offer-label { font-size: 0.75rem; color: #888; margin-left: auto; }

/* Qty Row */
.wl-p-qty-row { display: flex; align-items: center; gap: 1rem; }
.wl-p-qty { display: flex; align-items: center; border: 2px solid #ddd; border-radius: 8px; overflow: hidden; }
.wl-p-qty-btn { width: 40px; height: 40px; border: none; background: #f5f5f5; font-size: 1.1rem; cursor: pointer; color: #333; }
.wl-p-qty-btn:hover { background: #eee; }
.wl-p-qty-val { min-width: 40px; text-align: center; font-weight: 700; font-size: 0.95rem; }
