/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #222;
  --gray: #999;
  --light: #f5f5f5;
  --border: #e8e8e8;
  --white: #fff;
  --price: #d32f2f;
  --accent: #222;
  --radius: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--black);
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.logo-dot {
  color: #e65100;
}
.logo-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray);
  text-transform: lowercase;
}

.search-form {
  flex: 1;
  max-width: 560px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--black); }

.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.search-btn {
  background: none;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
}
.search-btn:hover { color: var(--black); }

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  transition: color .2s;
}
.header-link:hover { color: var(--black); }

.filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--black);
  white-space: nowrap;
}

/* ===== CATEGORY CHIPS ===== */
.categories-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.categories-scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--black);
  transition: all .2s;
  cursor: pointer;
}
.chip:hover { border-color: var(--black); }
.chip--active {
  background: #2e7d32;
  color: var(--white);
  border-color: #2e7d32;
}

.chip-count {
  font-size: 11px;
  color: var(--gray);
  margin-left: 2px;
}
.chip--active .chip-count { color: rgba(255,255,255,.6); }

/* ===== SUBGROUP CHIPS ===== */
.subgroups-bar {
  border-bottom: 1px solid var(--border);
  background: var(--light);
}
.chip--sub {
  font-size: 12px;
  padding: 5px 14px;
  background: var(--white);
}
.chip--sub.chip--active {
  background: #555;
  color: var(--white);
  border-color: #555;
}

/* ===== LAYOUT ===== */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 30px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-header {
  display: none;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
  margin-bottom: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  cursor: pointer;
}
.radio-option input[type="radio"] {
  accent-color: var(--black);
}

.filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--black); }

/* Country filter buttons */
.country-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.country-btn:hover {
  background: var(--light);
}
.country-btn--active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.country-btn--active:hover {
  background: #333;
}
.country-count {
  margin-left: auto;
  font-size: 11px;
  opacity: .6;
}

.clear-btn {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  color: var(--gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  transition: all .2s;
}
.clear-btn:hover { color: var(--black); border-color: var(--black); }

/* ===== CONTENT ===== */
.content { flex: 1; min-width: 0; }

.results-bar {
  margin-bottom: 16px;
}

.results-count {
  font-size: 14px;
  color: var(--gray);
}

/* ===== PRODUCT GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* ===== PRODUCT CARD ===== */
.card {
  cursor: pointer;
  padding: 10px;
  transition: background .15s;
}
.card:hover { background: var(--light); }

.card-img {
  position: relative;
  width: 100%;
  padding-top: 120%;
  background: var(--light);
  overflow: hidden;
  margin-bottom: 10px;
}

.card-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.card-photo--main { opacity: 1; z-index: 1; }
.card-photo--hover { opacity: 0; z-index: 2; }
.card:hover .card-photo--main { opacity: 0; }
.card:hover .card-photo--hover { opacity: 1; }

/* Single photo: zoom instead of swap */
.card--single .card-photo--main { transition: opacity .3s, transform .4s; }
.card--single:hover .card-photo--main { opacity: 1; transform: scale(1.08); }

.card-no-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
}

.card-body { padding: 0 2px; }

.card-price {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-name {
  font-size: 13px;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-city {
  font-size: 12px;
  color: var(--gray);
}

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { margin-bottom: 16px; }
.empty-text { font-size: 16px; color: var(--gray); margin-bottom: 12px; }
.empty-link { font-size: 14px; color: var(--black); border-bottom: 1px solid var(--border); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 40px 0 20px;
}

.page-link {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--black);
  transition: all .2s;
}
.page-link:hover { border-color: var(--black); }
.page-link--active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.page-dots {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
  z-index: 10;
  line-height: 1;
}
.modal-close:hover { color: var(--black); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

/* Modal gallery */
.modal-gallery {
  position: relative;
  background: var(--light);
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.modal-gallery img.active { display: block; }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.8);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}
.modal-nav:hover { background: var(--white); }
.modal-nav--prev { left: 10px; }
.modal-nav--next { right: 10px; }

.modal-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  cursor: pointer;
}
.modal-dot.active { background: var(--black); }

/* Modal info */
.modal-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.modal-price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.3;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 14px;
}

.modal-meta-row {
  display: flex;
  gap: 8px;
}
.modal-meta-label {
  color: var(--gray);
  min-width: 90px;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
  flex: 1;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .2s;
}
.modal-btn:hover { opacity: .85; }
.modal-btn--primary {
  background: var(--black);
  color: var(--white);
}
.modal-btn--secondary {
  background: var(--light);
  color: var(--black);
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-logo {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.footer-desc { font-size: 12px; color: var(--gray); font-family: 'Roboto Condensed', sans-serif; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.footer-col a { font-size: 13px; color: var(--gray); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--black); }
.footer-icon { width: 16px; height: 16px; flex-shrink: 0; }
.footer-link { color: var(--black); text-decoration: underline; }
.footer-link:hover { color: var(--black); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .header-link span { display: none; }
  .filter-toggle { display: flex; }

  .sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 200;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
  }
  .sidebar.open { display: block; }
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .layout { padding: 16px; gap: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { min-height: 300px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .logo-icon { width: 32px; height: 32px; }
  .logo-main { font-size: 16px; letter-spacing: 0; }
  .logo-sub { display: none; }
  .search-form { max-width: none; }
  .categories-scroll { padding: 8px 16px; }

  .layout { padding: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .card { padding: 6px; }
  .card-price { font-size: 14px; }
  .card-name { font-size: 12px; }

  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .chip { padding: 6px 12px; font-size: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .modal { border-radius: 0; max-height: 100vh; }
  .modal-overlay { padding: 0; }
}

/* Sidebar overlay on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.3);
  z-index: 199;
}
.sidebar-backdrop.open { display: block; }

/* ===== AUTH AREA ===== */
.auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.add-item-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.add-item-btn:hover { background: #1b5e20; }

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.login-btn:hover { opacity: .85; }

.header-link--fav {
  color: var(--gray);
  transition: color .2s;
}
.header-link--fav:hover { color: #e53935; }
.header-link--fav-active { color: #e53935; }

.user-menu { position: relative; }

.user-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--black);
  transition: border-color .2s;
}
.user-btn:hover { border-color: var(--black); }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  min-width: 140px;
  z-index: 110;
  overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--black);
  transition: background .15s;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--light); }

/* ===== FAVORITE BUTTON ON CARD ===== */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.fav-btn:hover { background: rgba(255,255,255,.9); color: #e53935; }
.fav-btn--active { color: #e53935; background: rgba(255,255,255,.9); }

/* ===== MODAL FAVORITE BUTTON ===== */
.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-fav-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.modal-fav-btn:hover { color: #e53935; border-color: #e53935; }
.modal-fav-btn--active { color: #e53935; border-color: #e53935; }

/* ===== MODAL SELLER LINK ===== */
.modal-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.seller-link {
  color: #2e7d32;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seller-link:hover { color: #1b5e20; }

/* ===== SELLER PROFILE MODAL ===== */
.modal--seller { max-width: 600px; }
.modal--oferta { max-width: 640px; max-height: 90vh; border-radius: 12px; }
.modal-body--oferta {
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px 20px 30px;
  font-size: 14px;
  line-height: 1.75;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}
.modal-body--oferta::-webkit-scrollbar { width: 4px; }
.modal-body--oferta::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 4px; }
.oferta-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #1d1d1f;
}
.oferta-subtitle {
  font-size: 15px;
  color: #86868b;
  margin-bottom: 32px;
}
.oferta-section {
  margin-bottom: 28px;
}
.oferta-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #86868b;
  margin-bottom: 12px;
}
.oferta-text {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.oferta-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}
.oferta-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: #1d1d1f;
}
.oferta-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #86868b;
}
.oferta-divider {
  height: 1px;
  background: #d2d2d7;
  margin: 28px 0;
}
.modal-body--oferta a { color: #0066cc; text-decoration: none; }
.modal-body--oferta a:hover { text-decoration: underline; }
.oferta-date {
  font-size: 13px;
  color: #86868b;
  margin-top: 24px;
}
.modal-body--seller { display: block; padding: 32px 28px; }

.seller-profile { }

.seller-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-info { flex: 1; }

.seller-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seller-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 10px;
}

.seller-username {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
}
.seller-contact-info {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.seller-stars { color: #f9a825; font-size: 16px; letter-spacing: 1px; }
.seller-rating-text { font-size: 13px; color: var(--gray); }

.seller-stats {
  font-size: 13px;
  color: var(--gray);
}

.seller-contact {
  margin-bottom: 20px;
}
.seller-contact .modal-btn {
  width: 100%;
  text-decoration: none;
}

.seller-items-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.seller-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.seller-item {
  cursor: pointer;
  transition: opacity .2s;
}
.seller-item:hover { opacity: .8; }

.seller-item-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 6px;
  background: var(--light);
}

.seller-item-no-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 6px;
}

.seller-item-price {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.seller-item-name {
  font-size: 12px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== LOGIN TOAST ===== */
.login-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  transition: bottom .3s ease;
  white-space: nowrap;
}
.login-toast.show { bottom: 24px; }

/* ===== CONTENT FULL WIDTH (favorites page) ===== */
.content--full { max-width: 1200px; margin: 0 auto; }

/* ===== MY ITEMS PAGE ===== */
.my-item-card {
  display: flex;
  flex-direction: column;
}
.my-item-card .card {
  flex: 1;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.card-badge--inactive {
  background: rgba(0,0,0,.65);
  color: #fff;
}

.my-item-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
}

.my-item-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  color: var(--black);
}
.my-item-btn:hover { border-color: var(--black); }
.my-item-btn:disabled { opacity: .5; cursor: not-allowed; }

.my-item-btn--bump {
  border-color: #2e7d32;
  color: #2e7d32;
}
.my-item-btn--bump:hover { background: #2e7d32; color: #fff; }

.my-item-btn--unpublish {
  border-color: #b71c1c;
  color: #b71c1c;
}
.my-item-btn--unpublish:hover { background: #b71c1c; color: #fff; }

.my-item-btn--edit {
  flex: 0 0 auto;
  border-color: #555;
  color: #555;
  padding: 8px 10px;
}
.my-item-btn--edit:hover { background: #555; color: #fff; }

.my-item-btn--republish {
  border-color: #2e7d32;
  color: #2e7d32;
}
.my-item-btn--republish:hover { background: #2e7d32; color: #fff; }

/* ===== EDIT MODAL ===== */
.modal--edit { max-width: 560px; }
.modal-body--edit {
  display: block;
  padding: 28px 28px 24px;
}

.edit-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.edit-row {
  margin-bottom: 14px;
}

.edit-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.edit-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.edit-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  transition: border-color .2s;
}
.edit-input:focus { border-color: var(--black); }

.edit-textarea {
  resize: vertical;
  min-height: 80px;
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.edit-actions .modal-btn { flex: 1; }

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
  .auth-area { gap: 8px; }
  .user-name { max-width: 80px; }
  .seller-items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .login-btn span { display: none; }
  .seller-items-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .edit-row-2col { grid-template-columns: 1fr; gap: 0; }
  .modal--edit { border-radius: 0; max-height: 100vh; }
}
