/*
Theme Name:   Gardenius Polska Pro
Description:  Reproduction haute précision de la maquette Gardenius (Drewno • Pellet • Brykiet) avec menu Kategorie interactif et création automatique des 6 produits WooCommerce.
Author:       Gardenius Studio
Version:      4.0.0
Text Domain:  gardenius-pl
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --g-bg: #faf7f2;
  --g-surface: #ffffff;
  --g-sand: #f3ede3;
  --g-brown: #321c0e;
  --g-brown-dark: #241309;
  --g-orange: #e8681a;
  --g-orange-hover: #cf560e;
  --g-ink: #24170e;
  --g-muted: #6e6055;
  --g-border: #e7dfd4;
  --g-serif: 'Fraunces', Georgia, serif;
  --g-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --g-container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: var(--g-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.g-container {
  max-width: var(--g-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER 3 NIVEAUX (IDENTIQUE À LA MAQUETTE)
   ========================================================================== */
.g-header {
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Barre 1 : Topbar marron foncé */
.g-topbar {
  background: var(--g-brown);
  color: #f4ece3;
  font-size: 0.78rem;
  padding: 7px 0;
}
.g-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.g-topbar-left, .g-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.g-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g-topbar a:hover { color: #ffffff; text-decoration: underline; }

/* Barre 2 : Logo exact | Recherche | Téléphone | Favoris | Panier */
.g-mainbar {
  padding: 12px 0;
  background: var(--g-surface);
}
.g-mainbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.g-logo img {
  height: 74px;
  width: auto;
  object-fit: contain;
}
.g-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--g-border);
  border-radius: 6px;
  background: var(--g-bg);
  height: 42px;
  overflow: hidden;
}
.g-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 0.88rem;
  color: var(--g-ink);
  outline: none;
}
.g-search button {
  width: 44px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--g-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-search button:hover { color: var(--g-orange); }

.g-contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.g-phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  border-right: 1px solid var(--g-border);
}
.g-phone-box strong {
  display: block;
  font-size: 0.96rem;
  color: var(--g-brown);
  line-height: 1.2;
}
.g-phone-box small {
  display: block;
  font-size: 0.72rem;
  color: var(--g-muted);
}
.g-icon-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--g-brown);
  transition: background 0.15s;
}
.g-icon-action:hover { background: var(--g-sand); }
.g-badge-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--g-orange);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Barre 3 : Navigation principale + Dropdown Kategorie RÉACTIF */
.g-navbar {
  background: var(--g-bg);
  border-top: 1px solid var(--g-border);
}
.g-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  position: relative;
}
.g-nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Bouton Kategorie interactif (clic = ouvre, re-clic = ferme) */
.g-cat-wrapper {
  position: relative;
}
.g-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--g-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--g-brown);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.g-cat-toggle:hover,
.g-cat-toggle[aria-expanded="true"] {
  background: var(--g-sand);
  color: var(--g-orange);
}
.g-cat-chevron {
  transition: transform 0.2s ease;
}
.g-cat-toggle[aria-expanded="true"] .g-cat-chevron {
  transform: rotate(180deg);
}

/* Panneau déroulant des catégories */
.g-cat-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 265px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(36, 23, 14, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  z-index: 1100;
}
.g-cat-dropdown.is-open {
  display: block;
}
.g-cat-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--g-ink);
  transition: background 0.15s, color 0.15s;
}
.g-cat-dropdown li a:hover {
  background: var(--g-bg);
  color: var(--g-orange);
}

.g-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.g-nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--g-ink);
  padding: 12px 0;
  transition: color 0.15s;
}
.g-nav-links a:hover { color: var(--g-orange); }

/* Sélecteur de langue PL réactif */
.g-lang-wrapper { position: relative; }
.g-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-family: var(--g-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g-ink);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.g-lang-btn:hover { background: var(--g-sand); }
.g-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 120px;
  display: none;
}
.g-lang-menu.is-open { display: block; }
.g-lang-menu li a {
  display: block;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.g-lang-menu li a:hover { background: var(--g-bg); color: var(--g-orange); }

.g-mobile-toggle {
  display: none;
  background: var(--g-brown);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER (EXACTEMENT COMME SUR LA MAQUETTE)
   ========================================================================== */
.g-hero {
  position: relative;
  background: linear-gradient(90deg, #faf7f2 0%, #f5efe6 46%, rgba(245,239,230,0.15) 68%, transparent 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--g-border);
}
.g-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.g-hero-inner {
  position: relative;
  z-index: 1;
  padding: 54px 24px 26px;
}
.g-hero-content {
  max-width: 520px;
}
.g-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-orange);
  margin-bottom: 8px;
}
.g-hero-title {
  font-family: var(--g-serif);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--g-brown);
  margin: 0 0 14px;
}
.g-hero-desc {
  font-size: 0.98rem;
  color: #4f4238;
  margin: 0 0 24px;
  max-width: 430px;
}
.g-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g-orange);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.g-btn-orange:hover { background: var(--g-orange-hover); }

.g-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--g-brown);
  background: rgba(250, 247, 242, 0.88);
  padding: 10px 14px;
  border-radius: 8px;
  width: fit-content;
}

/* ==========================================================================
   7 CATÉGORIES & 6 PRODUITS (ZÉRO CHEVAUCHEMENT)
   ========================================================================== */
.g-section { padding: 36px 0; }
.g-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}
.g-section-title {
  font-family: var(--g-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--g-brown);
  margin: 0;
}
.g-more-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g-muted);
}
.g-more-link:hover { color: var(--g-orange); }

/* 7 cartes catégories */
.g-cats-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.g-cat-card {
  background: var(--g-sand);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.g-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--g-orange);
}
.g-cat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.g-cat-card span {
  display: block;
  padding: 9px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--g-brown);
}

/* 6 cartes produits */
.g-products-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.g-prod-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.g-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(50, 28, 14, 0.08);
}
.g-prod-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.g-prod-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--g-ink);
  margin: 0;
  line-height: 1.3;
  min-height: 2.6em;
}
.g-prod-price {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--g-brown);
}
.g-prod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--g-brown);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.g-prod-btn:hover { background: var(--g-orange); }

/* ==========================================================================
   BANNIÈRE DARMOWA DOSTAWA + CAMION & 4 ICÔNES RÉASSURANCE
   ========================================================================== */
.g-truck-banner {
  position: relative;
  background: var(--g-brown);
  color: #ffffff;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: center;
}
.g-truck-banner img {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.g-truck-overlay {
  position: relative;
  z-index: 1;
  padding: 38px 24px;
  background: linear-gradient(90deg, var(--g-brown) 0%, var(--g-brown) 42%, rgba(50,28,14,0.15) 75%, transparent 100%);
  width: 100%;
}
.g-truck-overlay h2 {
  font-family: var(--g-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin: 6px 0 8px;
  max-width: 460px;
  line-height: 1.15;
}
.g-truck-overlay p {
  margin: 0 0 18px;
  color: #e4d8cc;
  font-size: 0.92rem;
}

.g-features-strip {
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-border);
  padding: 22px 0;
}
.g-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.g-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.g-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fdf1e8;
  color: var(--g-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.g-feat-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--g-brown);
}
.g-feat-item span {
  font-size: 0.78rem;
  color: var(--g-muted);
}

/* ==========================================================================
   FOOTER MARRON FONCÉ (LOGO GARDENIUS + MENU + INFORMACJE + KONTAKT)
   ========================================================================== */
.g-footer {
  background: var(--g-brown-dark);
  color: #dfd4c8;
  padding: 48px 0 22px;
}
.g-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr 0.9fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3c2415;
}
.g-footer-logo {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
}
.g-footer h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.g-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.g-footer ul li { margin-bottom: 7px; }
.g-footer ul a:hover { color: #ffffff; }
.g-footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.76rem;
  color: #a99b8e;
}

/* ==========================================================================
   RESPONSIVE TABLETTE & MOBILE
   ========================================================================== */
@media (max-width: 1120px) {
  .g-cats-grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-products-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .g-topbar, .g-phone-box { display: none; }
  .g-mainbar-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .g-search { grid-column: 1 / -1; order: 3; max-width: 100%; }
  .g-mobile-toggle { display: inline-flex; }
  .g-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--g-surface);
    border-bottom: 1px solid var(--g-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px;
    gap: 10px;
    z-index: 1050;
  }
  .g-nav-links.is-open { display: flex; }
  .g-hero-bg, .g-truck-banner img { opacity: 0.25; width: 100%; }
  .g-cats-grid-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-products-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-features-grid { grid-template-columns: 1fr 1fr; }
}