/* =====================================================================
   Featured spotlight (homepage) — full-width, editorial look.
   Uses theme tokens from modern-ui.css (--oc-*).
   ===================================================================== */
.oc-featured {
  --f-accent: var(--oc-accent, var(--base_color, #ff0027));
  --f-ink: var(--oc-ink, #1f2430);
  --f-muted: #6b7280;
  --f-line: rgba(17, 24, 39, .08);
  --f-radius: 18px;
  --f-radius-sm: 12px;
  --f-ease: var(--oc-ease, cubic-bezier(.22, .61, .36, 1));
  animation: ocFadeUp .6s var(--f-ease) both;
}

.oc-featured__panel {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(1200px 300px at 0% 0%, rgba(255, 0, 39, .07), transparent 60%),
    radial-gradient(900px 300px at 100% 100%, rgba(99, 102, 241, .08), transparent 60%),
    #fff;
  border: 1px solid var(--f-line);
  box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
  overflow: hidden;
}

/* ---------- Header ---------- */
.oc-featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.oc-featured__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--f-accent);
  background: rgba(255, 0, 39, .08);
  border-radius: 999px;
}
.oc-featured__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--f-ink);
  letter-spacing: -.3px;
}
.oc-featured__sub { margin: 6px 0 0; color: var(--f-muted); font-size: 14px; }
.oc-featured__all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--f-ink);
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
  transition: all .25s var(--f-ease);
}
.oc-featured__all:hover { color: #fff; background: var(--f-accent); border-color: var(--f-accent); transform: translateY(-1px); }

/* ---------- Grid: hero 2x2 + compact cards ---------- */
.oc-featured__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.oc-feat-hero { grid-column: span 2; grid-row: span 2; }

/* ---------- Shared media ---------- */
.oc-feat-hero__media,
.oc-feat-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f4f5f7;
  border-radius: var(--f-radius-sm);
}
.oc-feat-card__media { aspect-ratio: 3 / 4; }
.oc-feat-hero__media { flex: 1 1 auto; min-height: 360px; border-radius: var(--f-radius); }
.oc-feat-img,
.oc-feat-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--f-ease), opacity .45s var(--f-ease);
}
.oc-feat-img-alt { opacity: 0; }
.product_tricker:hover .oc-feat-img { transform: scale(1.06); }
.product_tricker:hover .oc-feat-img-alt { opacity: 1; transform: scale(1.03); }

.oc-feat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--f-accent);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 0, 39, .3);
}
.oc-feat-badge--out { top: auto; bottom: 10px; right: 10px; background: rgba(31, 36, 48, .85); box-shadow: none; }
.oc-feat-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #7a4b00;
  background: linear-gradient(135deg, #ffe7a3, #ffc94d);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 180, 0, .35);
}

/* ---------- Hero card ---------- */
.oc-feat-hero {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: calc(var(--f-radius) + 4px);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
}
.oc-feat-hero__body { padding: 16px 6px 4px; }
.oc-feat-hero__name {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--f-ink);
}
.oc-feat-hero__name:hover { color: var(--f-accent); }
.oc-feat-hero__cta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  transition: all .25s var(--f-ease);
  cursor: pointer;
}
.oc-btn--primary { color: #fff; background: var(--f-accent); box-shadow: 0 8px 20px rgba(255, 0, 39, .25); }
.oc-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 0, 39, .32); }
.oc-btn--ghost { color: var(--f-ink); background: #fff; border: 1px solid var(--f-line); }
.oc-btn--ghost:hover { color: var(--f-accent); border-color: var(--f-accent); }
.oc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--f-ink);
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: 50%;
  transition: all .25s var(--f-ease);
}
.oc-icon-btn:hover,
.oc-icon-btn.is_wishlist { color: #fff; background: var(--f-accent); border-color: var(--f-accent); }

/* ---------- Price ---------- */
.oc-feat-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.oc-feat-price strong { font-size: 15px; font-weight: 800; color: var(--f-ink); }
.oc-feat-price del { font-size: 12px; color: var(--f-muted); }
.oc-feat-price--lg strong { font-size: 24px; color: var(--f-accent); }
.oc-feat-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.oc-feat-avail.is-in { color: #1b7f4b; background: #e8f6ee; }
.oc-feat-avail.is-out { color: #b23a2e; background: #fdecea; }

/* ---------- Compact card ---------- */
.oc-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
  transition: transform .35s var(--f-ease), box-shadow .35s var(--f-ease);
}
.oc-feat-card:hover,
.oc-feat-hero:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16, 24, 40, .12); }
.oc-feat-card__body { padding: 10px 4px 2px; }
.oc-feat-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--f-ink);
}
.oc-feat-card__name:hover { color: var(--f-accent); }
.oc-feat-card .oc-id-sku { margin-top: 6px; }
.oc-feat-card .oc-id-sku .oc-id-chip,
.oc-feat-card .oc-id-sku .oc-sku-chip { font-size: 10px; padding: 4px 7px; }

/* Floating quick actions (slide in on hover; always visible on touch) */
.oc-feat-card__actions {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--f-ease), transform .3s var(--f-ease);
}
.oc-feat-card:hover .oc-feat-card__actions,
.oc-feat-card:focus-within .oc-feat-card__actions { opacity: 1; transform: none; }
.oc-feat-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  color: var(--f-ink);
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .14);
  transition: all .2s var(--f-ease);
}
.oc-feat-card__actions a:hover,
.oc-feat-card__actions a.is_wishlist { color: #fff; background: var(--f-accent); }
@media (hover: none) {
  .oc-feat-card__actions { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .oc-featured__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .oc-featured__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .oc-featured__panel { padding: 18px 14px; border-radius: 18px; }
  .oc-featured__head { flex-direction: column; align-items: flex-start; }
  .oc-featured__title { font-size: 24px; }
  .oc-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .oc-feat-hero { grid-column: span 2; grid-row: auto; }
  .oc-feat-hero__media { min-height: 0; aspect-ratio: 4 / 5; }
  .oc-feat-hero__name { font-size: 18px; }
  .oc-feat-price--lg strong { font-size: 20px; }
  .oc-feat-hero__cta .oc-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .oc-featured, .oc-feat-img, .oc-feat-img-alt, .oc-feat-card, .oc-feat-hero, .oc-feat-card__actions { animation: none; transition: none; }
}

