/* shop.css — NovaShop storefront grid page.
   Owns: shop page header, storefront card grid, hover states.
   Does NOT own: sidebar, app-shell layout, global dark theme. */

/* ── Page container ──────────────────────────────────────────────── */
.shop-page {
  padding: 32px 28px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────────────── */
.shop-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.shop-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-header-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FF4D6D;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  font-family: 'Montserrat', -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

.shop-header h1 span {
  color: #FF4D6D;
}

/* ── Storefront grid ─────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Storefront card ─────────────────────────────────────────────── */
.shop-card {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.shop-card:hover {
  border-color: rgba(255, 77, 109, 0.35);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.08);
}

/* Safeguard: shop cards must never be hidden by live-surface opacity */
.shop-card { opacity: 1 !important; transform: none !important; }
.shop-card:hover { transform: none !important; box-shadow: 0 0 20px rgba(255, 77, 109, 0.08); }

/* ── Creator avatar ──────────────────────────────────────────────── */
.shop-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4D6D 0%, #FF8A65 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ── Card text ───────────────────────────────────────────────────── */
.shop-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  font-family: 'Inter', -apple-system, sans-serif;
}

.shop-card-count {
  font-size: 0.85rem;
  color: #A0A0A0;
  font-weight: 400;
}

/* ── View Store button ───────────────────────────────────────────── */
.shop-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #FF4D6D;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: 0.01em;
  margin-top: 4px;
  text-decoration: none;
}

.shop-card-btn:hover {
  background: #e8385a;
  transform: translateY(-1px);
}

/* ── Product card (Ailbabe catalog) ─────────────────────────────── */
/* Product card image */
.shop-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #1A1A1A;
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Category badge */
.shop-card-badge {
  font-size: 0.7rem;
  color: #00F2EA;
  background: rgba(0,242,234,0.1);
  border: 1px solid rgba(0,242,234,0.2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Price */
.shop-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #FF4D6D;
  font-family: 'Inter', sans-serif;
}

/* Empty state */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-family: 'Inter', sans-serif;
  padding: 3rem 0;
  font-size: 0.95rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 1080px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shop-page {
    padding: 24px 20px 48px;
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .shop-page {
    padding: 20px 16px 40px;
  }

  .shop-header h1 {
    font-size: 1.3rem;
  }

  .shop-live-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Shop with a Creator (LIVE Shopping Section) ── */
.shop-live-section { margin-bottom: 2rem; }
.shop-section-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.shop-live-dot { width: 10px; height: 10px; background: #FF4D6D; border-radius: 50%; animation: live-pulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes live-pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,77,109,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255,77,109,0); } }
.shop-section-header h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; margin: 0; }
.shop-live-subtitle { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: #888; }
.shop-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* Live creator card */
.slc-card { background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 14px; padding: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.slc-card:hover { border-color: #FF4D6D; box-shadow: 0 0 20px rgba(255,77,109,0.15); }
.slc-card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.slc-avatar { position: relative; flex-shrink: 0; }
.slc-avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #FF4D6D; }
.slc-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #FF4D6D 0%, #00F2EA 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 700; font-family: 'Inter', sans-serif; }
.slc-live-badge { position: absolute; bottom: -2px; right: -4px; background: #FF4D6D; color: #fff; font-size: 0.55rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; border: 2px solid #1A1A1A; }
.slc-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: #fff; }
.slc-viewers { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #888; }
.slc-product { background: #111; border-radius: 8px; padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.slc-product-name { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.slc-product-price { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700; color: #00F2EA; }
.slc-join-btn { display: block; text-align: center; background: linear-gradient(135deg, #FF4D6D 0%, #00F2EA 100%); color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; padding: 0.6rem; border-radius: 10px; text-decoration: none; transition: opacity 0.2s; }
.slc-join-btn:hover { opacity: 0.85; }

/* ── NovaStore Footer ─────────────────────────────── */
.shop-footer { text-align: center; color: #555; font-size: 0.75rem; font-family: 'Inter', sans-serif; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #1A1A1A; }

/* ── Page header with search ─────────────────────── */
.shop-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.shop-title { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0; font-family: 'Montserrat', sans-serif; }
.shop-title span { color: #FF4D6D; }
.shop-search {
  flex: 1;
  max-width: 320px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.shop-search:focus { border-color: #FF4D6D; }
.shop-filter {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}

/* ── Hero banner ──────────────────────────────────── */
.shop-hero {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.shop-hero-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,77,109,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shop-hero-icon svg { stroke: #FF4D6D; fill: none; stroke-width: 1.8; }
.shop-hero-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  margin: 0 0 6px;
}
.shop-hero-text p { color: #888; font-family: 'Inter', sans-serif; font-size: 0.875rem; margin: 0; }

/* ── Category tabs ────────────────────────────────── */
.shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.shop-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.shop-tab:hover { border-color: rgba(255,77,109,0.4); color: #fff; }
.shop-tab.active { background: #FF4D6D; border-color: #FF4D6D; color: #fff; }

/* ── Storefront card ──────────────────────────────── */
.storefront-card {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.storefront-card:hover {
  border-color: rgba(255,77,109,0.35);
  box-shadow: 0 0 20px rgba(255,77,109,0.08);
}
.sf-top { display: flex; align-items: center; gap: 12px; }
.sf-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,77,109,0.3);
}
.sf-avatar-fallback {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4D6D 0%, #FF8A65 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sf-verified { flex-shrink: 0; }
.sf-info { flex: 1; min-width: 0; }
.sf-name {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-handle { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: #888; }
.sf-count {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600;
  color: #00F2EA;
  background: rgba(0,242,234,0.1);
  border: 1px solid rgba(0,242,234,0.2);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.sf-top-item {
  background: #111;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sf-item-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #1A1A1A;
  flex-shrink: 0;
}
.sf-item-img-placeholder {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: #222;
  display: flex; align-items: center; justify-content: center;
}
.sf-item-img-placeholder svg { stroke: #555; }
.sf-item-name {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; color: #ccc;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sf-item-price {
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 700;
  color: #FF4D6D; white-space: nowrap;
}
.sf-btn {
  display: block;
  text-align: center;
  padding: 9px 16px;
  background: #FF4D6D;
  color: #fff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.sf-btn:hover { background: #e8385a; transform: translateY(-1px); }

/* ── Featured creators row ─────────────────────────── */
.shop-featured { margin-bottom: 32px; }
.shop-featured-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.shop-featured-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,77,109,0.4), transparent);
}
.shop-featured-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #333 #000;
}
.shop-featured-scroll::-webkit-scrollbar { height: 4px; }
.shop-featured-scroll::-webkit-scrollbar-track { background: #000; }
.shop-featured-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.featured-storefront-card {
  flex-shrink: 0;
  width: 200px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.featured-storefront-card:hover { border-color: rgba(255,77,109,0.4); box-shadow: 0 0 16px rgba(255,77,109,0.1); }
.featured-avatar {
  width: 56px; height: 56px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #FF4D6D;
}
.featured-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: #fff; text-align: center; }
.featured-count { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: #888; }
.featured-item-img {
  width: 100%; height: 80px;
  border-radius: 8px; object-fit: cover; background: #111;
}

/* ── Start Your Shop CTA ──────────────────────────── */
.shop-cta-bar {
  background: linear-gradient(135deg, rgba(255,77,109,0.15) 0%, rgba(0,242,234,0.08) 100%);
  border: 1px solid rgba(255,77,109,0.25);
  border-radius: 14px;
  padding: 20px 28px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shop-cta-text { font-family: 'Inter', sans-serif; }
.shop-cta-text h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.shop-cta-text p { font-size: 0.82rem; color: #888; margin: 0; }
.shop-cta-btn {
  padding: 10px 22px;
  background: #FF4D6D;
  color: #fff;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.shop-cta-btn:hover { background: #e8385a; transform: translateY(-1px); }

/* ── Shop grid (storefront cards) ─────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── Empty state ─────────────────────────────────── */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: #888;
  font-family: 'Inter', sans-serif;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .shop-page { padding: 24px 20px 48px; }
}
@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-page { padding: 20px 16px 40px; }
  .shop-page-header { flex-wrap: wrap; }
  .shop-search { max-width: 100%; }
  .shop-hero { flex-direction: column; text-align: center; }
  .shop-cta-bar { flex-direction: column; text-align: center; }
}
