/* ================= SELLER PAGE ================= */

.seller-page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.25rem;
}

/* ================= SELLER HEADER ================= */

.seller-header {
  background: linear-gradient(135deg, #f7f3eb, #e5d8c1);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 100%;
}

/* AVATAR / LOGO CONTAINER */
.seller-header .avatar {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* LOGO */
.seller-logo {
  width: 90%;
  height: 90%;
  object-fit: contain;
  background: #fff;
}

/* FALLBACK INITIALEN */
.seller-initials {
  font-size: 48px;
  font-weight: 700;
  color: #b6864b;
}

/* INFO */
.seller-header h2 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  color: #333;
}

.seller-header p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* ================= LISTINGS GRID ================= */

.seller-listings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* ================= LISTING CARD ================= */

.seller-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.seller-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.seller-card-link:hover .seller-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(12, 19, 29, 0.1);
}

.seller-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.seller-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Category specific proportions */
.seller-card--cars .seller-card-image {
  aspect-ratio: 16 / 10;
}

.seller-card--cars .seller-card-img {
  width: 500px;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
}

.seller-card--properties .seller-card-img,
.seller-card--yachts .seller-card-img {
  width: 500px;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
}

.seller-card--watches .seller-card-image {
  aspect-ratio: auto;
}

.seller-card--watches .seller-card-img {
  height: 450px;
  width: auto;
}

/* Seller-Route: Herando-Platzhalter (kein Listing-Bild) — Rahmen ausfüllen */
.seller-card-img.seller-card-img--placeholder-cover {
  object-fit: cover;
  object-position: center;
}

.seller-card--watches .seller-card-img.seller-card-img--placeholder-cover {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* BODY */
.seller-card-body {
  flex: 1;
  padding: .95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
}

.seller-card-title {
  margin: 0 0 .65rem;
  font-size: 1.06rem;
  line-height: 1.35;
  color: #1f2a3b;
}

.seller-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  font-size: .93rem;
  line-height: 1.35;
  color: #4c5667;
}

/* PRICE */
.seller-card-price {
  margin-top: .9rem !important;
  margin-bottom: 0 !important;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}

.productPrice,
.listing-card .price,
.seller-card-price {
  margin-top: auto;
  font-weight: 700;
}

/* BUTTON */
.listing-card .btn-detail {
  margin-top: 1rem;
  text-align: center;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 4px;
  background: #b6864b;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s ease;
}

.listing-card .btn-detail:hover {
  background: #9c7240;
}

/* ================= META BOXES ================= */

.cartype-box {
  margin-bottom: .65rem;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.info-item i {
  color: #c98d4a;
  font-size: .95rem;
  line-height: 1;
}

/* ================= NO LISTINGS ================= */

.no-listings {
  text-align: center;
  color: #777;
  font-style: italic;
  margin-top: 2rem;
}

/* ================= PAGINATION ================= */

.pagination-numeric ul {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
  gap: .5rem;
  margin: 2rem 0;
}

.pagination-numeric a,
.pagination-numeric span {
  display: block;
  padding: .5rem .75rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: .9rem;
}

.pagination-numeric a:hover {
  background: #f0f0f0;
}

.pagination-numeric .active a {
  background: #b6864b;
  color: #fff;
  border-color: #b6864b;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .seller-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
  }

  .seller-header .avatar {
    width: 120px;
    height: 120px;
  }

  .seller-initials {
    font-size: 40px;
  }

  .seller-header h2 {
    font-size: 1.35rem;
  }

  .seller-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .seller-card-body {
    padding: .85rem .85rem .95rem;
  }

  .seller-card-title {
    font-size: 1rem;
  }

  .seller-card-meta {
    font-size: .89rem;
  }
}


/* ===== Hernando Pagination Layout ===== */

.hernando-pagination{
  width:100%;
  margin:40px auto;
}

.hernando-perpage-title{
  font-weight:600;
  margin-bottom:15px;
  font-size:16px;
}

.hernando-pagination-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.hernando-perpage{
  display:flex;
  align-items:center;
}

.hernando-perpage-select{
  width:90px !important;
}

.hernando-pagination-nav{
  display:flex;
  align-items:center;
}

.hernando-pagination-nav .pagination{
  margin:0;
  gap:6px;
}

.hernando-pagination-nav .page-item.active .page-link{
  background:#c98d4a;
  border-color:#c98d4a;
  color:#fff;
}

.hernando-pagination-nav .page-link:hover{
  background:#c98d4a;
  color:#fff;
}

.hernando-pagination-nav .page-link:focus,
.hernando-pagination-nav .page-link:active,
.hernando-pagination-nav .page-link:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* ===== Pagination Zahlen sichtbar machen ===== */

.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li a {
  min-width: 40px;
  height: 40px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A253C;
  text-decoration: none;
  font-weight: 500;
  background: #fff;
  transition: all .15s ease;
}

.pagination li a:hover {
  color: white;
  background: #c98d4a;
}

.pagination li.active a {
  background: #c98d4a;
  color: #fff;
}

/* Layout fix – alles in einer Linie */

.hernando-pagination-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:nowrap;     /* GANZ WICHTIG */
}

.hernando-perpage{
  flex:0 0 auto;
}

.hernando-pagination-nav{
  flex:1;
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 1199px) {
  .seller-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .seller-card-link--cars {
    max-width: 500px;
  }

  .seller-card-link--watches {
    width: auto;
    max-width: none;
  }

  .seller-card-link--watches .seller-card {
    min-height: 100%;
  }
}

@media (max-width: 991px) {
  .seller-page {
    padding: 1.25rem .9rem 2rem;
  }

  .seller-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-header .avatar {
    width: 132px;
    height: 132px;
  }

  .hernando-pagination-row {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 575px) {
  .seller-page {
    padding: 1rem .75rem 1.75rem;
  }

  .seller-listings-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1rem;
  }

  .seller-header {
    padding: 1rem;
    border-radius: 10px;
  }

  .seller-header .avatar {
    width: 104px;
    height: 104px;
    border-radius: 12px;
  }

  .seller-initials {
    font-size: 32px;
  }

  .seller-card-title {
    font-size: .98rem;
  }

  .seller-card-meta {
    font-size: .86rem;
    gap: .45rem .65rem;
  }

  .seller-card-price {
    font-size: 1rem;
  }

  .hernando-pagination-container {
    padding: 0;
  }

  .hernando-pagination-row {
    gap: 12px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }

  .pagination li a {
    min-width: 36px;
    height: 36px;
    border-radius: 7px;
    font-size: .88rem;
  }
}


