/* =========================================================
   RSD — SHARED UTILITIES v3.0
   @import trebuie să fie PRIMA linie din câmpul Custom CSS
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@600;700;800&display=swap');

/* ── Hover grow ─────────────────────────────────────── */
.rsd-card-hover {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
  position: relative;
}
.rsd-card-hover:hover {
  transform: translateY(-6px) scale(1.03);
  z-index: 5;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}
.rsd-card-hover:active {
  transform: translateY(-2px) scale(1.01);
}

/* ── Section box ────────────────────────────────────── */
.rsd-section-box {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #000 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 34px -18px rgba(0,0,0,.35) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  max-width: 1240px !important;
  width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 44px 32px !important;
}
@media (max-width: 767px) {
  .rsd-section-box {
    width: calc(100% - 24px) !important;
    padding: 26px 16px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
}
.rsd-section-box > .section_wrapper {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}
.section.rsd-section-box {
  margin-bottom: 18px !important;
}

/* ── Animated border — definit global, folosit în 10/11 */
@property --rsd-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rsd-border-spin {
  to { --rsd-angle: 360deg; }
}

/* ── .rsd-border ────────────────────────────────────────
   Utility class. Aplică manual pe orice element.
   Centrul rămâne transparent — nu forțează background alb.
   Animația este DOAR pe inelul de border.
   Nu adaugă nicio mișcare în spatele conținutului.

   Funcționează corect pe elemente FĂRĂ overflow: hidden.
   Pe carduri WooCommerce (cu overflow: hidden), folosește
   tehnica din 10/11 care aplică aceeași regulă nativ pe li.
─────────────────────────────────────────────────────── */
.rsd-border {
  position: relative;
  border-radius: 16px;
  isolation: isolate;
}

.rsd-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--rsd-angle),
    transparent   0deg,
    #111111      60deg,
    #171717     120deg,
    #000000     180deg,
    #171717     240deg,
    transparent 300deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: rsd-border-spin 6s linear infinite;
  pointer-events: none;
}

/* ── .rsd-badge ─────────────────────────────────────── */
.rsd-badge {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #111;
  background: transparent;
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* ── .rsd-price-chip ────────────────────────────────── */
.rsd-price-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  background: transparent;
  white-space: nowrap;
  line-height: 1.3;
}

/* ── .rsd-btn-buy ───────────────────────────
.rsd-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #111;
  border-radius: 8px;
  padding: 8px 18px;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: #111;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
  line-height: 1;
}
.rsd-btn-buy:hover {
  background: #111;
  color: #fff;
}