/**
 * Category Page Improvements
 * Poprawa strony kategorii - sortowanie, wyniki, odstępy
 */

/* ===============================================
   LOGO W STOPCE - nowe logo z zachowaniem rozmiaru
   =============================================== */

/* Białe półkole - przywrócenie zaokrąglenia */
footer#colophon .footer-top:before {
  content: '' !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 250px !important;
  border-radius: 0 0 50% 50% !important;
  background-color: #fff !important;
  background-image: url('https://www.e-venus.pl/wp-content/uploads/2025/12/logo_full_e-venus.jpg') !important;
  background-size: 180px auto !important;
  background-repeat: no-repeat !important;
  background-position: center 60px !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
}

/* Ikony social media - pozycja pod logo */
footer#colophon .footer-social-icons {
  top: 170px !important;
  z-index: 2 !important;
}

/* ===============================================
   ODSTĘP NAD TYTUŁEM KATEGORII
   =============================================== */
.woocommerce-products-header {
  margin-top: 2rem !important;
  padding-top: 1rem !important;
}

/* Tytuł kategorii */
.woocommerce-products-header__title.page-title {
  margin-bottom: 1.5rem !important;
}

/* ===============================================
   KONTENER SORTOWANIA I WYNIKÓW
   =============================================== */
.woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-result-count {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  color: #333 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0.5em 0 !important;
}

/* ===============================================
   SELECT "POKAŻ" - ilość elementów na stronie
   =============================================== */
.vg-sort-show {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #333 !important;
  margin-left: 1.5rem !important;
}

.vg-sort-show select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #fff !important;
  border: 2px solid #1C5EA8 !important;
  border-radius: 6px !important;
  padding: 0.4em 2em 0.4em 0.8em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1C5EA8 !important;
  cursor: pointer !important;
  min-width: 60px !important;
  text-align: center !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23205bab' d='M6 8L2 4h8z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5em center !important;
  transition: all 0.2s ease !important;
}

.vg-sort-show select:hover {
  background-color: #f5f8fc !important;
  border-color: #164B87 !important;
}

.vg-sort-show select:focus {
  outline: none !important;
  border-color: #164B87 !important;
  box-shadow: 0 0 0 3px rgba(32, 91, 171, 0.15) !important;
}

/* ===============================================
   SORTOWANIE - ulepszony wygląd
   =============================================== */
.woocommerce-ordering {
  margin-bottom: 1.5rem !important;
  position: relative !important;
}

.woocommerce-ordering select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #1C5EA8 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 0.75em 3em 0.75em 1.5em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  min-width: 220px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-ordering select:hover {
  background-color: #164B87 !important;
}

.woocommerce-ordering select:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(32, 91, 171, 0.3) !important;
}

.woocommerce-ordering select option {
  background-color: #fff !important;
  color: #333 !important;
  padding: 10px !important;
}

/* Ikona strzałki dla sortowania */
.woocommerce-ordering::after {
  content: '' !important;
  position: absolute !important;
  right: 1.2em !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 6px solid #fff !important;
  pointer-events: none !important;
  background: none !important;
}

/* ===============================================
   PASEK Z WYNIKAMI I SORTOWANIEM - układ
   =============================================== */
@media screen and (min-width: 992px) {
  .woocommerce-notices-wrapper ~ .woocommerce-result-count,
  .woocommerce-notices-wrapper ~ .vg-sort-show,
  .woocommerce-notices-wrapper ~ .woocommerce-ordering {
    margin-top: 0 !important;
  }
  
  /* Flexbox dla paska */
  .woocommerce .woocommerce-result-count {
    float: left !important;
  }
  
  .woocommerce .woocommerce-ordering {
    float: right !important;
  }
}

/* ===============================================
   MOBILE RESPONSIVE
   =============================================== */
@media screen and (max-width: 991px) {
  .woocommerce-products-header {
    margin-top: 1.5rem !important;
    text-align: center !important;
  }
  
  .woocommerce-result-count {
    width: 100% !important;
    justify-content: flex-start !important;
    font-size: 13px !important;
    margin-bottom: 0.5rem !important;
  }
  
  .vg-sort-show {
    margin-left: 0 !important;
    margin-right: 1rem !important;
  }
  
  .vg-sort-show select {
    min-width: 50px !important;
    padding: 0.3em 1.8em 0.3em 0.6em !important;
    font-size: 13px !important;
  }
  
  .woocommerce-ordering {
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  
  .woocommerce-ordering select {
    width: 100% !important;
    min-width: unset !important;
    font-size: 13px !important;
  }
}

/* ===============================================
   HOVER EFFECTS I ANIMACJE
   =============================================== */
.vg-sort-show select,
.woocommerce-ordering select {
  transition: all 0.25s ease !important;
}

/* ===============================================
   CZYTELNOŚĆ TEKSTU
   =============================================== */
.woocommerce-result-count {
  font-family: 'Poppins', sans-serif !important;
  letter-spacing: 0.2px !important;
}

.vg-sort-show {
  font-family: 'Poppins', sans-serif !important;
}
