/* Product detail pages — gallery + info + tabbed content */
.page-product-detail main {
  padding-top: 0.75rem;
}

.pd-breadcrumb {
  max-width: var(--page-container-max);
  width: 100%;
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.pd-breadcrumb {
  overflow-wrap: anywhere;
}

.pd-breadcrumb a {
  color: var(--text-soft);
}

.pd-breadcrumb a:hover {
  color: var(--coral);
}

.pd-breadcrumb span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.pd-hero {
  max-width: var(--page-container-max);
  width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.pd-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .pd-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
  }
}

/* Gallery */
.pd-gallery__main-wrap {
  position: relative;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-stock {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ff1500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 21, 0, 0.35);
}

.pd-gallery__main {
  width: 100%;
  max-width: min(100%, 22rem);
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: contain;
  display: block;
}

@media (min-width: 52rem) {
  .pd-gallery__main {
    max-width: min(100%, 26rem);
    max-height: min(58vh, 32rem);
  }

  .pd-gallery__main-wrap {
    min-height: 18rem;
    padding: 2rem 1.75rem;
  }
}

.pd-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  justify-content: center;
}

@media (min-width: 52rem) {
  .pd-gallery__thumbs {
    justify-content: flex-start;
  }
}

.pd-gallery__thumb {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-gallery__thumb:hover,
.pd-gallery__thumb:focus-visible {
  border-color: rgba(233, 30, 99, 0.45);
  outline: none;
}

.pd-gallery__thumb.is-active {
  border-color: #e91e63;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
}

.pd-gallery__thumb img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  display: block;
}

/* Product info */
.pd-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pd-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: #e91e63;
  margin: 0 0 1rem;
}

.pd-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}

.pd-checks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
}

.pd-checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #006064;
  border: 1px solid rgba(0, 137, 123, 0.2);
}

.pd-checks li::before {
  content: "✓";
  font-weight: 800;
  color: #00897b;
}

.pd-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

@media (max-width: 39.99rem) {
  .pd-facts {
    grid-template-columns: 1fr;
  }
}

.pd-fact {
  background: #f4f7fa;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-fact dt {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8490;
  margin: 0 0 0.25rem;
}

.pd-fact dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.pd-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.pd-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pd-trust-pill--shield {
  border-color: rgba(229, 57, 53, 0.35);
  color: #c62828;
}

.pd-trust-pill--leaf {
  border-color: rgba(126, 87, 194, 0.35);
  color: #5e35b1;
}

.pd-trust-pill--ribbon {
  border-color: rgba(0, 137, 123, 0.35);
  color: #00695c;
}

.pd-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pd-cta-row .btn {
  padding: 0.75rem 1.35rem;
}

/* Tabbed section */
.pd-tabs-section {
  max-width: var(--page-container-max);
  width: 100%;
  margin: 0 auto 3.5rem;
  padding: 0 1.25rem;
}

.pd-tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  background: #eef2f6;
  border-radius: 999px;
  width: 100%;
  scrollbar-width: thin;
}

.pd-tab {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pd-tab:hover {
  color: var(--text);
}

.pd-tab[aria-selected="true"] {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pd-tab:focus-visible {
  outline: 2px solid var(--blue-brand);
  outline-offset: 2px;
}

.pd-tab-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.15rem;
  padding: 1.35rem 1.15rem 1.5rem;
}

.pd-tab-panel[hidden] {
  display: none;
}

.pd-benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 40rem) {
  .pd-benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
  }
}

.pd-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 39.99rem) {
  .pd-benefit {
    border-radius: 1rem;
  }
}

.pd-benefit__ico {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fce4ec, #f8bbd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.pd-prose {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.pd-prose p {
  margin: 0 0 1rem;
}

.pd-prose ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pd-prose li {
  margin-bottom: 0.5rem;
}

.pd-prose strong {
  color: var(--text);
}

/* Small phones */
@media (max-width: 30rem) {
  .page-product-detail main {
    padding-top: 0.25rem;
  }

  .pd-breadcrumb,
  .pd-hero,
  .pd-tabs-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .pd-gallery__main-wrap {
    padding: 1rem 0.85rem;
    border-radius: 1rem;
  }

  .pd-stock {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
  }

  .pd-gallery__thumb img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .pd-info h1 {
    font-size: clamp(1.45rem, 8vw, 1.85rem);
  }

  .pd-tagline {
    font-size: 1rem;
  }

  .pd-checks li,
  .pd-trust-pill {
    font-size: 0.74rem;
  }

  .pd-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pd-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tablets */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .pd-hero__grid {
    gap: 1.5rem;
  }

  .pd-gallery__main-wrap {
    min-height: 16rem;
  }

  .pd-gallery__thumb img {
    width: 4rem;
    height: 4rem;
  }
}

/* Laptop and desktop */
@media (min-width: 64rem) {
  .pd-hero {
    margin-bottom: 3rem;
  }

  .pd-info h1 {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
  }

  .pd-tagline {
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  }

  .pd-lead {
    font-size: 1.03rem;
  }
}

/* Big screens */
@media (min-width: 90rem) {
  .pd-hero,
  .pd-tabs-section,
  .pd-breadcrumb {
    max-width: 78rem;
  }

  .pd-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .pd-gallery__main {
    max-width: min(100%, 30rem);
    max-height: min(64vh, 38rem);
  }

  .pd-tab-panel {
    padding: 1.6rem 1.4rem 1.8rem;
  }
}

/* 2026 UI refresh: product detail pages */
.page-product-detail main {
  padding-top: 1.25rem;
  background:
    linear-gradient(180deg, #fffaf1 0%, #fffdf8 38%, #f5fbf7 100%);
}

.pd-breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--text-soft);
}

.pd-breadcrumb a {
  color: var(--text-soft);
}

.pd-breadcrumb a:hover {
  color: var(--blue-brand);
}

.pd-breadcrumb span[aria-current="page"] {
  color: var(--text);
}

.pd-hero {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.pd-hero__grid {
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.pd-gallery__main-wrap {
  overflow: hidden;
  min-height: clamp(19rem, 48vw, 33rem);
  border-radius: 8px;
  border: 1px solid rgba(37, 50, 58, 0.09);
  background:
    linear-gradient(180deg, #fff 0%, #f7fbf8 100%);
  box-shadow: var(--shadow-soft);
}

.pd-gallery__main-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(16, 166, 106, 0.08));
  pointer-events: none;
}

.pd-stock {
  background: #e9f8f1;
  color: #08734c;
  box-shadow: none;
}

.pd-gallery__main {
  filter: drop-shadow(0 24px 26px rgba(31, 43, 51, 0.14));
}

.pd-gallery__thumbs {
  gap: 0.55rem;
}

.pd-gallery__thumb {
  border-radius: 8px;
  border-width: 2px;
  border-color: rgba(37, 50, 58, 0.08);
  box-shadow: none;
}

.pd-gallery__thumb:hover,
.pd-gallery__thumb:focus-visible {
  border-color: rgba(22, 135, 201, 0.46);
}

.pd-gallery__thumb.is-active {
  border-color: var(--blue-brand);
  box-shadow: 0 8px 18px rgba(22, 135, 201, 0.14);
}

.pd-info h1 {
  color: var(--text);
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.pd-tagline {
  color: var(--pink);
  letter-spacing: 0;
}

.pd-lead {
  color: var(--text-soft);
}

.pd-checks {
  gap: 0.5rem;
}

.pd-checks li {
  background: #fff;
  border-color: rgba(16, 166, 106, 0.22);
  color: var(--text);
}

.pd-checks li::before {
  color: var(--green-brand);
}

.pd-facts {
  gap: 0.75rem;
}

.pd-fact {
  border-radius: 8px;
  background: #fff;
  border-color: rgba(37, 50, 58, 0.09);
  box-shadow: 0 5px 14px rgba(31, 43, 51, 0.06);
}

.pd-fact dt {
  color: var(--text-soft);
}

.pd-fact dd {
  color: var(--text);
}

.pd-trust-row {
  gap: 0.5rem;
}

.pd-trust-pill {
  background: #fff;
  color: var(--text);
  border-color: rgba(37, 50, 58, 0.1);
  box-shadow: 0 5px 14px rgba(31, 43, 51, 0.06);
}

.pd-cta-row .btn {
  border-radius: 8px;
}

.pd-tabs-section {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.pd-tabs-bar {
  padding: 0.35rem;
  border-radius: 8px;
  background: #eef4f2;
  border: 1px solid rgba(37, 50, 58, 0.08);
}

.pd-tab {
  border-radius: 8px;
  color: var(--text-soft);
}

.pd-tab[aria-selected="true"] {
  color: var(--text);
  box-shadow: 0 7px 16px rgba(31, 43, 51, 0.08);
}

.pd-tab-panel {
  border-radius: 8px;
  border-color: rgba(37, 50, 58, 0.09);
  box-shadow: var(--shadow-soft);
}

.pd-benefit {
  border-radius: 8px;
  background: #fffdf8;
  border-color: rgba(37, 50, 58, 0.08);
  color: var(--text);
}

.pd-benefit__ico {
  border-radius: 8px;
  background: #e9f8f1;
}

.pd-prose {
  color: var(--text-soft);
}

.pd-prose strong {
  color: var(--text);
}

@media (max-width: 52rem) {
  .pd-info h1,
  .pd-tagline,
  .pd-lead {
    text-align: center;
  }

  .pd-checks,
  .pd-trust-row {
    justify-content: center;
  }

  .pd-cta-row {
    justify-content: center;
  }
}
