/* ── LISTING TABLE ROWS (shared: home + listings index) ── */
.listing-table { display: flex; flex-direction: column; gap: 2px; margin-bottom: 52px; }

.lt-row {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background .14s, border-color .14s, box-shadow .14s, transform .14s;
}
.lt-row:hover { background: #f0fdf8; border-color: var(--teal); box-shadow: 0 4px 16px rgba(0,229,160,.12); transform: translateX(4px); }

.lt-num   { font-family: 'Space Mono', monospace; font-size: .72rem; color: #cbd5e1; width: 24px; flex-shrink: 0; text-align: right; }
.lt-icon  { width: 52px; height: 52px; min-width: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; background: #f1f5f9; overflow: hidden; position: relative; }
.lt-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; box-sizing: border-box; }
.lt-info  { flex: 1; min-width: 0; }
.lt-title { font-size: .88rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-row:hover .lt-title { color: #00b37d; }
.lt-sub   { display: flex; align-items: center; gap: 12px; font-size: .72rem; color: #94a3b8; margin-top: 3px; }
.lt-sub span { display: flex; align-items: center; gap: 2px; }
.lt-sub .material-icons-round { font-size: .82rem; }
.lt-cat   { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #00b37d; background: rgba(0,229,160,.1); border-radius: 4px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; }
.lt-price { font-family: 'Space Mono', monospace; font-size: .82rem; font-weight: 700; color: #1e293b; white-space: nowrap; flex-shrink: 0; }
.lt-price.free { font-family: inherit; font-weight: 500; color: #94a3b8; font-size: .78rem; }

.lt-featured-badge {
  font-size: .7rem; font-weight: 700;
  background: #e6faf3; color: #00b37e;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── LISTING GALLERY ── */
.listing-gallery { }
.lg-main-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
}
.lg-main-img { width: 100%; height: 420px; object-fit: contain; display: block; }
.lg-thumbs {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.lg-thumb {
  width: 72px; height: 56px;
  border-radius: 8px; overflow: hidden;
  border: 2.5px solid #e2e8f0;
  cursor: pointer;
  background-size: cover; background-position: center;
  transition: border-color .15s, opacity .15s;
  flex-shrink: 0;
}
.lg-thumb:hover  { border-color: #94a3b8; }
.lg-thumb.active { border-color: var(--teal); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 4px;
  font-size: .8rem; color: #888;
  margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: #555; transition: color .15s; }
.breadcrumb a:hover { color: #111; }
.bc-sep     { font-size: .9rem !important; color: #bbb; }
.bc-current { color: #111; font-weight: 500; }

/* ── LISTING SHOW PAGE ── */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 60px;
}

.listing-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #e8e8e8;
}
.listing-img { width: 100%; height: 420px; object-fit: contain; display: block; background: #fff; }
.listing-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--teal); color: var(--bg);
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.listing-fav {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #555; transition: background .15s, color .15s;
}
.listing-fav:hover { background: #fff; color: #e63; }
.listing-fav span  { font-size: 1.1rem; }

.listing-title-block { margin-top: 24px; }
.listing-cat-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600;
  color: #00b37e; background: #e6faf3;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.listing-cat-tag span { font-size: .9rem !important; }
.listing-h1 {
  font-size: 1.5rem; font-weight: 700;
  line-height: 1.3; color: #111; margin-bottom: 12px;
}
.listing-meta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .8rem; color: #777;
}
.listing-meta-row span { display: flex; align-items: center; gap: 4px; }
.listing-meta-row .material-icons-round { font-size: .95rem !important; }

.listing-section {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}
.listing-section-title { font-size: .95rem; font-weight: 700; color: #111; margin-bottom: 12px; }
.listing-desc { font-size: .9rem; line-height: 1.7; color: #444; }
.listing-desc.muted { color: #aaa; font-style: italic; }

/* Listing sidebar */
.listing-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: #fff; border: 1px solid #e8e8e8;
  border-radius: var(--r); padding: 20px;
}
.sidebar-price { font-size: 1.7rem; font-weight: 700; color: #111; margin-bottom: 16px; }
.sidebar-price.muted { font-size: 1.1rem; color: #888; font-weight: 500; }

.sidebar-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 11px 0;
  background: var(--teal); color: var(--bg);
  border: none; border-radius: 10px;
  font-size: .9rem; font-weight: 700;
  margin-bottom: 8px; transition: opacity .15s;
}
.sidebar-btn-primary:hover { opacity: .88; }
.sidebar-btn-primary span  { font-size: 1rem !important; }

.sidebar-btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 0;
  background: transparent; color: #555;
  border: 1px solid #ddd; border-radius: 10px;
  font-size: .88rem; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.sidebar-btn-ghost:hover { border-color: #aaa; color: #111; }
.sidebar-btn-ghost span  { font-size: 1rem !important; }

.sidebar-card-title {
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #999; margin-bottom: 14px;
}
.sidebar-details    { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-details li { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.sd-label { color: #888; }
.sd-val   { font-weight: 600; color: #111; }

.sidebar-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fffbeb; border-color: #fde68a;
}
.sidebar-tip span { color: #d97706; font-size: 1.2rem !important; flex-shrink: 0; margin-top: 2px; }
.sidebar-tip p    { font-size: .8rem; color: #78350f; line-height: 1.5; }

/* ── CATEGORIES INDEX ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 60px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 20px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
.cat-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.cc-icon  { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cc-icon span { font-size: 1.3rem; color: #fff; }
.cc-name  { font-size: .95rem; font-weight: 700; color: #111; }
.cc-count { font-size: .78rem; color: #94a3b8; }
.cc-arrow {
  position: absolute; top: 18px; right: 16px;
  font-size: .95rem !important; color: #cbd5e1;
  transition: color .15s, transform .15s;
}
.cat-card:hover .cc-arrow { color: #6366f1; transform: translateX(3px); }

/* ── CATEGORY SHOW ── */
.cat-hero {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 24px; margin-bottom: 28px;
  border-left: 4px solid var(--cat-color, #6366f1);
}
.cat-hero-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--cat-color, #6366f1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-hero-icon span  { font-size: 1.6rem; color: #fff; }
.cat-hero-title { font-size: 1.4rem; font-weight: 700; color: #111; }
.cat-hero-sub   { font-size: .85rem; color: #888; margin-top: 3px; }

/* ── SEARCH PAGE ── */
.search-page-form { margin-bottom: 32px; }
.spf-inner {
  display: flex; align-items: center;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.spf-inner:focus-within { border-color: #00e5a0; box-shadow: 0 0 0 3px rgba(0,229,160,.15); }
.spf-icon  { padding: 0 16px; color: #aaa; font-size: 1.2rem !important; flex-shrink: 0; }
.spf-input {
  flex: 1; border: none; outline: none;
  font-size: .95rem; font-family: inherit;
  color: #111; padding: 15px 0; background: transparent;
}
.spf-input::placeholder { color: #bbb; }
.spf-clear { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: #bbb; transition: color .15s; }
.spf-clear:hover { color: #555; }
.spf-clear span { font-size: 1.1rem !important; }
.spf-btn {
  background: #00e5a0; color: #0c0c0e;
  border: none; padding: 0 24px;
  font-size: .88rem; font-weight: 700; font-family: inherit;
  height: 100%; min-height: 52px;
  cursor: pointer; transition: opacity .15s;
  flex-shrink: 0; white-space: nowrap;
}
.spf-btn:hover { opacity: .88; }

.search-empty { text-align: center; padding: 70px 0; color: #aaa; }
.search-empty .material-icons-round { font-size: 3rem; display: block; margin-bottom: 14px; }
.search-empty p      { font-size: .95rem; color: #666; }
.search-empty strong { color: #111; }

/* ── LISTING CREATED BANNER ── */
.listing-created-banner {
  background: linear-gradient(90deg, #052e16 0%, #14532d 100%);
  border-bottom: 1px solid #166534;
  animation: bannerSlideDown .35s ease;
}
@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.lcb-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.lcb-icon {
  width: 36px; height: 36px;
  background: rgba(34,197,94,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lcb-icon span { font-size: 1.2rem; color: #4ade80; }
.lcb-text {
  flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .85rem;
}
.lcb-text strong { color: #dcfce7; font-weight: 700; }
.lcb-text span   { color: rgba(255,255,255,.55); }
.lcb-text a      { color: #4ade80; text-decoration: underline; text-underline-offset: 2px; }
.lcb-text a:hover { color: #86efac; }
.lcb-close {
  background: none; border: none; color: rgba(255,255,255,.35);
  cursor: pointer; display: flex; align-items: center;
  padding: 4px; border-radius: 6px;
  transition: color .13s, background .13s; flex-shrink: 0;
}
.lcb-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.lcb-close span  { font-size: 1.1rem; }

/* ── LISTING SUCCESS PAGE ── */
.listing-success {
  text-align: center; max-width: 480px;
  padding: 48px 32px;
  background: #fff; border: 1px solid #e8eaf2;
  border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.ls-icon {
  width: 72px; height: 72px; background: #f0fdf4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.ls-icon span   { font-size: 2.4rem; color: #16a34a; }
.ls-title       { font-size: 1.5rem; font-weight: 800; color: #1e2139; margin-bottom: 12px; letter-spacing: -.3px; }
.ls-text        { font-size: .88rem; color: #64748b; line-height: 1.7; margin-bottom: 32px; }
.ls-actions     { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.ls-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--teal); color: var(--bg);
  border-radius: 10px; padding: 13px 20px;
  font-size: .9rem; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
}
.ls-btn-primary:hover { opacity: .88; }
.ls-btn-primary span  { font-size: 1rem; }
.ls-btn-ghost {
  display: block; border: 1px solid #e2e5ef; color: #64748b;
  border-radius: 10px; padding: 12px 20px;
  font-size: .88rem; font-weight: 600;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.ls-btn-ghost:hover    { border-color: var(--teal); color: var(--teal); }
.ls-register-nudge     { font-size: .8rem; color: #94a3b8; }
.ls-register-nudge a   { color: var(--teal); font-weight: 600; text-decoration: none; }
.ls-register-nudge a:hover { text-decoration: underline; }

/* ── PAGINATION ── */
.ls-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding-bottom: 60px; flex-wrap: wrap;
}
.ls-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  border-radius: 8px; border: 1.5px solid #e0e0e6;
  background: #fff; color: #555;
  font-size: .84rem; font-weight: 600;
  text-decoration: none; transition: all .13s;
}
.ls-page-btn:hover:not(.disabled):not(.active) { border-color: var(--teal); color: var(--teal); }
.ls-page-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.ls-page-btn.disabled { opacity: .35; cursor: default; pointer-events: none; }
.ls-page-btn .material-icons-round { font-size: 1.1rem; }
.ls-page-ellipsis { color: #bbb; font-size: .84rem; padding: 0 4px; line-height: 36px; }

/* ── RESPONSIVE ── */
/* ── Related listings grid ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 700px) {
  .listing-layout { grid-template-columns: 1fr; }

  /* ── Listing table rows — mobile ── */
  .lt-row { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; align-items: flex-start; }
  .lt-num  { display: none; }
  .lt-icon { width: 48px; height: 48px; min-width: 48px; align-self: center; }
  .lt-info { flex: 1; min-width: 0; }
  .lt-title { white-space: nowrap; font-size: .85rem; }
  .lt-cat  { display: none; }
  .lt-sub span:last-child { display: none; }
  .lt-price { order: 4; font-size: .8rem; align-self: center; }
}
