*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --font: "Plus Jakarta Sans", sans-serif;
  --nav-height: 56px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  margin: 0;
}

@font-face {
  font-family: "Poppins-Regular";
  src: url("/assets/fonts/Poppins/Poppins-Regular.ttf");
}

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("/assets/fonts/Poppins/Poppins-SemiBold.ttf");
}

@font-face {
  font-family: "Poppins-Medium";
  src: url("/assets/fonts/Poppins/Poppins-Medium.ttf");
}

@font-face {
  font-family: "PlusJakartaSans-Medium";
  src: url("/assets/fonts/jakarta-sans/PlusJakartaSans-Medium.ttf");
}

@font-face {
  font-family: "RacingSansOne-Regular";
  src: url("/assets/fonts/Racing_Sans_One/RacingSansOne-Regular.ttf");
}

/* ══ 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;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.pmt-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  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:hover {
  opacity: 0.9;
}

/* Search */
.nav-search-wrap {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
  isolation: isolate;
}

.nav-search-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #86efac;
  border-radius: 100px;
  padding: 6px 6px 6px 16px;
  gap: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.nav-search-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-primary);
  background: transparent;
}

.nav-search-input::placeholder {
  color: var(--text-light);
}

/* Image search button styling is temporarily disabled because the navbar image-search control is commented out.
       Keep this rule for future restoration.
    .nav-search-icon-btn { background: none; border: none; color: var(--text-light); font-size: 16px; cursor: pointer; padding: 0 4px; display: flex; align-items: center; }
    */
.nav-search-btn {
  background: #6ee040;
  color: #1a4a08;
  border: none;
  border-radius: 100px;
  padding: 7px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.nav-search-btn:hover {
  background: #5cd432;
}

/* Icons */
.pmt-nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pmt-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  text-decoration: none;
  position: relative;
}

.pmt-icon-btn:hover {
  background: #f3f4f6;
  color: var(--text-primary);
}

.badge-cart {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══ PLAIN NAV LINKS BAR ══ */
.plain-nav-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: var(--nav-height);
  z-index: 999;
}

.plain-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.plain-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.plain-nav-link:hover {
  color: var(--text-primary);
}

.plain-nav-link.mega-active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

/* ══ ANNOUNCEMENT BANNER ══ */
.announcement-banner {
  background:
    linear-gradient(to right, rgba(144, 252, 95, 0.19), rgba(77, 249, 0, 0.19)),
    linear-gradient(to right, rgba(217, 103, 79, 0.1), rgba(143, 0, 2, 0.1));
  padding: 12px 24px;
}

.announcement-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-text {
  font-family: "Poppins-Regular";
  font-size: 11px;
  color: #222222;
  line-height: 1.7;
}

.announcement-text strong {
  font-size: 18px;
  color: #026841;
  font-family: "RacingSansOne-Regular";
}

.btn-inquiry-now {
  background: #6ee040;
  color: #1a4a08;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s,
    box-shadow 0.15s;
  opacity: 0;
}

.btn-inquiry-now:hover {
  background: #5cd432;
  box-shadow: 0 4px 12px rgba(110, 224, 64, 0.4);
}

/* ══ SUB-CATEGORY TABS ══ */
.subcat-tabs-wrap {
  position: relative;
  background: #fff;
}

.subcat-tabs-wrap::after {
  content: "";
  display: block;

  height: 2px;
  width: 79.4%; /* control this freely */

  margin: 0 auto; /* centers left-right */

  background:
    linear-gradient(to right, rgba(144, 252, 95, 0.19), rgba(77, 249, 0, 0.19)),
    linear-gradient(to right, rgba(217, 103, 79, 0.1), rgba(143, 0, 2, 0.1));
}

.subcat-tabs-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.subcat-tabs-inner::-webkit-scrollbar {
  display: none;
}

.subcat-tab {
  font-family: "Poppins-Regular";
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 28px 16px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.subcat-tab:hover {
  color: var(--text-primary);
}

.subcat-tab.active {
  color: #222222;
  font-family: "Poppins-SemiBold";
  border-bottom-color: #026841;
}

.subcat-tab-arrow {
  position: fixed;
  right: 190px;
  top: calc(var(--nav-height) + 116px);
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f0002;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 9999;
}

/* ══ PRODUCT GRID ══ */
.cat-grid-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0px 64px;
}

/* dynamic target: id="cat-grid" */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Product card */
.cat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s,
    border-color 0.2s;
}

.cat-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

/* Image area with badge inside */
.cat-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3f4f6;
}

.cat-card-badge {
  font-family: "Poppins-Medium";
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 10.5px;
  color: #026841;
  backdrop-filter: blur(4px);
}

/* Card info */
.cat-card-info {
  padding: 12px 12px 14px;
}

.cat-card-name {
  font-size: 13.5px;
  font-family: "Poppins-SemiBold";
  color: #222222;
  margin-bottom: 5px;
}

.cat-card-desc {
  font-family: "Poppins-Regular";
  font-size: 11.5px;
  color: #222222;
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-price {
  font-family: "Poppins-SemiBold";

  font-size: 17px;
  font-weight: 700;
  color: #222222;
}

.cat-card-price span {
  font-size: 11px;
  margin: 0 3px;
}

/* ══ SEARCH DROPDOWN ══ */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  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;
}

.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: var(--text-primary);
}

.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;
}

.sd-clear-all:hover {
  color: #ef4444;
}

.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;
}

.sd-recent-item:hover {
  background: #f9fafb;
}

.sd-recent-text {
  font-size: 13.5px;
  color: var(--text-primary);
  cursor: pointer;
  flex: 1;
}

.sd-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 15px;
  padding: 2px 4px;
  transition: color 0.12s;
}

.sd-remove:hover {
  color: #ef4444;
}

.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;
}

.sd-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

.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;
}

.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;
}

.sd-ai-pill:hover {
  background: #bbf7d0;
}

/* ══ FOOTER ══ */
.pmt-footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
  padding: 18px 24px;
  margin-top: 60px;
}

.pmt-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.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: var(--green);
  font-size: 14px;
}

.footer-sep {
  color: var(--border);
  font-size: 16px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.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;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-light);
  white-space: nowrap;
}

/* ══ 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 */
.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1998;
  display: none;
}

.mega-backdrop.open {
  display: block;
}

/* Active nav link when mega open */
.pmt-nav-links a.mega-active,
.plain-nav-link.mega-active {
  background: var(--green-light);
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

/* ══ 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 ══ */
.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;
}

.auth-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.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;
}

.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

/* ── Left panel ── */
.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;
}

.auth-left-welcome {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.auth-left-brand {
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.auth-left-tagline {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.auth-left-tagline strong {
  font-weight: 800;
}

.auth-left-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 180px;
}

.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 ── */
.auth-right {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.auth-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.auth-form-sub {
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Fields */
.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  display: block;
}

.auth-label sup {
  color: #ef4444;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: 13.5px;
  color: #111827;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
}

.auth-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-hint {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}

/* Password row */
.auth-pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.auth-show-pw {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}

.auth-show-pw input {
  cursor: pointer;
  accent-color: #22c55e;
}

.auth-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-forgot:hover {
  color: #16a34a;
}

/* CTA button */
.btn-auth {
  width: 100%;
  padding: 12px 0;
  background: #6ee040;
  color: #1a4a08;
  border: none;
  border-radius: 100px;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  margin-top: 16px;
}

.btn-auth:hover {
  background: #5cd432;
  box-shadow: 0 6px 20px rgba(110, 224, 64, 0.4);
  transform: translateY(-1px);
}

.btn-auth:active {
  transform: translateY(0);
}

/* Switch link */
.auth-switch {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  margin-top: 12px;
}

.auth-switch a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Note */
.auth-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

.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;
}

.ph i {
  font-size: 28px;
  opacity: 0.8;
}

.ph span {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
}

/* ═══════════════════════════════════════
       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(3, 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;
  }
}

/* ════════════════════════════════════════════
       category.html MOBILE
    ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .pmt-nav-links {
    display: none !important;
  }

    .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn,
  .wishlist-btn {
    opacity: 1;
  }

  /* Category grid 2 cols */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Subcat tabs scroll */
  .subcat-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
  }

  .subcat-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 14px;
  }

  /* Grid padding */
  .cat-grid-wrap {
    padding: 12px 16px 48px !important;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cat-card-name {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
       RESPONSIVE — Mobile First (shared across all pages)
       320px → 480px → 768px → 1024px → 1280px+
    ═══════════════════════════════════════════════════════════ */

/* ── Navbar ── */
@media (max-width: 768px) {
  .pmt-navbar .container,
  .pmt-navbar .nav-inner {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .pmt-nav-links {
    display: none !important;
  }

  .nav-search-wrap {
    max-width: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .nav-search-card {
    width: 100%;
  }

  .nav-search-btn {
    padding: 7px 12px;
  }

  .nav-search-btn span {
    display: none;
  }

  /* Hide WhatsApp icon from navbar on mobile — too many icons cause overflow */
  .pmt-nav-icons a[href*="wa.me"] {
    display: none !important;
  }

  .pmt-nav-icons {
    gap: 2px;
    flex-shrink: 0;
  }

  .pmt-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .badge-cart,
  .badge-wishlist {
    width: 13px;
    height: 13px;
    font-size: 7px;
  }

  /* Plain nav bar - scrollable on mobile */
  .plain-nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 0;
  }

  .plain-nav-link {
    padding: 10px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }
}

/* ── 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;
  }
}

/* ── category.html specific ── */
@media (max-width: 1200px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .pmt-nav-links {
    display: none !important;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .cat-grid-wrap {
    padding: 12px 12px 48px !important;
  }

  /* Subcat tabs */
  .subcat-tabs-wrap {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .subcat-tabs-inner,
  .subcat-tabs {
    flex-wrap: nowrap !important;
    gap: 6px;
  }

  .subcat-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 14px;
  }

  /* Card adjustments */
  .cat-card-name {
    font-size: 12px;
  }

  .cat-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .cat-card-price {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .cat-card-info {
    padding: 8px 10px 10px;
  }

  .cat-card-name {
    font-size: 11px;
  }
}

.container {
  max-width: 1400px !important;
}
#megaAllCat {
  padding: 0 5.5rem; /* Desktop */
}

 @media (max-width: 768px) {
      #megaAllCat, #megaSpecialties {
        padding: 0 1rem !important;
      }
    }

#megaSpecialties, #megaAllCat{
  padding: 0rem 5.5rem;
}