/* ==========================================================================
   Gold Price Bar (MFGP) - Minimalist Black & White Edition
   Professional institutional financial ticker styling
   ========================================================================== */
.livegold_pricesBar {
    display: none !important;
}

body {
  margin-top: 0 !important;
}
:root {
  --mfgp-bg: #000000;
  --mfgp-text: #ffffff;
  --mfgp-text-muted: rgba(255, 255, 255, 0.65);
  --mfgp-font:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Cairo',
    sans-serif;
  --mfgp-up: #10b981;
  --mfgp-down: #ef4444;
  --mfgp-height: 40px;
}

/* ── Top Bar Container (Zero borders, seamless full-width) ── */
.mfgp-top-bar {
  width: 100%;
  background-color: var(--mfgp-bg);
  color: var(--mfgp-text);
  font-family: var(--mfgp-font);
  direction: rtl;
  position: relative;
  z-index: 999;
  border: none !important;
  box-shadow: none !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
}

.mfgp-top-bar::-webkit-scrollbar {
  display: none;
}

/* ── Track / Flex Row ── */
.mfgp-track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mfgp-height);
  padding: 0 16px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Individual Karat Item (No borders, pure institutional typography) ── */
.mfgp-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0;
  white-space: nowrap;
  line-height: 1;
}

/* ── Karat Label ── */
.mfgp-name {
  color: var(--mfgp-text-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Price & Currency Group ── */
.mfgp-price-currency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mfgp-text);
  font-size: 13.5px;
  font-weight: 700;
}

.mfgp-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.mfgp-currency {
  font-size: 11px;
  font-weight: 400;
  color: var(--mfgp-text-muted);
  display: inline-flex;
  align-items: center;
}

.mfgp-currency i,
.mfgp-currency svg {
  font-size: 11px;
  line-height: 1;
}

/* ── Professional Financial Trend Indicator ── */
.mfgp-dynamic-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  line-height: 1;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mfgp-dynamic-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Price Change Pulse Animation ── */
@keyframes mfgp-pulse-up {
  0% {
    color: var(--mfgp-text);
  }
  35% {
    color: var(--mfgp-up);
  }
  100% {
    color: var(--mfgp-text);
  }
}

@keyframes mfgp-pulse-down {
  0% {
    color: var(--mfgp-text);
  }
  35% {
    color: var(--mfgp-down);
  }
  100% {
    color: var(--mfgp-text);
  }
}

.mfgp-card.flash-up .mfgp-price {
  animation: mfgp-pulse-up 1.2s ease-out;
}

.mfgp-card.flash-down .mfgp-price {
  animation: mfgp-pulse-down 1.2s ease-out;
}

/* ── Mobile Layout ── */
@media (max-width: 640px) {
  .mfgp-track {
    justify-content: flex-start;
    gap: 20px;
    padding: 0 12px;
  }

  .mfgp-card {
    gap: 6px;
  }

  .mfgp-name {
    font-size: 11.5px;
  }

  .mfgp-price-currency {
    font-size: 12.5px;
  }

  .mfgp-dynamic-arrow {
    width: 12px;
    height: 12px;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .mfgp-card.flash-up .mfgp-price,
  .mfgp-card.flash-down .mfgp-price,
  .mfgp-dynamic-arrow {
    animation: none !important;
    transition: none !important;
  }
}

/* ── ##### Products on side menu ##### ── */
.mobile-menu__wishlist {
display: none !important;	
}
.btn--close {
	display: block !important;
}
@media only screen and (max-width: 1024px) {
    .mobile-menu .main-menu {
        max-height: unset !important;
    }
}
.mm-ocd__content {
  max-width: 600px !important;
  width: 100% !important;
}
.mm-ocd__backdrop {
  width: calc(100% - 600px);
}
.mm-spn a,
.mm-spn span {
  padding: 0 !important;
}
/* ---- Prevent parent from double-scrolling ---- */
#mobile-menu .main-menu {
  overflow: hidden !important;
  height: 100%;
}

.csm-wrapper {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Left sidebar (tree lives here) ─────────────────────────── */
.csm-cats {
  width: 32%;
  min-width: 130px;
  background: #f2f3f5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px 0 16px;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #d0d4db transparent;
}
.csm-cats::-webkit-scrollbar {
  width: 3px;
}
.csm-cats::-webkit-scrollbar-thumb {
  background: #d0d4db;
  border-radius: 3px;
}

/* ── Generic node base ───────────────────────────────────────── */
.csm-node {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

/* ── L1 ──────────────────────────────────────────────────────── */
.csm-l1 {
  padding: 11px 12px 11px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3748;
  border-right: 3px solid transparent;
  border-top: 1px solid #e8eaed;
}
.csm-l1:first-child {
  border-top: none;
}
.csm-l1:hover {
  background: #e5e7ec;
  color: #111;
}
.csm-l1.csm-active {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.09);
  border-right-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── L2 container ────────────────────────────────────────────── */
.csm-l2-container {
  background: #eaecef;
  border-top: 1px solid #e0e3e8;
  border-bottom: 1px solid #e0e3e8;
  margin-bottom: 1px;
}

/* ── L2 ──────────────────────────────────────────────────────── */
.csm-l2 {
  padding: 9px 10px 9px 8px;
  padding-right: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  border-right: 3px solid transparent;
}
.csm-l2:hover {
  background: #dfe2e8;
  color: #1a202c;
}
.csm-l2.csm-active {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.08);
  border-right-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── L3 container ────────────────────────────────────────────── */
.csm-l3-container {
  margin-right: 18px;
  border-right: 2px solid #d0d4db;
  background: #e4e6ea;
}

/* ── L3 ──────────────────────────────────────────────────────── */
.csm-l3 {
  padding: 7px 10px 7px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7585;
  border-right: 2px solid transparent;
  margin-right: -2px;
}
.csm-l3:hover {
  background: #d8dbe2;
  color: #2d3748;
}
.csm-l3.csm-active {
  background: rgba(var(--color-primary-rgb, 59, 130, 246), 0.07);
  border-right-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Chevron ─────────────────────────────────────────────────── */
.csm-node-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  font-size: 9px;
  color: #a0aec0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.csm-node.csm-open > .csm-node-chevron {
  transform: rotate(90deg);
}

/* ── L3 dot ──────────────────────────────────────────────────── */
.csm-node-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0b7c3;
  flex-shrink: 0;
  transition: background 0.13s;
}
.csm-l3:hover .csm-node-dot,
.csm-l3.csm-active .csm-node-dot {
  background: var(--color-primary);
}

/* ── Label ───────────────────────────────────────────────────── */
.csm-node-label {
  flex: 1;
}

/* ── Products pane (right, unchanged) ───────────────────────── */
.csm-products {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 14px 12px 24px 12px;
  scrollbar-width: thin;
  scrollbar-color: #e2e5ea transparent;
}
.csm-products::-webkit-scrollbar {
  width: 4px;
}
.csm-products::-webkit-scrollbar-thumb {
  background: #e2e5ea;
  border-radius: 4px;
}

.csm-prod-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f4;
}
.csm-prod-title {
  font-size: 18px;
  font-weight: 500 !important;
  color: #1a202c;
  padding: 0 !important;
}
.csm-view-all {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--color-primary);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500 !important;
  padding: 0 !important;
}
.csm-view-all:hover {
  opacity: 0.9;
}

/* ── Product grid ────────────────────────────────────────────── */
.csm-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 6px;
  border: none !important;
  padding-bottom: 24px;
}
.csm-prod-grid::before,
.csm-prod-grid::after {
  display: none !important;
}
.csm-prod-grid *,
.csm-prod-grid *::before,
.csm-prod-grid *::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.csm-prod-card {
	background-color: unset !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px;
  width: 100% !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 6px 4px !important;
  border-radius: 8px;
  transition: background 0.15s;
  box-sizing: border-box;
}
.csm-prod-card:hover {
  background: #edf0f4 !important;
}

.csm-prod-img {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px;
  border-radius: 14px !important;
  overflow: hidden;
  background: #e8eaed;
  flex-shrink: 0;
}
.csm-prod-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.csm-prod-name {
  width: 100%;
  font-size: 12px;
  font-weight: 500 !important;
  color: #2d3748;
  text-align: center !important;
  line-height: 1.4;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: break-word;
  max-height: calc(12px * 1.4 * 2);
  padding: 0 !important;
}
.csm-prod-price {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600 !important;
  text-align: center;
  padding: 0 !important;
}

/* ── Skeleton shimmer ────────────────────────────────────────── */
@keyframes csm-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.csm-skel {
  background: linear-gradient(90deg, #edf0f4 25%, #e2e5ea 50%, #edf0f4 75%);
  background-size: 200% 100%;
  animation: csm-shimmer 1.3s infinite;
  border-radius: 6px;
}
.csm-skel-cat {
  height: 14px;
  margin: 10px 12px;
  border-radius: 4px;
}
.csm-skel-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}
.csm-skel-line {
  width: 60px;
  height: 8px;
  border-radius: 3px;
}
.csm-skel-line-short {
  width: 40px;
}
.csm-prod-skel {
  pointer-events: none;
  cursor: default;
}

/* ── Empty & sentinel ────────────────────────────────────────── */
.csm-empty {
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
  padding: 24px 8px;
}
.csm-sentinel {
  height: 1px;
  width: 100%;
  flex-shrink: 0;
}

/* ── Pagination loader ───────────────────────────────────────── */
.csm-page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 0 8px;
  width: 100%;
}
.csm-loader-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #3b82f6);
  animation: csmBounce 0.9s ease-in-out infinite;
}
.csm-loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.csm-loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes csmBounce {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Search ──────────────────────────────────────────────────── */
.csm-search-wrapper {
  position: relative;
  margin: 10px 0;
  flex-shrink: 0;
}
.csm-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f8f8f8;
  font-size: 13px;
  color: #333;
  direction: rtl;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.csm-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.csm-search-input::placeholder {
  color: #aaa;
}
.csm-search-input:focus {
  border-color: var(--color-primary, #c6a96b);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-primary, #c6a96b) 15%, transparent);
  background: #fff;
}
.csm-search-icon {
  position: absolute !important;
  padding: 0 !important;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.csm-search-wrapper:focus-within .csm-search-icon {
  color: var(--color-primary, #c6a96b);
}
.csm-search-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ── View toggle button ──────────────────────────────────────── */
.csm-search-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.csm-search-input {
  flex: 1;
  /* keep all existing rules */
}
.csm-view-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f8f8f8;
  color: #888;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  padding: 0 !important;
  box-sizing: border-box;
}
.csm-view-toggle:hover {
  background: #edf0f4;
  border-color: var(--color-primary, #c6a96b);
  color: var(--color-primary, #c6a96b);
}

/* ── Product card body (list info + actions) ─────────────────── */
.csm-prod-body {
  display: none; /* hidden in grid mode */
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 6px;
  justify-content: space-between;
  height: 100%;
}

/* Show body only in list view */
#csm-products.csm-view-list .csm-prod-body {
  display: flex;
}

.csm-prod-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.csm-prod-subtitle {
  font-size: 11px;
  color: #8a94a6;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* ── Actions row (wishlist + price + cart) ───────────────────── */
.csm-prod-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* ── Wishlist button ─────────────────────────────────────────── */
.csm-btn-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #b0b7c3;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  padding: 0 !important;
  box-shadow: none !important;
}
.csm-btn-wishlist:hover {
  color: #ef4444;
  border-color: #fca5a5 !important;
  background: #fff1f1 !important;
  transform: scale(1.1);
}
.csm-btn-wishlist.csm-wishlisted {
  color: #ef4444;
  border-color: #fca5a5 !important;
  background: #fff1f1 !important;
}
.csm-btn-wishlist.csm-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Cart button ─────────────────────────────────────────────── */
.csm-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none !important;
  background: #1e0108 !important;
  color: #fff !important;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    opacity 0.2s,
    transform 0.15s;
  padding: 0 !important;
  box-shadow: none !important;
}
.csm-btn-cart.csm-loading {
  opacity: 0.6;
  pointer-events: none;
}
.csm-btn-cart.csm-added {
  background: #22c55e !important;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.csm-btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: csmSpin 0.6s linear infinite;
}
.csm-btn-wishlist .csm-btn-spinner {
  border-color: rgba(239, 68, 68, 0.3);
  border-top-color: #ef4444;
}
@keyframes csmSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── List card layout ────────────────────────────────────────── */
.csm-prod-card--list {
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 8px 10px !important;
  min-height: 76px;
}
.csm-prod-card--list .csm-prod-img {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  border-radius: 10px !important;
  align-self: center;
  flex-shrink: 0;
}
.csm-prod-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 6px;
  justify-content: space-between;
}
.csm-prod-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.csm-prod-card--list .csm-prod-name {
  text-align: right !important;
  font-size: 12.5px;
  -webkit-line-clamp: 2 !important;
  max-height: none;
}
.csm-prod-subtitle {
  font-size: 11px;
  color: #8a94a6;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.csm-prod-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.csm-prod-card--list .csm-prod-price {
  flex: 1;
  text-align: right;
  font-size: 13px;
  font-weight: 700 !important;
  color: var(--color-primary);
  padding: 0 !important;
}

/* ── Wishlist button ─────────────────────────────────────────── */
.csm-btn-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #b0b7c3;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  padding: 0 !important;
  box-shadow: none !important;
}
.csm-btn-wishlist.csm-wishlisted {
  color: #ef4444;
  border-color: #fca5a5 !important;
  background: #fff1f1 !important;
}
.csm-btn-wishlist.csm-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.csm-btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: csmSpin 0.6s linear infinite;
}
.csm-btn-wishlist .csm-btn-spinner {
  border-color: rgba(239, 68, 68, 0.3);
  border-top-color: #ef4444;
}
@keyframes csmSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── List grid: single column ────────────────────────────────── */
#csm-products.csm-view-list .csm-prod-grid {
  grid-template-columns: 1fr !important;
}

/* ── Wishlist toggle button ──────────────────────────────────── */
.csm-wishlist-toggle {
  color: #b0b7c3;
}
.csm-wishlist-toggle:hover {
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
  background: #fff1f1 !important;
}
.csm-wishlist-toggle.csm-wishlist-active {
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
  background: #fff1f1 !important;
}

/* ── Back button ─────────────────────────────────────────────── */
.csm-wishlist-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none !important;
  cursor: pointer;
  padding: 4px 6px !important;
  border-radius: 6px;
  transition: background 0.15s;
  box-shadow: none !important;
}
.csm-wishlist-back:hover {
  background: rgba(var(--color-primary-rgb, 198, 169, 107), 0.1) !important;
}

/* ── Wishlist item count badge ───────────────────────────────── */
.csm-wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
  margin-bottom: 6px;
}

/* ── Grid card footer (price + wishlist on same line) ────────── */
.csm-prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  gap: 4px;
  min-height: 22px;
  margin-top: auto;
}

.csm-btn-wishlist--grid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  color: #c8cdd6;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 !important;
  box-shadow: none !important;
  transition:
    color 0.18s,
    transform 0.15s;
}

.csm-btn-wishlist--grid:hover {
  color: #ef4444 !important;
  transform: scale(1.2);
}

.csm-btn-wishlist--grid.csm-wishlisted {
  color: #ef4444 !important;
}

.csm-btn-wishlist--grid.csm-loading {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Square action buttons (wishlist + cart) ─────────────────── */
.csm-btn-wishlist,
.csm-btn-cart {
  border-radius: 6px !important;
}

.csm-btn-wishlist--grid {
  border-radius: 5px !important;
}

/* ── List card: image fills full card height ─────────────────── */
.csm-prod-card--list {
  padding: 0 10px 0 0 !important; /* remove top/bottom padding so image can stretch */
  align-items: stretch !important;
  overflow: hidden;
}

.csm-prod-card--list .csm-prod-img {
  width: 70px !important;
  min-width: 70px !important;
  height: 100% !important; /* stretch to card height */
  min-height: 76px;
  border-radius: 0 !important; /* flush edges, no rounding on the image wrapper */
  align-self: stretch !important;
  flex-shrink: 0;
}

.csm-prod-card--list .csm-prod-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* restore padding for the body content */
.csm-prod-card--list .csm-prod-body {
  padding: 8px 0 8px 8px;
}
.csm-prod-price {
  white-space: nowrap;
}

/* ── Cats panel collapse toggle ──────────────────────────────── */
.csm-wrapper {
  position: relative;
}

.csm-cats {
  transition:
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    padding 0.28s ease;
}

.csm-wrapper.csm-cats-collapsed .csm-cats {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Toggle button ───────────────────────────────────────────── */
.csm-cats-toggle {
  position: absolute;
  top: 50%;
  right: calc(32% - 10px);
  left: auto;
  transform: translateY(-50%);
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 36px;

  background: #e8eaed;
  border-radius: 6px 0 0 6px;
  border: 1px solid #d0d4db !important;
  border-left: none !important;
  color: #6b7585;
  cursor: pointer;
  padding: 0 !important;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden;

  transition:
    right 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.csm-cats-toggle:hover {
  background: #dfe2e8;
  color: var(--color-primary);
}

/* ── Label inside the button (hidden when expanded) ──────────── */
.csm-cats-toggle-label {
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  max-height: 0;
  transition:
    opacity 0.2s ease 0s,
    max-height 0.28s ease;
  pointer-events: none;
  color: inherit;
}

/* ── Collapsed state: big obvious tab ───────────────────────── */
.csm-wrapper.csm-cats-collapsed .csm-cats-toggle {
  right: 0;
  width: 28px;
  height: 72px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #d0d4db !important;
  border-left: none !important;
  background: var(--color-primary, #c6a96b);
  color: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12) !important;
}

.csm-wrapper.csm-cats-collapsed .csm-cats-toggle:hover {
  background: var(--color-primary, #c6a96b);
  filter: brightness(1.08);
  color: #fff;
}

.csm-wrapper.csm-cats-collapsed .csm-cats-toggle-label {
  opacity: 1;
  max-height: 60px;
  transition:
    opacity 0.2s ease 0.15s,
    max-height 0.28s ease;
}

/* ── Out-of-stock: dim the whole card ── */
.csm-prod-card--oos {
  opacity: 0.6;
  pointer-events: auto; /* keep link clickable so user can still view product */
}

/* ── Badge on the image ── */
.csm-prod-img {
  position: relative; /* needed for badge positioning */
}

.csm-oos-badge {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 6px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* ── Strike-through price when OOS ── */
.csm-prod-price--oos {
  text-decoration: line-through;
  color: var(--csm-muted, #9ca3af);
}

/* ── Disabled cart button ── */
.csm-btn-cart--oos {
  opacity: 0.35;
  cursor: not-allowed;
}