/* ============================================================
   Watch & Shop — Frontend Styles
   ============================================================ */
.was-widget { width: 100%; }

.was-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: #111;
}

/* Feed wrappers */
.was-feed-wrapper { position: relative; }

.was-feed-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bbb #eee;
}
.was-feed-scroll::-webkit-scrollbar       { height: 4px; }
.was-feed-scroll::-webkit-scrollbar-track  { background: #eee; border-radius: 4px; }
.was-feed-scroll::-webkit-scrollbar-thumb  { background: #bbb; border-radius: 4px; }

.was-feed-grid {
  display: grid;
  gap: 16px;
}
.was-feed-grid.was-cols-2 { grid-template-columns: repeat(2, 1fr); }
.was-feed-grid.was-cols-3 { grid-template-columns: repeat(3, 1fr); }
.was-feed-grid.was-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Skeleton loaders */
.was-skeleton {
  flex: 0 0 220px;
  height: 360px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: was-shimmer 1.4s infinite;
}
@keyframes was-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Cards ── */
.was-card {
  flex: 0 0 var(--was-card-width, 220px);
  width: var(--was-card-width, 220px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  scroll-snap-align: start;
  transition: box-shadow .2s, transform .2s;
}
.was-feed-grid .was-card {
  flex: unset;
  width: 100%;
}
.was-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.14); transform: translateY(-2px); }

/* Media area */
.was-card-media {
  position: relative;
  width: 100%;
  height: 280px;
  background: #1a1a1a;
  overflow: hidden;
  cursor: pointer;
}
.was-card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}
.was-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15);
  transition: background .2s;
}
.was-play-overlay:hover { background: rgba(0,0,0,.32); }
.was-play-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
  transition: transform .15s;
}
.was-play-btn:hover { transform: scale(1.1); }
.was-play-btn svg { width: 22px; height: 22px; fill: #2d6a4f; margin-left: 3px; }

.was-card-media.was-playing .was-play-overlay { display: none; }

/* View badge */
.was-view-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(3px);
}
.was-view-badge svg { width: 13px; height: 13px; fill: #fff; opacity: .85; flex-shrink: 0; }

/* Card info */
.was-card-info { padding: 11px 13px 14px; }

.was-card-title {
  font-size: 13px; font-weight: 500; color: #1a1a1a;
  line-height: 1.45; margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.was-price-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.was-price-now  { font-size: 16px; font-weight: 700; color: #111; }
.was-price-was  { font-size: 12px; color: #aaa; text-decoration: line-through; }
.was-discount-badge {
  display: inline-block;
  background: #22aa60; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
  margin-top: 2px;
}

/* Shop button */
.was-shop-btn {
  display: block; width: 100%;
  background: #2d6a4f; color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 0;
  font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 10px;
  text-align: center; text-decoration: none;
  transition: background .18s, transform .1s;
}
.was-shop-btn:hover  { background: #1e4d39; color: #fff; }
.was-shop-btn:active { transform: scale(.97); }

/* Empty state */
.was-empty {
  text-align: center; padding: 50px 20px; color: #888; width: 100%;
}
.was-empty-icon { font-size: 48px; margin-bottom: 10px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .was-feed-grid.was-cols-3,
  .was-feed-grid.was-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .was-section-title { font-size: 18px; letter-spacing: 1.5px; }
}
@media (max-width: 480px) {
  .was-feed-grid.was-cols-2,
  .was-feed-grid.was-cols-3,
  .was-feed-grid.was-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .was-card { flex: 0 0 160px; width: 160px; }
  .was-feed-grid .was-card { width: 100%; }
  .was-card-media { height: 210px; }
}
