
/* === GLOBAL RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* === COOKIE BANNER – bottom bar (clean) === */
.cookie-banner{
  position: fixed;
  bottom: 12px;                 /* ⬅️ опускаємо нижче */
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: min(1100px, 94%);
}

/* Контейнер */
.cookie-banner__content{
  background: #ffffff;
  color: #1f2937;
  padding: 18px 18px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;       /* ⬅️ ВАЖЛИВО */
  gap: 14px;
}

/* Текст */
.cookie-banner__text p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.cookie-banner__text strong{
  color: #111827;
}

.cookie-banner__text a{
  color: #F57600;
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner__text a:hover{
  text-decoration: underline;
}

/* Кнопки */
.cookie-banner__actions{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Кнопки стиль */
.cookie-banner__actions button{
  appearance: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

/* Reject */
.cookie-banner__actions .btn-secondary{
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

.cookie-banner__actions .btn-secondary:hover{
  background:#e5e7eb;
}

/* Accept */
.cookie-banner__actions .btn-primary{
  background: #1f3a5f;   /* синьо-стальний */
  color: #ffffff;
}

.cookie-banner__actions .btn-primary:hover{
  background: #17304d;
}

/* 📱 MOBILE */
@media (max-width: 640px){
  .cookie-banner{
    bottom: 8px;
  }

  .cookie-banner__actions{
    flex-direction: column;
  }

  .cookie-banner__actions button{
    width: 100%;
    text-align: center;
  }
}
/* === FIX: cookie buttons must NOT overlap text === */
@media (min-width: 641px){
  .cookie-banner__actions{
    margin-top: 0;
  }
}


.cookie-banner__actions button{
  position: static !important;   /* ⬅️ заборона relative/absolute */
  transform: none !important;    /* ⬅️ заборона translateY */
  margin: 0 !important;
  box-shadow: none;              /* ⬅️ прибираємо "плаваючий" ефект */
}

/* DESKTOP: текстова частина підлаштовується під контент */
@media (min-width: 641px){
  .cookie-banner__text{
    min-height: auto;
  }
}

.row-banned { background:#ffe6e6; }
.row-blocked { background:#fff5e6; }

/* =========================
   Super lots PAGE (oddzielna strona)
   ========================= */
   .rvx-super-page{max-width:1200px;margin:24px auto;padding:0 16px;box-sizing:border-box;}
   .sl-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;}
   .sl-head h1{margin:0;font-size:24px;}
   .sl-sort select{padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;}
   .sl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;}
   .sl-empty{color:#64748b;padding:24px 0;}
   .sl-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:18px 0;}
   .sl-pagebtn{padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;color:#003366;background:#fff;}
   .sl-pagebtn.disabled{opacity:.5;pointer-events:none;}
   
   /* =========================
      Super Auctions (HOME block)
      ========================= */
   .rvx-super{padding:28px 16px;background:#fafafa;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7;}
   .rvx-super-head{max-width:1200px;margin:0 auto 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;}
   .rvx-super-title{margin:0;font-size:24px;color:#0f172a;}
   .rvx-super-viewall{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#003366;font-weight:600;text-decoration:none;}
   .rvx-super-viewall:hover{background:#f8fafc;}
   
   /* Контейнер секції на головній (центрує стрічку та індикатор) */
   .rvx-super-wrap{max-width:1200px;margin:0 auto;}
   
   /* Горизонтальна стрічка карток: один ряд, скрол вліво/вправо */
   .rvx-super .rvx-super-strip{
     display:flex;flex-wrap:nowrap;gap:16px;
     overflow-x:auto;overflow-y:hidden;
     padding:4px 8px 10px;
     scroll-snap-type:x mandatory;
     -webkit-overflow-scrolling:touch;
   }
   .rvx-super .rvx-super-strip::-webkit-scrollbar{height:8px;}
   .rvx-super .rvx-super-strip::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:8px;}
   
   /* ===== Картка (фіксовані розміри, видимий текст) ===== */
   .rvx-super-card,
   .rvx-super-body,
   .rvx-super-cta{box-sizing:border-box;}
   
   .rvx-super-card{
     flex:0 0 260px;width:260px;max-width:260px;   /* однакова ширина */
     display:flex;flex-direction:column;
     background:#fff;border:1px solid #e6e8ef;border-radius:16px;
     overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.06);
     transition:transform .12s ease,box-shadow .2s ease;
     scroll-snap-align:start;
     color:#0f172a;opacity:1;                      /* базовий видимий текст */
   }
   .rvx-super-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.09);}
   .rvx-super-card *, .rvx-super-card a{opacity:1;color:inherit;}
   
   /* Медія */
.rvx-super-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* карточка стабільна */
  overflow: hidden;
  background: #f5f5f5; /* фон, якщо фото не заповнює все */
  display: flex;
  align-items: center;
  justify-content: center;
}

.rvx-super-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

   .rvx-super-badge{position:absolute;top:10px;left:10px;background:#F57600;color:#fff;font-weight:700;font-size:12px;padding:4px 8px;border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.15);}
   
   /* Тіло картки */
   .rvx-super-body{padding:12px;display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:190px;}
   
   /* Заголовок: 2 рядки + "..." */
   .rvx-super-name {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    max-height: calc(1.25em * 2);
    overflow: hidden;
  }
  .rvx-super-name a {
    display: block;
    max-height: calc(1.25em * 2); /* 2 рядки */
    overflow: hidden;
    white-space: normal;
    line-height: 1.25em;
    text-decoration: none;
    color: inherit;
  }
  .rvx-super-name a:hover {
    text-decoration: underline;
  }

     /* Показувати "…" тільки коли є клас is-truncated */
.rvx-super-name a.is-truncated {
  position: relative;
}

.rvx-super-name a.is-truncated::after {
  content: '…';
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 4px;
  /* підколір картки; підлаштуй, якщо інший фон */
  background: #fff;
}

   /* Таймер */
   .rvx-super-timerline{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
   .rvx-super-meta{display:flex;justify-content:flex-start;align-items:center;margin:0;}
   .rvx-super-timer{
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    background-color: #f1f5ff;
    padding: 2px 8px;  /* зменшено внутрішній відступ */
    border-radius: 13px;
    line-height: 1.1;
    display: inline-block;
    margin-top: 2px;   /* щільніше під 'Pozostało:' */
    margin-bottom: 3px; /* менше перед кнопкою */
  }


   /* Індикатор прокрутки під стрічкою (показ/оновлення керується JS) */
   .rvx-super-scroll{position:relative;height:4px;background:#eef2f7;border-radius:999px;margin:8px 8px 0;overflow:hidden;display:none;}
   .rvx-super-thumb{position:absolute;top:0;left:0;height:100%;width:40%;background:#cbd5e1;border-radius:inherit;transition:transform .1s linear,width .1s linear;}
   
   /* Вузькі екрани — трохи компактніше */
   @media (max-width:420px){
     .rvx-super .rvx-super-strip{gap:12px;}
     .rvx-super .rvx-super-card{flex-basis:250px;width:250px;max-width:250px;}
   }
/* 1) Зблизити заголовок і ціни */
.rvx-super-body{ gap:8px; }               /* було 10px */
.rvx-super-name{ margin:0 0 4px; }        /* менший відступ знизу */

/* Рядки з цінами — підпис і сума тримаються разом */
.rvx-super-prices .rvx-super-row{
  display: flex;
  justify-content: flex-start;  /* було: space-between */
  align-items: baseline;        /* цифри рівно по базовій лінії з текстом */
  gap: 6px;                     /* менший проміжок між підписом і сумою */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Другий рядок (Cena rzeczywista) трохи спокійніший */
.rvx-super-prices .rvx-super-row.muted{
  opacity: .8;
  font-size: 13px;
  justify-content: flex-start;  /* щоб і тут не розтягувало */
  gap: 6px;
}

/* Акцент на сумі */
.rvx-super-price{
  color: #00a627;
  font-weight: 800;
  letter-spacing: .2px;
  display: inline-block;
  margin-left: 2px;             /* ще трішки ближче до підпису */
}

.rvx-super-cta:hover::after{ transform:translateX(2px); }
.rvx-super-cta:active{ transform:translateY(1px); }
.rvx-super-cta:focus-visible{ outline:2px solid #94a3b8; outline-offset:2px; }
.rvx-super-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #F57600;
  border: 2px solid #F57600;
  border-radius: 4px;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}


.rvx-cta-icon {
  font-size: 16px;
  line-height: 1;
}
.rvx-super-cta:hover {
  background-color: #F57600;
  color: #fff;
  text-decoration: none; /* прибрали підкреслення */
}

.rvx-super-cta:focus {
  text-decoration: none; /* прибрали підкреслення при фокусі */
}

/* Мобільний режим: список і пагінація сховані за замовчуванням */
@media (max-width: 480px){
  .rvx-mobile-toggle{display:block; margin:10px 0 12px;}
  .rvx-mobile-hide { display: none !important; }
  #reviews-list, #reviews-pager { transition: height .2s ease, opacity .2s ease; }
}

/* Кнопка тоглу */
.rvx-mobile-toggle #rvx-open-list{
  width:100%;
  justify-content:center;
}

/* Пейджер (кнопки ліво/право) */
#reviews-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:18px;}
#reviews-pager .rvx-page-info{font-size:13px;color:#64748b;}
#reviews-pager button[disabled]{opacity:.5;cursor:not-allowed;}

/* ===== RVX Reviews (контейнер + мобайл-відступи) ===== */
.rvx-reviews{max-width:1100px;margin:60px auto 80px;padding:0 16px;}
.rvx-reviews-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.rvx-title{margin:0;font-size:22px;}
.rvx-controls{display:flex;gap:8px;align-items:center;}
.rvx-controls select{padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;}
.rvx-btn.rvx-btn-add{padding:10px 14px;border-radius:10px;border:none;cursor:pointer;background:#003366;color:#fff;font-weight:600;}

#reviews-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
@media (max-width:480px){.rvx-reviews{padding-left:14px;padding-right:14px;}#reviews-list{grid-template-columns:1fr;}}

/* картки (класи лишаються, JS їх використовує) */
.review-card{border:1px solid #eaeaea;border-radius:12px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px;}
.review-head{display:flex;justify-content:space-between;gap:8px;align-items:center;}
.review-user{font-weight:700;color:#003366;}
.review-meta{display:flex;gap:10px;align-items:center;color:#667085;font-size:13px;}
.stars{font-size:16px;color:#F57600;letter-spacing:1px;}
.review-date{font-size:12px;color:#98A2B3;}
.review-text{font-size:14px;color:#1F2937;line-height:1.45;white-space:pre-wrap;}
.review-photo{width:100%;height:auto;border-radius:10px;border:1px solid #eee;}
.review-edited{font-size:12px;color:#98A2B3;}
#reviews-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:18px;}
#reviews-pager button{padding:8px 12px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;cursor:pointer;}
#reviews-pager button[disabled]{opacity:.5;cursor:not-allowed;}

/* ===== RVX Modal ===== */
.rvx-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:2000;}
.rvx-modal-backdrop.show{display:flex;}
.rvx-modal-card{width:min(640px,92vw);background:#fff;border:1px solid #e6e8ef;border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column;max-height:86vh;box-sizing:border-box;}
.rvx-modal-form{display:contents;}
.rvx-modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eef2f7;background:#fff;box-sizing:border-box;}
.rvx-close{background:none;border:none;font-size:22px;line-height:1;color:#6b7280;cursor:pointer;}
.rvx-close:hover{color:#111827;}
.rvx-modal-body{padding:16px 20px;display:grid;gap:14px;overflow:auto;background:#fff;box-sizing:border-box;}
.rvx-row{display:grid;gap:8px;}
.rvx-label{font-weight:600;color:#111827;}
.rvx-star-picker{display:inline-flex;gap:6px;font-size:22px;cursor:pointer;user-select:none;}
.rvx-star{color:#e5e7eb;transition:color .15s ease;pointer-events:auto;}
.rvx-star.active{color:#F57600;}
.rvx-textarea{width:100%;min-height:120px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;resize:vertical;font-size:14px;color:#111827;background:#fff;box-sizing:border-box;}
.rvx-file{display:block;}
.rvx-hint{color:#98A2B3;font-size:12px;}
.rvx-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid #eef2f7;background:#fff;box-sizing:border-box;}
.rvx-btn{padding:10px 14px;border-radius:10px;font-weight:600;cursor:pointer;transition:transform .02s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease;}
.rvx-btn:focus-visible{outline:2px solid #94a3b8;outline-offset:2px;}
.rvx-btn-secondary{background:#fff;border:1px solid #e2e8f0;color:#003366;}
.rvx-btn-secondary:hover{background:#f8fafc;}
.rvx-btn-primary{background:#F57600;border:1px solid #F57600;color:#fff;}
.rvx-btn-primary:hover{filter:brightness(0.96);}
.rvx-btn-primary:active{transform:translateY(1px);}
@media (max-width:420px){.rvx-modal-card{width:94vw;}.rvx-title{font-size:18px;}}

.rvx-modal-backdrop {
  overscroll-behavior: contain;
}

.rvx-modal-body {
  -webkit-overflow-scrolling: touch; /* плавний скрол всередині на iOS */
}
/* Панель "Filtry: ★" */
.rvx-filter-label{font-weight:600;color:#111827;margin-right:6px;}
.rvx-star-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}

.rvx-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px; border:1px solid #e2e8f0; background:#fff; cursor:pointer;
  font-size:13px; color:#0f172a;
}
.rvx-chip .rvx-chip-stars{letter-spacing:1px; color:#F57600;}
.rvx-chip .rvx-chip-count{color:#64748b;}
.rvx-chip.active{border-color:#003366; box-shadow:0 0 0 2px rgba(0,51,102,.08);}
.rvx-chip.active .rvx-chip-count{color:#003366; font-weight:600;}


.lot-grid-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
}

/* === Слайдер фото */
.lot-image-slider {
position: relative;
width: 100%;
height: auto;
}

.lot-image-slider img {
width: 100%;
border-radius: 10px;
object-fit: cover;
display: block;
}

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(255, 255, 255, 0.086);
color: #000000;
border: none;
font-size: 40px;
width: 48px;
height: 48px;
border-radius: 60%;
cursor: pointer;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s ease;
}

.slider-btn:hover {
background-color: rgba(0, 0, 0, 0.074);
}

.slider-btn.prev {
left: -3px;
}

.slider-btn.next {
right: -3px;
}

.lot-card {
position: relative; /* Додаємо для позиціювання кнопки */
}

.fav-wrapper {
position: absolute;
top: 8px;
right: 8px;
opacity: 1 !important;
display: block !important;
pointer-events: auto;
z-index: 10; /* Щоб поверх зображень, якщо треба */
}

.fav-buttonn {
background-color: #fff;
border: 1px solid #ccc;
color: #f57600;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
font-size: 17px;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, color 0.3s;
}

.fav-buttonn.active {
background-color: #f57600;
color: #fff;
border-color: #f57600;
}




@media (max-width: 992px) {
.category-lots {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 768px) {
.category-lots {
grid-template-columns: repeat(2, 1fr);
}


.body.homepage {
  
  background-size: 370px;
  background-color: #fdfdfd;
}

  body {
    margin: 5px;
    padding-top: 95px;
    background-size: 370px;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
  }
}

/* Основна картка */
.lot-card {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
min-height: 420px;
padding: 15px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
box-sizing: border-box;
transition: transform 0.2s ease;
}


.lot-card:hover {
transform: translateY(-4px);
}
/* Вирівнювання внутрішніх блоків */
.lot-card .lot-header {
font-size: 14px;
font-weight: bold;
color: #333;
margin-bottom: 4px;
text-align: left;
}




.lot-current-price-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 2px 0; /* менший відступ */
  text-align: left;
}

.lot-current-price-label .current-price {
  color: #28a745;
  font-weight: bold;
}

.current-price {
  color: #28a745;
  font-weight: bold;
}

.retailPrise {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  margin: 0 0 2px 0; /* зменшив нижній відступ */
  text-align: left;
}

.retailPrise .price-valueem {
  color: #333;
  font-weight: 600;
}

.lot-timer-container {
  margin-top: 0; /* прибрав верхній відступ */
  text-align: left;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lot-timer-container .tag-label {
  color: #003366;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.lot-timer {
  font-size: 14px;
  font-weight: bold;
  color: #003366;
  background-color: #f1f5ff;
  padding: 2px 8px;
  border-radius: 13px;
  line-height: 1.1;
  display: inline-block;
  white-space: nowrap;
}

.icon-hammer,
.icon-tag,
.icon-clock {
  font-size: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

.lot-current-price-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 2px 0;
  text-align: left;
}

.retailPrise {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  margin: 0 0 2px 0;
  text-align: left;
}

.lot-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}
.timer-icon svg {
  vertical-align: middle;
}

.lot-timer {
  font-size: 14px;
  font-weight: bold;
  color: #003366;
}
/* Заголовок — як було, щільно */
.lot-title{
  font-size:16px;font-weight:600;color:#000;
  margin:6px 0 4px 0;text-align:left;
  line-height:1.25;max-height:calc(1.25em * 2);overflow:hidden;
}

/* Рядковий блок (іконка + лейбл + значення) */
.lot-row{
  display:flex;align-items:center;gap:6px;
  margin:0 0 4px 0;line-height:1.2;
}

.lot-icon svg{display:block; width:16px; height:16px; fill:#111;}
.lot-label{color:#444;font-size:14px;font-weight:600;}
.lot-value{color:#333;font-size:14px;font-weight:500;}
.lot-value--current{color:#28a745;font-weight:700;}

/* цифри RRP темніші */
.price-valueem{color:#333;font-weight:600}

/* таймер без фонів/піллюль, чистий текст */
.lot-row--timer .lot-timer-text{
  color:#0b3a6d;font-weight:700;font-size:14px;
}

/* Базові кольори й розміри для рядка */
.lot-card .lot-row {
  color: #1f2937; /* базовий колір для спадкування */
}

.lot-card .lot-row .lot-label {
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.lot-card .lot-row .lot-value {
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

/* Зелена актуальна ставка */
.lot-card .lot-row .lot-value--current {
  color: #28a745 !important;
  font-weight: 700;
}

/* SVG-ікони не впливають на текст */
.lot-card .lot-row .lot-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: #111;
  flex: none;
}

.lot-timer-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: white;
  color: #333;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  z-index: 10;
}


.lot-card .terms-checkbox {
display: flex;
align-items: center;
font-size: 12px;
color: #cc0000;
margin: 8px 0 10px 0;
text-align: left;
}


.lot-card .terms-checkbox input {
margin-right: 1px;
}

.winner-bidstatus {
text-align: center;
margin: 0 auto 6px auto;
max-width: 90%;
padding: 4px 10px;
border-radius: 6px;
font-size: 10px;
font-weight: 600;
box-sizing: border-box;
}
.winner-cardgreen,
.winner-cardred {
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 9px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.winner-cardgreen {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.winner-cardred {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.lot-card .quick-bid-btn {
background: #F57600;
color: white;
font-weight: bold;
padding: 10px 14px;
text-align: center;
border-radius: 6px;
font-size: 15px;
border: none;
cursor: pointer;
transition: background 0.3s;
}


.lot-card .quick-bid-btn:hover {
background: #d65a00;
}


/* Зображення */
.lot-card img {
width: 100%;
height: 180px;
object-fit: contain;
border-radius: 6px;
}





  

.center-heading {
text-align: center;
font-size: 28px;
margin-bottom: 20px;
color: #003366;
}

.empty-message-wrapper {
text-align: center;
font-size: 18px;
padding: 40px 0;
color: #888;
}

.filter-dropdown-wrapper {
display: flex;
justify-content: center;
margin-bottom: 20px;
position: relative;
}

.filter-main-btn {
padding: 10px 16px;
background-color: #F57600;
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.filter-main-btn:hover {
background-color: #d96500;
}

.filter-dropdown {
display: none;
position: absolute;
top: 110%;
left: 50%;
transform: translateX(-50%);
background-color: white;
border: 1px solid #ddd;
border-radius: 6px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 10;
min-width: 220px;
overflow: hidden;
}

.filter-dropdown .filter-option {
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.2s;
font-size: 15px;
}

.filter-dropdown .filter-option:hover {
background-color: #f0f0f0;
}



@media (max-width: 768px) {
.category-lots {
grid-template-columns: repeat(2, 1fr);
}
.category-lots {
  display: grid;
  gap: 7px;
  padding: 6px;
  }
.filter-main-btn {
width: 100%;
text-align: center;
}

.filter-dropdown {
width: 100%;
left: 0;
transform: none;
}


  /* Контейнер для всієї секції */
.my-bids-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  }
  .my-bids-wrapper {
    padding: 40px 6px;
    max-width: 1200px;
    margin: 0 auto;
    }
  
}
  @media (min-width: 769px) {
    .category-lots {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 25px;
      padding: 20px;
      }
/* Центрування заголовку */
.center-heading {
font-size: 24px;
margin-bottom: 0px;
color: #003366;
}

/* Контейнер для всієї секції */
.my-bids-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
box-sizing: border-box;
}
.my-bids-wrapper {
  padding: 40px 6px;
  max-width: 1200px;
  margin: 0 auto;
  }

}

.filter-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.filter-main-btn {
  background-color: #003366;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: white;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 999;
  min-width: 220px;
  padding: 5px 0;
}

.filter-dropdown div {
  padding: 12px 16px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}

.filter-dropdown div:hover {
  background-color: #f5f5f5;
}

.filter-option.active {
  background-color: #ff6600;
  color: white;
  font-weight: bold;
}

.filter-dropdown.active {
  display: block;
}


 /* === Основна обгортка */
  .lot-page-wrapper {
    padding-top: 120px;
    background-color: #f8f9fa; /* світлий фон */
    min-height: 100vh;
    box-sizing: border-box;
  }


  .center-heading {
    font-size: 24px;
    margin-bottom: 20px;
    color: #003366;
    text-align: center;
  }



  

  .tag-label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 3px;
    font-size: 14px;
  }


  .bid-button {
    background-color: #ff6600;
    border: none;
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }



.bid-button {
  background-color: #ff6600;
  border: none;
  color: white;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.bid-button:hover {
  background-color: #e05800;
}



#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 85px;
  right: 30px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: #ff6600;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #e65c00;
}

@media (min-width: 769px) {

.body.homepage {
  background-size: 370px;
  background-color: #fdfdfd;
}

  body {
    margin: 5px;
    padding-top: 58px;
    background-size: 370px;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
  }
}  
@media (min-width: 769px) {

      /* Для комп'ютера */
      header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 65px; /* ФІКСОВАНА висота */
      background: white;
      z-index: 999;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 1px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
  
  .header-container nav {
        display: flex;
        gap: 20px;
        align-items: center;
      }
    }

/* (опціонально) Ховати на десктопі */
@media (min-width: 769px) {
  #menuToggle { display: none; }
}

#menuToggle {
  all: unset;
  position: absolute;
  top: 50%;
  right: calc(env(safe-area-inset-right, 0px) + clamp(26px, 1.6vw, 20px));
  transform: translateY(-50%);
  width: 10px; height: 44px; display: grid; place-items: center;
  cursor: pointer; z-index: 10010; font-size: 27px; color: #003366;
}





  #closeMenu {
    align-self: flex-end;
    margin-bottom: 8px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #003366;
  }

#sideMenu {
  position: fixed;
  top: 8px;                 /* ⬅ майже від верху */
  right: 0;

  width: 260px;
  max-height: calc(100vh - 16px); /* ⬅ вміщується в екран */
  
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.18);

  display: flex;
  flex-direction: column;

  padding: 12px 14px;       /* ⬅ акуратні відступи */
  gap: 6px;

  overflow-y: auto;         /* ⬅ ВАЖЛИВО: скрол всередині */
  -webkit-overflow-scrolling: touch;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 1000;
  border-radius: 12px 0 0 12px;
}


#sideMenu a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 8px;

  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 15px;
}

#sideMenu a:hover {
  background: #f1f5f9;
}

    #sideMenu.show {
      transform: translateX(0%);
    }


.alert.success {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
}
.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}


 


.lot-ended {
    border: 2px solid red;
    opacity: 0.7;
  }
.lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
  }
 

.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin: 2px;
  }
  .filter-button {
    background-color: #003366;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .filter-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 999;
    min-width: 220px;
    padding: 5px 0;
  }
  .filter-dropdown.active {
    display: block;
  }
  .filter-dropdown button {
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    cursor: pointer;
  }
  .filter-dropdown button:hover {
    background-color: #f57600;
    color: white;
  }
  
.filter-item {
    position: relative;
  }
  
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    display: none; /* За замовчуванням приховано */
    z-index: 10000;
  }
  
  .dropdown.active {
    display: block; /* Покажемо фільтр, коли активований */
  }
  
  .dropdown-close {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 10px;
  }
  
  .filter-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }

  


.lot-image-slider {
    text-align: center;
    margin-bottom: 10px;
  }

  
  .lot-image-slider img {
    width: 80%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
  
  



  .lot-info p {
    font-size: 14px;
    color: #003366;
    margin: 4px 0;
  }
  
  .quick-bid {
    background-color: #f57600;
    color: white;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .custom-bid {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
  }
  
  .custom-bid input {
    width: 60%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .submit-bid {
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
  }

@media (max-width: 768px) {
  
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background-color: #ffffff;
 border: 2px solid #b3aeae;
 border-radius: 5px;
  justify-content: center;
  box-sizing: border-box;
  margin: 1px 0 10px 0px ;
  margin-top: 53px;
  padding: 10px 0;
  width: 100%;
}
  
}

@media (min-width: 769px) {

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background-color: #ffffff;
   border: 2px solid #003366;
   border-radius: 5px;
    justify-content: center;
    box-sizing: border-box;
    margin: 1px 0 2px 0 ;
    margin-top: 20px;
    padding: 20px 0;
    width: 100%;
  }
 

}
  .category-nav a {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #003366;
  }
  .category-nav a.active {
    background-color: #F57600;
    color: white;
  }
  

  @media (max-width: 768px) {
    
  
    .banner {
      display: block;
      width: 100%;
      max-height: 300px;
      object-fit: cover;
    }
  }



.favorites-container {
    display: flex;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 30px;
  }
  
  .favorite-lot {
    
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    width: 280px;
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  .favorite-lot:hover {
    transform: scale(1.02);
  }
  
  .favorite-lot img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  .favorite-lot h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #003366;
  }
  
  .favorite-lot p {
    margin: 0 0 10px;
    color: #444;
    font-weight: bold;
  }
  
  .favorite-lot a {
    text-decoration: none;
    background-color: #F57600;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
  }

.end-date {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: 2px solid #eee;
    border-radius: 20px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
.lot-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  
  .info-tag {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: 2px solid #eee;
    border-radius: 20px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .tag-label {
    color: #003366;
    margin-right: 6px;
    font-weight: bold;
  }
  
  .tag-value.orange {
    color: #F57600;
  }
  
  .tag-value.grey {
    color: #333;
  }
  
  .tag-value.red {
    color: #d60000;
  }
@media (max-width: 768px) {
  .header-container {
    padding: 6px  41px; /* менші внутрішні відступи */
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header-container nav {
    display: flex;
    gap: 20px;
    align-items: center;
  }

    header {
      padding-bottom: 0px;
      margin-bottom: 0px;
    }
  
    
    input[type="number"] {
        font-size: 16px;
        height: auto;
      }
   
    input[type="number"],
input[type="text"],
input {
  font-size: 16px !important;
}
  }

  @media (min-width: 769px) {

/* Десктопна форма */
.search-form-desktop {
    display: flex;
    gap: 8px;
    max-width: 500px;
    flex: 1;
  }
  
  .search-form-desktop input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #ccc;
    border-radius: 30px;
    font-size: 13px;
  }
  
  .search-form-desktop button {
    padding: 8px 14px;
    background-color: #F57600;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
  }
  
  /* Мобільна форма */
  .search-form-mobile-wrapper {
    display: none;
  }
}
  /* Лише для телефону */
  @media (max-width: 768px) {
    .search-form-desktop {
      display: none;
    }
 
    
      header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1000;
      }
      .search-form-mobile-wrapper {
        position: fixed; /* краще зробити фіксованою щоб не їздила */
        top: 65px; /* під header, якщо header 65px */
        left: 0;
        width: 100%;
        z-index: 1001;
        display: flex;
        justify-content: center;
        padding: 10px 10px; /* ВАЖЛИВО: більше падінгів! (раніше було 1px) */
        background: white;
        box-sizing: border-box;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* для краси */
    }
  
    .search-form-mobile {
      display: flex;
      width: 100%;
      max-width: 95%;
    }
  
    .search-form-mobile input {
      flex: 1;
      padding: 10px 16px;
      border: 2px solid #ccc;
      border-radius: 30px 0 0 30px;
    }
  
    .search-form-mobile button {
      padding: 10px 16px;
      background-color: #f07400;
      color: white;
      border: none;
      border-radius: 0 30px 30px 0;
    }
  }


 .back-button-wrapper {
    margin-bottom: 10px;
  }
  
  .back-button {
    display: inline-block;
    background-color: #fdfdfdb9;
    color: rgb(13, 11, 11);
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .back-button:hover {
    background-color: #e56700;
  }



  
  .category-desktop {
     display: block;
      background: white;
      padding: 6px 12px;
      border-radius: 6px;
      border: 2px solid #090807;
      font-size: 15px;
      margin: 10px 0 15px 10px;
      text-align: center;
      width: fit-content;
  }
  
  .category-label {
    color: #003366;
    font-weight: bold;
  }
  
  .category-value {
    color: #F57600;
    font-weight: bold;
  }
/* Основи */
.lot-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
  }
  
  .lot-left {
    flex: 1;
    min-width: 300px;
  }
  
  .lot-right {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 9px;

    padding: 20px;
  }


 
  
  /* Лише для телефону */
      .share-icon {
        width: 42px !important;/* збільш розмір */
        height: 52px !important;
      }
      .share-section img {
        width: 34px;
        height: 34px;
        border: 2px solid orange;
        border-radius: 50%;
        padding: 5px;
        background: white;
      }
    .share-buttons {
        display: flex;
        margin-left: 70px;
        margin-top: 20px;
      }
      
      .share-buttons a {
        background-color: white;
        border: 2px solid #F57600;
        border-radius: 50%;
        padding: 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
      }
      
      .share-buttons a:hover {
        transform: scale(1.05);
      }
      
      .share-buttons img {
        width: 35px;
        height: 35px;
        object-fit: contain;
      }
    .category-mobile {
      display: block;
      background: white;
      padding: 6px 6px;
      border-radius: 6px;
      border: 2px solid #090807;
      font-size: 13px;
      margin: 1px 0 1px 1px;
      text-align: center;
      width: fit-content;
    }
    .category-mobile-wrapper {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        margin: 8px 0 10px;
      }

      .back-button-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1px 12px;
        background: none;
        position: relative;
        z-index: 10;
        margin-bottom: 0px;
      }
    
      .back-button {
        font-size: 14px;
        color: #003366;
        text-decoration: none;
        font-weight: bold;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 6px 10px;
        background-color: #ffffffbe;
      }
    
     
      
      .fav-message {
        color: rgb(69, 112, 255);
        border: 2px solid rgb(255, 255, 255);
        font-size: 18px;
        margin-top: 6px;
        text-align: right;
        padding-right: 66px;
        white-space: normal;
        max-width: 200px;
        line-height: 1.0;
      }

     .category-desktop {
      display: none !important;
     }

 /* СТИЛІ ДЛЯ ГОЛОВНОЇ СТОРІНКИ */

/* Загальні стилі банера */

  
  
  /* Фіксована висота банера на десктопі */
@media (min-width: 769px) {
    .banner {
      margin-top: 0;
      max-height: 500px;
    }
.banner {
    background-image: url('/img/2banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;       /* або contain */
    background-position: center;
    width: 100%;
    height: 600px;                /* або скільки тобі треба */
  }
  .banner h1 {
    padding-top: 120px;
    margin-top: 0px;
    margin-bottom: 40px;
    font-size: 55px;
    color: transparent; /* робимо текст прозорим */
  -webkit-text-stroke: 2px white; /* біла обводка */
  font-weight: bold;

  }

  .btn-primary {
    position: absolute;
    background-color: #F57600;
top: 42%; /* приблизно рівень столу — можеш змінювати */
    left: 48%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 10px 22px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
  }
  
  .btn-primary:hover {
    background-color: #d95c00;
  }
  
}

@media (max-width: 480px) {
  .banner .btn-primary {
    bottom: -20px;
  }
}
  
  /* ДЛЯ МОБІЛЬНИХ */
  @media (max-width: 768px) {
    
    .banner {
        background-image: url('/img/banner.jpg');
        background-repeat: no-repeat;
        background-size: cover;       /* або contain */
        background-position: center;
        width: 100%;
        height: 300px;                /* або скільки тобі треба */
      }
  .banner h1 {
    padding-top: 10px;
    margin-top: 48px;
    margin-bottom: 40px;
    font-size: 25px;
    color: #003366; /* сам текст */
    text-shadow:
      -1px -1px 0 #f38e2f,
       1px -1px 0  #f38e2f,
      -1px  1px 0 #f38e2f,
       1px  1px 0 #f38e2f;
  
  }
.banner {
  position: relative;   /* ⬅️ обовʼязково */
  overflow: visible;    /* ⬅️ щоб кнопка могла “вийти” вниз */
} 

.banner .btn-primary {
  position: absolute;
  left: 50%;
  bottom: -24px;              /* ⬅️ ГОЛОВНИЙ МОМЕНТ */
  transform: translateX(-50%);
  z-index: 10;
} 
  .btn-primary {
    position: absolute;
    background-color: #F57600;
    color: white;
    padding: 10px 22px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
  }
  
  .btn-primary:hover {
    background-color: #d95c00;
  }
}
  
      

 
  .category-badge {
    background: #F57600;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    font-size: 15px;
    margin-bottom: 15px;
  }
  a {
    color: #003366;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Заголовки */
  h1, h2, h3 {
    color: #003366;
    margin-top: 0;
  }
  
  h1 {
    font-size: 32px;
    text-align: center;
    margin-top: 40px;
  }
  
  /* Кнопки */
  .btn, .btn-small {
    background-color: #F57600;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
  }
  
  .btn:hover, .btn-small:hover {
    background-color: #e56700;
  }
  
  /* Категорії */
  .categories {
    padding: 40px 20px;
    background-color: #f0f0f0;
  }
  
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }
  
  .category-grid a {
    background: white;
    border: 1px solid #003366;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    color: #003366;
  }
  
  .category-grid a:hover {
    border-color: #F57600;
  }
  
  
  /* Банер */

  
  

  .lot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
 
  
  
  
  .timer {
    margin: 10px 0;
    font-weight: bold;
    color: #F57600;
  }
  
  /* Інструкції */
  .how-it-works {
    padding: 40px 20px;
    background: #f0f0f0;
    text-align: center;
  }
  

@media (max-width: 480px) {
  .steps {
    gap: 10px;
  }

  .steps div {
    padding: 12px;
    font-size: 14px;
  }
}
.steps div {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;

  padding: clamp(10px, 2.5vw, 20px);

  color: #003366;
  font-weight: 600;
  text-align: center;

  /* 🔑 ГОЛОВНА ЛОГІКА */
  flex: 1 1 0;          /* рівномірна ширина */
  min-width: 0;         /* дозволяє стискатися */

  white-space: normal; /* ⬅️ ДОЗВОЛЯЄ ПЕРЕНОС ТЕКСТУ */
  word-break: break-word;
  overflow-wrap: anywhere;

  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.25;
}
.steps {
  display: flex;
  justify-content: center;
  align-items: stretch;      /* ⬅️ всі блоки однакової висоти */
  gap: clamp(8px, 2.5vw, 24px);
  margin-top: 20px;

  flex-wrap: nowrap;         /* ⬅️ один ряд */
  width: 100%;
  max-width: 100%;
}


.steps div {
  overflow: hidden;
  text-overflow: ellipsis; /* якщо зовсім мало місця */
}
  
  /* Мобільне меню */
 
  .accordion {
    width: 100%;
    margin-top: 30px;
  }
  
  .accordion-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.3s ease;
  }
  
  .accordion-header {
    background: none;
    border: 3px solid #040303;
    color: #333;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: 0.2s;
  }
  
  .accordion-header:hover {
    background: #f5f5f5;
  }
  
  .accordion-header .icon {
    font-size: 18px;
    color: #F57600;
  }
  
  .accordion-content {
    display: none;
    padding: 15px 20px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #444;
  }
  
  .accordion-header.active + .accordion-content {
    display: block;
  }
  .winner-green {
    background-color: #e6f4ea;
    border: 2px solid #28a745;
    padding: 10px;
    border-radius: 8px;
    color: #28a745;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .winner-red {
    background-color: #fdecea;
    border: 2px solid #dc3545;
    padding: 10px;
    border-radius: 8px;
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
  }
  
  /* Десктоп — бок о бок */
  .lot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
  
  .lot-info {
    flex: 1;
    min-width: 0;
  }
  
  .bid-form-wrapper {
    flex: 0 0 400px;
    max-width: 400px;
  }
  

  @media (max-width: 768px) {
    .lot-wrapper {
        flex-direction: column;
        padding: 0 12px;
      }
       
      .lot-left {
        order: 2;
      }
      
      .lot-right {
        order: 1;
        background: #ffffff;
        padding: 20px;
        margin-top: -25px;
         /* форма ставок буде першою */
      }
   
    .lot-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
      }
    
    .bid-form-wrapper {
      order: 1; /* перша на телефоні */
      max-width: 500px;
      width: 100%;
      margin: 0 auto;
      padding: 0 16px; /* Відступи зліва і справа на телефоні */
      box-sizing: border-box;
    }
  
    .lot-category {
      order: 3;
    }
  
    .lot-images {
      order: 4;
    }
  
    .accordion {
      order: 5;
    }
    
  
  }


  .top-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
  }
  
  .orange-link {
    color: #F57600;
    border-color: #F57600;
  }
  
  .orange-link:hover {
    color: #c45700;
    border-color: #c45700;
  }
  
  .blue-link {
    color: #003366;
    border-color: #003366;
    margin-left: 16px;
  }
  
  .blue-link:hover {
    color: #001d3d;
    border-color: #001d3d;
  }

    @media (max-width: 768px) {
      .desktop-nav {
        display: none;
      }
    }
  
    
.lot-form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px;
}

.bid-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}


.search-results-wrapper {
    padding: 100px 20px 40px;
    background: #fafafa;
  }
  
  .search-results-wrapper h2 {
    color: #003366;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .no-results {
    text-align: center;
    font-size: 18px;
    color: #888;
  }
  
  .lot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  
  /* ===== MOBILE COMPACT PATCH (only phones) ===== */
@media (max-width: 480px) {

  /* Карта не тягнеться даремно і має менші поля */
  .lot-card{
    min-height: unset;   /* прибираємо 420px */
    height: auto;
    padding: 10px 12px;
    gap: 6px;            /* якщо браузер рахує gap у flex-колонці */
  }

  /* Зображення на всю ширину, без “80%” */
  .lot-image-slider{ margin-bottom: 8px; }
  .lot-image-slider img{ width:100% !important; max-width:100% !important; }

  /* Заголовок: щільніше, максимум 2 рядки */
  .lot-title{
    margin: 4px 0 2px 0;
    line-height: 1.2;
    max-height: calc(1.2em * 2);
  }

  /* Рядки (іконка + лейбл + значення) в один ритм */
  .lot-row{
    margin: 0;                   /* було 0 0 4px */
    gap: 4px;                    /* було 6px */
    line-height: 1.15;
    white-space: nowrap;
  }
  .lot-label{ font-size: 13px; }
  .lot-value{ font-size: 13px; }

  /* “Cena sklepowa” — ще ближче */
  .reailPrise, .lot-current-price-label{ margin: 0; line-height: 1.15; }

  /* Таймер в один ряд та без лишніх відступів */
  .lot-timer-container{
    margin: 0;
    gap: 6px;
    line-height: 1.1;
  }
  .lot-timer{ padding: 0; background: transparent; border-radius: 0; }

 
}

/* Поки ми на першій сторінці та pageSize=5 — ховаємо все понад 5, щоб не було ривків при першому рендері */
#reviews-list.rvx-collapsed .review-card:nth-child(n+6){ display:none; }




/* ===============================
   MOBILE PRICE RIGHT ALIGN FIX
   =============================== */


@media (max-width: 480px) {

  .lot-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;   /* ⬅️ КЛЮЧ */
  }

  .lot-row.is-wrapped {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }

  .lot-row.is-wrapped .lot-value {
    width: 100%;
    text-align: center;
    margin-top: 2px;
    font-weight: 700;
    white-space: nowrap;
  }

  .price-number,
  .price-currency {
    white-space: nowrap;
  }
}
