@media (max-width: 640px) {
    .product-entry__price .sale-price,
    .product-entry__price .normal-price {
        font-size: 24px !important;
    }
  .product-entry--sale .regular-price {
    font-size: 18px !important;
  }
}

#storemenu-panel {
  padding: 0 !important;
}
.csm-cat-item[data-id="blog"],
.store-tabs__header {
 display: none;
}
.side-panel .close-button {
  background-color: unset !important;
  top: 0.5rem !important;
}

.mm-ocd__content {
  max-width: 600px !important;
  width: 100% !important;
}
.mm-ocd__backdrop {
  width: calc(100% - 600px);
}
/* ---- Prevent parent from double-scrolling ---- */
#mobile-menu .main-menu {
  overflow: hidden !important;
  height: 100%;
}

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

/* ---- Categories sidebar (28%) ---- */
.csm-cats {
  width: 28%;
  min-width: 120px;
  background: #f2f3f5;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  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;
}

.csm-cat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px 11px 10px;
  color: #2d3748;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border-right: 3px solid transparent;
  border-top: 1px solid #e8eaed;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  user-select: none;
  line-height: 1.4;
}
.csm-cat-item:first-child {
  border-top: none;
}
.csm-cat-item:hover {
  background: #e2e5ea;
  color: #111;
}
.csm-cat-item.csm-active {
  background: rgba(var(--color-primary-rgb, 59, 114, 217), 0.09);
  border-right-color: var(--color-primary);
  color: var(--color-primary);
}
.csm-cat-label {
  flex: 1;
  padding: 0 !important;
}

/* Children — always visible */
.csm-children {
  display: flex;
  flex-direction: column;
  margin-right: 16px;
  margin-bottom: 4px;
  border-right: 2px solid #dde0e6;
  background: #eef0f3;
}

.csm-child-item {
  padding: 7px 10px 7px 8px;
  color: #6b7585;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
  border-right: 2px solid transparent;
  line-height: 1.4;
  margin-right: -2px;
}
.csm-child-item:hover {
  color: #2d3748;
  background: #e2e5ea;
}
.csm-child-item.csm-active {
  color: var(--color-primary);
  border-right-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb, 59, 114, 217), 0.07);
  font-weight: 700;
}

/* ---- Products area (72%) ---- */
.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;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500 !important;
  padding: 0 !important;
}
.csm-view-all:hover {
  opacity: 0.9;
}

/* Product grid — nuke any theme-inherited separators */
.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;
}

/* Reset ALL borders on every cell and descendant */
.csm-prod-grid *,
.csm-prod-grid *::before,
.csm-prod-grid *::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.csm-prod-card {
  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;
  background: #f7f8fa !important;
  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 state ---- */
.csm-empty {
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
  padding: 24px 8px;
}

/* ── Sentinel (invisible trigger point) ── */
.csm-sentinel {
  height: 1px;
  width: 100%;
  flex-shrink: 0;
}

/* ── Bottom page loader (3 bouncing dots) ── */
.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 box ────────────────────────────────────────────────── */
.csm-search-wrapper {
  position: relative;
  margin: 10px 0px;
  flex-shrink: 0;
}

.csm-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px; /* space on the right for the icon (RTL) */
  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;

  /* reset browser-native search-cancel button */
  -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;
}

/* Magnifier icon — sits on the right side for RTL */
.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);
}

/* Empty-state message specific to search results */
.csm-search-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: #888;
}