@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

/* ===============================
   Modern Catalogue UI (Desktop)
   — clean sidebar accordions, check rows, pill search, sort chip
   =============================== */

:root {
  --cc-font-body: 'Inter', sans-serif;
  --cc-font-head: 'Outfit', sans-serif;
  --cc-bg: #ffffff;
  --cc-panel: #fff;
  --cc-text: #1b2a3a;
  --cc-muted: #6b7280;
  --cc-border: #e6eaf0;
  --cc-border-strong: #d6dde7;
  --cc-brand: #1a86ff;
  --cc-brand-600: #0f6fd6;
  --cc-chip: #f5f8fc;
  --cc-hover: #f1f5fb;
  --cc-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

body {
  font-family: var(--cc-font-body);
  color: var(--cc-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font-head);
}

/* Layout spacing */
.product-page-wrapper {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.catalogue-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

/* ---------- Search pill ---------- */
.catalogue-searchbar input[type="search"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  padding: 0 16px 0 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border 0.2s, box-shadow 0.2s;
  font-size: 15px;
}
.catalogue-searchbar input[type="search"]::placeholder {
  color: #94a3b8;
}
.catalogue-searchbar input[type="search"]:focus {
  border-color: var(--cc-brand);
  box-shadow: 0 0 0 4px rgba(26, 134, 255, 0.14);
  outline: 0;
}

/* ---------- Sidebar panel (accordion look) ---------- */
.catalogue-filters {
  position: sticky;
  top: 110px;
  background: var(--cc-panel);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: var(--cc-shadow);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.catalogue-filters .filter-group {
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 10px 12px;
}
.catalogue-filters .filter-group + .filter-group {
  margin-top: 2px;
}

/* Accordion header */
/* Accordion header */


/* Fallback for non-accordion legends */
.catalogue-filters legend.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--cc-text);
  font-size: 0.98rem;
  margin: 0 0 8px 0;
}

/* ---------- Checkbox rows (Applications, Categories, Grade) ---------- */
.catalogue-filters .chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* visually convert the “chip” label into a clean row with custom checkbox */
.catalogue-filters .chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--cc-chip);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.catalogue-filters .chip:hover {
  background: var(--cc-hover);
  border-color: var(--cc-border-strong);
}
.catalogue-filters .chip input[type="checkbox"] {
  appearance: none;
  inline-size: 18px;
  block-size: 18px;
  border: 2px solid #a9b6c8;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  background: #fff;
  transition: border 0.15s, background 0.15s;
}
.catalogue-filters .chip input[type="checkbox"]:checked {
  background: var(--cc-brand);
  border-color: var(--cc-brand);
}
.catalogue-filters .chip input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M20.285 6.708a1 1 0 0 1 0 1.414l-9.193 9.193a1 1 0 0 1-1.414 0L3.715 11.35a1 1 0 1 1 1.414-1.414l4.03 4.03l8.486-8.486a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")
    center/14px 14px no-repeat;
}

/* Row text */
.catalogue-filters .chip span {
  color: #213247;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

/* ---------- Purity range ---------- */
.catalogue-filters .range .range-inner {
  display: flex;
  gap: 8px;
  align-items: center;
}
.catalogue-filters .range input[type="number"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.95rem;
  transition: border 0.15s, box-shadow 0.15s;
}
.catalogue-filters .range input[type="number"]:focus {
  border-color: var(--cc-brand);
  box-shadow: 0 0 0 3px rgba(26, 134, 255, 0.14);
  outline: 0;
}
.catalogue-filters .range .sep {
  color: #8a96a8;
}

/* ---------- Has COA toggle ---------- */
.catalogue-filters .toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #27405a;
}
.catalogue-filters .toggle input[type="checkbox"] {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d2dae6;
  position: relative;
  transition: background 0.2s;
  border: 1px solid var(--cc-border);
}
.catalogue-filters .toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: left 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.catalogue-filters .toggle input[type="checkbox"]:checked {
  background: var(--cc-brand);
}
.catalogue-filters .toggle input[type="checkbox"]:checked::after {
  left: 23px;
}

/* Reset button */
.catalogue-filters .btn.btn-secondary {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--cc-border);
  background: #f6f8fb;
  color: #1d2a3b;
  font-weight: 700;
}
.catalogue-filters .btn.btn-secondary:hover {
  background: #eef3fb;
}

/* ---------- Toolbar (Sort + Count) ---------- */
.catalogue-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cc-panel);
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--cc-shadow);
}
#catalogue-count {
  color: #3b4c62;
  font-weight: 700;
}

/* Custom-styled native select (chip) */
.toolbar-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  height: 40px;
  padding: 0 40px 0 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, #fff, #f9fbff) padding-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%237486a2' d='M12 15.5L6 9.5h12z'/%3E%3C/svg%3E")
      no-repeat right 12px center / 18px 18px;
  cursor: pointer;
  color: #1b2a3a;
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}
.toolbar-sort-select:hover {
  border-color: var(--cc-border-strong);
  background: linear-gradient(180deg, #fff, #f4f8ff) padding-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%231a86ff' d='M12 15.5L6 9.5h12z'/%3E%3C/svg%3E")
      no-repeat right 12px center / 18px;
}
.toolbar-sort-select:focus {
  outline: 0;
  border-color: var(--cc-brand);
  box-shadow: 0 0 0 4px rgba(26, 134, 255, 0.14);
}

/* ---------- Cards polish (kept from earlier, tightened) ---------- */
.product-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
  border-color: var(--cc-border-strong);
}
.product-card-image {
  height: 190px;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-content {
  padding: 14px;
}
.product-card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #14202f;
  font-family: var(--cc-font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-card-meta {
  margin: 0;
  color: #5d6b7e;
  font-size: 0.93rem;
}
.product-card-applications strong {
  font-size: 0.76rem;
  color: #7b8798;
  letter-spacing: 0.04em;
}

/* Buttons in card */
.product-card-buttons {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  padding: 0 14px 14px;
}
.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.btn-get-quote {
  background: linear-gradient(135deg, #1a86ff 0%, #0066cc 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(26, 134, 255, 0.25);
  transition: all 0.2s ease;
}
.btn-get-quote:hover {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 134, 255, 0.35);
}
.btn-download-coa {
  background: #f6f8fb;
  color: #233449;
  border: 1px solid var(--cc-border);
}
.btn-download-coa:hover {
  background: #eef3fb;
  border-color: var(--cc-border-strong);
}

/* ---------- Loading state ---------- */
#catalogue-loading {
  margin: 18px auto 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #e5e9f1;
  border-top-color: var(--cc-brand);
  animation: ccspin 1s linear infinite;
}
@keyframes ccspin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Responsive (kept light; you’ll handle mobile later) ---------- */
@media (max-width: 1100px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
  .catalogue-filters {
    position: static;
  }
}

/* ===================================================================
   Catalogue: Toolbar + Sort Dropdown (modern e-com look)
   =================================================================== */

.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e7ecf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  margin: 16px 0 20px;
}

#catalogue-count {
  color: #334155;
  font-size: 0.975rem;
}
#catalogue-count strong {
  color: #0f172a;
  font-weight: 700;
}

/* ---- Custom Sort Dropdown ------------------------------------------------ */

.sort-dropdown {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
}

/* pill button */
.sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f7f9fc;
  border: 1px solid #e7ecf3;
  border-radius: 9999px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.sort-toggle:hover {
  background: #eef4ff;
  border-color: #c7d7fe;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}
.sort-toggle .sort-prefix {
  font-weight: 500;
  color: #475569;
}
.sort-toggle .chev {
  margin-left: 2px;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* popover menu */
.sort-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1),
    0 4px 10px rgba(16, 24, 40, 0.06);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 30;

  /* hidden by default; show via hover (desktop) or .is-open (touch) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.sort-option {
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}
.sort-option:hover {
  background: #f1f5ff;
}
.sort-option.is-active {
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 700;
}

/* desktop hover open */
@media (hover: hover) {
  .sort-dropdown:hover .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .sort-dropdown:hover .sort-toggle .chev {
    transform: rotate(180deg);
    opacity: 0.85;
  }
}

/* touch/click open */
.sort-dropdown.is-open .sort-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sort-dropdown.is-open .sort-toggle .chev {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Utility for the hidden select retained for compatibility */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}



/* Product card — updated modern layout */
.product-card {
  background: #fff;
  border: 1px solid var(--cc-border, #e7ecf3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* image */
.product-card-image {
  width: 100%;
  height: 240px; /* taller image like your design */
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-image img,
.product-card-image .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* body */
.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* title */
.product-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.product-card-title a {
  color: inherit;
  text-decoration: none;
}
.product-card-title a:hover {
  text-decoration: underline;
}

/* meta rows */
.product-card-meta .meta-row {
  display: flex;
  gap: 8px;
  font-size: 0.94rem;
  color: #374151;
}
.product-card-meta .meta-label {
  font-weight: 700;
  color: #1f2937;
}

/* application tags (pill) */
.product-card-applications {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-direction: column;
}
.application-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #e6eefc;
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 700;
}

/* actions (buttons) */
.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto; /* push to bottom */
  align-items: center;
}
.product-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  font-size: 0.95rem;
}

/* primary */
.btn-get-quote {
  background: var(--cc-brand, #1a86ff);
  color: #fff;
  border: 1px solid var(--cc-brand, #1a86ff);
}
.btn-get-quote:hover {
  background: var(--cc-brand-600, #0f6fd6);
  border-color: var(--cc-brand-600, #0f6fd6);
}

/* Explicit Add to Quote Style */
.btn-add-quote {
  color: var(--cc-brand, #1a86ff);
  border: 1px solid var(--cc-brand, #1a86ff);
  background: transparent;
}
.btn-add-quote:hover {
  background: var(--cc-brand, #1a86ff);
  color: #fff;
}

/* outline */
.btn-download-coa {
  background: transparent;
  color: #0f172a;
  border: 2px solid #eaf0fb;
  padding: 0 16px;
}
.btn-download-coa:hover {
  background: #f6f9ff;
}

/* icons */
.coa-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.05rem;
  line-height: 1;
}

/* hover lift */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(17,24,39,0.12);
  border-color: var(--cc-border-strong, #d6dde7);
}

/* responsive tweak */
@media (max-width: 900px) {
  .product-card-image {
    height: 220px;
  }
}


/* Floating Button Code */
.quote-floating-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #1a86ff;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(26,134,255,0.3);
  cursor: pointer;
  z-index: 999;
  transition: background 0.2s;
}
.quote-floating-btn:hover {
  background: #0f6fd6;
}
.quote-floating-btn .quote-count {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #fff;
  color: #1a86ff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Request Quote Page */
.quote-cart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.quote-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 15px;
  transition: 0.2s ease;
}

.quote-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-item-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.quote-item-info {
  flex: 1;
}

.quote-title {
  font-weight: 600;
  margin: 0;
  color: #222;
}

.quote-meta {
  color: #666;
  font-size: 14px;
  margin: 2px 0;
}

.qty-input {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.qty-input input {
  width: 80px;
  padding: 5px 8px;
}

.qty-input select {
  padding: 5px;
  border-radius: 5px;
}

.remove-quote-item {
  background: none;
  border: none;
  color: #d00;
  font-size: 14px;
  margin-top: 8px;
  cursor: pointer;
}

.btn-clear {
  background: #ff4444;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
}




/* Updated Code */
.quote-cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-item {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px;
  align-items: flex-start;
  gap: 1rem;
}

.quote-item-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.quote-item-info {
  flex: 1;
}

.quote-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.quote-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 0.2rem 0;
}

.qty-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.qty-input input {
  width: 70px;
  padding: 4px;
}

.remove-quote-item {
  margin-top: 0.6rem;
  background: #e0f2fe;
  color: #0f6fd6;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

.btn-clear {
  background: #1a86ff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}


/* Toast */
/* Toast notification */
.quote-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #00bfa6;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 2s ease-in-out forwards;
  z-index: 9999;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* Added state for button */
.btn-add-quote.added {
  background-color: #00bfa6 !important;
  color: #fff !important;
  border-color: #00bfa6 !important;
}



/* Pop Style */
.quote-count {
  transition: transform 0.25s ease, background 0.25s ease;
}
.quote-count.updated {
  transform: scale(1.3);
  background: white;
}


/* ==============================================================
   Request Quote Page — Flipkart-Style Two-Column Layout
   ============================================================== */

.quote-cart {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 950px;
  margin: 0px !important;
}

/* each product card */
.quote-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.quote-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* image section (left column) */
.quote-item-img {
  flex-shrink: 0;
}
.quote-item-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #edf2f7;
}

/* right column */
.quote-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* title */
.quote-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

/* meta details */
.quote-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0;
  line-height: 1.4;
}
.quote-meta strong {
  font-weight: 600;
  color: #1e293b;
}

/* quantity row */
.qty-label {
  font-weight: 600;
  color: #334155;
  font-size: 0.88rem;
  margin-top: 6px;
}
.qty-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.qty-input input {
  width: 70px;
  height: 34px;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.9rem;
  transition: border 0.2s;
}
.qty-input input:focus {
  border-color: #1a86ff;
  box-shadow: 0 0 0 3px rgba(26, 134, 255, 0.15);
  outline: none;
}
.qty-input select {
  height: 34px;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  background: #f8fafc;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #1e293b;
  width: fit-content !important; 
}
.qty-input select:focus {
  border-color: #1a86ff;
  outline: none;
}

/* remove + clear actions */
.remove-quote-item {
    background: #d00;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 5px 10px;
    margin-top: 8px;
    transition: color 0.2s;
    width: fit-content;
}

.remove-quote-item:hover {
  background-color: #b30000;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.btn-clear {
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.btn-clear:hover {
  background: #dc2626;
}

/* form container */
form.fluentform {
  max-width: 950px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 28px;
}
form.fluentform input,
form.fluentform textarea {
  border-radius: 8px !important;
  border: 1px solid #d9dee6 !important;
}
form.fluentform input:focus,
form.fluentform textarea:focus {
  border-color: #1a86ff !important;
  box-shadow: 0 0 0 3px rgba(26, 134, 255, 0.15) !important;
}
form.fluentform .ff-btn-submit {
  background: #1a86ff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: background 0.2s;
}
form.fluentform .ff-btn-submit:hover {
  background: #0f6fd6 !important;
}

/* section heading */
#quote-items::before {
  content: "Your Selected Products";
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

/* responsive tweak */
/* responsive tweak */
@media (max-width: 700px) {
  .quote-item {
    flex-direction: row; /* Keep side-by-side */
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
  }
  .quote-item-img {
    width: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .quote-item-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 1;
  }
  .quote-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .quote-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .quote-meta {
    font-size: 0.85rem;
    margin: 1px 0;
  }
  .qty-label {
    margin-top: 8px;
    font-size: 0.85rem;
  }
  .qty-input {
    margin-top: 2px;
  }
  .qty-input input {
    width: 60px;
    height: 32px;
  }
  .qty-input select {
    height: 32px;
  }
  .remove-quote-item {
    align-self: flex-start;
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 6px 12px;
    background: #e0f2fe;
    color: #0f6fd6;
    border-radius: 6px;
  }
  .quote-actions {
    margin-bottom: 80px; /* Space for floating button */
    padding-bottom: 20px;
  }
}


/* Hide Selected Products in Frontend */
.quote-products-field{
	display: none !important;
}

#quote-section .forminator-row:nth-last-of-type(2) {
  margin-bottom: 0 !important;
}



/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

/* Mobile Bar (Hidden on Desktop) */
.cc-mobile-bar {
  display: none;
}
/* Mobile Filter Elements (Hidden on Desktop) */
.cc-mobile-filter-header,
.cc-filter-sidebar,
.cc-mobile-filter-footer,
#cc-mobile-sort-sheet {
  display: none;
}

/* Desktop: Ensure filter content is visible and stacked */
.cc-filter-body {
  display: block;
}
.cc-filter-content {
  width: 100%;
  background: transparent;
  padding: 0;
  overflow: visible;
}
.cc-filter-content .filter-group {
  display: block; /* Show all groups on desktop */
  padding: 0;
  margin-bottom: 20px;
  border: none;
}
/* Restore details/summary for desktop */
/* Restore details/summary for desktop but keep it clean */
.cc-filter-content details {
  border: none; /* Remove border for cleaner look */
  border-bottom: 1px solid #f1f5f9; /* Subtle separator */
  border-radius: 0;
  padding: 0;
  margin-bottom: 10px;
}
.cc-filter-content details[open] {
  padding-bottom: 10px;
}
.cc-filter-content summary {
  display: flex; /* Show summary on desktop */
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Remove default triangle */
  list-style-type: none;
}
.cc-filter-content summary::-webkit-details-marker {
  display: none;
}
.cc-filter-content summary::marker {
  display: none;
  content: "";
}
.cc-filter-content summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.cc-filter-content details[open] summary::after {
  transform: rotate(180deg);
}

/* Clean List Styling for Desktop Filters */
.cc-filter-content .chips,
.cc-filter-content .range-inputs,
.cc-filter-content .toggle-switch {
  padding: 16px;
}

.cc-filter-content .chips {
  display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 8px;
}
.cc-filter-content .chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  cursor: pointer;
  color: #334155;
  transition: color 0.2s;
}
.cc-filter-content .chip:hover {
  background: none;
  border: none;
  color: #D32F2F;
}
.cc-filter-content .chip input {
  accent-color: #D32F2F;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* --- Purity Range Inputs --- */
.cc-filter-content .range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-filter-content .range-inputs input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f8fafc;
}
.cc-filter-content .range-inputs input:focus {
  background: #fff;
  border-color: #D32F2F;
  outline: none;
}

/* --- Has COA Toggle Switch --- */
.cc-filter-content .toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}
.cc-filter-content .toggle-switch input {
  display: none; /* Hide default checkbox */
}
.cc-filter-content .slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #e2e8f0;
  border-radius: 24px;
  transition: .3s;
}
.cc-filter-content .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cc-filter-content .toggle-switch input:checked + .slider {
  background-color: #1a86ff;
}
.cc-filter-content .toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cc-filter-content .label-text {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 500;
}

/* --- Reset Button (Desktop) --- */
#cc-reset {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1a86ff;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
#cc-reset:hover {
  background: #f0f9ff;
  border-color: #1a86ff;
}

@media (max-width: 768px) {
  /* --- Toolbar: Stack vertically --- */
  .catalogue-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  /* Hide desktop sort trigger if we use mobile bar */
  .toolbar-right {
    display: none; 
  }

  /* --- Product Card: Vertical Stack (Image Top, Body Bottom) --- */
  .product-card {
    flex-direction: column;
    padding: 0; /* Reset any padding */
    height: auto;
  }

  .product-card-image {
    width: 100%;
    height: 200px; /* Good height for mobile */
    border-radius: 0; /* Flush with card top */
  }
  
  .product-card-image img {
    border-radius: 0;
  }

  .product-card-body {
    width: 100%;
    padding: 16px;
    gap: 10px;
  }

  /* Typography adjustments */
  .product-card-title {
    font-size: 1.1rem;
  }
  
  .product-card-meta .meta-row {
    font-size: 0.9rem;
  }

  /* Buttons: Full width and stacked or side-by-side */
  .product-card-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .product-btn {
    width: 100%;
    height: 42px;
    font-size: 0.95rem;
  }
  
  /* Ensure text is visible (override any previous hiding) */
  .btn-add-quote, .btn-download-coa {
    font-size: 0.95rem; 
  }
  .btn-add-quote::after, .btn-download-coa::after {
    content: none; /* Remove pseudo-element text replacement */
  }
  .coa-icon {
    display: inline-block !important;
  }
  
  /* Hide floating quote button on home if needed */
  .home #quote-floating-btn {
    display: none !important;
  }

  /* --- Sticky Mobile Bar --- */
  .cc-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9990;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  }
  .cc-mobile-btn {
    flex: 1;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 0;
  }
  
  /* Sort Button (White) */
  #cc-mobile-sort-btn {
    background: #fff;
    color: #000;
    border-right: 1px solid #e5e7eb; /* Separator */
  }
  
  /* Filter Button (White) */
  #cc-mobile-filter-btn {
    background: #fff;
    color: #000;
  }

  .cc-bar-sep {
    display: none;
  }

  /* --- Filter Sidebar as Modal (Split View) --- */
  .catalogue-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    padding: 0;
    overflow: hidden; /* Prevent body scroll */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  .catalogue-filters.mobile-open {
    transform: translateY(0);
  }

  /* Header */
  .cc-mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
  }
  .cc-filter-head-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
  }
  .cc-mobile-clear-all {
    background: none;
    border: none;
    color: #1a86ff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
  }

  /* Body (Split View) */
  .cc-filter-body {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  /* Left Sidebar (Tabs) */
  .cc-filter-sidebar {
    display: block; /* Override global display: none */
    width: 35%;
    background: #f5f5f6;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
  }
  .cc-filter-tab {
    padding: 16px 12px;
    font-size: 0.9rem;
    color: #3e4152;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: background 0.2s;
  }
  .cc-filter-tab.active {
    background: #fff;
    font-weight: 700;
    color: #000;
    border-left-color: #D32F2F;
  }

  /* Right Content */
  .cc-filter-content {
    width: 65%;
    background: #fff;
    overflow-y: auto;
    padding: 0;
  }
  
  /* Hide all groups by default on mobile, show only active */
  .cc-filter-content .filter-group {
    display: none;
    padding: 20px;
    margin: 0;
    border: none;
  }
  .cc-filter-content .filter-group.active {
    display: block;
  }
  
  /* Reset details/summary styles for mobile content */
  .cc-filter-content details {
    border: none;
    padding: 0;
  }
  .cc-filter-content summary {
    display: none; /* Hide summary since tab title is enough */
  }
  .cc-filter-content .chips {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cc-filter-content .chip {
    background: none;
    padding: 0;
    border: none;
    justify-content: flex-start;
    gap: 12px;
  }
  .cc-filter-content .chip input {
    width: 20px;
    height: 20px;
    accent-color: #1a86ff;
  }
  .cc-filter-content .chip span {
    font-size: 1rem;
    color: #3e4152;
  }

  /* Footer */
  .cc-mobile-filter-footer {
    display: flex;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    gap: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
  }
  .cc-btn-close, .cc-btn-apply {
    flex: 1;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
  }
  .cc-btn-close {
    background: #fff;
    border: 1px solid #d4d5d9;
    color: #3e4152;
  }
  .cc-btn-apply {
    background: #1a86ff;
    border: 1px solid #1a86ff;
    color: #fff;
  }

  /* Hide old close button */
  .cc-mobile-close-filters {
    display: none;
  }
  
  /* Hide desktop reset button */
  #cc-reset {
    display: none !important;
  }

  /* --- Sort Modal (Reusing existing dropdown structure but styling as modal) --- */
  /* Hide the old dropdown on mobile completely to avoid confusion */
  .sort-dropdown.mobile-open .sort-menu {
    display: none !important;
  }

  /* --- Custom Mobile Sort Sheet --- */
  #cc-mobile-sort-sheet { /* Changed from class to ID for specificity */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 20px; /* Safe area */
    display: flex;
    flex-direction: column;
  }
  #cc-mobile-sort-sheet.active {
    transform: translateY(0);
  }
  
  /* Backdrop */
  #cc-mobile-sort-sheet.active::before {
    content: "";
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 200vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }

  .cc-sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 800; /* Bolder */
    color: #000; /* Black */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
    background: #fff; /* Ensure white */
  }
  #cc-mobile-sort-close {
    background: none;
    border: none;
    font-size: 1.4rem; /* Larger */
    color: #000; /* Black */
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 1; /* Ensure no opacity */
  }

  .cc-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff; /* Ensure white background */
  }

  .cc-sort-item {
    padding: 16px 20px;
    font-size: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff; /* Clean look */
  }
  .cc-sort-item:active {
    background: #f9fafb;
  }
  
  .cc-sort-item.is-active {
    font-weight: 700;
    color: #1a86ff;
    background: #fff; /* Keep white, just change text color */
  }

  .cc-sort-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: inline-block;
  }
}

/* --- View Button (Desktop & Mobile) --- */
.product-card-image {
  position: relative; /* Ensure button positioning */
}
.cc-view-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
  color: #334155;
  padding: 0; /* Ensure no padding issues */
}
.cc-view-btn svg {
  width: 18px;
  height: 18px;
  stroke: #334155; /* Force color */
  stroke-width: 2;
  fill: none;
}
.cc-view-btn:hover {
  background: #fff;
  transform: scale(1.1);
  color: #1a86ff;
}
.cc-view-btn:hover svg {
  stroke: #1a86ff;
}

/* --- Lightbox --- */
.cc-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.cc-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.cc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10002;
  padding: 10px;
  line-height: 1;
}
.cc-lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.cc-lightbox-content img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}
.cc-lightbox-content.is-zoomed {
  cursor: move; /* Fallback */
  cursor: grab;
}
.cc-lightbox-content.is-zoomed:active {
  cursor: grabbing;
}
.cc-lightbox-content.is-zoomed img {
  max-width: none;
  max-height: none;
  /* Transform is handled by JS */
}

