﻿/* Medora overrides for Petmark theme */

/* ---- Advanced hero ---- */
.medora-hero {
  --mh-navy: #071526;
  --mh-ink: #0b1f33;
  --mh-teal: #2bb4a0;
  --mh-mist: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--mh-navy);
  isolation: isolate;
}

.medora-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 85% 35%, rgba(43, 180, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(56, 120, 200, 0.22), transparent 50%),
    linear-gradient(145deg, #06111f 0%, #0b1f33 48%, #0a2a36 100%);
}

.medora-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: medoraOrb 12s ease-in-out infinite alternate;
}

.medora-hero-orb-a {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 12%;
  background: rgba(43, 180, 160, 0.45);
}

.medora-hero-orb-b {
  width: 220px;
  height: 220px;
  left: 5%;
  bottom: 18%;
  background: rgba(80, 140, 220, 0.35);
  animation-delay: -4s;
}

.medora-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes medoraOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

.medora-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: 4.5rem 15px 3rem;
}

.medora-hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  animation: medoraRise 0.8s ease both;
}

.medora-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  animation: medoraRise 0.8s ease 0.1s both;
}

.medora-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mh-mist);
  animation: medoraRise 0.8s ease 0.18s both;
}

.medora-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  animation: medoraRise 0.8s ease 0.26s both;
}

.medora-hero-btn {
  background: var(--mh-teal) !important;
  border-color: var(--mh-teal) !important;
  color: #042018 !important;
  font-weight: 700;
}

.medora-hero-btn:hover {
  filter: brightness(1.08);
  color: #042018 !important;
}

.medora-hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
  animation: medoraRise 0.8s ease 0.34s both;
}

.medora-hero-meta li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.medora-hero-meta strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.medora-hero-stage {
  position: relative;
  animation: medoraRise 0.9s ease 0.2s both;
}

.medora-hero-stage-frame {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.medora-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.25rem 1.35rem 1.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}

.medora-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  position: relative;
}

.medora-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #042018;
  background: var(--mh-teal);
}

.medora-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.medora-hero-visual img {
  max-width: min(100%, 320px);
  max-height: 260px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  transition: transform 0.5s ease;
}

.medora-hero-slide.is-active .medora-hero-visual img {
  animation: medoraFloat 4.5s ease-in-out infinite;
}

@keyframes medoraFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.medora-hero-product h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.medora-hero-product h2 a {
  color: #fff;
  text-decoration: none;
}

.medora-hero-product p {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.7);
}

.medora-hero-buy {
  color: var(--mh-teal);
  font-weight: 700;
  text-decoration: none;
}

.medora-hero-buy:hover {
  color: #fff;
}

.medora-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.medora-hero-thumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.medora-hero-thumb img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}

.medora-hero-thumb span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.medora-hero-thumb:hover,
.medora-hero-thumb.is-active {
  border-color: rgba(43, 180, 160, 0.65);
  background: rgba(43, 180, 160, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.medora-hero-rail {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.medora-hero-rail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.medora-hero-rail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  color: inherit;
  text-decoration: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.medora-hero-rail-item:last-child {
  border-right: 0;
}

.medora-hero-rail-item:hover {
  background: rgba(43, 180, 160, 0.12);
}

.medora-hero-rail-item .rail-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-teal);
  font-weight: 700;
}

.medora-hero-rail-item strong {
  color: #fff;
  font-size: 1rem;
}

.medora-hero-rail-item em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

@keyframes medoraRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .medora-hero-brand,
  .medora-hero-title,
  .medora-hero-lead,
  .medora-hero-cta,
  .medora-hero-meta,
  .medora-hero-stage,
  .medora-hero-orb,
  .medora-hero-slide.is-active .medora-hero-visual img {
    animation: none !important;
  }
}

@media (max-width: 991px) {
  .medora-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3rem;
    gap: 1.75rem;
  }

  .medora-hero-stage-frame {
    min-height: 360px;
  }

  .medora-hero-rail-grid {
    grid-template-columns: 1fr;
  }

  .medora-hero-rail-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 575px) {
  .medora-hero-thumbs {
    grid-template-columns: 1fr;
  }

  .medora-hero-visual img {
    max-height: 200px;
  }
}

.medora-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.medora-logo img,
.site-brand .brand-image img,
.sticky-logo.medora-logo img {
  max-height: 52px;
  width: auto;
}

.medora-footer-logo {
  max-height: 48px;
  width: auto;
}

.medora-promo-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.medora-cat-card.has-image {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.medora-cat-card.has-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.medora-cat-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(8, 20, 40, 0.85));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.medora-cat-card-copy span {
  color: #cbd5e1;
}

.medora-brand-thumb {
  display: block !important;
  text-align: center;
  text-decoration: none !important;
  color: #0f172a !important;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
}

.medora-brand-thumb img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #f8fafc;
  margin-bottom: 0.5rem;
}

.medora-brand-thumb span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-area-two .home-content.bg-image {
  background-size: cover;
  background-position: center;
}

.medora-line-chip {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.75rem;
  font-weight: 700;
  color: #0f172a !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}

/* Product cards */
.pm-product .image {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

.pm-product .image img,
.pm-product.product-type-list .image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #f7f7f7;
}

.pm-product.product-type-list .image img {
  height: 90px;
  width: 90px;
}

.pm-product .content h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 2.6em;
}

.pm-product .content h3 a {
  color: inherit;
  text-decoration: none;
}

.pm-add-form {
  display: inline-block;
  margin: 0;
}

.pm-add-form .btn,
.btn-block .btn.disabled {
  cursor: pointer;
}

.btn-block .btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.onsale-badge.out-badge {
  background: #888;
}

.promo-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-area-two .promo-image img {
  max-height: 420px;
  object-fit: contain;
  background: #f5f8fb;
}

.medora-promo-card {
  position: relative;
  display: block;
  background: #f5f8fb;
  border: 1px solid #e8eef3;
  min-height: 280px;
}

.medora-promo-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.medora-promo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.medora-promo-caption strong {
  font-size: 0.95rem;
}

.medora-promo-caption em {
  font-style: normal;
  font-weight: 700;
  color: #7dd3fc;
}

.medora-banner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: #eef6fc;
  border: 1px solid #c5dff0;
  border-radius: 12px;
}

.medora-banner-strip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.medora-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.medora-cat-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
  color: inherit;
}

.medora-cat-card span {
  color: #777;
  font-size: 0.9rem;
}

.medora-line-chip {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.75rem;
  font-weight: 700;
  color: #0f172a !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}

/* Shop */
.medora-sidebar .sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.medora-sidebar .sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.medora-sidebar .sidebar-list li {
  margin-bottom: 0.5rem;
}

.medora-sidebar .sidebar-list a {
  color: #333;
  text-decoration: none;
}

.medora-sidebar .sidebar-list a.is-active,
.medora-sidebar .sidebar-list a:hover {
  color: var(--color-primary, #2b7bb9);
  font-weight: 600;
}

.sidebar-search {
  position: relative;
  display: flex;
}

.sidebar-search input {
  flex: 1;
  border: 1px solid #e5e5e5;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
}

.sidebar-search .search-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: 0;
  background: transparent;
  width: 2.5rem;
}

.medora-product-grid .pm-product {
  height: 100%;
  border: 1px solid #eee;
  padding: 0.75rem;
  background: #fff;
}

/* Product detail */
.medora-product-details .image-block img#mainImg {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #f7f7f7;
}

.medora-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.medora-thumbs .thumb-btn {
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
}

.medora-thumbs .thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.medora-features {
  padding-left: 1.1rem;
  margin: 1rem 0;
}

.medora-features li {
  margin-bottom: 0.35rem;
}

.medora-info-box {
  height: 100%;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: #f8fafc;
}

.medora-info-box h4 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.medora-info-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #444;
}

.add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.count-input-block input {
  width: 80px;
}

/* Cart / checkout */
.medora-cart-table img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f7f7f7;
  margin-right: 0.75rem;
}

.cart-product-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.qty-input {
  width: 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin: 2rem 0 1rem;
}

.checkout-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.25rem;
}

.checkout-panel h3 {
  margin: 0 0 0.35rem;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.payment-method-box {
  background: #eef6fc;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0 1rem;
}

.bank-details-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.bank-details-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
}

.bank-details-list li span {
  color: #777;
  font-weight: 600;
}

.checkout-success-box {
  background: #eef6fc;
  border: 1px solid #c5dff0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.field-error {
  color: #c0392b;
  font-weight: 600;
}

.medora-flash {
  margin-bottom: 1rem;
}

.medora-prose {
  max-width: 820px;
  line-height: 1.7;
}

.medora-about-logo {
  max-height: 64px;
  width: auto;
}

.medora-about-products img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}

.medora-about-products strong {
  display: block;
}

.medora-prose h3 {
  margin-top: 1.75rem;
}

.call-widget a {
  color: inherit;
}

.breadcrumb-section {
  background: #f5f8fb;
  padding: 2rem 0;
}

.breadcrumb-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.breadcrumb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.35rem;
  color: #999;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- Janoshik Lab Results (medora-lab split) ---- */
.medora-lab {
  padding: 2.5rem 0 1rem;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(43, 180, 160, 0.12), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(7, 21, 38, 0.06), transparent 40%),
    #f4faf9;
}
.medora-lab__split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
}
.medora-lab__eyebrow {
  margin: 0 0 0.4rem;
  color: #2bb4a0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.medora-lab__title {
  margin: 0 0 0.6rem;
  color: #071526;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}
.medora-lab__lead {
  margin: 0 0 1rem;
  color: #445268;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 26rem;
}
.medora-lab__all {
  color: #2bb4a0;
  font-weight: 700;
  text-decoration: none;
}
.medora-lab__all:hover { color: #071526; }
.medora-lab__certs {
  display: grid;
  gap: 0.65rem;
}
.medora-lab__mini {
  display: grid;
  grid-template-columns: auto 1fr 56px;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #cfe9e4;
  border-left: 3px solid #2bb4a0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.medora-lab__mini:hover {
  transform: translateX(4px);
  border-color: #2bb4a0;
  color: inherit;
  text-decoration: none;
}
.medora-lab__mini-purity {
  font-size: 1.25rem;
  font-weight: 800;
  color: #071526;
  letter-spacing: -0.03em;
}
.medora-lab__mini-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #071526;
}
.medora-lab__mini-lab {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2bb4a0;
}
.medora-lab__mini-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.medora-lab__mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 900px) {
  .medora-lab__split { grid-template-columns: 1fr; gap: 1.25rem; }
}
