/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ======================================
   BEGINN ABS CSS
   ====================================== */

/* ==== GRID-LAYOUT FÜR DIE KATALOGLISTE ==== */

/* Wrapper um [abs_catalog_position_list] */
.abs-auction-items {
  display: grid;
  grid-template-columns: 1fr;      /* small screen: bis 640px -> 1 Spalte */
  gap: 1.5rem;                     /* Abstand zwischen den Kacheln */
}

/* medium screen: >640px bis 1024px -> 2 Spalten */
@media (min-width: 641px) and (max-width: 1024px) {
  .abs-auction-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* large screen: >1024px -> 3 Spalten */
@media (min-width: 1025px) {
  .abs-auction-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==== KACHEL-STYLING FÜR EINZELNE LOSE ==== */

.abs-lot-card {
  display: flex;
  flex-direction: column;

  height: 100%;

  /*border-radius: 4px;*/
  box-sizing: border-box;
  background: #fff;

  transition: box-shadow 0.2s ease;
}

/* Hover-Effekt (optional, aber hübsch) */
.abs-lot-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}


/* ==== BILD-BEREICH (2:3 FORMAT, OBEN) ==== */

.abs-lot-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;             /* festes Bildverhältnis 2:3 */
  overflow: hidden;
  /*border-radius: 3px;*/
  display: block;
}

/* Bild passt sich in Container ein, behält Seitenverhältnis */
.abs-lot-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;     /* Bild komplett anzeigen */
  object-position: center; /* sauber zentrieren */
  background: #ddd;     /* optional: dezenter Hintergrund hinter „Rändern“ */
}



/* ==== TEXT-BEREICH (UNTEN) ==== */

.abs-lot-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-style: solid;
  border-color: #ddd;
  border-width: 0 2px 2px 2px;
}

/* Losnummer */
.abs-lot-card-lotid {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

/* Titel */
.abs-lot-card-title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1rem;
  line-height: 1.25;
}

.abs-lot-card-title a {
  text-decoration: none;
  color: inherit;
}

.abs-lot-card-title b,
.abs-lot-card-title strong {
  font-weight: inherit;  /* oder normal */
}


/* Beschreibung (volle Länge) */
.abs-lot-card-description {
  margin-bottom: 0.8rem;
}


/* ==== PREIS-BEREICH ==== */

.abs-lot-card-meta {
  margin: 0.8rem 0 1.25rem 0;
}

.abs-lot-card-meta-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

.abs-lot-card-meta-row dt {
  font-weight: 600;
}

.abs-lot-card-meta-row dd {
  margin: 0;
}


/* ==== AKTIONEN (BUTTONS) UNTEN AN DER KACHEL ==== */

.abs-lot-card-actions {
  margin-top: auto;                /* schiebt Bereich an das Kachelende */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

/* Widgets sauber nebeneinander */
.abs-lot-card-actions > div {
  display: flex;
  align-items: center;
}


/* ==== Pagination ==== */

.abs-auction-pagination {
	text-align: center;
	margin: 1rem 0;
	line-height: 2.5;
}
.abs-auction-pagination a,
.abs-auction-pagination b {
    padding: 6px 12.09px;
	border: 1.5px solid #ccc;
	border-radius: 6px;
}
.abs-auction-pagination a {
	color: #000;
}
.abs-auction-pagination a:hover,
.abs-auction-pagination b {
	color: #fff;
	border: 1.5px solid red;
	background-color: red;
	text-decoration: none !important;
}
.abs-auction-pagination a .arrow,
.abs-auction-pagination a .arrow {
    font-size: 1.8em;      /* Pfeil größer */
    line-height: 1;
    display: inline-block; /* erlaubt sauberes Skalieren */
    vertical-align: -2.5px;
    font-family: 'nunito-300';
}
.abs-pagination-next,
.abs-pagination-next .arrow,
.abs-pagination-prev,
.abs-pagination-prev .arrow{
    white-space: nowrap;
}

/* ======================================
   ENDE ABS CSS
   ====================================== */


/* ======================================
   TOOLBAR: SUCHE + ITEMS PER PAGE
   ====================================== */

/* Gesamt-Toolbar */
.abs-catalog-toolbar {
  margin-bottom: 1.5rem;
}

/* Innerer Bereich: Suche links, Items per Page rechts */
.abs-catalog-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;            /* alles auf einer Linie */
  justify-content: space-between;
}

/* Blöcke links / rechts */
.abs-catalog-toolbar-left,
.abs-catalog-toolbar-right {
  display: flex;
  flex-wrap: wrap;
}

/* SUCHFORM-GRUNDLAYOUT */
.abs-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* Label + Feld in einer Zeile */
.abs-search-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.abs-search-label {
  font-size: 0.85rem;
  opacity: 0.8;
  white-space: nowrap;
}

/* Suchfeld + Button direkt nebeneinander */
.abs-search-text-group {
  display: flex;
}

/* ========= gleiche Höhe für alle Controls ========= */

.abs-search-text-input,
.abs-search-category-select,
.abs-items-per-page-select,
.abs-search-submit {
  height: 2.4rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
  font-size: 0.9rem;
}

/* Search-Input (links) */
.abs-search-text-input {
  flex: 1;
  border-radius: 4px 0 0 4px;
  border: 1px solid #ccc;
}

/* Kategorie-Select */
.abs-search-category-select {
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Such-Button (rechts „angestückelt“) */
.abs-search-submit {
  border-radius: 0 4px 4px 0;
  border: 1px solid #444;
  background: #444;
  color: #fff;
  cursor: pointer;
  margin-left: -1px; /* Doppelkante vermeiden */
}

.abs-search-submit:hover {
  filter: brightness(1.05);
}

/* Items-per-page rechts */
.abs-items-per-page-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.abs-items-per-page-label {
  font-size: 0.85rem;
  opacity: 0.8;
  white-space: nowrap;
}

.abs-items-per-page-select {
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* ======================================
   MOBILE: ACCORDION / DROPDOWN
   ====================================== */

.abs-catalog-toolbar-toggle {
  display: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f4f4f4;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.abs-catalog-toolbar-toggle::after {
  content: "▾";
  float: right;
}

.abs-catalog-toolbar.is-open .abs-catalog-toolbar-toggle::after {
  content: "▴";
}

@media (max-width: 640px) {

  .abs-catalog-toolbar-toggle {
    display: block;
  }

  .abs-catalog-toolbar-inner {
    display: none;
    flex-direction: column;
    margin-top: 0.75rem;
	gap: 0.5rem;
  }

  .abs-catalog-toolbar.is-open .abs-catalog-toolbar-inner {
    display: flex;
  }

  .abs-catalog-toolbar-left,
  .abs-catalog-toolbar-right {
    width: 100%;
  }

  .abs-search-form {
    flex-direction: column;
    align-items: stretch;
	gap: 0.5rem;
  }

  .abs-search-field {
    width: 100%;
    justify-content: flex-start;
  }

  .abs-search-text-group {
    flex: 1;
  }

  .abs-items-per-page-form {
    justify-content: flex-start;
  }
}

@media (min-width: 641px) {
  .abs-catalog-toolbar-inner {
    display: flex;
  }

  .abs-catalog-toolbar-toggle {
    display: none;
  }
}







/* ======================================
   LOS-DETAILSEITE
   ====================================== */

.lot-images {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;

  width: 100%;               /* ZWINGEND */
  max-width: 100%;           /* Sicherheit */

  aspect-ratio: 3 / 2;       /* 2:3 Höhe:Breite */
  background-color: #ddd;
}

.lot-image-slider {
  width: 100%;               /* ZWINGEND */
  height: 100%;              /* ZWINGEND */
}

.lot-image-slider > * {
  width: 100%;               /* ZWINGEND */
  height: 100%;              /* ZWINGEND */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lot-image-slider img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #f7f7f7;
}

/* Titel */
.lot-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lot-title-lotid {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.lot-title-headline {
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Textbereich */
.lot-meta {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Beschreibung */
.lot-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Preise */
.lot-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 0;
  background: none;
  border: none;
}

.lot-price-item {
  margin: 0;
  font-size: 0.95rem;
}

.lot-price-item strong {
  font-weight: 600;
}

/* Aktionen */
.lot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: auto;
}

.lot-actions .fusion-button {
  margin: 0;
}

/* ======================================
   SLIDER-PFEILE (AVADA BUTTONS)
   ====================================== */

.lot-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: #fff;
  color: var(--awb-color5);
  border: 2px solid var(--awb-color5);
  font-size: 1.5rem;
  font-family: nunito-700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lot-slider-arrow:hover{
	color: #fff;
	background: var(--awb-color5);
}

.lot-slider-arrow,
.lot-slider-arrow:hover,
.lot-slider-arrow:focus,
.lot-slider-arrow:visited {
  text-decoration: none !important;
}

.lot-slider-prev { left: 0.75rem; }
.lot-slider-next { right: 0.75rem; }

/* ======================================
   DESKTOP: SLIDER 2/3 — INFOS 1/3
   ====================================== */

@media (min-width: 1025px) {
  
	.lot-detail {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 1.5rem;
		background: #fff;
		box-sizing: border-box;
	}

  .lot-images {
    flex: 0 0 66.666%;
  }

  .lot-meta {
    flex: 0 0 33.333%;
  }
}
