/**
 * JilaBazaar - Store Card Premium Stylesheet
 * Used on Store Directory (/stores) and Homepage (/ Popular Stores Near You)
 */

.store-card-premium {
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  position: relative;
  height: 100%;
}
.store-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -2px rgba(249, 115, 22, 0.08);
  border-color: #fdba74;
}

/* 1. Banner Section */
.store-banner-box {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
}
.store-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.store-card-premium:hover .store-banner-img {
  transform: scale(1.06);
}
.store-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 38, 0.88) 0%, rgba(11, 23, 44, 0.65) 55%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

/* Decorative Dotted Grid on Left */
.banner-dot-matrix {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 24px;
  height: 48px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  pointer-events: none;
  opacity: 0.7;
}

/* Overlay Titles on Banner */
.banner-text-overlay {
  position: absolute;
  top: 12px;
  left: 40px;
  z-index: 2;
  color: #ffffff;
  pointer-events: none;
  max-width: 60%;
}
.banner-tagline-main {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.banner-tagline-sub {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fde047;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.banner-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 2.5px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.banner-mini-pill svg,
.banner-mini-pill i {
  color: #f43f5e;
}

/* Open Now Status Badge (Top Right) */
.store-open-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #16a34a;
  border-radius: 10px;
  padding: 4px 10px 5px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  text-align: right;
  line-height: 1.15;
}
.store-open-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.status-pulsing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 2px rgba(134, 239, 172, 0.35);
  animation: pulseGreenDot 1.8s infinite;
}
@keyframes pulseGreenDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.store-open-hours {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 1px;
}

/* 2. Centered Overlapping Store Avatar */
.store-avatar-anchor {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -44px;
  z-index: 10;
}
.store-avatar-frame {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
}

/* Verified Blue Check Badge (Bottom-Right of Avatar) */
.avatar-verified-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.45);
  z-index: 12;
}
.avatar-verified-badge svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 3.2;
  fill: none;
}

/* 3. Card Main Body */
.store-card-main {
  padding: 6px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* Local Hub Badge under Avatar Row */
.store-hub-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: -16px;
  margin-bottom: 5px;
  min-height: 20px;
}
.store-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
}
.store-hub-pill i {
  color: #ef4444;
  font-size: 0.7rem;
}

/* Store Title */
.store-name-heading {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0b1527;
  letter-spacing: -0.02em;
  margin: 3px 0 5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Rating & Review Row */
.store-rating-strip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.rating-pill-amber {
  background: #fef3c7;
  color: #92400e;
  border-radius: 50px;
  padding: 2.5px 9px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating-pill-amber i {
  color: #f59e0b;
  font-size: 0.72rem;
}
.rating-sep-pipe {
  color: #cbd5e1;
  font-size: 0.8rem;
}
.rating-count-label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Store Description */
.store-bio-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 auto 14px;
  max-width: 96%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* 4-Column Feature Icons Strip */
.store-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  gap: 2px;
}
.store-feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 2px;
}
.store-feature-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e2e8f0;
}
.feat-bubble-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}
.feat-bubble-icon.bg-red    { background: #fee2e2; color: #ef4444; }
.feat-bubble-icon.bg-blue   { background: #e0f2fe; color: #0284c7; }
.feat-bubble-icon.bg-green  { background: #dcfce7; color: #16a34a; }
.feat-bubble-icon.bg-purple { background: #f3e8ff; color: #9333ea; }

.feat-bubble-icon i {
  font-size: 0.82rem;
}
.feat-title-bold {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
}
.feat-sub-text {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

/* Primary CTA Button (Visit Store ➔) */
.btn-visit-gradient {
  width: 100%;
  background: linear-gradient(90deg, #ff7a18 0%, #ff2d55 100%);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 50px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(255, 45, 85, 0.3);
  transition: all 0.22s ease;
  cursor: pointer;
  margin-bottom: 9px;
}
.btn-visit-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 45, 85, 0.42);
  color: #ffffff !important;
}
.btn-visit-gradient i {
  font-size: 1rem;
  line-height: 1;
}

/* Secondary Buttons Row (Follow Store & Share) */
.store-sub-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.btn-sub-action {
  flex: 1;
  border-radius: 50px;
  padding: 7px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #ffffff;
  white-space: nowrap;
}
.btn-sub-follow {
  border: 1.5px solid #fecdd3;
  color: #e11d48;
  background: #fff5f5;
}
.btn-sub-follow:hover,
.btn-sub-follow.is-following {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #be123c;
  transform: translateY(-1px);
}
.btn-sub-follow.is-following i {
  color: #e11d48;
}
.btn-sub-share {
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  background: #eff6ff;
}
.btn-sub-share:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .store-banner-box { height: 135px; }
  .store-avatar-frame { width: 80px; height: 80px; }
  .store-avatar-anchor { margin-top: -40px; }
  .store-card-main { padding: 6px 12px 16px; }
  .store-name-heading { font-size: 1.1rem; }
  .store-features-grid { padding: 8px 1px; }
  .feat-title-bold { font-size: 0.72rem; }
  .feat-sub-text { font-size: 0.6rem; }
}
