/*
Theme Name: Darmowy CRM
Theme URI: https://www.darmowycrm.pl
Author: Rafal Cichon
Description: Darmowy CRM, który naprawdę działa – naucz się jak korzystać z HubSpot Free
Version: 1.0
Text Domain: darmowycrm.pl
Requires at least: 5.0
Tested up to: 6.4
*/

/* ——— PODSTAWOWE RESETY I ZMIENNE ——— */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.site-logo img {
  max-height: 50px;
}

/* ukryj checkbox */
.nav-toggle {
  display: none;
}

/* lista nawigacji – wspólne dla wszystkich rozdzielczości */
.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* linki menu */
.site-nav .nav-list li {
  margin: 0 1rem;
}
.site-nav .nav-list li a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
}

/* koszyk */
.header-cart a {
  font-size: 1.5rem;
  margin-left: 1rem;
}

.header-cart a.cart-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 0;
}
.header-cart a.cart-icon svg {
  width: 100%;
  height: 100%;
  fill: #000; /* albo inny kolor, np. var(--primary-color) */
  transition: fill 0.2s;
}
.header-cart a.cart-icon:hover svg {
  fill: #daae11; /* opcjonalny kolor hover */
}

/* ——— STYL DESKTOP (domyślny) ——— */
.site-nav {
  display: block;
}
.site-nav .nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* hamburger ukryty na desktopie */
.nav-toggle-label {
  display: none;
}

/* ——— STYL MOBILE ——— */
@media (max-width: 768px) {

  /* ukryj menu nawigacji, pokaż hamburger */
  .site-nav {
    display: none;
  }
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
  }
  /* trzy paseczki hamburgera */
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: #000;
    height: 3px;
    width: 100%;
    position: absolute;
    transition: all 0.3s;
  }
  .nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-toggle-label span::before {
    content: '';
    top: -8px;
  }
  .nav-toggle-label span::after {
    content: '';
    top: 8px;
  }

  /* gdy checkbox jest zaznaczony – pokaż menu */
  .nav-toggle:checked ~ .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* lista w menu mobilnym pionowo */
  .site-nav .nav-list {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
  }
  .site-nav .nav-list li {
    margin: 0.5rem 0;
    text-align: center;
  }
}

/* --- HEADER TOP (desktop) --- */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2e2e2e;   /* ciemne tło */
  color: #fff;
  padding: 10px 0;
}
.header-top .site-logo img {
  max-height: 60px;
}

/* bloki info */
.header-info {
  display: flex;
  gap: 30px;
}
.info-block {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.2;
}
.info-block .icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: #FFBD59;       /* złoty kolor ikon */
}

/* koszyk + social */
.header-extras {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-cart .cart-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.header-social .social-link {
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  margin-left: 8px;
}

/* --- HEADER BOTTOM (menu) --- */
.header-bottom {
  background: #FFBD59;  /* złoty pasek */
}
.header-bottom .site-nav.container {
  display: flex;
  justify-content: center;
}
.header-bottom .nav-list {
  display: flex;
  gap: 40px;
}
.header-bottom .nav-list li a {
  color: #fff;
  padding: 15px 0;
  display: block;
}

/* Ukryj checkbox i label na desktop */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* ——— Mobile (jeśli chcesz zachować hamburger) ——— */
@media (max-width: 768px) {
  /* …tu Twoje oryginalne reguły mobile… */
}

.shop-container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* lewa kolumna (sidebar) */
.shop-sidebar {
    flex: 0 0 280px;   /* ok. 25–30% na desktopie */
}

/* prawa kolumna (lista produktów) */
.shop-products {
    flex: 1 1 auto;
    min-width: 0;      /* zapobiega „rozpychaniu” */
}

/* responsywność */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }
    .shop-sidebar {
        width: 100%;
        order: 1;
    }
    .shop-products {
        order: 2;
    }
}

/* drobna kosmetyka widgetów */
.widget { margin-bottom: 24px; }
.widget .widget-title { margin: 0 0 12px; font-size: 1.1rem; }
