/* ============================================================
   VariantSelector — standalone section between buybox & tabs.
   Large cards, clear title, like Amazon/Noon.
   ============================================================ */

.pdp-variants-section {
  margin-top: 14px;
}

/* ---------- Desktop: card parked under the gallery (below sizes) ---------- */
@media (min-width: 1200px) {
  #pdp-variants-section.pdp-variants-desktop-card {
    margin-top: 12px;
    padding: 16px 18px;
    background: var(--pdp-surface);
    border-radius: var(--pdp-radius);
    box-shadow: var(--pdp-shadow-sm);
  }
}

.pdp-variants-section .pdp-variant-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-variants-section .pdp-variant-label {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--pdp-ink);
  flex: none;
  min-width: 70px;
}
.pdp-variants-section .pdp-variant-label .pdp-variant-selected {
  font-weight: 700;
  color: var(--pdp-blue);
}

.pdp-variants-section .pdp-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-variants-section .pdp-variant-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pdp-border);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  padding: 0;
  color: var(--pdp-text);
  font-family: inherit;
}
.pdp-variants-section .pdp-variant-card:hover {
  border-color: var(--pdp-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pdp-variants-section .pdp-variant-card:active {
  transform: scale(0.96);
}

.pdp-variants-section .pdp-variant-card.is-selected {
  border-color: var(--pdp-blue);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px var(--pdp-blue) inset;
}
.pdp-variants-section .pdp-variant-card.is-selected::after {
  content: "check";
  font-family: "Material Icons Outlined";
  position: absolute;
  bottom: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pdp-blue);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pdp-variants-section .pdp-variant-card.is-disabled {
  cursor: not-allowed;
  color: #b6bac3;
  background: #fcfcfc;
  border-color: #eceef2;
  overflow: hidden;
}
.pdp-variants-section .pdp-variant-card.is-disabled::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8%;
  right: -8%;
  height: 1.5px;
  background: #c3c7cf;
  transform: rotate(-22deg);
}
.pdp-variants-section .pdp-variant-card.is-disabled:hover {
  border-color: #eceef2;
  box-shadow: none;
}

/* Text cards (size / capacity / edition) — large like Amazon */
.pdp-variants-section .pdp-variant-card--text {
  min-width: 64px;
  height: 52px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 800;
}

/* Swatch buttons (color) — flat square like the Noon size buttons */
.pdp-variants-section .pdp-variant-card--swatch {
  flex-direction: row;
  gap: 8px;
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #c9ccd4;
  border-radius: 4px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.pdp-variants-section .pdp-variant-card--swatch:hover {
  border-color: #7c818c;
  box-shadow: none;
  background: #fff;
}
.pdp-variants-section .pdp-swatch-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex: none;
}
.pdp-variants-section .pdp-swatch-name {
  color: var(--pdp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-variants-section .pdp-variant-card--swatch.is-selected {
  border-color: var(--pdp-ink);
  box-shadow: inset 0 0 0 1px var(--pdp-ink);
}
.pdp-variants-section .pdp-variant-card--swatch.is-selected .pdp-swatch-name {
  color: var(--pdp-ink);
  font-weight: 900;
}
.pdp-variants-section .pdp-variant-card--swatch.is-selected::after {
  display: none;
}

/* Section title */
.pdp-variants-section .pdp-variant-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--pdp-ink);
}

@media (max-width: 767px) {
  .pdp-variants-section .pdp-variant-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .pdp-variants-section .pdp-variant-card--text {
    min-width: 56px;
    height: 46px;
    padding: 0 16px;
    font-size: 0.9rem;
  }
  .pdp-variants-section .pdp-variant-card--swatch {
    min-width: 46px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
  .pdp-variants-section .pdp-swatch-dot {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 1200px) {
  .pdp-variants-section .pdp-variant-card--text {
    min-width: 72px;
    height: 56px;
    padding: 0 24px;
    font-size: 1.05rem;
  }
  .pdp-variants-section .pdp-variant-card--swatch {
    min-width: 56px;
    height: 44px;
    padding: 0 18px;
    font-size: 0.88rem;
  }
}
