/* ==========================================================
   WooCommerce Sale Campaign Manager – Frontend Styles
   Design: Mega-Holz.de | v1.4.0
   ========================================================== */

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes wcscm-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wcscm-badge-pop {
  0%   { transform: scale(.8); opacity: 0; }
  70%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes wcscm-countdown-tick {
  0%  { transform: scale(1); }
  30% { transform: scale(1.12); }
  60% { transform: scale(1); }
}
@keyframes wcscm-green-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
@keyframes wcscm-shimmer-badge {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* ══════════════════════════════════════════════════════════
   PRODUKT-WIDGET
   ══════════════════════════════════════════════════════════ */

.wcscm-widget {
  margin: 20px 0 24px;
  border-radius: 8px;
  overflow: hidden;
  font-family: inherit;
  background: #1e1e1e;
  border-left: 4px solid #e8920a;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  animation: wcscm-slide-in .35s ease both;
}

.wcscm-widget-inner {
  padding: 16px 20px 14px;
}

/* ── Header row ── */
.wcscm-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.wcscm-campaign-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8920a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  animation: wcscm-badge-pop .4s ease both;
}
.wcscm-campaign-label::before { content: '\1F525'; font-size: 11px; }

.wcscm-urgency-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wcscm-urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cb85c;
  animation: wcscm-green-pulse 1.6s ease-in-out infinite;
}
.wcscm-urgency-text {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* ── Description ── */
.wcscm-widget-description {
  margin: 0 0 10px;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

/* ── Price block (three-tier) ── */
.wcscm-widget-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

/* Each price row */
.wcscm-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.wcscm-price-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
}

.wcscm-price-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
}

/* Tier 1: Regular price – strikethrough, dimmed */
.wcscm-price-row--regular .wcscm-price-regular,
.wcscm-price-row--regular .wcscm-price-regular *,
.wcscm-price-row--regular .wcscm-price-regular bdi {
  font-size: 13px !important;
  color: rgba(255,255,255,.35) !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
  background: none !important;
}

/* Tier 2: WC sale price – medium emphasis */
.wcscm-price-row--sale .wcscm-price-sale,
.wcscm-price-row--sale .wcscm-price-sale *,
.wcscm-price-row--sale .wcscm-price-sale bdi {
  font-size: 15px !important;
  color: rgba(255,255,255,.65) !important;
  font-weight: 600 !important;
  background: none !important;
  text-decoration: none !important;
}

/* Teaser text above price row */
.wcscm-widget-teaser {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.5);
  font-style: italic;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Tier 3: Final discounted price – maximum emphasis */
.wcscm-price-row--final {
  margin-top: 4px;
  padding-top: 6px;
  border-top: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wcscm-price-row--final .wcscm-price-label {
  font-size: 11px;
  color: rgba(255,255,255,.55);
}

.wcscm-price-row--final .wcscm-price-final,
.wcscm-price-row--final .wcscm-price-final *,
.wcscm-price-row--final .wcscm-price-final bdi {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  background: none !important;
  text-decoration: none !important;
}

.wcscm-widget-discount-badge {
  display: inline-block;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 11px;
  border-radius: 3px;
  color: #fff;
  background: #e8920a;
  letter-spacing: .02em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Coupon ── */
.wcscm-widget-coupon,
.wcscm-widget-coupon-only {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.wcscm-widget-coupon-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

.wcscm-coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed rgba(232,146,10,.6);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #e8920a;
  letter-spacing: .08em;
  transition: border-color .2s, background .2s;
  position: relative;
}
.wcscm-coupon-code:hover {
  background: rgba(232,146,10,.1);
  border-color: #e8920a;
}
.wcscm-coupon-code.wcscm-copied::after {
  content: "Kopiert!";
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
  font-family: inherit;
}

/* ── Countdown (in widget) ── */
.wcscm-widget-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.wcscm-countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.wcscm-countdown {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.wcscm-countdown .wcscm-cd-segment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Slim, dark pill – no orange background */
.wcscm-countdown .wcscm-cd-value {
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 7px;
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.wcscm-countdown .wcscm-cd-value.tick {
  animation: wcscm-countdown-tick .25s ease;
}
.wcscm-countdown .wcscm-cd-unit {
  font-size: 8px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}
.wcscm-countdown .wcscm-cd-sep {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  align-self: flex-start;
  margin-top: 3px;
  padding: 0 1px;
}

/* ── Ended state ── */
.wcscm-widget.wcscm-ended {
  opacity: .4;
  filter: grayscale(.7);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   STANDALONE COUNTDOWN SHORTCODE  [sale_campaign_countdown]
   ══════════════════════════════════════════════════════════ */

.wcscm-standalone-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wcscm-standalone-countdown .wcscm-countdown-label {
  font-size: 12px;
  color: inherit;
  opacity: .7;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.wcscm-standalone-countdown .wcscm-countdown .wcscm-cd-value {
  background: #1e1e1e;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  border-radius: 5px;
  padding: 6px 10px;
  min-width: 46px;
}

.wcscm-standalone-countdown .wcscm-countdown .wcscm-cd-sep {
  font-size: 18px;
  color: #e8920a;
  font-weight: 800;
}

.wcscm-standalone-countdown .wcscm-countdown .wcscm-cd-unit {
  font-size: 9px;
  color: rgba(0,0,0,.45);
}

/* ══════════════════════════════════════════════════════════
   CAMPAIGN LANDING PAGE
   ══════════════════════════════════════════════════════════ */

.wcscm-campaign-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header – clean dark card */
.wcscm-campaign-header {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 28px 28px 24px;
  margin-bottom: 36px;
  border-left: 4px solid #e8920a;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.wcscm-campaign-title {
  margin: 0 0 8px;
  font-size: 1.8em;
  color: #fff;
  font-weight: 800;
}

.wcscm-campaign-description {
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  max-width: 680px;
}

.wcscm-campaign-ended-notice {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* Group section */
.wcscm-group-section {
  margin-bottom: 48px;
}

.wcscm-group-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.wcscm-group-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
  display: inline-block;
  position: relative;
}

.wcscm-group-title::after {
  content: '';
  display: block;
  height: 2px;
  background: #e8920a;
  margin-top: 4px;
  border-radius: 1px;
}

/* Group badge */
.wcscm-group-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  animation: wcscm-badge-pop .4s ease both;
}

.wcscm-group-badge--discount {
  background: #e8920a;
  color: #fff;
}

.wcscm-group-badge--limited {
  background: #1e1e1e;
  color: rgba(255,255,255,.85);
}

.wcscm-group-description {
  color: #666;
  font-size: 13px;
  margin: 6px 0 20px;
}

/* ── Product Grid ── */
.wcscm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.wcscm-product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.wcscm-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.wcscm-product-card.wcscm-product-ended {
  opacity: .5;
  filter: grayscale(60%);
  pointer-events: none;
}

/* Image */
.wcscm-product-image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.wcscm-product-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.wcscm-product-card:hover .wcscm-product-image img {
  transform: scale(1.04);
}

/* Discount badge on image */
.wcscm-product-image .wcscm-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e8920a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .02em;
}

/* Card body */
.wcscm-product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.wcscm-product-name {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #1e1e1e;
}

.wcscm-product-name a {
  text-decoration: none;
  color: inherit;
}

.wcscm-product-name a:hover {
  color: #e8920a;
}

/* Prices – three-tier in product cards */
.wcscm-product-prices {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

/* Top row: regular price + sale price side by side */
.wcscm-price-tier--top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.wcscm-price-tier--top .wcscm-price-regular,
.wcscm-price-tier--top .wcscm-price-regular *,
.wcscm-price-tier--top .wcscm-price-regular bdi {
  font-size: 12px !important;
  color: #aaa !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
  background: none !important;
}

.wcscm-price-tier--top .wcscm-price-sale,
.wcscm-price-tier--top .wcscm-price-sale *,
.wcscm-price-tier--top .wcscm-price-sale bdi {
  font-size: 13px !important;
  color: #555 !important;
  font-weight: 600 !important;
  background: none !important;
  text-decoration: none !important;
}

/* Final row: label + big price */
.wcscm-price-tier--final {
  margin-top: 5px;
  padding-top: 6px;
  border-top: 1px solid #f0e0cc;
}

.wcscm-price-final-label {
  display: block;
  font-size: 10px;
  color: #888;
  line-height: 1.3;
  margin-bottom: 3px;
  font-weight: 500;
}

.wcscm-price-tier--final .wcscm-price-final,
.wcscm-price-tier--final .wcscm-price-final *,
.wcscm-price-tier--final .wcscm-price-final bdi {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1e1e1e !important;
  line-height: 1 !important;
  background: none !important;
  text-decoration: none !important;
}

/* CTA button */
.wcscm-cta-button {
  display: block;
  text-align: center;
  padding: 9px 14px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: auto;
  background: #e8920a;
  color: #fff !important;
  border-radius: 5px;
  transition: background .2s;
  border: none;
  cursor: pointer;
}

.wcscm-cta-button:hover {
  background: #c47a08;
  text-decoration: none !important;
}

/* Hide coupon and countdown inside product cards */
.wcscm-product-card .wcscm-product-coupon,
.wcscm-product-card .wcscm-product-countdown,
.wcscm-product-card .wcscm-widget-countdown-wrap {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════
   SALE BANNER  (top / bottom / floating / popup)
   ══════════════════════════════════════════════════════════ */

.wcscm-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  z-index: 9999;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  /* Clean dark bar – no orange background */
  background: #1e1e1e;
  color: #fff;
  border-bottom: 2px solid #e8920a;
  font-size: 13px;
}

.wcscm-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 8px 0;
}

.wcscm-banner-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.wcscm-banner-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  border-top: 2px solid #e8920a;
}

.wcscm-banner-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  max-width: 380px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  border: 1px solid rgba(232,146,10,.5);
  border-bottom: 2px solid #e8920a;
}

/* Banner text */
.wcscm-banner-text {
  font-weight: 500;
  color: rgba(255,255,255,.85);
}

.wcscm-banner-text strong {
  color: #e8920a;
  font-weight: 700;
}

/* Banner CTA */
.wcscm-banner-cta {
  display: inline-block;
  padding: 6px 16px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #e8920a;
  color: #fff !important;
  border-radius: 4px;
  transition: background .2s;
}

.wcscm-banner-cta:hover {
  background: #c47a08;
  text-decoration: none !important;
}

/* Banner countdown – inline, no blocks */
.wcscm-banner .wcscm-banner-countdown .wcscm-cd-segment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.wcscm-banner .wcscm-banner-countdown .wcscm-cd-value {
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 5px;
  min-width: 26px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.wcscm-banner .wcscm-banner-countdown .wcscm-cd-unit {
  font-size: 8px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 1px;
}

.wcscm-banner .wcscm-banner-countdown .wcscm-cd-sep {
  font-size: 12px;
  color: #e8920a;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 1px;
}

/* Close button */
.wcscm-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: .45;
  padding: 0 4px;
  line-height: 1;
  color: #fff;
  margin-left: auto;
  transition: opacity .2s;
  flex-shrink: 0;
}

.wcscm-banner-close:hover {
  opacity: 1;
}

/* ── Popup ── */
.wcscm-banner-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: none;
  padding: 0;
}

.wcscm-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.wcscm-popup-box {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 90%;
  padding: 28px 28px 24px;
  background: #1e1e1e;
  border: 1px solid rgba(232,146,10,.4);
  border-left: 4px solid #e8920a;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.4);
  animation: wcscm-slide-in .3s ease both;
}

.wcscm-popup-box .wcscm-banner-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.wcscm-popup-box .wcscm-banner-close {
  position: absolute;
  top: 12px;
  right: 14px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .wcscm-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .wcscm-campaign-title { font-size: 1.4em; }
  .wcscm-banner-inner { flex-direction: column; gap: 8px; }
  .wcscm-banner-floating { bottom: 10px; right: 10px; left: 10px; max-width: none; }
}

@media (max-width: 480px) {
  .wcscm-products-grid { grid-template-columns: 1fr 1fr; }
  .wcscm-widget-inner { padding: 12px 14px 10px; }
  .wcscm-widget .wcscm-widget-discounted-price strong { font-size: 20px !important; }
  .wcscm-countdown .wcscm-cd-value { font-size: 14px; min-width: 28px; }
}

/* ══════════════════════════════════════════════════════════
   CAMPAIGN PAGE – FILTER BAR, SHOW MORE, GROUP ANCHOR
   ══════════════════════════════════════════════════════════ */

/* Hidden product cards (controlled by JS) */
.wcscm-card-hidden {
  display: none !important;
}

/* Group anchor link */
.wcscm-group-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  text-decoration: none;
  background: rgba(0,0,0,.04);
  border: 1px solid #e0e0e0;
  transition: color .15s, border-color .15s, background .15s;
  flex-shrink: 0;
  margin-right: 4px;
}

.wcscm-group-anchor:hover {
  color: #e8920a;
  border-color: #e8920a;
  background: rgba(232,146,10,.06);
  text-decoration: none;
}

/* Scroll offset so the sticky header doesn't cover the anchor */
.wcscm-group-section {
  scroll-margin-top: 90px;
}

/* Filter bar */
.wcscm-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #f8f8f8;
  border: 1px solid #ebebeb;
  border-radius: 6px;
}

.wcscm-filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcscm-filter-bar__label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.wcscm-sort-select {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}

.wcscm-sort-select:focus {
  border-color: #e8920a;
}

.wcscm-filter-bar__count {
  font-size: 11px;
  color: #999;
}

/* Show-more button */
.wcscm-show-more-wrap {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}

.wcscm-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #1e1e1e;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e1e1e;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .02em;
}

.wcscm-show-more-btn:hover {
  background: #1e1e1e;
  color: #fff;
}

.wcscm-show-more-btn svg {
  transition: transform .25s;
}

.wcscm-show-more-btn--expanded svg {
  transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .wcscm-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wcscm-show-more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════
   FEATURED PICKS SECTION
   ══════════════════════════════════════════════════════════ */

.wcscm-group-section--featured {
  position: relative;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  border-radius: 12px;
  padding: 28px 24px 24px;
  margin-bottom: 48px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.wcscm-group-section--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, #e8920a, #f5a623);
  background-size: 200% 100%;
  animation: wcscm-shimmer-bar 3s linear infinite;
  border-radius: 12px 12px 0 0;
}

@keyframes wcscm-shimmer-bar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wcscm-group-section--featured .wcscm-group-title--featured {
  color: #fff !important;
  font-size: 1.4em;
  margin: 0;
}

.wcscm-group-section--featured .wcscm-group-title--featured::after {
  background: #e8920a;
}

.wcscm-group-section--featured .wcscm-featured-star {
  margin-right: 6px;
}

.wcscm-group-section--featured .wcscm-group-anchor {
  color: rgba(245, 166, 35, 0.6) !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
  background: rgba(255,255,255,0.05) !important;
}

.wcscm-group-section--featured .wcscm-group-anchor:hover {
  color: #f5a623 !important;
  border-color: #f5a623 !important;
}

.wcscm-group-section--featured .wcscm-group-description {
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

.wcscm-group-section--featured .wcscm-filter-bar {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.wcscm-group-section--featured .wcscm-filter-bar__label,
.wcscm-group-section--featured .wcscm-filter-bar__count {
  color: rgba(255,255,255,0.65);
}

.wcscm-group-section--featured .wcscm-sort-select {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.wcscm-group-section--featured .wcscm-show-more-wrap {
  border-top-color: rgba(255,255,255,0.1);
}

.wcscm-group-section--featured .wcscm-show-more-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.wcscm-group-section--featured .wcscm-show-more-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* Featured badge */
.wcscm-group-badge--featured {
  background: linear-gradient(135deg, #f5a623, #e8920a) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}

/* Featured product cards – elevated on dark background */
.wcscm-group-section--featured .wcscm-product-card {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

.wcscm-group-section--featured .wcscm-product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

/* ── Admin: Featured group row ── */
.wcscm-group-row.wcscm-group-featured {
  border-left: 4px solid #f5a623 !important;
  background: #fffdf5 !important;
}

.wcscm-badge-featured {
  background: #f5a623 !important;
  color: #fff !important;
  font-weight: 700;
}

/* Admin: featured toggle row */
.wcscm-featured-toggle-row {
  background: #fffdf5;
  border: 1px solid #f5a623;
  border-radius: 6px;
  padding: 10px 14px !important;
  margin-top: 8px;
}

.wcscm-featured-toggle-row label {
  font-size: 13px;
}

.wcscm-featured-toggle-row .description {
  margin: 6px 0 0 22px;
  color: #666;
  font-style: italic;
}

/* =========================================================
   FEATURED PICKS SECTION (product-level curation)
   ========================================================= */

.wcscm-featured-picks-section {
    margin-bottom: 48px;
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    border-top: 3px solid #f5a623;
    position: relative;
    overflow: hidden;
}

.wcscm-featured-picks-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #e8920a, #f5a623);
    background-size: 200% 100%;
    animation: wcscm-shimmer-bar 2.5s ease-in-out infinite;
}

@keyframes wcscm-shimmer-bar {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.wcscm-featured-picks-section .wcscm-group-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.wcscm-featured-picks-title { color: #ffffff !important; font-size: 1.4em !important; margin: 0 !important; }
.wcscm-fp-star { color: #f5a623; margin-right: 6px; }

/* Slider arrow navigation */
.wcscm-fp-nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wcscm-fp-prev,
.wcscm-fp-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(245,166,35,.5);
    background: transparent;
    color: #f5a623;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
    padding: 0;
}

.wcscm-fp-prev:hover,
.wcscm-fp-next:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #1e1e1e;
    transform: scale(1.1);
}

.wcscm-fp-prev:disabled,
.wcscm-fp-next:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.wcscm-group-badge--featured {
    background: linear-gradient(135deg, #f5a623, #e8920a);
    color: #fff;
}

/* ── Featured Picks Slider ─────────────────────────────────────────── */
.wcscm-fp-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.wcscm-fp-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide occupies exactly 25% of the wrapper minus gaps */
.wcscm-fp-slide {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

/* When there are ≤4 items, distribute evenly without sliding */
.wcscm-fp-slider:not(.wcscm-fp-slider--auto) .wcscm-fp-slide {
    flex: 1 1 0;
}

.wcscm-featured-picks-section .wcscm-product-card {
    background: #ffffff;
    border: 2px solid rgba(245,166,35,.25);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    height: 100%;
}

.wcscm-featured-picks-section .wcscm-product-card:hover {
    border-color: #f5a623;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(245,166,35,.2);
}

/* Admin: Featured Picks meta box list */
#wcscm-fp-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
    min-height: 50px;
}

#wcscm-fp-list .wcscm-fp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: grab;
}

#wcscm-fp-list .wcscm-drag-handle { color: #aaa; cursor: grab; }
#wcscm-fp-list .wcscm-product-name { flex: 1; font-size: 13px; }

@media (max-width: 768px) {
    .wcscm-fp-slide {
        flex: 0 0 calc(50% - 8px);
    }
    .wcscm-fp-slider:not(.wcscm-fp-slider--auto) .wcscm-fp-slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .wcscm-featured-picks-section { padding: 16px 12px; }
    .wcscm-fp-slide {
        flex: 0 0 calc(50% - 8px);
    }
}
