/* ── Reset inside wrapper only ───────────────────────────── */
.lc-pt-wrap,
.lc-pt-wrap *,
.lc-pt-wrap *::before,
.lc-pt-wrap *::after {
  box-sizing: border-box;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.lc-pt-wrap {
  width: 100%;
  display: block;
}

/* ── Tab bar ─────────────────────────────────────────────── */
.lc-pt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  padding: 2rem 0;
  margin: 0;
  list-style: none;
  align-items: baseline;
}

.lc-pt-tab {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0 0 6px;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  color: #b0aca5;
  position: relative;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.lc-pt-tab sup {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  vertical-align: super;
  margin-left: 2px;
  color: inherit;
}

/* Active tab */
.lc-pt-tab--active,
.lc-pt-tab[aria-selected="true"] {
  color: #1a1a1a;
}

@keyframes lc-pt-line {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Hover on inactive tabs */
.lc-pt-tab:not(.lc-pt-tab--active):hover,
.lc-pt-tab:not([aria-selected="true"]):hover {
  color: #6b6b6b;
}

/* Focus ring — accessibility */
.lc-pt-tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Divider ─────────────────────────────────────────────── */
.lc-pt-divider {
  border: none;
  height: 1px;
  background: #e0dbd4;
  margin: 0 0 1.5rem;
}

/* ── Panels ──────────────────────────────────────────────── */
.lc-pt-panel {
  display: none;
}

.lc-pt-panel--active,
.lc-pt-panel[aria-hidden="false"] {
  display: block;
}

/* Remove top gap WooCommerce adds */
.lc-pt-panel--active .products {
  margin-top: 0 !important;
}

/* Staggered entrance animation on cards */
.lc-pt-panel--active .products>li.product {
  opacity: 0;
  transform: translateY(12px);
  animation: lc-pt-fade-up 0.42s ease forwards;
  margin: 0px !important;
}

.lc-pt-panel--active .products>li.product:nth-child(1) {
  animation-delay: 0.04s;
}

.lc-pt-panel--active .products>li.product:nth-child(2) {
  animation-delay: 0.1s;
}

.lc-pt-panel--active .products>li.product:nth-child(3) {
  animation-delay: 0.16s;
}

.lc-pt-panel--active .products>li.product:nth-child(4) {
  animation-delay: 0.22s;
}

.lc-pt-panel--active .products>li.product:nth-child(5) {
  animation-delay: 0.28s;
}

.lc-pt-panel--active .products>li.product:nth-child(6) {
  animation-delay: 0.34s;
}

.lc-pt-panel--active .products>li.product:nth-child(7) {
  animation-delay: 0.4s;
}

.lc-pt-panel--active .products>li.product:nth-child(8) {
  animation-delay: 0.46s;
}

.lc-pt-panel--active .products>li.product:nth-child(9) {
  animation-delay: 0.52s;
}

.lc-pt-panel--active .products>li.product:nth-child(n + 10) {
  animation-delay: 0.56s;
}

@keyframes lc-pt-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Empty / notice states ───────────────────────────────── */
.lc-pt-empty {
  padding: 2rem 0;
  color: #b0aca5;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
}

.lc-pt-notice {
  padding: 1rem 1.25rem;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #5a4a00;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .lc-pt-tabs {
    gap: 0 1.4rem;
    padding: 1.5rem 0;
  }

  .lc-pt-tab {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .lc-pt-divider {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .lc-pt-tabs {
    gap: 0 1rem;
    padding: 1.2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .lc-pt-tabs::-webkit-scrollbar {
    display: none;
  }

  .lc-pt-tab {
    font-size: 1.15rem;
    flex-shrink: 0;
  }
}