/* STOCKDIVAR_STORE_DISCOVERY_V819
   Public directory for approved stores and the storefront-search empty-state fix.
   Listing cards, product gallery, profile and store ownership studio are untouched. */

/* The V818 storefront empty box has display:flex. Respect the semantic hidden
   state even when another stylesheet gives an empty-state component a display. */
.sd-store-empty-v817[hidden],
#searchEmptyState[hidden],
#emptyState[hidden],
#searchFilterPanel[hidden],
.search-toolbar-actions label[hidden] {
  display: none !important;
}

.category-card-store-v819 {
  border-color: rgba(167, 25, 40, .24) !important;
  background: linear-gradient(145deg, rgba(167, 25, 40, .08), rgba(255, 255, 255, .98));
}

.category-card-store-v819 > b {
  background: rgba(167, 25, 40, .12) !important;
}

.sd-store-filter-link-v819 {
  border-color: rgba(167, 25, 40, .24) !important;
  color: #941522 !important;
  font-weight: 800 !important;
}

.sd-store-category-drawer-link-v819 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(167, 25, 40, .2);
  border-radius: 14px;
  background: rgba(167, 25, 40, .06);
  color: inherit;
  text-decoration: none;
}

.sd-store-category-drawer-link-v819 > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
}

.sd-store-category-drawer-link-v819 strong,
.sd-store-category-drawer-link-v819 small {
  display: block;
}

.sd-store-category-drawer-link-v819 small {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}

.sd-store-category-drawer-link-v819 > i {
  color: #a71928;
  font-size: 24px;
  font-style: normal;
}

.sd-store-directory-grid-v819,
.sd-search-results-store-v819 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 20px !important;
}

.sd-store-directory-card-v819 {
  --sd-store-accent: #a71928;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 24px;
  background: #fff;
  color: #171923;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .07);
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sd-store-directory-card-v819:hover,
.sd-store-directory-card-v819:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(167, 25, 40, .42);
  box-shadow: 0 18px 38px rgba(16, 24, 40, .12);
}

.sd-store-directory-card-v819:focus-visible {
  outline: 3px solid rgba(167, 25, 40, .25);
  outline-offset: 3px;
}

.sd-store-directory-cover-v819 {
  position: relative;
  display: block;
  width: 100%;
  height: 145px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sd-store-accent), #161722);
}

.sd-store-directory-cover-fallback-v819 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .18);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.03em;
  transform: rotate(-5deg) scale(1.08);
}

.sd-store-directory-cover-v819 > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sd-store-directory-verified-v819 {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.sd-store-directory-logo-v819 {
  position: absolute;
  z-index: 3;
  top: 103px;
  right: 22px;
  display: grid;
  width: 84px;
  height: 84px;
  overflow: hidden;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 25px;
  background: linear-gradient(145deg, var(--sd-store-accent), #7f1120);
  color: #fff;
  box-shadow: 0 10px 25px rgba(16, 24, 40, .18);
}

.sd-store-directory-logo-v819 > b {
  font-size: 30px;
  line-height: 1;
}

.sd-store-directory-logo-v819 > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.sd-store-directory-body-v819 {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 52px 22px 20px;
}

.sd-store-directory-body-v819 > strong {
  overflow: hidden;
  color: #171923;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-store-directory-body-v819 > small {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 5px;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sd-store-directory-body-v819 > span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
}

.sd-store-directory-body-v819 i {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-search-results-category-v819 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.sd-category-directory-card-v819 {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
  color: #171923;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.sd-category-directory-card-v819:hover,
.sd-category-directory-card-v819:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 25, 40, .42);
}

.sd-category-directory-card-v819 > b {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: rgba(167, 25, 40, .08);
  font-size: 25px;
}

.sd-category-directory-card-v819 strong,
.sd-category-directory-card-v819 small {
  display: block;
}

.sd-category-directory-card-v819 small {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.sd-category-directory-card-v819 > i {
  color: #a71928;
  font-size: 25px;
  font-style: normal;
}

body[data-sd-search-type-v819="store"] .search-layout,
body[data-sd-search-type-v819="category"] .search-layout {
  display: block !important;
}

body[data-sd-search-type-v819="store"] .search-results-column,
body[data-sd-search-type-v819="category"] .search-results-column {
  width: 100% !important;
  max-width: none !important;
}

body[data-sd-search-type-v819="store"] .filter-mobile-btn,
body[data-sd-search-type-v819="category"] .filter-mobile-btn {
  display: none !important;
}

.dark-mode .category-card-store-v819,
[data-theme="dark"] .category-card-store-v819,
.dark-mode .sd-store-directory-card-v819,
[data-theme="dark"] .sd-store-directory-card-v819,
.dark-mode .sd-category-directory-card-v819,
[data-theme="dark"] .sd-category-directory-card-v819 {
  border-color: rgba(255, 255, 255, .12) !important;
  background: #171922;
  color: #f8fafc;
}

.dark-mode .sd-store-directory-logo-v819,
[data-theme="dark"] .sd-store-directory-logo-v819 {
  border-color: #171922;
}

.dark-mode .sd-store-directory-body-v819 > strong,
[data-theme="dark"] .sd-store-directory-body-v819 > strong {
  color: #f8fafc;
}

.dark-mode .sd-store-directory-body-v819 > small,
.dark-mode .sd-category-directory-card-v819 small,
[data-theme="dark"] .sd-store-directory-body-v819 > small,
[data-theme="dark"] .sd-category-directory-card-v819 small {
  color: #aeb7c5;
}

.dark-mode .sd-store-directory-body-v819 i,
[data-theme="dark"] .sd-store-directory-body-v819 i {
  background: rgba(255, 255, 255, .08);
  color: #d0d5dd;
}

@media (max-width: 1050px) {
  .sd-store-directory-grid-v819,
  .sd-search-results-store-v819 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .sd-store-directory-grid-v819,
  .sd-search-results-store-v819,
  .sd-search-results-category-v819 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .sd-store-directory-card-v819 {
    min-height: 306px;
    border-radius: 20px;
  }

  .sd-store-directory-cover-v819 {
    height: 130px;
  }

  .sd-store-directory-logo-v819 {
    top: 91px;
    right: 17px;
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .sd-store-directory-body-v819 {
    padding: 46px 17px 17px;
  }
}
