/* =========================================================================
   DesineXpress - Public Store & Seller Directory Styles
   ========================================================================= */

/* Pill-Shaped Breadcrumb (Matching Reference UI Image 2) */
.dx-pill-breadcrumb {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .dx-pill-breadcrumb,
body.dark-mode .dx-pill-breadcrumb {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dx-pill-breadcrumb a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.dx-pill-breadcrumb a:hover {
  color: #4338ca;
  text-decoration: underline;
}

.dx-pill-breadcrumb .divider {
  color: #94a3b8;
  margin: 0 8px;
  font-weight: 400;
  user-select: none;
}

.dx-pill-breadcrumb .active-item {
  color: #0f172a;
  font-weight: 600;
}

[data-bs-theme="dark"] .dx-pill-breadcrumb .active-item,
body.dark-mode .dx-pill-breadcrumb .active-item {
  color: #f8fafc;
}

/* Store Hero Banner - FULL IMAGE SHOW, NO BLACK GAP, NO CROP */
.store-hero-container {
  position: relative;
  margin-bottom: 24px;
}

.store-hero-banner {
  width: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: transparent;
  display: block;
}

.store-hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  background-color: transparent;
}

.store-banner-overlay {
  display: none !important;
}

/* Centered Store Logo (Matching Reference UI with Red Ring) */
.store-logo-centered {
  margin-top: -56px;
  position: relative;
  z-index: 10;
  display: inline-block;
  margin-bottom: 6px;
}

.store-logo-circle-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 2.5px solid #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.store-logo-circle-ring:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.2);
}

.store-logo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.store-verified-pill {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 13.5px;
}

/* Store Profile Bar (Below Banner) */
.store-profile-bar {
  margin-top: 0;
  position: relative;
  z-index: 5;
  padding: 0;
}

.store-profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.store-verified-pill {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.store-handle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #334155;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* Store Metrics & KPI Bar */
.store-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.store-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  transition: all 0.25s ease;
}

.store-kpi-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.store-kpi-num {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.store-kpi-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}

/* Interactive Follow Button */
.btn-follow-store {
  border-radius: 12px;
  font-weight: 700;
  padding: 9px 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-follow-store:not(.active) {
  background: linear-gradient(135deg, #1a73e8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}

.btn-follow-store:not(.active):hover {
  background: linear-gradient(135deg, #1557b0 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.4);
  color: #ffffff;
}

.btn-follow-store.active {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #10b981;
}

.btn-follow-store.active:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #ef4444;
}

/* Store Navigation Tabs */
.store-nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  gap: 8px;
}

.store-nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 0;
  background: transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-nav-tabs .nav-link:hover {
  color: #1a73e8;
  border-color: #cbd5e1;
}

.store-nav-tabs .nav-link.active {
  color: #1a73e8;
  border-color: #1a73e8;
  background: transparent;
}

/* Reviews Breakdown Box */
.review-rating-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.review-big-score {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.review-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s ease;
}

.review-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Stores Directory Cards */
/* Stores Directory Cards - Exact Premium Reference Design Update */
.store-directory-card {
  background: #ffffff;
  border: 1.5px solid #d5e6ff;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 30px rgba(8, 102, 255, 0.05), 0 2px 6px rgba(16, 27, 77, 0.03);
}

.store-directory-card:hover {
  transform: translateY(-4px);
  border-color: #a8ceff;
  box-shadow: 0 16px 36px rgba(8, 102, 255, 0.12), 0 4px 12px rgba(16, 27, 77, 0.06);
}

/* Store Card Top Banner - Full Width, Natural Height, 100% Image Show, Zero Cropping, Rounded Top */
.store-card-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #f1f5f9;
  line-height: 0;
  display: block;
}

.store-card-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px 24px 0 0;
}

.store-card-banner-overlay {
  display: none !important;
}

/* Card Body (Optimized for 3 cards per row) */
.store-card-body {
  padding: 12px 18px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Store Profile Header: Double Ring Logo, Name, Meta & Description */
.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.store-card-logo-outer {
  position: relative;
  flex-shrink: 0;
  margin-top: -26px;
  z-index: 4;
}

/* Double Red (#FF3B30) and Blue (#0866FF) Ring Border */
.store-card-logo-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: #ffffff;
  border: 2.5px solid #ff3b30; /* Outer Red Ring */
  box-shadow: 0 4px 14px rgba(8, 102, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-card-logo-ring:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(8, 102, 255, 0.22);
}

.store-card-logo-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #0866FF; /* Inner Royal Blue Ring */
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

/* Store Title & Facebook-Style Verified Badge */
.store-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.store-card-name {
  font-size: 18.5px;
  font-weight: 700;
  color: #101b4d;
  line-height: 1.25;
  margin-bottom: 0;
  letter-spacing: -0.2px;
}

.store-card-name-link {
  color: #101b4d;
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-card-name-link:hover {
  color: #0866FF;
}

/* Facebook-Style Verified Badge - Scalloped Royal Blue with White Tick */
.store-verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 1;
}

.store-verified-svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* Metadata Row: Username, Bullet, Red Pin & Location */
.store-card-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 6px;
  flex-wrap: wrap;
  line-height: 1.35;
}

.store-card-handle {
  color: #0866FF;
  font-weight: 600;
  text-decoration: none;
}

.store-card-handle:hover {
  text-decoration: underline;
}

.store-card-bullet {
  color: #94a3b8;
  font-size: 11px;
}

.store-card-location {
  color: #475569;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

/* Description / Tagline */
.store-card-description {
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4. Store Statistics Container (3 Equal Columns with Dividers) */
.store-card-stats-box {
  background: #f4f8ff;
  border: 1.5px solid #dce9ff;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.store-card-stat-col {
  flex: 1;
  text-align: center;
}

.store-card-stat-divider {
  width: 1px;
  height: 32px;
  background-color: #dce9ff;
}

.store-card-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.store-card-stat-val.text-navy {
  color: #101b4d !important;
}

.store-card-stat-val.text-green {
  color: #078f45 !important;
}

.store-card-stat-val.text-gold {
  color: #eab308 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.store-card-stat-lbl {
  display: block;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
  margin-top: 2px;
  text-transform: capitalize;
}

/* 5. Featured Assets Section */
.store-card-featured-section {
  margin-bottom: 16px;
}

.store-featured-title {
  font-size: 14px;
  font-weight: 700;
  color: #101b4d;
}

.store-featured-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  background: #e8f1ff;
  color: #0866FF;
  border: 1px solid #d5e6ff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}

.store-featured-thumbs-row {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.store-featured-thumb-item {
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  min-width: 95px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1.5px solid #d5e6ff;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  display: block;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.store-featured-thumb-item:hover {
  transform: translateY(-2px);
  border-color: #0866FF;
  box-shadow: 0 6px 16px rgba(8, 102, 255, 0.16);
}

.store-featured-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.store-featured-thumb-item:hover .store-featured-thumb-img {
  transform: scale(1.06);
}

.store-featured-empty {
  padding: 16px;
  background: #f8fafc;
  border: 1.5px dashed #d5e6ff;
  border-radius: 14px;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
}

/* 6. Bottom Action Buttons: Visit Store & Following */
.store-card-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 6px;
  position: relative;
  z-index: 5;
}

.btn-store-visit {
  flex: 1;
  height: 44px;
  background: #ffffff;
  border: 2px solid #0866FF;
  color: #0866FF;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(8, 102, 255, 0.08);
}

.btn-store-visit:hover {
  background: #f0f6ff;
  color: #0052cc;
  border-color: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 102, 255, 0.16);
}

.btn-store-visit i {
  font-size: 16px;
}

.btn-store-follow {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Following state (matches reference image green #078F45) */
.btn-store-follow.is-following {
  background: #078f45 !important;
  border-color: #078f45 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(7, 143, 69, 0.25);
}

.btn-store-follow.is-following:hover {
  background: #06773a !important;
  border-color: #06773a !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(7, 143, 69, 0.35);
}

.btn-store-follow.is-following i {
  font-size: 20px;
  font-weight: bold;
}

/* Unfollowed / Follow state (matches royal blue #0866FF) */
.btn-store-follow.is-unfollowed {
  background: #0866FF !important;
  border-color: #0866FF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(8, 102, 255, 0.22);
}

.btn-store-follow.is-unfollowed:hover {
  background: #0052cc !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(8, 102, 255, 0.35);
}

.btn-store-follow.is-unfollowed i {
  font-size: 18px;
}

/* 8. Floating Chat Widget Protection: Prevent overlap with bottom action buttons */
.dx-wa-prompt-pill {
  left: 0 !important;
  bottom: 68px !important;
}

/* Backwards compatibility helper for verified badge in other sections */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  background: #e8f1ff;
  color: #0866FF;
  border: 1px solid #b8d4ff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
  .store-directory-card {
    border-radius: 20px;
  }

  .store-card-banner {
    width: 100%;
    height: 140px;
    border-radius: 20px 20px 0 0;
    line-height: 0;
  }

  .store-card-banner-img {
    border-radius: 20px 20px 0 0;
  }

  .store-card-body {
    padding: 14px 16px 18px 16px;
  }

  .store-card-logo-outer {
    margin-top: -30px;
  }

  .store-card-logo-ring {
    width: 62px;
    height: 62px;
    padding: 2.5px;
    border-width: 2px;
  }

  .store-card-name {
    font-size: 18px;
  }

  .store-verified-svg {
    width: 22px;
    height: 22px;
  }

  .store-card-stat-val {
    font-size: 19px;
  }

  .btn-store-visit,
  .btn-store-follow {
    height: 44px;
    font-size: 14px;
    border-radius: 14px;
  }

  .store-hero-banner {
    border-radius: 14px;
    width: 100%;
  }

  .store-hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }

  .store-logo-centered {
    margin-top: -42px;
  }

  .store-logo-circle-ring {
    width: 88px;
    height: 88px;
    padding: 3px;
    border-width: 2px;
  }

  .store-verified-pill {
    width: 26px;
    height: 26px;
    font-size: 11px;
    bottom: 2px;
    right: 2px;
  }

  .store-profile-bar {
    margin-top: 0;
    padding: 0;
  }

  .store-profile-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .store-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .store-nav-tabs .nav-link {
    font-size: 13.5px;
    padding: 10px 12px;
  }
}

