/* ============================
   Variants (Age/Size) Blocks
   ============================ */

.cc-variant-block {
  margin: 14px 0 18px;
}

.cc-variant-label {
  display: block;
  font-weight: 700;
  margin: 0 0 10px;
  color: #222;
}

.cc-variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Base */
.cc-variant-pill {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #222;

  border-radius: 12px;
  padding: 10px 16px;

  min-width: 56px;
  height: 42px;

  font-weight: 700;
  letter-spacing: 0.2px;

  cursor: pointer;

  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 10px 22px rgba(0,0,0,0.06);

  transition:
    transform .08s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    color .15s ease;
}

.cc-variant-pill:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(184, 150, 88, 0.70);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.05),
    0 16px 30px rgba(0,0,0,0.10);
}

.cc-variant-pill:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(184, 150, 88, 0.22),
    0 16px 30px rgba(0,0,0,0.10);
  border-color: rgba(184, 150, 88, 0.95);
}

/* Selected: premium filled look */
.cc-variant-pill.is-active {
  border-color: rgba(184, 150, 88, 0.95);
  background: rgba(184, 150, 88, 0.10);
  box-shadow:
    0 0 0 2px rgba(184, 150, 88, 0.20),
    0 16px 30px rgba(0,0,0,0.10);
}


@media (max-width: 480px) {
  .cc-variant-pill {
    min-width: 52px;
    height: 40px;
    padding: 10px 14px;
  }
}


/* Out of stock: dashed + diagonal slash overlay (no text) */
.cc-variant-pill.is-oos,
.cc-variant-pill:disabled {
  border-style: dashed;
  background: rgba(0,0,0,0.02);
  color: rgba(0,0,0,0.45);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  position: relative;
  overflow: hidden;
}

/* diagonal slash */
.cc-variant-pill.is-oos::after,
.cc-variant-pill:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* one clean diagonal line */
 background: repeating-linear-gradient(
  -18deg,
  transparent 0,
  transparent 46%,
  rgba(0,0,0,0.22) 46%,
  rgba(0,0,0,0.22) 50%,
  transparent 50%,
  transparent 54%
);

}

.cc-variant-offer-hint {
    margin: 6px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-variant-offer-pill {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
}

.cc-variant-offer-note {
    font-size: 12px;
    color: #666;
}

.cc-variant-pill.has-offer {
    position: relative;
}

.cc-variant-pill.has-offer::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111;
    opacity: 0.7;
}