
/* ملف تنسيقات دليل المتاجر بعد نقل تنسيقات stores.php إلى هنا وتقليل التكرار */

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.badge img {
  width: 40px;
  height: 40px;
}

.badge-featured {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--stores-featured-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(127,70,164,.18);
  z-index: 10;
}

.badge-triangle {
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  right: 0;
  border-top: 50px solid var(--stores-featured-solid);
  border-left: 50px solid transparent;
  z-index: 2;
  border-top-right-radius: 4px;
}

.badge-triangle i {
  position: absolute;
  top: -43px;
  right: 5px;
  color: white;
  font-size: 16px;
}

.csb-logo {
  width: 46px;
  height: 46px;
  max-width: none;
  padding: 6px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-sizing: border-box;
  flex: 0 0 46px;
  vertical-align: middle;
}

.like-icon {
  color: gray;
  font-size: 20px;
}

.like-icon:hover {
  color: #4147d0;
  font-size: 20px;
}

.likes-count {
  font-weight: normal;
  color: #333;
  font-size: 13px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 10;
  bottom: 120%;
  left: -40%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 100px;
  background-color: #1065c4;
  color: white;
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: none;
  z-index: 999;
}

@media (max-width: 1050px) {
  .tooltip .tooltiptext {
    left: -40%;
  }
}

.stores-breadcrumb-container {
  max-width: 1430px;
  width: 100%;
  margin: 20px auto;
  font-size: 14px;
  color: #333;
}

.stores-visual-lines-wrap {
  flex: 1;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.breadcrumb .separator {
  margin: 0 5px;
  color: #aaa;
}

.cookie-consent-box {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100% - 40px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
  border-radius: 16px;
  z-index: 99999;
  direction: rtl;
  overflow: hidden;
}

.cookie-consent-content {
  padding: 18px;
}

.cookie-consent-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

.cookie-consent-content a {
  color: #7f46a4;
  text-decoration: none;
  font-weight: 700;
}

.cookie-consent-content a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent-actions button {
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

#acceptCookiesBtn {
  background: #7f46a4;
  color: #fff;
}

#acceptCookiesBtn:hover {
  background: #69378b;
}

#laterCookiesBtn {
  background: #f3f4f6;
  color: #111827;
}

#laterCookiesBtn:hover {
  background: #e5e7eb;
}

@media (max-width: 600px) {
  .cookie-consent-box {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .cookie-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions button {
    width: 100%;
  }
}

:root {
  --stores-page-bg: #f4f6fb;
  --stores-card-bg: rgba(255,255,255,.96);
  --stores-text: #111827;
  --stores-muted: #6b7280;
  --stores-border: #e5e7eb;
  --stores-soft: #f8fafc;
  --stores-primary: #7f46a4;
  --stores-primary-dark: #653583;
  --stores-accent: #d33f8d;
  --stores-featured-solid: var(--stores-accent);
  --stores-featured-gradient: linear-gradient(135deg, var(--stores-primary), var(--stores-accent));
  --stores-focus: rgba(127,70,164,.14);
  --stores-shadow: 0 18px 45px rgba(17,24,39,.075);
  --stores-shadow-soft: 0 10px 25px rgba(17,24,39,.055);
  --stores-radius-main: 9px;
  --stores-radius-inner: 8px;
  --stores-radius-field: 7px;
}

body {
  font-family: var(--site-font-family);
  direction: rtl;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, rgba(127,70,164,.08), transparent 33%),
        radial-gradient(circle at top left, rgba(211,63,141,.06), transparent 30%),
        var(--stores-page-bg);
}

.stores-directory-shell,
.stores-directory-shell * {
  box-sizing: border-box;
}

.stores-filter-card,
.stores-side-visual,
.stores-content-panel {
  background: var(--stores-card-bg);
  border: 1px solid rgba(229,231,235,.88);
  border-radius: var(--stores-radius-main);
  box-shadow: var(--stores-shadow-soft);
  overflow: hidden;
}

.stores-filter-icon i {
  font-size: 18px;
}

.stores-filter-title {
  margin: 0;
  color: var(--stores-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.stores-filter-subtitle {
  margin: 3px 0 0;
  color: var(--stores-muted);
  font-size: 12px;
  line-height: 1.8;
}

.stores-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.stores-filter-submit,
.stores-filter-reset {
  min-height: 44px;
  border-radius: var(--stores-radius-field);
  padding: 11px 16px;
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.stores-filter-submit:hover,
.stores-filter-reset:hover {
  transform: translateY(-1px);
}

.stores-side-visual::before,
.stores-side-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.stores-side-visual::before {
  width: 175px;
  height: 175px;
  top: -72px;
  left: -64px;
  background: rgba(127,70,164,.08);
}

.stores-side-visual::after {
  width: 136px;
  height: 136px;
  right: -58px;
  bottom: -48px;
  background: rgba(211,63,141,.08);
}

.stores-visual-kicker,
.stores-visual-title,
.stores-visual-board,
.stores-visual-note {
  position: relative;
  z-index: 1;
}

.stores-visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--stores-primary);
  font-size: 12px;
  line-height: 1.7;
}

.stores-visual-title {
  margin: 0 0 16px;
  color: var(--stores-text);
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.stores-visual-board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52px;
  background: linear-gradient(135deg, rgba(127,70,164,.92), rgba(211,63,141,.86));
}

.stores-visual-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.stores-visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
}

.stores-visual-store-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stores-visual-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--stores-radius-inner);
  background: linear-gradient(135deg, rgba(127,70,164,.14), rgba(211,63,141,.11));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stores-primary);
}

.stores-visual-line {
  height: 9px;
  border-radius: 999px;
  background: #eef2f7;
  margin-top: 9px;
}

.stores-visual-line.short {
  width: 54%;
}

.stores-visual-line.mid {
  width: 78%;
}

.stores-visual-line.full {
  width: 100%;
}

.stores-visual-tags {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.stores-visual-tags span {
  height: 24px;
  border-radius: 999px;
  background: rgba(127,70,164,.10);
  flex: 1;
}

.stores-visual-tags span:nth-child(2) {
  background: rgba(211,63,141,.10);
}

.stores-directory-shell {
  width: 1430px;
  max-width: 100%;
  min-width: 350px;
  margin: 20px auto;
  --stores-premium-panel: rgba(255,255,255,.92);
  --stores-premium-line: rgba(229,231,235,.88);
  --stores-premium-glow: 0 24px 60px rgba(17,24,39,.08);
}

.stores-filter-icon {
  border-radius: var(--stores-radius-inner);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(127,70,164,.13), rgba(211,63,141,.10));
  color: var(--stores-primary);
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 24px rgba(127,70,164,.10);
}

.stores-filter-title,
.stores-visual-title {
  font-weight: 500;
}

.stores-filter-submit {
  flex: 1;
  color: #fff;
  background: linear-gradient(135deg, #7f46a4, #d33f8d);
  box-shadow: 0 16px 28px rgba(127,70,164,.18);
  font-weight: 400;
}

.stores-filter-reset {
  color: #374151;
  border-color: var(--stores-border);
  background: #fff;
}

.stores-visual-board {
  margin: 0 auto;
  border-radius: var(--stores-radius-main);
  background: #fff;
  border: 1px solid rgba(229,231,235,.96);
  box-shadow: 0 22px 42px rgba(17,24,39,.10);
  padding: 18px;
  overflow: hidden;
  width: min(100%, 300px);
  min-height: 220px;
  transform: rotate(-1.5deg);
}

.stores-visual-board::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  left: 16px;
  bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(127,70,164,.90), rgba(211,63,141,.80));
  opacity: .10;
}

.stores-visual-store-card {
  position: relative;
  z-index: 1;
  padding: 14px;
  margin-top: 12px;
  border-radius: var(--stores-radius-inner);
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
  border: 1px solid rgba(229,231,235,.92);
  box-shadow: 0 14px 28px rgba(17,24,39,.08);
  transform: rotate(1.5deg);
}

.stores-visual-note {
  margin: 14px 0 0;
  color: var(--stores-muted);
  font-size: 12px;
  line-height: 1.9;
  padding: 12px 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(229,231,235,.82);
}

.stores-content-panel .store-card {
  position: relative;
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 9px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(17,24,39,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.stores-content-panel .store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127,70,164,.24);
  box-shadow: 0 22px 46px rgba(17,24,39,.095);
}

.stores-content-panel .store-list:not(.grid-view) .store-card,
.stores-content-panel .store-list.list-view .store-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px;
  margin-bottom: 13px;
}

.stores-content-panel .store-list.grid-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.stores-content-panel .store-list.grid-view .store-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 290px;
}

@media (max-width: 1100px) {
  .stores-content-panel .store-list.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stores-content-panel .store-list.grid-view {
    grid-template-columns: 1fr;
  }
}

.stores-content-panel .store-logo {
  width: 82px;
  height: 82px;
  border-radius: 9px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #edf0f5;
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}

.stores-content-panel .grid-view .store-logo {
  margin: 0 auto 12px;
}

.stores-content-panel .store-info h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.stores-content-panel .store-info p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.9;
}

.stores-content-panel .store-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 230px;
}

.stores-content-panel .grid-view .store-footer {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.stores-content-panel .like-btn,
.stores-content-panel .visit-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.stores-content-panel .like-btn {
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.stores-content-panel .like-btn:hover,
.stores-content-panel .like-btn.liked {
  color: #7f46a4;
  border-color: rgba(127,70,164,.25);
  background: rgba(127,70,164,.06);
}

.stores-content-panel .visit-button {
  color: #fff;
  background: linear-gradient(135deg, #7f46a4, #d33f8d);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(127,70,164,.16);
}

.stores-content-panel .like-btn:hover,
.stores-content-panel .visit-button:hover {
  transform: translateY(-1px);
}

.stores-content-panel .store-footer .csb-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: none;
  padding: 6px;
  margin: 0;
  display: inline-block;
  object-fit: contain;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  vertical-align: middle;
  transform: translateY(2px);
}

@media (max-width: 1100px) {
  .stores-directory-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

.stores-directory-layout {
  display: grid;
  align-items: start;
  position: relative;
  grid-template-columns: 345px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 18px;
  padding: 18px !important;
  background: #fff;
  border: 1px solid rgba(229,231,235,.92);
  border-radius: 9px;
  box-shadow: 0 24px 60px rgba(17,24,39,.075);
  overflow: hidden;
}

.stores-directory-layout::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--stores-primary), var(--stores-accent));
  pointer-events: none;
}

.stores-directory-unified-head {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--stores-primary), var(--stores-accent));
  color: #fff;
  box-shadow: 0 18px 38px rgba(127,70,164,.16);
}

.stores-directory-unified-head::before,
.stores-directory-unified-head::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.stores-directory-unified-head::before {
  width: 210px;
  height: 210px;
  right: -82px;
  top: -112px;
  background: rgba(255,255,255,.12);
}

.stores-directory-unified-head::after {
  width: 155px;
  height: 155px;
  left: -54px;
  bottom: -92px;
  background: rgba(255,255,255,.10);
}

.stores-directory-head-text,
.stores-directory-head-tools {
  position: relative;
  z-index: 1;
}

.stores-directory-head-text {
  max-width: 760px;
}

.stores-directory-head-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

.stores-directory-head-text h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.55;
  font-weight: 500;
}

.stores-directory-head-text p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  line-height: 1.9;
}

.stores-directory-head-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.stores-results-count {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.stores-directory-unified-head .view-toggle {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stores-directory-unified-head .view-toggle button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.stores-directory-unified-head .view-toggle button:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.34);
  transform: translateY(-1px);
}

.sidebar-filters.stores-sidebar {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: static !important;
  top: auto !important;
  padding: 18px;
  border: 1px solid rgba(229,231,235,.92);
  border-radius: var(--stores-radius-main);
  gap: 30px;
  background: #fff;
}

.store-content.stores-content-panel {
  border: 0;
  box-shadow: none;
  background: #fff;
}

.stores-filter-card {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 2px 14px 14px;
  overflow: hidden;
}

.stores-filter-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--stores-primary), var(--stores-accent));
  display: none;
}

.stores-filter-card .stores-filter-actions {
  margin-top: 13px;
  margin-bottom: 0;
}

.stores-side-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  border-color: rgba(229,231,235,.92);
  border: 1px solid rgba(229,231,235,.86);
  box-shadow: none;
  background: #fff;
}

.store-content.stores-content-panel {
  width: 100% !important;
  min-width: 0;
  padding: 0;
  border-color: rgba(229,231,235,.92);
  box-shadow: none;
  background: #fff;
  overflow: visible;
}

.stores-content-panel #storeContainer {
  padding: 0;
}

.stores-empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--stores-muted);
  border: 1px dashed #d8dee9;
  border-radius: var(--stores-radius-inner);
  background: #fbfbfd;
  line-height: 1.9;
  margin: 18px 0 0;
}

@media (max-width: 992px) {
  .stores-directory-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px !important;
  }

  .stores-directory-unified-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .stores-directory-head-tools {
    width: 100%;
    justify-content: space-between;
  }

  .sidebar-filters.stores-sidebar {
    padding: 16px;
    border: 1px solid rgba(229,231,235,.92);
    border-radius: var(--stores-radius-main);
  }

  .store-content.stores-content-panel {
    padding-inline-start: 0;
  }
}

@media (max-width: 768px) {
  .stores-directory-layout {
    padding: 14px !important;
    border-radius: 8px;
  }

  .stores-directory-unified-head {
    padding: 18px;
    border-radius: 8px;
  }

  .stores-directory-head-tools {
    gap: 10px;
  }

  .stores-results-count {
    flex: 1;
  }
}

/* فصل كلاسّات حاويات الفلاتر عن كلاسّات الحقول */
.stores-filter-section {
  margin: 0 0 11px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stores-filter-label {
  display: block;
  margin: 0 0 5px;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
}

.stores-filter-control {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #dfe5ee;
  border-radius: var(--stores-radius-field);
  background: linear-gradient(180deg, #fff, #fcfdff);
  color: var(--stores-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 0 rgba(17,24,39,.02);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}


/* تغيير شكل أيقونة حقل التصنيفات فقط دون تغيير تصميم الحقل */
.stores-filter-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 9.25L12 13.75L16.5 9.25' stroke='%237f46a4' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: left 14px center;
}

.stores-filter-control:focus {
  background: #fff;
  border-color: var(--stores-primary);
  box-shadow: 0 0 0 4px var(--stores-focus);
}

.stores-filter-input::placeholder {
  color: #9ca3af;
}

.stores-filter-options {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stores-filter-option {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease;
}

.stores-filter-option:hover {
  color: var(--stores-primary);
  background: transparent;
}

.stores-filter-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--stores-primary);
  cursor: pointer;
  flex: 0 0 auto;
}

.stores-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}


/* تحريك شعار المتجر والعنوان والوصف 20px إلى اليسار في وضع القائمة فقط */
.stores-content-panel .store-list:not(.grid-view) .store-logo,
.stores-content-panel .store-list.list-view .store-logo,
.stores-content-panel .store-list:not(.grid-view) .store-info,
.stores-content-panel .store-list.list-view .store-info {
  transform: translateX(-20px);
}

.stores-content-panel .store-list.grid-view .store-logo,
.stores-content-panel .store-list.grid-view .store-info {
  transform: none;
}

/* محاذاة عنوان ووصف البطاقة وسطياً في وضع الشبكة فقط */
.stores-content-panel .store-list.grid-view .store-info,
.stores-content-panel .store-list.grid-view .store-info h2,
.stores-content-panel .store-list.grid-view .store-info p {
  text-align: center;
}

/* تنسيق بطاقات المتاجر في وضع الأجهزة الذكية فقط */
@media (max-width: 768px) {
  .stores-content-panel .store-list,
  .stores-content-panel .store-list.grid-view,
  .stores-content-panel .store-list.list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stores-content-panel .store-list:not(.grid-view) .store-card,
  .stores-content-panel .store-list.list-view .store-card,
  .stores-content-panel .store-list.grid-view .store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 18px 16px 16px;
    margin-bottom: 0;
  }

  .stores-content-panel .store-list:not(.grid-view) .store-logo,
  .stores-content-panel .store-list.list-view .store-logo,
  .stores-content-panel .store-list.grid-view .store-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    transform: none;
    flex: 0 0 auto;
  }

  .stores-content-panel .store-list:not(.grid-view) .store-info,
  .stores-content-panel .store-list.list-view .store-info,
  .stores-content-panel .store-list.grid-view .store-info {
    width: 100%;
    min-width: 0;
    transform: none;
    text-align: center;
  }

  .stores-content-panel .store-info h2 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.65;
  }

  .stores-content-panel .store-info p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.85;
  }

  .stores-content-panel .store-footer {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    justify-content: stretch;
    margin-top: 2px;
  }

  .stores-content-panel .store-footer:not(:has(.csb-logo)) {
    grid-template-columns: 1fr;
  }

  .stores-content-panel .store-footer .tooltip:not(:has(.csb-logo)) {
    display: none;
  }

  .stores-content-panel .store-footer .tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
  }

  .stores-content-panel .store-footer .csb-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    transform: none;
  }

  .stores-content-panel .like-btn,
  .stores-content-panel .visit-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
  }

  .stores-content-panel .visit-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .stores-content-panel .store-list:not(.grid-view) .store-card,
  .stores-content-panel .store-list.list-view .store-card,
  .stores-content-panel .store-list.grid-view .store-card {
    padding: 16px 13px 14px;
    gap: 11px;
  }

  .stores-content-panel .store-footer,
  .stores-content-panel .store-footer:not(:has(.csb-logo)) {
    grid-template-columns: 1fr;
  }

  .stores-content-panel .store-footer .tooltip {
    width: 100%;
  }

  .stores-content-panel .store-footer .csb-logo {
    margin-inline: auto;
  }
}
