/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

@font-face {
  font-family: "Poppins-Bold";
  src: url("../fonts/Poppins/Poppins-Bold.ttf");
}

@font-face {
  font-family: "Poppins-Regular";
  src: url("../fonts/Poppins/Poppins-Regular.ttf");
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("../fonts/Poppins/Poppins-SemiBold.ttf");
}

@font-face {
  font-family: "Poppins-Medium";
  src: url("../fonts/Poppins/Poppins-Medium.ttf");
}

@font-face {
  font-family: "PlusJakartaSans-Medium";
  src: url("../fonts/jakarta-sans/PlusJakartaSans-Medium.ttf");
}

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --green-hero: #d1fae5;
  --text-primary: #000000;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --white: #ffffff;
  --pill-bg: #f3f4f6;
  --pill-hover: #e5e7eb;
  --nav-height: 64px;
  --font: "Plus Jakarta Sans", sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  margin: 0;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.pmt-navbar {
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.pmt-navbar .container {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

/* Logo — assets/images/logo.png is 884×456 (221∶114) per ffprobe */
.pmt-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0 4px;
  box-sizing: border-box;
}

.pmt-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(var(--nav-height) - 16px);
  aspect-ratio: 221 / 114;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.pmt-logo span.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.pmt-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Nav links (centre) */
.pmt-nav-links {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Poppins-Medium";
}

.pmt-nav-links li {
  display: flex;
}

.pmt-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.pmt-nav-links a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.pmt-nav-links a.active,
.pmt-nav-links a.mega-active {
  background: var(--green-light);
  color: var(--green-dark);
  border-bottom-color: var(--green);
  border-radius: 8px 8px 0 0;
}

/* Nav icons (right) */
.pmt-nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pmt-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  position: relative;
  text-decoration: none;
}

.pmt-icon-btn:hover {
  background: var(--pill-bg);
  color: var(--text-primary);
}

.pmt-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid white;
}

/* ── HERO ── */
.pmt-hero {
  background: linear-gradient(to right, #f6fcee, #eaf9d8);
  padding: 5.5rem 0px 0px;
  text-align: center;
  position: relative;
  overflow: visible;
}

@media (min-width: 1024px) {
  .pmt-hero {
    min-height: 90vh;
  }
}

/* subtle noise/texture overlay */
.pmt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(34, 197, 94, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(34, 197, 94, 0.06) 0%,
      transparent 45%
    );
  pointer-events: none;
}

/* Mode toggle */
.mode-toggle {
  display: inline-flex;
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(8px);
  margin-bottom: 3rem;
  isolation: isolate;
}

.mode-toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 0.75rem;
  background: linear-gradient(to right, #b0ff8c, #4df900);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
  pointer-events: none;
  z-index: 0;
}

.mode-btn {
  font-family: "Poppins-Regular";
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition:
    color 0.2s,
    box-shadow 0.2s;
  color: #9c9c9c;
  background: transparent;
  position: relative;
  z-index: 1;
}

.mode-btn.active {
  color: #000000;
  font-family: "Poppins-SemiBold";
}

.mode-btn .ai-sparkle {
  font-size: 11px;
  opacity: 0.85;
}

/* Hero heading */
.hero-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-heading .ai-word {
  position: relative;
  display: inline-block;
  letter-spacing: 0rem;
  font-family: "Poppins-Medium";
}

.ai-word {
  color: black;
}

.hero-sub {
  font-size: 1rem;
  color: #222222;
  font-weight: 400;
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Search box */
.hero-search-wrap {
  max-width: 700px;
  margin: 0 auto 0;
  position: relative;
  z-index: 100;
  isolation: isolate;
}

.hero-search-card {
  background: #fff;
  border: 1.5px solid #b0ff8c;
  border-radius: 18px;
  padding: 14px 16px 10px 16px;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.08);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 5px 5px 20px #a29c9c;
}

.hero-search-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 4px 28px rgba(34, 197, 94, 0.15);
}

/* Row 1 — text input */
.hero-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background: transparent;
  padding: 0 0 10px 0;
  display: block;
}

.hero-search-input::placeholder {
  color: #a3acb8;
  font-weight: 400;
  opacity: 1;
  transition:
    opacity 0.12s ease,
    color 0.12s ease;
}

.hero-search-input:focus::placeholder {
  opacity: 0;
}

/* Row 2 — image search + button */
.hero-search-row2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
}

/*
        Image search trigger styling is temporarily disabled because the hero image-search UI is commented out.
        Keep this block for a future restore of the homepage image-search entry point.
      .image-search-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-family: var(--font);
        font-size: 13.5px;
        font-weight: 500;
        color: var(--text-muted);
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s;
      }
      .image-search-link i {
        font-size: 16px;
      }
      .image-search-link:hover {
        color: var(--green-dark);
      }
      */

.hero-search-btn {
  background: linear-gradient(to right, #b0ff8c, #4df900);
  color: #1a4a08;
  border: none;
  border-radius: 100px;
  padding: 7px 26px;
  font-family: "Poppins-Medium";
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  letter-spacing: 0.1px;
  flex-shrink: 0;
}

.hero-search-btn i {
  font-size: 15px;
}

.hero-search-btn:hover {
  background: #5cd432;
  box-shadow: 0 4px 14px rgba(110, 224, 64, 0.5);
  transform: translateY(-1px);
}

.hero-search-btn:active {
  transform: translateY(0);
}

/* Quick filter pills below search */
.quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px 40px;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 0rem 0rem;
}

.quick-pill {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}

.quick-pill:hover {
  background: var(--green-light);
  border-color: #86efac;
  color: var(--green-dark);
}

.quick-pill.active {
  border-color: #e4e4e4;
  color: #4a4b4b;
  font-family: "Poppins-Medium";
}

.quick-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot.green {
  background: var(--green);
}

.pill-dot.orange {
  background: #f97316;
}

.pill-dot.blue {
  background: #3b82f6;
}

.pill-dot.red {
  background: #ef4444;
}

/* ── CATEGORY TABS ── */
.category-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  max-width: 1400px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 14px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cat-tab:hover {
  color: var(--text-primary);
}

.cat-tab.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
  font-weight: 600;
}

.cat-tab .count {
  font-size: 11px;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 1px 7px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-1 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.05s;
}

.anim-2 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.15s;
  color: #43414136;
  font-family: "Poppins-SemiBold";
  letter-spacing: 0.1rem;
}

.anim-3 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.25s;
  font-family: "Poppins-Regular";
  color: #222222;
}

.anim-4 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.35s;
}

.anim-5 {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.45s;
}

/* Replayed when switching between AI and Product mode */
.mode-animate-heading {
  animation: fadeUp 0.35s ease both;
}

.mode-animate-sub {
  animation: fadeUp 0.42s ease both;
}

.mode-animate-panel {
  animation: fadeUp 0.48s ease both;
}

/* Cart badge (red) */
.badge-cart {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Nav link icons */
.pmt-nav-links a i {
  font-size: 15px;
  opacity: 0.7;
}

/* ── SEARCH DROPDOWN ── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  overflow: hidden;
  display: none;
  animation: fadeDown 0.18s ease both;
}

.search-dropdown.open {
  display: block;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sd-section {
  padding: 14px 16px;
}

/* Header row */
.sd-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sd-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #222222;
}

.sd-clear-all {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 15px;
  padding: 2px 4px;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
}

.sd-clear-all:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Recent list */
.sd-recent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

.sd-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  transition: background 0.12s;
  padding-left: 0rem;
  padding-right: 0rem;
}

.sd-recent-item:hover {
  background: #f9fafb;
}

.sd-recent-text {
  font-size: 13.5px;
  color: var(--text-primary);
  cursor: pointer;
  flex: 1;
  font-weight: 400;
}

.sd-recent-active .sd-recent-text {
  font-weight: 400;
  color: var(--text-primary);
}

.sd-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 15px;
  padding: 2px 4px;
  border-radius: 6px;
  line-height: 1;
  transition:
    color 0.12s,
    background 0.12s;
}

.sd-remove:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Show more */
.sd-show-more {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}

.sd-show-more:hover {
  color: var(--green-dark);
}

.sd-show-more i {
  font-size: 11px;
  transition: transform 0.2s;
}

.sd-show-more.open i {
  transform: rotate(180deg);
}

/* Divider */
.sd-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

/* AI label */
.sd-ai-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}

.sd-ai-dot {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
}

/* AI pill suggestions */
.sd-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-ai-pill {
  background: var(--green-light);
  border: 1px solid #86efac;
  border-radius: 100px;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.sd-ai-pill i {
  font-size: 12px;
}

.sd-ai-pill:hover {
  background: #bbf7d0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

/* ══ MEGA MENU ══ */
.mega-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.mega-menu-overlay.open {
  pointer-events: all;
}

.mega-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 420px;
  z-index: 1999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mega-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Left sidebar */
.mega-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 0;
  position: relative;
}

.mega-sidebar::-webkit-scrollbar {
  display: none;
}

.mega-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
}

.mega-sidebar-item:hover {
  background: #f9fafb;
  color: var(--text-primary);
}

.mega-sidebar-item.active {
  background: #f0fdf4;
  color: var(--text-primary);
  border-left-color: var(--green);
  font-weight: 600;
}

.mega-sidebar-icon {
  /* width: 28px;
  height: 28px;
  background: #f3f4f6;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563; */
  display: none;
}

.mega-sidebar-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-sidebar-item:hover .mega-sidebar-icon,
.mega-sidebar-item.active .mega-sidebar-icon {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Sidebar scroll arrows */
.mega-scroll-arrow {
  position: sticky;
  left: 0;
  right: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  color: var(--green);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.mega-scroll-arrow.bottom {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  bottom: 0;
}

/* Right content */
.mega-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  scrollbar-color: var(--green) #f3f4f6;
  scrollbar-width: thin;
}

.mega-content::-webkit-scrollbar {
  width: 6px;
}

.mega-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.mega-content::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

.mega-section {
  margin-bottom: 32px;
}

.mega-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.mega-products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.mega-product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}

.mega-product-item:hover {
  transform: translateY(-2px);
}

.mega-product-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.mega-product-item:hover .mega-product-circle {
  border-color: #86efac;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.mega-product-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* Close backdrop — starts below the navbar so nav links stay clickable
   even while the mega menu is open. */
.mega-backdrop {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1998;
  display: none;
}

.mega-backdrop.open {
  display: block;
}

/* Active nav link when mega open — handled by rules above */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .pmt-nav-links {
    display: none;
  }

  .hero-search-btn:hover {
    background: #5cd432;
    display: none;
    box-shadow: 0 4px 14px rgba(110, 224, 64, 0.5);
    transform: translateY(-1px);
  }

  .hero-heading {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .hero-sub {
    font-size: 14px;
  }
}

/* ══ INQUIRY MODAL ══ */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.inquiry-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.inquiry-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(16px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.inquiry-overlay.open .inquiry-modal {
  transform: translateY(0);
}

.inquiry-modal-header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.inquiry-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.inquiry-modal-to {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

.inquiry-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
}

.inquiry-modal-close:hover {
  background: #f3f4f6;
  color: var(--text-primary);
}

.inquiry-modal-body {
  padding: 18px 22px 20px;
}

/* Product row */
.inquiry-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.inquiry-product-img {
  width: 56px;
  height: 56px;
  background: #f3f4f6;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.inquiry-product-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.inquiry-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.inquiry-qty-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.inquiry-qty-input {
  width: 70px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}

.inquiry-qty-input:focus {
  border-color: var(--green);
}

/* Details field */
.inquiry-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inquiry-field-label .req {
  color: #ef4444;
}

.inquiry-field-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.inquiry-textarea {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid #ef4444;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.6;
}

.inquiry-textarea:focus {
  border-color: var(--green);
}

.inquiry-textarea::placeholder {
  color: var(--text-light);
}

/* Attachment */
.inquiry-attach-wrap {
  margin-top: 10px;
}

.inquiry-attach-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.15s;
}

.inquiry-attach-btn:hover {
  color: var(--green);
}

.inquiry-attach-btn i {
  font-size: 15px;
}

.inquiry-attach-input {
  display: none;
}

.inquiry-attach-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.inquiry-modal-footer {
  padding: 0 22px 22px;
  text-align: center;
}

.btn-send-inquiry-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #6ee040;
  color: #1a4a08;
  border: none;
  border-radius: 100px;
  padding: 13px 48px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

.btn-send-inquiry-now:hover {
  background: #5cd432;
  box-shadow: 0 6px 20px rgba(110, 224, 64, 0.45);
  transform: translateY(-1px);
}

.btn-send-inquiry-now:active {
  transform: translateY(0);
}

.btn-send-inquiry-now:disabled {
  background: #d1fae5;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Success state */
.inquiry-success {
  display: none;
  text-align: center;
  padding: 40px 22px 32px;
}

.inquiry-success.visible {
  display: block;
}

.inquiry-success-icon {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 12px;
}

.inquiry-success-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.inquiry-success-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── Quantity Stepper ── */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper:focus-within {
  border-color: var(--green, #22c55e);
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #f9fafb;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.qty-btn:hover {
  background: var(--green-light, #dcfce7);
  color: var(--green-dark, #16a34a);
}

.qty-btn:active {
  background: #bbf7d0;
}

.qty-input {
  width: 64px;
  height: 34px;
  border: none;
  outline: none;
  text-align: center;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  background: #fff;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ══ AUTH MODAL — scoped under #authOverlay to beat Bootstrap specificity ══ */
#authOverlay.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#authOverlay.auth-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#authOverlay .auth-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  min-height: 380px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
}

#authOverlay.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

/* Left panel */
#authOverlay .auth-left {
  flex: 0 0 240px;
  background: linear-gradient(160deg, #4ade80 0%, #22c55e 40%, #16a34a 100%);
  padding: 32px 24px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#authOverlay .auth-left-welcome {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

#authOverlay .auth-left-brand {
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

#authOverlay .auth-left-tagline {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

#authOverlay .auth-left-tagline strong {
  font-weight: 800;
}

#authOverlay .auth-left-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 180px;
}

#authOverlay .auth-gift-img {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><ellipse cx="50" cy="80" rx="40" ry="12" fill="rgba(0,0,0,0.15)"/><rect x="20" y="38" width="60" height="40" rx="4" fill="%23f0fdf4"/><rect x="20" y="30" width="60" height="12" rx="3" fill="%23dcfce7"/><rect x="45" y="20" width="10" height="30" fill="%2386efac"/><path d="M50 20 Q40 10 30 15 Q25 25 50 25 Q75 25 70 15 Q60 10 50 20Z" fill="%2322c55e"/><circle cx="50" cy="22" r="4" fill="%23fff"/></svg>')
    no-repeat center/contain;
}

/* Right panel */
#authOverlay .auth-right {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

#authOverlay .auth-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

#authOverlay .auth-form-sub {
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Fields */
#authOverlay .auth-field {
  margin-bottom: 14px;
}

#authOverlay .auth-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

#authOverlay .auth-label sup {
  color: #ef4444;
}

#authOverlay .auth-input {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 9px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  outline: none !important;
  background: #fff !important;
  box-shadow: none !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#authOverlay .auth-input:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

#authOverlay .auth-input::placeholder {
  color: #9ca3af;
}

#authOverlay .auth-hint {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}

/* Password row */
#authOverlay .auth-pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

#authOverlay .auth-show-pw {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

#authOverlay .auth-show-pw input {
  cursor: pointer;
  accent-color: #22c55e;
}

#authOverlay .auth-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

#authOverlay .auth-forgot:hover {
  color: #16a34a;
}

/* CTA button */
#authOverlay .btn-auth {
  display: block !important;
  width: 100% !important;
  padding: 12px 0 !important;
  background: #6ee040 !important;
  color: #1a4a08 !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  margin-top: 16px;
  text-align: center;
}

#authOverlay .btn-auth:hover {
  background: #5cd432 !important;
  box-shadow: 0 6px 20px rgba(110, 224, 64, 0.4);
  transform: translateY(-1px);
}

#authOverlay .btn-auth:active {
  transform: translateY(0);
}

/* Switch + note */
#authOverlay .auth-switch {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  margin-top: 12px;
}

#authOverlay .auth-switch a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#authOverlay .auth-switch a:hover {
  text-decoration: underline;
}

#authOverlay .auth-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

#authOverlay .auth-note strong {
  color: #6b7280;
}

/* ── Product Image Placeholders ── */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: inherit;
}

.ph-cal {
  background: #dcfce7;
  color: #16a34a;
}

.ph-rx {
  background: #eff6ff;
  color: #3b82f6;
}

.ph-poster {
  background: #fff7ed;
  color: #f97316;
}

.ph-video {
  background: #fef2f2;
  color: #ef4444;
}

.ph-app {
  background: #f0f9ff;
  color: #0ea5e9;
}

.ph-note {
  background: #fdf4ff;
  color: #a855f7;
}

.ph-desk {
  background: #f5f3ff;
  color: #8b5cf6;
}

.ph-default {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Product Mode: Bootstrap checkbox green override ── */
#productModePanel .form-check-input:checked {
  background-color: #22c55e;
  border-color: #22c55e;
}

#productModePanel .form-check-input:focus {
  border-color: #86efac;
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

#productModePanel .form-check-label {
  font-size: 13px;
  font-family: "Poppins-Regular";
  cursor: pointer;
  color: #6e6e6e;
  text-transform: capitalize;
}

#productModePanel .form-check-input {
  cursor: pointer;
}

#productModePanel .col {
  min-width: 0;
}

/* ── Product Mode results grid ── */
#pmResultsGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  #pmResultsGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  #pmResultsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  #pmResultsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Product Mode: Result Cards ── */
#pmResultsGrid .result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s,
    border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: cardReveal 0.35s ease both;
}

#pmResultsGrid .result-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pmResultsGrid .result-card:nth-child(1) {
  animation-delay: 0s;
}

#pmResultsGrid .result-card:nth-child(2) {
  animation-delay: 0.04s;
}

#pmResultsGrid .result-card:nth-child(3) {
  animation-delay: 0.08s;
}

#pmResultsGrid .result-card:nth-child(4) {
  animation-delay: 0.12s;
}

#pmResultsGrid .result-card:nth-child(5) {
  animation-delay: 0.16s;
}

#pmResultsGrid .result-card:nth-child(6) {
  animation-delay: 0.2s;
}

#pmResultsGrid .result-card:nth-child(7) {
  animation-delay: 0.24s;
}

#pmResultsGrid .result-card:nth-child(8) {
  animation-delay: 0.28s;
}

#pmResultsGrid .result-card:nth-child(9) {
  animation-delay: 0.32s;
}

#pmResultsGrid .result-card:nth-child(10) {
  animation-delay: 0.36s;
}

#pmResultsGrid .result-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

#pmResultsGrid .result-card-name {
  font-size: 13px;
  font-family: "Poppins-SemiBold";
  color: #000000;
  margin-bottom: 4px;
}

#pmResultsGrid .result-card-desc {
  font-family: "Poppins-Regular";
  font-size: 11.5px;
  color: #9c9c9c;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
#pmResultsGrid .result-card-ai-reason {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#pmResultsGrid .why-fits-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

#pmResultsGrid .why-fits-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
}

#pmResultsGrid .why-fits-badge i {
  font-size: 10px;
}

#pmResultsGrid .caps-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1f2937;
  color: #fff;
  border-radius: 10px;
  padding: 6px 0;
  width: 180px;
  font-size: 12.5px;
  z-index: 200;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: all;
}

#pmResultsGrid .caps-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-bottom-color: #1f2937;
}

#pmResultsGrid .why-fits-wrap:hover .caps-tooltip {
  display: block;
}

#pmResultsGrid .caps-tooltip-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

#pmResultsGrid .caps-tooltip-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

#pmResultsGrid .caps-tooltip-action i {
  font-size: 13px;
  color: #6ee040;
}

#pmResultsGrid .caps-tooltip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
}

#pmResultsGrid .result-card-price {
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 6px;
}

#pmResultsGrid .result-card-price span {
  font-size: 11px;
  margin: 0 3px;
  color: var(--text-muted);
  font-weight: 400;
}

#pmResultsGrid .result-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}

#pmResultsGrid .result-card-price-row .result-card-price {
  margin-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}

#pmResultsGrid .result-card-price-row .why-fits-wrap {
  flex-shrink: 0;
  margin-bottom: 0;
}

#pmResultsGrid .result-card-price-row .why-fits-badge {
  margin-bottom: 0;
  white-space: nowrap;
}

#pmResultsGrid .matches-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

#pmResultsGrid .result-card-btns {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

#pmResultsGrid .btn-view {
  flex: 1;
  padding: 7px 0;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: #fff;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  text-align: center;
}

#pmResultsGrid .btn-view:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

#pmResultsGrid .btn-cart {
  flex: 1;
  padding: 7px 0;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: #fff;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  text-align: center;
}

#pmResultsGrid .btn-cart:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

#pmResultsGrid .btn-cart.active {
  background: #6ee040;
  border-color: #6ee040;
  color: #1a4a08;
}

.ph i {
  font-size: 28px;
  opacity: 0.8;
}

.ph span {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
}

/* ══════════════════════════════════════════════════
       PRODUCT MODE — FILTER PANEL
    ══════════════════════════════════════════════════ */
.product-mode-wrap {
  display: none;
  animation: pmFadeIn 0.22s ease;
}

@keyframes pmFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pf-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 20px 24px 16px;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.08);
  text-align: left;
}

.pf-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr 1fr 0.9fr 1.1fr;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.pf-col {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.pf-col:first-child {
  padding-left: 0;
}

.pf-col:last-child {
  border-right: none;
  padding-right: 0;
}

.pf-col-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 11px;
}

.pf-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
}

.pf-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
  position: relative;
  margin-top: 1px;
  flex-shrink: 0;
}

.pf-option input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

.pf-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1.5px;
  width: 5px;
  height: 8px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.pf-option span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  cursor: pointer;
}

.pf-option:hover span {
  color: var(--green-dark);
}

.pf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 100px;
  padding: 3px 8px 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  animation: tagPop 0.14s ease;
}

@keyframes tagPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pf-tag button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-dark);
  opacity: 0.55;
  padding: 0;
  font-size: 13px;
  transition: opacity 0.12s;
}

.pf-tag button:hover {
  opacity: 1;
}

.pf-hint {
  font-size: 11.5px;
  color: var(--text-light);
  font-style: italic;
}

.pf-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pf-clear {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}

.btn-pf-clear:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.btn-pf-apply {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #1a4a08;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
  transition:
    background 0.12s,
    box-shadow 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-pf-apply:hover {
  background: #6ee040;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.btn-pf-apply:active {
  transform: translateY(1px);
}

/* ══════════════════════════════════════════════════
       PRODUCT MODE — RESULTS SECTION
    ══════════════════════════════════════════════════ */
.pm-results-wrap {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 24px 64px;
  display: none;
}

.pm-results-wrap.visible {
  display: block;
}

.pm-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pm-results-count strong {
  color: var(--text-primary);
  font-size: 16px;
}

.pm-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.pm-results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pm-no-results {
  display: none;
  text-align: center;
  padding: 56px 24px;
}

.pm-no-results.visible {
  display: block;
}

.pm-no-results i {
  font-size: 44px;
  color: #d1d5db;
  display: block;
  margin-bottom: 14px;
}

.pm-no-results h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pm-no-results p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .pm-results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .pm-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pf-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px;
  }

  .pf-col {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }

  .pf-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .pm-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════
       WISHLIST HEART — shows on card hover
    ═══════════════════════════════════════ */
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #9ca3af;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition:
    opacity 0.2s,
    color 0.2s,
    transform 0.15s;
  z-index: 20;
}

/* Make every card position:relative so the button can anchor */
.premium-card,
.result-card,
.cat-card,
.prod-card,
.freq-card,
.rec-card,
.pm-card {
  position: relative !important;
}

/* Show on hover */
.premium-card:hover .wishlist-btn,
.result-card:hover .wishlist-btn,
.cat-card:hover .wishlist-btn,
.prod-card:hover .wishlist-btn,
.freq-card:hover .wishlist-btn,
.rec-card:hover .wishlist-btn,
.pm-card:hover .wishlist-btn {
  opacity: 1;
}

/* Hover the heart itself */
.wishlist-btn:hover {
  color: var(--green, #22c55e);
  transform: scale(1.15);
}

/* Active = in wishlist = green */
.wishlist-btn.active {
  opacity: 1 !important;
  color: var(--green, #22c55e) !important;
}

.wishlist-btn.active i {
  color: var(--green, #22c55e) !important;
}

/* Mega menus full-width on mobile */
.mega-menu {
  height: auto;
  max-height: 70vh;
  overflow-y: auto;
}

.mega-products-grid {
  grid-template-columns: repeat(6, 1fr) !important;
}

/* Inquiry modal full screen */
.inquiry-overlay {
  padding: 0;
  align-items: flex-end;
}

.inquiry-modal {
  border-radius: 20px 20px 0 0;
  max-width: 100%;
  width: 100%;
}

/* Auth modal full screen */
#authOverlay .auth-modal {
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  min-height: auto;
  border-radius: 0;
}

#authOverlay .auth-left {
  flex: 0 0 auto;
  min-height: 120px;
}

@media (max-width: 480px) {
  .mega-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ════════════════════════════════════════════
       index.html MOBILE
    ════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero section */
  .hero-heading {
    font-size: 24px !important;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 13px !important;
  }

  .hero-search-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .hero-search-input {
    width: 100%;
  }

  .mode-toggle {
    gap: 4px;
  }

  .mode-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Quick pills — horizontal scroll */
  .quick-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* AI sections carousel — horizontal scroll */
  .pmt-carousel {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 0rem;
    padding-bottom: 8px;
  }

  .freq-card {
    min-width: 130px;
    flex-shrink: 0;
  }

  .premium-card {
    min-width: 160px;
    flex-shrink: 0;
  }

  /* Product mode grids */
  #pmResultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .pm-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Filter panel — stack vertically */
  .pf-grid {
    flex-direction: column !important;
  }

  .pf-col {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .pf-col:last-child {
    border-bottom: none;
  }

  /* Product mode Bootstrap filter grid — 2 columns on tablet/mobile */
  #pfGridRow {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    flex-wrap: unset !important;
  }

  #pfGridRow > .col {
    flex: none !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    border-right: none !important;
  }

  #pfGridRow > .col:nth-child(5) {
    grid-column: 1 / -1;
  }

  #productModePanel .card-body {
    padding: 16px 14px !important;
  }

  /* Category tabs scroll */
  .cat-tabs-wrap {
    overflow-x: auto;
  }

  .cat-tabs {
    flex-wrap: nowrap !important;
  }

  /* Section padding */
  .section-inner,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  #pmResultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hero-heading {
    font-size: 20px !important;
  }

  /* Product mode filter — single column on phones */
  #pfGridRow {
    grid-template-columns: 1fr !important;
  }

  #pfGridRow > .col {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px !important;
  }

  #pfGridRow > .col:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  #pfGridRow > .col:nth-child(5) {
    grid-column: auto;
  }

  /* Footer: stack filter tags above buttons, full-width buttons */
  #productModePanel .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
  }

  #productModePanel .d-flex.justify-content-between > .d-flex.gap-2 {
    width: 100%;
  }

  #productModePanel .d-flex.justify-content-between > .d-flex.gap-2 > .btn {
    flex: 1;
  }
}

#authOverlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;
  background: rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#authOverlay.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#authOverlay .auth-modal {
  background: #fff !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 620px !important;
  min-height: 380px !important;
  display: flex !important;
  overflow: hidden !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  border: none !important;
}

#authOverlay.open .auth-modal {
  transform: translateY(0) scale(1) !important;
}

#authOverlay .auth-left {
  flex: 0 0 240px !important;
  background: linear-gradient(
    160deg,
    #4ade80 0%,
    #22c55e 40%,
    #16a34a 100%
  ) !important;
  padding: 32px 24px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
}

#authOverlay .auth-left-welcome {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 6px !important;
}

#authOverlay .auth-left-brand {
  font-size: 36px !important;
  font-weight: 800 !important;
  font-style: italic !important;
  color: #fff !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  letter-spacing: -1px !important;
}

#authOverlay .auth-left-tagline {
  font-size: 18px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
}

#authOverlay .auth-left-tagline strong {
  font-weight: 800 !important;
  color: #fff !important;
}

#authOverlay .auth-left-sub {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.5 !important;
  max-width: 180px !important;
}

#authOverlay .auth-right {
  flex: 1 !important;
  padding: 32px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  overflow-y: auto !important;
}

#authOverlay .auth-form-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.3px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
}

#authOverlay .auth-form-sub {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
}

#authOverlay .auth-field {
  margin-bottom: 14px !important;
}

#authOverlay .auth-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 5px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
}

#authOverlay .auth-label sup {
  color: #ef4444 !important;
}

#authOverlay .auth-input {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 9px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#authOverlay .auth-input:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
  outline: none !important;
}

#authOverlay .auth-input::placeholder {
  color: #9ca3af;
}

#authOverlay .auth-hint {
  font-size: 11px !important;
  color: #ef4444 !important;
  margin-top: 4px !important;
  display: block !important;
}

#authOverlay .auth-pw-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
}

#authOverlay .auth-show-pw {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  user-select: none !important;
  font-weight: normal !important;
}

#authOverlay .auth-show-pw input[type="checkbox"] {
  width: auto !important;
  cursor: pointer !important;
  accent-color: #22c55e !important;
}

#authOverlay .auth-forgot {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-decoration: none !important;
}

#authOverlay .auth-forgot:hover {
  color: #16a34a !important;
}

#authOverlay .btn-auth {
  display: block !important;
  width: 100% !important;
  padding: 12px 0 !important;
  background: #6ee040 !important;
  color: #1a4a08 !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  margin-top: 16px !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}

#authOverlay .btn-auth:hover {
  background: #5cd432 !important;
  box-shadow: 0 6px 20px rgba(110, 224, 64, 0.4) !important;
  transform: translateY(-1px) !important;
}

#authOverlay .btn-auth:active {
  transform: translateY(0) !important;
}

#authOverlay .auth-switch {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  text-align: center !important;
  margin-top: 12px !important;
}

#authOverlay .auth-switch a {
  color: #16a34a !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#authOverlay .auth-note {
  font-size: 11px !important;
  color: #9ca3af !important;
  text-align: center !important;
  margin-top: 10px !important;
  line-height: 1.5 !important;
}

#authOverlay .auth-note strong {
  color: #6b7280 !important;
}

/* ═══════════════════════════════════════════════════════════
       RESPONSIVE — Mobile First (shared across all pages)
       320px → 480px → 768px → 1024px → 1280px+
    ═══════════════════════════════════════════════════════════ */

/* ── Hamburger button ── */
.pmt-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.pmt-hamburger:hover {
  background: var(--bg-secondary, #f3f4f6);
}

/* ── Mobile nav drawer ── */
.pmt-mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1199;
}

.pmt-mobile-nav-overlay.open {
  display: block;
}

.pmt-mobile-nav {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1200;
  padding: 0 0 24px;
  transition: bottom 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.pmt-mobile-nav.open {
  bottom: 0;
}

.pmt-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.pmt-mobile-nav-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.pmt-mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted, #6b7280);
  padding: 4px;
}

.pmt-mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.pmt-mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.pmt-mobile-nav-links li a:active {
  background: var(--bg-secondary, #f3f4f6);
}

.pmt-mobile-nav-links li a i {
  font-size: 18px;
  color: var(--green);
}

.pmt-mobile-nav-links li a img {
  filter: none;
}

/* ── Navbar ── */
@media (max-width: 768px) {
  .pmt-navbar .container,
  .pmt-navbar .nav-inner {
    padding: 0 12px !important;
    position: relative;
  }

  .pmt-nav-links {
    display: none !important;
  }

  .pmt-hamburger {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  /* Center logo absolutely so it stays truly centred regardless of icon count */
  .pmt-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  /* Push icons to the right */
  .pmt-nav-icons {
    margin-left: auto;
    gap: 2px;
  }

  /* Hide WhatsApp from top bar — it lives in the drawer on mobile */
  .pmt-nav-whatsapp {
    display: none !important;
  }

  .pmt-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .badge-cart,
  .badge-wishlist {
    width: 13px;
    height: 13px;
    font-size: 7px;
  }
}

/* ── Mega menus ── */
@media (max-width: 768px) {
  .mega-menu {
    height: auto;
    max-height: 75vh;
    overflow-y: auto;
    flex-direction: column;
  }

  .mega-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }

  .mega-sidebar-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 12px;
  }

  .mega-content {
    padding: 16px;
  }

  .mega-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mega-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Inquiry modal ── */
@media (max-width: 768px) {
  .inquiry-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .inquiry-modal {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ── Auth modal ── */
@media (max-width: 768px) {
  #authOverlay .auth-modal {
    flex-direction: column;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    min-height: auto !important;
  }

  #authOverlay .auth-left {
    flex: 0 0 auto;
    min-height: 100px;
    padding: 20px 24px 12px;
  }

  #authOverlay .auth-left-brand {
    font-size: 26px;
  }

  #authOverlay .auth-right {
    padding: 20px 20px 32px !important;
  }
}

/* ── index.html specific ── */
@media (max-width: 1024px) {
  .pmt-carousel {
    gap: 12px;
  }

  #pmResultsGrid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .pmt-hero {
    padding: 32px 16px 24px;
  }

  .mode-toggle {
    margin-bottom: 20px;
  }

  .mode-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .hero-heading {
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
  }

  .hero-sub {
    font-size: 13px !important;
    margin-bottom: 20px;
  }

  .hero-search-wrap {
    max-width: 100%;
    padding: 0;
  }

  .hero-search-card {
    border-radius: 14px;
    padding: 12px;
  }

  .hero-search-input {
    font-size: 14px;
  }

  .hero-search-btn {
    padding: 4px 18px;
    font-size: 13px;
  }

  /* Quick pills — scroll horizontally */
  .quick-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 14px 16px 20px;
    gap: 6px;
    max-width: 100%;
  }

  .quick-pill {
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Carousels — horizontal scroll */
  .pmt-carousel {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .freq-card {
    min-width: 130px;
    flex-shrink: 0;
  }

  .premium-card {
    min-width: 155px;
    flex-shrink: 0;
  }

  .prod-card {
    min-width: 145px;
    flex-shrink: 0;
  }

  .rx-card {
    min-width: 145px;
    flex-shrink: 0;
  }

  /* PM results grid */
  #pmResultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .pm-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Filter panel */
  .pf-grid {
    flex-direction: column !important;
    gap: 0;
  }

  .pf-col {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .pf-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Section headings */
  .section-heading {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .mode-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .hero-heading {
    font-size: 1.3rem !important;
  }

  #pmResultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .freq-card {
    min-width: 115px;
  }

  .premium-card {
    min-width: 140px;
  }
}

@media (max-width: 375px) {
  .hero-heading {
    font-size: 1.2rem !important;
  }

  .hero-sub {
    font-size: 12px !important;
  }

  #pmResultsGrid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Divider heading ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2.5rem 0 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 0.15rem;
  background: var(--border);
  position: relative;
}

.divider-line::after {
  /* content: "→"; */
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
  padding: 0 2px;
}

.divider-line.right::after {
  content: none;
}

.divider-line.right::before {
  /* content: "←"; */
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
  padding: 0 2px;
}

.divider-title {
  font-size: 1rem;
  font-family: "Poppins-Regular";
  color: #026841;
  white-space: nowrap;
}

/* ── Carousel wrapper ── */
.pmt-carousel-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0px;
}

.pmt-carousel {
  display: flex;
  overflow: hidden;
  align-items: stretch;
  gap: 1.25rem;
}

/* Green circle nav buttons */
.carousel-nav {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  background: linear-gradient(to right, #b0ff8c, #4df900) !important;
}

.carousel-nav:hover {
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav.prev {
  left: -4%;
}

.carousel-nav.next {
  right: -4%;
}

/* ── Frequently Searched card ── */
.freq-card {
  flex: 0 0 calc(25% - 15px);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.15s;
  background-color: #f8f8f8;
}

.freq-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.freq-card-label {
  font-size: 0.9rem;
  font-family: "Poppins-SemiBold";
  color: #026841;
  margin-bottom: 3px;
}

.freq-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: "Poppins-Medium";
}

.freq-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── Premium Product Collection ── */
.premium-section {
  background: #edf4ea;
  border-radius: 2rem;
  padding: 1.5rem 1.75rem 1.5rem;
  margin: 48px 0px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* extend bg edge to edge with margin trick */
@media (min-width: 1280px) {
  .premium-section {
    margin-left: auto;
    margin-right: auto;
  }
}

.premium-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1rem 12px;
}

.premium-title {
  font-size: 20px;
  font-weight: 800;
  color: #026841;
  margin-bottom: 4px;
  font-family: "Poppins-SemiBold";
}

.premium-sub {
  font-size: 13px;
  color: #9c9c9c;
  font-weight: 400;
  font-family: "Poppins-Regular";
}

.explore-more-link {
  font-size: 1rem;
  font-family: "Poppins-SemiBold";
  color: #026841;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem !important;
  white-space: nowrap;
  margin-top: 4px;
  transition: gap 0.15s;
}

.explore-more-link:hover {
  gap: 8px;
  color: var(--green-dark);
}

/* ── Premium product card ── */
.premium-card {
  flex: 0 0 25%;
  border-radius: 14px;
  padding: 12px;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.premium-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.premium-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.premium-card-name {
  font-size: 0.85rem;
  font-family: "Poppins-SemiBold";
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  font-family: "Poppins-Regular";
}

.premium-card-price {
  font-size: 13px;
  color: #de0505;
  margin-bottom: 12px;
  font-family: "Poppins-SemiBold";
}

.premium-card-price span {
  font-size: 11px;
  margin: 0 3px;
  color: #ef4444;
}

/* Explore button */
.btn-explore {
  width: 100%;
  padding: 9px 0;
  border-radius: 8px;
  font-family: "Poppins-Medium";
  font-size: 12.5px;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
  border: none;
  letter-spacing: 0.1px;
}

.btn-explore.dark {
  background: #000000;
  color: #fff;
  font-family: "Poppins-Medium";
}

.btn-explore.dark:hover {
  background: linear-gradient(to right, #b0ff8c, #4df900);
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-explore.lime {
  background: #6ee040;
  color: #1a4a08;
}

.btn-explore.lime:hover {
  background: #5cd432;
  box-shadow: 0 4px 12px rgba(110, 224, 64, 0.4);
}

/* ── Section header ── */
.section-header {
  margin: 0 auto;
  padding: 0px 0px 20px;
}

.section-heading-red {
  font-size: 20px;
  font-family: "Poppins-SemiBold";
  letter-spacing: -0.4px;
  margin-bottom: 4px;

  background: linear-gradient(64deg, #d9674f 0%, #8f0002 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading-sub {
  font-size: 13px;
  color: #9c9c9c;
  font-family: "Poppins-Regular";
}

/* ── Product grid ── */
.product-grid {
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  /* Your mobile styles here */
  .product-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .carousel-nav {
    top: 50%;
  }

  .rx-card {
    min-width: 100% !important;
  }

  .premium-header {
    padding: 10px 10px 20px !important;
  }

  .premium-card {
    min-width: 100% !important;
  }

  .freq-card {
    min-width: 100% !important;
  }

  .rx-banner-inner {
    flex-direction: column;
  }
}

/* ── Plain product card (no button) ── */
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s,
    border-color 0.2s;
}

.prod-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.prod-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border-radius: 10px;
  margin-bottom: 14px;
}

.prod-card-name {
  font-size: 13.5px;
  font-family: "Poppins-SemiBold";
  color: #000000;
  margin-bottom: 5px;
}

.prod-card-desc {
  font-size: 12px;
  color: #9c9c9c;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Poppins-Regular";
}

.prod-card-price {
  font-size: 13px;
  font-family: "Poppins-SemiBold";
  color: #000000;
}

.prod-card-price span {
  font-size: 11px;
  margin: 0 3px;
}

/* ── Prescription Pads banner ── */
.rx-banner {
  display: none;
  max-width: 1400px;
  margin: 2rem auto 48px;
}

.rx-banner-inner {
  background:
    linear-gradient(
      110deg,
      rgba(33, 107, 0, 0.9) 0%,
      rgba(105, 232, 48, 0.6) 100%
    ),
    url("../images/bg.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Left info panel */
.rx-info {
  flex: 0 0 260px;
  padding: 32px 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.rx-info-title {
  font-size: 18px;
  font-family: "Poppins-SemiBold";
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.rx-info-title i {
  font-size: 16px;
  opacity: 0.9;
}

.rx-info-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-family: "Poppins-Regular";
}

.rx-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rx-bullets li {
  font-size: 13px;
  color: #fff;
  font-family: "Poppins-Regular";
  display: flex;
  align-items: center;
  gap: 8px;
}

.rx-bullets li i {
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

.btn-rx-explore {
  display: inline-block;
  background: #fff;
  color: #222222;
  font-family: "Poppins-SemiBold";
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: fit-content;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

.btn-rx-explore:hover {
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Right scrollable cards */
.rx-cards-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

.rx-carousel {
  display: flex;
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.rx-card {
  flex: 0 0 25%;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.rx-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 10px;
}

.rx-card-price {
  font-size: 12.5px;
  font-family: "Poppins-SemiBold";
  color: #000000;
  margin-bottom: 4px;
}

.rx-card-price span {
  font-size: 10px;
  margin: 0 2px;
}

.rx-card-rating {
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Poppins-Regular";
}

.rx-card-rating i {
  font-size: 11px;
  color: #000000;
}

.btn-add-cart {
  width: 100%;
  padding: 8px 0;
  background: linear-gradient(to right, #b0ff8c, #4df900);
  color: #1a4a08;
  border: none;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add-cart:hover {
  background: #5cd432;
}

/* dark nav buttons inside rx banner */
.rx-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000000;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.rx-nav:hover {
  background: #374151;
}

.rx-nav.prev {
  left: 4px;
}

.rx-nav.next {
  right: 4px;
}

.pmt-footer {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0rem;
  margin-top: 60px;
}

.pmt-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Left — contact */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-contact a:hover {
  color: var(--green-dark);
}

.footer-contact a i {
  color: #369709;
  font-size: 14px;
}

.footer-sep {
  color: var(--border);
  font-weight: 300;
  font-size: 16px;
}

/* Centre — nav links */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd-recent-text {
  text-align: start;
}

.footer-nav li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-nav li a {
  color: #222222;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-nav .sep {
  color: var(--border);
  font-size: 16px;
  font-weight: 300;
}

/* Right — copyright */
.footer-copy {
  font-size: 12.5px;
  color: #a2a2a2;
  font-family: "PlusJakartaSans-Medium";

  white-space: nowrap;
}

.container {
  max-width: 1400px !important;
}

.recent-searches {
  padding-bottom: 0rem !important;
}

.form-check.mb-1 {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .rx-info {
    margin-bottom: 0rem !important;
    padding-bottom: 0rem;
  }

  .pmt-footer {
    border-top: 1px solid var(--border);
    padding: 0.7rem 1.1rem;
  }

  #productModePanel .container {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
  }
}

.mode-btn.active {
  font-family: "Poppins-SemiBold";
}

.hero-search-input::placeholder {
  color: #a3acb8;
  font-family: "Poppins-Regular";
  opacity: 1;
  transition:
    opacity 0.12s ease,
    color 0.12s ease;
}

.hero-search-input:focus::placeholder {
  opacity: 0;
}

.__cf_email__,
.phone_num {
  font-family: "PlusJakartaSans-Medium";
}

.footer-nav a {
  color: #222222 !important;
}

#megaAllCat {
  padding: 0 5.5rem;
  /* Desktop */
}

@media (max-width: 768px) {
  #megaAllCat,
  #megaSpecialties {
    padding: 0 1rem !important;
  }
}

#megaSpecialties {
  padding: 0 5.5rem;
  /* Desktop */
}

/* Mobile devices */
@media (max-width: 768px) {
  #megaSpecialties {
    padding: 0 1rem !important;
  }

  .section-divider {
    padding: 1rem 0rem;
  }

  .premium-section {
    margin: 1rem 0px;
  }

  .section-header {
    padding: 1rem 0rem;
  }

  .pmt-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pmt-footer {
    padding: 1rem;
  }

  .hero-search-btn {
    padding: 0.5rem 1.25rem;
  }

  .premium-section {
    padding: initial;
  }

  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn {
    opacity: 1;
  }
}

#freqWrap {
  max-width: 1200px;
}

#megaSpecialties,
#megaAllCat {
  padding: 0rem 5.5rem;
}
