/* =========================================================
   ATISAM.PL - CUSTOM STYLES (Oparte na Coderplace)
   ========================================================= */

/* --- 1. IMPORT CZCIONKI --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Jost', sans-serif !important;
}

/* =========================================================
   2. GLOBALNA NADPISKA KOLORÓW PRESTASHOP CLASSIC
   Główny: #2936cc | Hover/Ciemniejszy: #1e2899
   ========================================================= */

/* Linki globalne i tytuły */
a { color: #2936cc; }
a:hover, a:focus { color: #1e2899; }
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  color: #232323;
}

/* Główne przyciski (Koszyk, Kasa, Zapisz) */
.btn-primary {
  background-color: #2936cc !important;
  border-color: #2936cc !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #1e2899 !important;
  border-color: #1e2899 !important;
}

/* Przyciski drugorzędne i linki akcji (np. pokaż wszystkie) */
.btn-outline-primary, .btn-secondary {
  color: #2936cc;
  border-color: #2936cc;
}
.btn-outline-primary:hover, .btn-outline-primary:active,
.btn-secondary:hover, .btn-secondary:active {
  background-color: #2936cc;
  border-color: #2936cc;
  color: #fff;
}

/* Menu górne i rozwijane kategorie */
#top-menu a:hover, #top-menu a:focus { color: #2936cc; }
.popover.dropdown-menu { border-top-color: #2936cc; }

/* Ceny i etykiety na produktach */
.product-price-and-shipping .price, .current-price span {
  color: #2936cc;
  font-weight: 600;
}
.product-flag.discount { background-color: #e51a1a; }
.product-flag.new, .product-flag.on-sale { background-color: #2936cc; }

/* Paginacja (stronnicowanie) */
.page-list li.current a {
  background-color: #2936cc;
  border-color: #2936cc;
  color: #fff;
}
.page-list li a:hover { color: #2936cc; }

/* Zakładki na karcie produktu (Opis, Szczegóły) */
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
  border-bottom-color: #2936cc;
  color: #2936cc;
}

/* Elementy formularzy (Checkboxy, Radio, Pola tekstowe) */
form input:focus, form textarea:focus {
  outline: .1875rem solid rgba(41,54,204,.25);
  border-color: #2936cc;
}
.custom-checkbox input[type="checkbox"]:checked + span { background-color: #2936cc; }
.custom-radio input[type="radio"]:checked + span { background-color: #2936cc; }

/* Wskaźnik procesu zakupowego (checkout) */
#checkout .checkout-step.-current .-step-title { color: #2936cc; }

/* =========================================================
   3. GÓRNY PASEK, MENU I KOSZYK (Wymuszenie nowego koloru)
   ========================================================= */

.header-nav a:hover,
.header-nav a:focus,
.header-nav .user-info a:hover,
.header-nav .contact-link a:hover,
#_desktop_currency_selector .dropdown-item:hover,
#_desktop_language_selector .dropdown-item:hover {
  color: #2936cc !important;
}

.top-menu a:hover,
.top-menu a:focus,
.top-menu .sub-menu ul[data-depth="1"] > li > a:hover,
.top-menu .sub-menu ul[data-depth="2"] > li > a:hover,
.popover.dropdown-menu a:hover {
  color: #2936cc !important;
}

.blockcart:hover .header a,
.blockcart:hover .header i,
.blockcart:hover .header .cart-products-count {
  color: #2936cc !important;
}

.search-widget form button[type=submit]:hover i { color: #2936cc !important; }
.search-widget form input[type=text]:focus { outline: 2px solid rgba(41, 54, 204, 0.25) !important; }

/* =========================================================
   4. NOWY UKŁAD NAGŁÓWKA (Logo i Wyszukiwarka góra, Menu dół)
   ========================================================= */

.desktop-search-row #search_widget {
  float: right;
  min-width: 350px;
  margin-top: 15px;
}

.custom-menu-row #search_widget,
.custom-menu-row #_desktop_cart {
  display: none !important;
}

.custom-menu-row #_desktop_top_menu {
  width: 100%;
  float: none !important;
  border-top: 1px solid #f1f1f1;
  padding-top: 10px;
}

.custom-menu-row .top-menu {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =========================================================
   5. EFEKT HOVER DLA MINIATURKI PRODUKTU I KOSZYKA
   ========================================================= */

.product-miniature {
  position: relative;
  transition: all 0.3s ease-in-out;
  background: #fff;
  height: 100%; /* POPRAWKA: Wypełnia całą dostępną wysokość */
}

/* POPRAWKA: Rezerwujemy 60px miejsca na dole by koszyk nie zasłaniał ceny */
.product-miniature .product-description {
  padding-bottom: 60px;
}

.product-miniature .product-list-add-to-cart {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease-in-out;
  position: absolute;
  bottom: 15px; /* POPRAWKA: Przycisk wskakuje w puste, bezpieczne miejsce pod ceną */
  left: 10px;
  right: 10px;
  z-index: 10;
}

.product-miniature:hover .product-list-add-to-cart {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-miniature:hover {
  box-shadow: 0px 5px 20px rgba(0,0,0,0.08);
  z-index: 2;
}

.product-miniature:hover .product-reviews {
    opacity: 0;
}

/* =========================================================
   12. STYLIZACJA BLOKU SEO NA STRONIE GŁÓWNEJ
   ========================================================= */

.atisam-seo-block {
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
    margin-top: 30px;
}

.h1-seo {
    color: #2936cc;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.atisam-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

.atisam-features {
    margin-bottom: 30px;
}

.feature-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 48px;
    color: #2936cc;
    margin-bottom: 15px;
}

.feature-item h2 {
    font-size: 1.4rem;
    color: #232323;
    font-weight: 600;
    margin-bottom: 10px;
}

.atisam-text-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

@media (max-width: 767px) {
    .h1-seo { font-size: 1.8rem; }
}

/* =========================================================
   13. STYLIZACJA BLOKÓW KATEGORII NA STRONIE GŁÓWNEJ
   ========================================================= */

.home-category-title-bar {
    background: #2936cc; /* Twój kolor przewodowy */
    color: #fff;
    padding: 12px 20px;
    margin: 30px 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.home-category-title-bar h2 {
    margin: 0;
    color: #fff !important;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-category-title-bar a.view-all {
    color: #fff;
    font-size: 0.9rem;
    text-transform: none;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.home-category-title-bar a.view-all:hover {
    background: #fff;
    color: #2936cc;
}

/* Dostosowanie odstępów produktów pod belką */
.category-products-wrapper {
    margin-bottom: 50px;
}

.home-category-block .products {
    display: flex;
    flex-wrap: wrap;
}
