/* ============================================================
   PDM components — assets/css/components.css
   One BEM component layer consumed by:
     • the classic PHP templates
     • block patterns (Block Editor)
     • the Elementor template kit (via widget CSS classes)
   Tokens come from tokens.css (--pdm-*).
   ============================================================ */

/* ---------- Base ------------------------------------------- */
body.pdm-theme {
  font-family: var(--pdm-font-body);
  color: var(--pdm-ink);
  background: var(--pdm-off-white);
  margin: 0;
}

/* ---------- Layout containers ------------------------------ */
.pdm-container {
  max-width: var(--pdm-container);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}
.pdm-container--narrow { max-width: calc(var(--pdm-content) + 48px); }
.pdm-container--mid    { max-width: calc(var(--pdm-mid) + 48px); }

.pdm-main        { padding-block: 40px 56px; }
.pdm-main--woo   { padding-block: 32px 56px; }
.pdm-main--flush { padding: 0 0 56px; }

/* Root-level block alignment inside the flush (landing) template —
   emulates the constrained layout the FSE templates used. */
.pdm-main--flush > * {
  max-width: var(--pdm-content);
  margin-left: auto;
  margin-right: auto;
}
.pdm-main--flush > .alignwide { max-width: var(--pdm-container); }
.pdm-main--flush > .alignfull { max-width: none; }

/* ---------- Ship strip -------------------------------------- */
.pdm-ship-strip {
  background: var(--pdm-teal);
  color: var(--pdm-teal-light);
  font-family: var(--pdm-font-body);
  font-size: 12.5px;
  padding: 6px 16px;
  text-align: center;
}
.pdm-ship-strip b { color: #fff; font-weight: 600; }
.pdm-ship-strip__bolt,
.pdm-ship-strip .pdm-bolt { color: var(--pdm-lime); margin-right: 6px; }

/* ---------- Header ------------------------------------------ */
.pdm-header {
  background: var(--pdm-white);
  border-bottom: 0.5px solid var(--pdm-cloud);
}
.pdm-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 14px;
}
.pdm-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.pdm-header__brand img,
.wp-block-site-logo img {
  border-radius: 10px;
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 40vw);
  object-fit: contain;
}
.pdm-logo--mobile { display: none; }
.pdm-brand-mark { display: inline-flex; }
.pdm-brand-mark svg { display: block; }
.pdm-header__title {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--pdm-teal);
  white-space: nowrap;
}
.pdm-header__nav { flex: 0 1 auto; }
.pdm-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pdm-nav a {
  font-family: var(--pdm-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pdm-ink);
  text-decoration: none;
  white-space: nowrap;
}
.pdm-nav a:hover,
.pdm-nav .current-menu-item > a { color: var(--pdm-teal); }
.pdm-header__actions { display: flex; gap: 4px; flex-shrink: 0; }
.pdm-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pdm-radius-sm);
  color: var(--pdm-slate);
  font-size: 19px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pdm-header__icon-btn:hover {
  background: var(--pdm-teal-ice);
  color: var(--pdm-teal);
}
.pdm-header__cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding-inline: 4px;
  border-radius: var(--pdm-radius-pill);
  background: var(--pdm-lime);
  color: var(--pdm-ink);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-sizing: border-box;
}

/* ---------- Search ------------------------------------------ */
.pdm-search {
  position: relative;
  flex: 0 1 380px;
  min-width: 180px;
}
.pdm-search__input,
.pdm-search input[type="search"] {
  width: 100%;
  border: 1px solid var(--pdm-cloud);
  border-radius: var(--pdm-radius-sm);
  padding: 9px 40px 9px 12px;
  font-family: var(--pdm-font-body);
  font-size: 13px;
  background: var(--pdm-off-white);
  box-sizing: border-box;
}
.pdm-search__btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--pdm-mist);
  font-size: 17px;
  padding: 6px;
  cursor: pointer;
}
.pdm-search__btn:hover { color: var(--pdm-teal); }

/* ---------- Footer ------------------------------------------ */
.pdm-footer {
  background: var(--pdm-teal);
  color: var(--pdm-teal-light);
  margin-top: 56px;
  padding: 40px 0 24px;
  font-family: var(--pdm-font-body);
}
.pdm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.pdm-footer__brand {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 10px;
}
.pdm-footer__tagline { font-size: 13px; line-height: 1.6; margin: 0; }
.pdm-footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.pdm-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.pdm-footer__list li { margin: 0 0 8px; }
.pdm-footer__list a { color: var(--pdm-teal-light); text-decoration: none; }
.pdm-footer__list a:hover { color: #fff; }
.pdm-footer__rule {
  border: 0;
  border-top: 1px solid var(--pdm-teal-mid);
  margin: 28px 0 16px;
}
.pdm-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.pdm-footer__bottom p { margin: 0; }

/* ---------- Buttons ----------------------------------------- */
.pdm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pdm-teal);
  color: #fff;
  font-family: var(--pdm-font-body);
  font-size: 13.5px;
  font-weight: 600;
  border: 0;
  border-radius: var(--pdm-radius-sm);
  padding: 10px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pdm-btn:hover { background: var(--pdm-teal-mid); color: #fff; }
.pdm-btn--outline {
  background: transparent;
  border: 1.5px solid var(--pdm-teal);
  color: var(--pdm-teal);
  padding: 8.5px 20.5px;
}
.pdm-btn--outline:hover { background: var(--pdm-teal-ice); color: var(--pdm-teal); }
.pdm-btn--lime { background: var(--pdm-lime); color: var(--pdm-ink); padding: 13px 24px; font-size: 14.5px; }
.pdm-btn--lime:hover { background: var(--pdm-lime-mid); color: var(--pdm-ink); }
.pdm-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 11.5px 22.5px;
  font-size: 14.5px;
}
.pdm-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Kicker / badges / pills -------------------------- */
.pdm-kicker {
  display: inline-block;
  font-family: var(--pdm-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pdm-teal-mid);
}
.pdm-badge {
  display: inline-block;
  background: var(--pdm-lime);
  color: var(--pdm-ink);
  font-family: var(--pdm-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--pdm-radius-pill);
}
.pdm-badge--float {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.pdm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pdm-white);
  border: 1px solid var(--pdm-cloud);
  color: var(--pdm-slate);
  border-radius: var(--pdm-radius-pill);
  padding: 7px 14px;
  text-decoration: none;
  font-family: var(--pdm-font-body);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.pdm-pill .ti { color: var(--pdm-teal-mid); }
.pdm-pill:hover { border-color: var(--pdm-teal); color: var(--pdm-teal); }
.pdm-pill--active {
  background: var(--pdm-teal);
  border-color: var(--pdm-teal);
  color: #fff;
}
.pdm-pill--active .ti { color: var(--pdm-lime); }
.pdm-pill--active:hover { color: #fff; }
.pdm-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Price lockup ------------------------------------ */
.pdm-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 18px;
}
.pdm-price__amount {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: var(--pdm-ink);
}
.pdm-price__unit {
  font-family: var(--pdm-font-body);
  font-size: 13px;
  color: var(--pdm-mist);
}

/* ---------- Avatars / testimonial bits ----------------------- */
.pdm-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pdm-teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.pdm-quote-mark {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 0.8;
  color: var(--pdm-teal-light);
  margin-bottom: 6px;
}
.pdm-attribution {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 0.5px solid var(--pdm-cloud);
  margin-top: 18px;
}
.pdm-attribution__name {
  font-family: var(--pdm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--pdm-ink);
}
.pdm-attribution__role {
  font-family: var(--pdm-font-body);
  font-size: 11.5px;
  color: var(--pdm-mist);
  margin-top: 2px;
}

/* ---------- Chips (hero-gradient side stack) ------------------ */
.pdm-chip {
  background: var(--pdm-white);
  border-radius: var(--pdm-radius-md);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--pdm-shadow-1);
}
.pdm-chip--teal { background: var(--pdm-teal); box-shadow: none; }
.pdm-chip__icon { font-size: 22px; color: var(--pdm-teal); }
.pdm-chip--teal .pdm-chip__icon { color: var(--pdm-lime); }
.pdm-chip__kicker {
  font-family: var(--pdm-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pdm-teal-mid);
}
.pdm-chip--teal .pdm-chip__kicker { color: var(--pdm-lime); }
.pdm-chip__label {
  font-family: var(--pdm-font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pdm-ink);
  margin-top: 2px;
}
.pdm-chip--teal .pdm-chip__label { color: #fff; }
.pdm-chip-stack { display: flex; flex-direction: column; gap: 12px; }
.pdm-chip-stack .pdm-chip:nth-child(2) { margin-left: 28px; }

.pdm-live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pdm-lime);
  flex-shrink: 0;
  animation: pdm-pulse 1.4s ease-in-out infinite;
}
@keyframes pdm-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 160, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(45, 212, 160, .05); }
}

/* ---------- Product card (marketing grids) ------------------- */
.pdm-product-card {
  background: #fff;
  border: 0.5px solid var(--pdm-cloud);
  border-radius: var(--pdm-radius-md);
  overflow: hidden;
  transition: box-shadow .18s cubic-bezier(.16, .84, .44, 1), transform .18s;
}
.pdm-product-card:hover {
  box-shadow: var(--pdm-shadow-2);
  transform: translateY(-1px);
}
.pdm-product-card__img {
  background: var(--pdm-teal-ice);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pdm-product-card__body { padding: 16px 18px 18px; }
.pdm-product-card__cat {
  display: inline-block;
  font-family: var(--pdm-font-body);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--pdm-radius-pill);
  border: 1px solid;
}
.pdm-product-card__name {
  font-family: var(--pdm-font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pdm-ink);
  margin: 10px 0 0;
  line-height: 1.4;
}
.pdm-product-card__sku {
  font-family: var(--pdm-font-mono);
  font-size: 11px;
  color: var(--pdm-mist);
  margin-top: 4px;
}
.pdm-product-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.pdm-product-card__price {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pdm-teal);
  letter-spacing: -.01em;
}
.pdm-product-card__unit {
  font-family: var(--pdm-font-body);
  font-size: 11.5px;
  color: var(--pdm-mist);
  margin-left: 6px;
}
.pdm-product-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pdm-font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pdm-success);
}
.pdm-product-card__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pdm-lime);
}

/* ---------- Hero (image) -------------------------------------- */
.pdm-hero-image {
  position: relative;
  border-radius: var(--pdm-radius-lg);
  overflow: hidden;
  box-shadow: var(--pdm-shadow-2);
}
.pdm-hero-image img { display: block; width: 100%; height: auto; }
.pdm-hero-image__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(to top, rgba(2, 28, 30, .55), rgba(2, 28, 30, 0));
}
.pdm-hero-image__actions { display: flex; gap: 12px; }
.pdm-hero-image__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pdm-font-body);
  font-size: 13px;
  color: #fff;
  background: rgba(12, 31, 32, .45);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 14px;
  border-radius: var(--pdm-radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pdm-hero-image__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pdm-lime);
  animation: pdm-pulse 1.4s ease-in-out infinite;
}

/* ---------- Promo strip --------------------------------------- */
.pdm-promo {
  background: var(--pdm-teal-ice);
  border: 1px solid var(--pdm-teal-light);
  border-radius: var(--pdm-radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdm-promo--quiet { background: #fff; padding: 14px 16px; }
.pdm-promo__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pdm-teal);
  color: var(--pdm-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pdm-promo__icon--ice {
  background: var(--pdm-teal-ice);
  color: var(--pdm-teal);
  font-size: 18px;
}
.pdm-promo__copy { flex: 1; }
.pdm-promo__title {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pdm-ink);
  letter-spacing: -0.005em;
}
.pdm-promo--quiet .pdm-promo__title {
  font-family: var(--pdm-font-body);
  font-size: 14px;
  font-weight: 600;
}
.pdm-promo__sub {
  font-family: var(--pdm-font-body);
  font-size: 13px;
  color: var(--pdm-slate);
  margin-top: 2px;
}
.pdm-promo--quiet .pdm-promo__sub { font-size: 12.5px; }

/* ---------- Blog / archive ------------------------------------ */
.pdm-archive-head { margin-bottom: 28px; }
.pdm-archive-head h1 {
  font-family: var(--pdm-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.pdm-archive-head p { color: var(--pdm-mist); font-size: 14px; margin: 0; }

.pdm-post-list { display: grid; gap: 20px; }
.pdm-post-card {
  background: #fff;
  border: 0.5px solid var(--pdm-cloud);
  border-radius: var(--pdm-radius-md);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.pdm-post-card:hover { box-shadow: var(--pdm-shadow-2); transform: translateY(-1px); }
.pdm-post-card__media { display: block; }
.pdm-post-card__media img { display: block; width: 100%; height: 200px; object-fit: cover; }
.pdm-post-card__body { padding: 20px 22px 22px; }
.pdm-post-card__title {
  font-family: var(--pdm-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 8px 0 4px;
  line-height: 1.25;
}
.pdm-post-card__title a { color: var(--pdm-ink); text-decoration: none; }
.pdm-post-card__title a:hover { color: var(--pdm-teal); }
.pdm-post-card__meta { font-size: 12.5px; color: var(--pdm-mist); margin-bottom: 8px; }
.pdm-post-card__excerpt { font-size: 14px; color: var(--pdm-slate); line-height: 1.6; }
.pdm-post-card__excerpt p { margin: 0; }

.pdm-pagination { margin-top: 32px; }
.pdm-pagination .nav-links { display: flex; gap: 6px; }
.pdm-pagination .page-numbers {
  font-family: var(--pdm-font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pdm-slate);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: var(--pdm-radius-sm);
  border: 1px solid var(--pdm-cloud);
  background: #fff;
}
.pdm-pagination .page-numbers.current {
  background: var(--pdm-teal);
  border-color: var(--pdm-teal);
  color: #fff;
}
.pdm-pagination .page-numbers:hover:not(.current) { border-color: var(--pdm-teal); color: var(--pdm-teal); }

/* ---------- Single entry -------------------------------------- */
.pdm-entry__title { margin: 10px 0 20px; }
.pdm-entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--pdm-mist);
  margin-bottom: 28px;
}
.pdm-entry__meta img { border-radius: 50%; }
.pdm-entry__hero { margin-bottom: 32px; }
.pdm-entry__hero img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--pdm-radius-lg);
}
.pdm-prose img { max-width: 100%; height: auto; border-radius: var(--pdm-radius-md); }

/* ---------- Contact -------------------------------------------- */
.pdm-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 56px;
  padding-block: 16px;
}
.pdm-contact__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--pdm-slate);
  margin: 12px 0 28px;
}
.pdm-contact__cards { display: flex; flex-direction: column; gap: 16px; }
.pdm-contact__note { font-size: 12.5px; color: var(--pdm-mist); }

/* ---------- 404 ------------------------------------------------- */
.pdm-404 { text-align: center; padding-block: 80px; }
.pdm-404__code {
  font-family: var(--pdm-font-display);
  font-weight: 700;
  font-size: 144px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #007A7C, #2DD4A0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.pdm-404 h1 { margin: 0 0 10px; }
.pdm-404 p { color: var(--pdm-slate); font-size: 15px; margin: 0 0 28px; }
.pdm-404__actions { display: flex; justify-content: center; gap: 12px; }

/* ---------- Content helpers ------------------------------------ */
.pdm-relative { position: relative; } /* anchor for .pdm-badge--float (Elementor cards) */
.is-style-no-bullets { list-style: none; padding-left: 0; }
.is-style-no-bullets li { margin: 0 0 8px; }

/* ---------- Forms (CF7 / WPForms / Gravity / comments) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="url"], input[type="password"], input[type="number"],
textarea, select {
  border: 1px solid var(--pdm-cloud);
  border-radius: var(--pdm-radius-sm);
  padding: 10px 12px;
  font-family: var(--pdm-font-body);
  font-size: 14px;
  background: var(--pdm-off-white);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, input[type="url"]:focus, input[type="password"]:focus,
input[type="number"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--pdm-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 124, .25);
}

/* ---------- Responsive ------------------------------------------ */
@media (max-width: 1080px) {
  .pdm-header__row { flex-wrap: wrap; gap: 12px 20px; }
  .pdm-header__nav { order: 3; flex-basis: 100%; }
  .pdm-search { flex-grow: 1; }
  .pdm-footer__grid { grid-template-columns: 1fr 1fr; }
  .pdm-contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pdm-header__row { padding-block: 10px; }
  .pdm-header__brand img { height: 32px; border-radius: 8px; }
  .pdm-header__brand--has-mobile .pdm-logo--desktop { display: none; }
  .pdm-header__brand--has-mobile .pdm-logo--mobile { display: block; }
  .pdm-header__title { font-size: 17px; }
  .pdm-nav { flex-wrap: wrap; gap: 12px 18px; }
  .pdm-footer__grid { grid-template-columns: 1fr; }
  .pdm-footer__bottom { flex-direction: column; gap: 4px; }
  .pdm-hero-image__overlay { flex-direction: column; align-items: flex-start; }
  .pdm-404__code { font-size: 96px; }
  .pdm-promo { flex-wrap: wrap; }
}
