:root {
  --pk-primary: #b08c23;
  --pk-primary-dark: #443515;
  --pk-blur: 18px;
  --pk-radius: 18px;
  --pk-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* Light / Dark variables */
body.pk-site.pk-theme-light {
  --pk-bg: #f5f3ee;
  --pk-card: rgba(255,255,255,0.92);
  --pk-shadow: 0 18px 40px rgba(0,0,0,.10);
  color: #111318;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255,215,150,.35), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(212,187,140,.35), transparent 60%),
    #f5f3ee;
}

body.pk-site.pk-theme-dark {
  --pk-bg: #0d0f14;
  --pk-card: rgba(15, 15, 23, 0.7);
  --pk-shadow: 0 18px 40px rgba(0,0,0,.25);
  color: #f6f5f2;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(176,140,35,.25), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(68,53,21,.35), transparent 60%),
    #0d0f14;
}

html { scroll-behavior: smooth; }

body.pk-site {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--pk-bg);
}

/* RTL */
body.pk-site.rtl {
  direction: rtl;
  text-align: right;
}
body.pk-site.rtl .pk-menu {
  flex-direction: row-reverse;
}
body.pk-site.rtl .pk-footer-text {
  text-align: center;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Glass panel générique */
.glass-panel {
  background: var(--pk-card);
  backdrop-filter: blur(var(--pk-blur));
  -webkit-backdrop-filter: blur(var(--pk-blur));
  border-radius: var(--pk-radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--pk-shadow);
}

/* Boutons */
.btn-primary,
.btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pk-primary), var(--pk-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.btn-secondary {
  background: rgba(0,0,0,0.05);
  color: inherit;
  box-shadow: none;
}
body.pk-site.pk-theme-dark .btn-secondary {
  background: rgba(255,255,255,0.06);
}

/* Header compact */
.pk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: .4rem 0;
}
.pk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .4rem .9rem;
}
.pk-logo {
  display: flex;
  align-items: center;
}
.pk-logo-full {
  display: inline-flex;
  align-items: center;
}
.pk-logo-full img {
  height: 30px;
  width: auto;
}

/* Desktop menu */
.pk-nav .pk-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.3rem;
  font-size: .9rem;
}
.pk-nav .pk-menu li a {
  position: relative;
  padding-bottom: 3px;
}
.pk-nav .pk-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pk-primary), #f1e3b0);
  transition: width .25s ease;
}
.pk-nav .pk-menu li a:hover::after {
  width: 100%;
}

.pk-header-right {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.pk-lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
}
body.pk-site.pk-theme-dark .pk-lang-switch {
  border-color: rgba(255,255,255,0.18);
}
.pk-lang-btn {
  border: none;
  background: transparent;
  color: inherit;
  padding: .25rem .6rem;
  font-size: .75rem;
  cursor: pointer;
}
.pk-lang-btn.is-active {
  background: linear-gradient(135deg, var(--pk-primary), var(--pk-primary-dark));
  color: #fff;
}
.pk-cart-link {
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .2rem;
}

/* Burger */
.pk-menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.pk-menu-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pk-primary), #f1e3b0);
  transition: transform .25s ease, opacity .25s ease, top .25s ease, bottom .25s ease;
}
.pk-menu-line:nth-child(1) { top: 3px; }
.pk-menu-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.pk-menu-line:nth-child(3) { bottom: 3px; }

body.pk-site.pk-menu-open .pk-menu-toggle .pk-menu-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.pk-site.pk-menu-open .pk-menu-toggle .pk-menu-line:nth-child(2) {
  opacity: 0;
}
body.pk-site.pk-menu-open .pk-menu-toggle .pk-menu-line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Panel mobile - base */
.pk-nav-panel {
  position: fixed;
  inset: 0;
  margin: 10px;
  border-radius: 24px;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 39;
  overflow: hidden;
}

/* Version claire (light) */
body.pk-site.pk-theme-light .pk-nav-panel {
  background:
    radial-gradient(circle at 0 0, rgba(255, 245, 215, .85), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .95), transparent 55%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
  color: #111318;
}

/* Version sombre (dark) */
body.pk-site.pk-theme-dark .pk-nav-panel {
  background:
    radial-gradient(circle at 0 0, rgba(241,227,176,.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(68,53,21,.4), transparent 55%),
    rgba(9,9,15,.92);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}

.pk-nav-panel-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.4rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.pk-nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pk-nav-panel-title {
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
}
.pk-menu-close {
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* clair */
body.pk-site.pk-theme-light .pk-menu-close {
  background: rgba(0,0,0,.05);
  color: #111318;
}

/* dark */
body.pk-site.pk-theme-dark .pk-menu-close {
  background: rgba(0,0,0,.3);
  color: #f6f5f2;
}

.pk-nav-mobile .pk-menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pk-nav-mobile .pk-menu-mobile li + li {
  margin-top: .6rem;
}
.pk-nav-mobile .pk-menu-mobile a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}
.pk-nav-mobile .pk-menu-mobile a::after {
  content: "›";
  font-size: .9rem;
  opacity: .7;
}
body.pk-site.rtl .pk-nav-mobile .pk-menu-mobile a::after {
  content: "‹";
}
.pk-nav-panel-footer {
  margin-top: auto;
  padding-top: 1.2rem;
}
.pk-nav-whatsapp {
  width: 100%;
  justify-content: center;
}

/* Motif zellige doré + shimmer */
.pk-nav-panel-zellige {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    /* grille zellige dorée */
    linear-gradient(45deg, rgba(255, 215, 128, .22) 25%, transparent 25%, transparent 50%, rgba(255, 215, 128, .22) 50%, rgba(255, 215, 128, .22) 75%, transparent 75%, transparent),
    linear-gradient(45deg, rgba(255, 215, 128, .18) 25%, transparent 25%, transparent 50%, rgba(255, 215, 128, .18) 50%, rgba(255, 215, 128, .18) 75%, transparent 75%, transparent),
    /* couche shimmer */
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  background-size:
    26px 26px,
    26px 26px,
    260% 260%;
  background-position:
    0 0,
    13px 13px,
    -200% 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: pk-zellige-shimmer 7s linear infinite;
}

/* Animation shimmer */
@keyframes pk-zellige-shimmer {
  0% {
    background-position:
      0 0,
      13px 13px,
      -200% 0;
  }
  100% {
    background-position:
      0 0,
      13px 13px,
      200% 0;
  }
}


/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  margin-top: 18px;
}

/* Hauteur FIXE du bloc hero */
.pk-hero .hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--pk-radius) * 1.3);
  height: 500px;          /* hauteur fixe desktop */
}

/* Slides en couche, dans ce cadre fixe */
.hero-slide {
  position: absolute;
  inset: 0;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateX(10%);
  transition: opacity .7s ease, transform .7s ease;
}

/* Slide actif */
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.hero-content {
  flex: 1 1 260px;
}
.hero-products {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hero-eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  opacity: .8;
  margin-bottom: .6rem;
}
.hero-title {
  font-size: clamp(2rem, 3.3vw, 2.6rem);
  margin: 0 0 .8rem;
}
.hero-subtitle {
  max-width: 440px;
  opacity: .9;
  font-size: .95rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.hero-tag {
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  font-size: .75rem;
  opacity: .85;
}
body.pk-site.pk-theme-dark .hero-tag {
  border-color: rgba(255,255,255,0.14);
}
.hero-ctas {
  margin-top: 1.4rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Hero placeholders */
.pk-hero-placeholder {
  width: 180px;
  height: 220px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.22), transparent 55%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.pk-hero-placeholder-alt {
  width: 140px;
  height: 190px;
}

/* Sections génériques */
.section {
  margin-top: 3rem;
}
.pk-section {
  margin-top: 3rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.4rem;
  gap: .5rem;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.4rem;
}
.section-subtitle {
  font-size: .85rem;
  opacity: .75;
}

/* Catégories */
.pk-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.pk-cat-card {
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pk-cat-card h3 {
  margin: 0 0 .3rem;
}
.pk-cat-card p {
  margin: 0;
  font-size: .9rem;
  opacity: .8;
}
.pk-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  border-color: rgba(0,0,0,0.12);
}
body.pk-site.pk-theme-dark .pk-cat-card:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,0.22);
}

/* Produits (best-sellers & Woo) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.product-card {
  position: relative;
  padding: 1rem;
  border-radius: var(--pk-radius);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
body.pk-site.pk-theme-dark .product-card {
  background: rgba(9,9,15,.82);
  border-color: rgba(255,255,255,0.08);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  border-color: rgba(0,0,0,0.14);
}
body.pk-site.pk-theme-dark .product-card:hover {
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,0.22);
}
.product-card-title {
  font-size: .9rem;
  margin-top: .7rem;
}
.product-card-price {
  font-weight: 600;
  margin-top: .2rem;
}
.product-card-cta {
  margin-top: .8rem;
  font-size: .8rem;
  opacity: .85;
}

/* Contact */
.pk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr);
  gap: 1.5rem;
}
.pk-contact-info,
.pk-contact-form {
  padding: 1.4rem 1.6rem;
}
.pk-contact-form-inner {
  margin-top: .8rem;
}

/* Footer */
.pk-footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
}
.pk-footer-text {
  font-size: .8rem;
  opacity: .74;
  text-align: center;
}

/* ====== ONGLET CATEGORIES PACKARIJING ===================== */

.pk-tab-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
}
body.pk-site.pk-theme-dark .pk-tab-buttons {
  background: rgba(255,255,255,0.05);
}

.pk-tab-button {
  border: none;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .85rem;
  cursor: pointer;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  opacity: .8;
  transition: background .2s ease, opacity .2s ease, transform .15s ease;
}
.pk-tab-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.pk-tab-button.is-active {
  background: linear-gradient(135deg, var(--pk-primary), var(--pk-primary-dark));
  color: #fff;
  opacity: 1;
}
.pk-tab-label-ar {
  font-size: .78rem;
  opacity: .9;
}

/* Panels onglets */
.pk-tab-panels {
  margin-top: 1.4rem;
}
.pk-tab-panel {
  display: none;
}
.pk-tab-panel.is-active {
  display: block;
}

/* Grille 3 colonnes, petits formats */
.pk-tab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.pk-tab-product {
  padding: .6rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
body.pk-site.pk-theme-dark .pk-tab-product {
  background: rgba(9,9,15,0.9);
  border-color: rgba(255,255,255,0.10);
}
.pk-tab-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.pk-tab-title {
  font-size: .8rem;
  margin-top: .4rem;
  margin-bottom: 0;
}

/* Message vide */
.pk-tab-empty {
  font-size: .85rem;
  opacity: .75;
}

/* Responsive */
@media (max-width: 900px) {
  .pk-contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 768px) {
  .pk-menu-toggle {
    display: inline-flex;
  }
  .pk-nav {
    display: none;
  }
  .pk-header-inner {
    padding-left: .7rem;
    padding-right: .7rem;
  }
  body.pk-site.pk-menu-open .pk-nav-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .hero-slide {
    padding: 1.4rem 1.1rem 2.3rem;
  }
  .pk-hero .hero-carousel {
    height: 420px; /* hauteur fix mobile */
  }
}

/* Mobile : onglets 2 colonnes */
@media (max-width: 600px) {
  .pk-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Garanties fiche produit ======================= */

.pk-product-guarantees {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--pk-radius);
  font-size: .85rem;
}

.pk-guarantees-title {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
  opacity: .9;
}

.pk-guarantees-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.pk-guarantee-item {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.pk-guarantee-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  background: rgba(0,0,0,0.04);
}

body.pk-site.pk-theme-dark .pk-guarantee-icon {
  background: rgba(255,255,255,0.08);
}

.pk-guarantee-text {
  opacity: .9;
}

/* Sur mobile : un peu plus d’air */
@media (max-width: 768px) {
  .pk-product-guarantees {
    margin-top: .8rem;
  }
}

/* Images dans la description longue WooCommerce */
.woocommerce div.product .woocommerce-Tabs-panel img,
.woocommerce div.product .woocommerce-tabs .panel img,
.woocommerce div.product .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;
}
/* Forcer les images de la description WooCommerce à s'adapter */
.woocommerce div.product .woocommerce-Tabs-panel img,
.woocommerce div.product .woocommerce-Tabs-panel figure img,
.woocommerce div.product .woocommerce-Tabs-panel .wp-block-image img,
.woocommerce div.product .woocommerce-tabs .panel img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* === DESCRIPTION LONGUE WOOCOMMERCE ======================= */

/* Container plus étroit et centré */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-Tabs-panel {
  max-width: 720px;            /* largeur max de la zone description */
  margin: 0 auto 2rem;         /* centré */
  padding: 0 1rem 1.5rem;      /* un peu de marge intérieure */
}

/* Casser les alignements Gutenberg "full/large" */
.woocommerce div.product .woocommerce-tabs .panel .alignwide,
.woocommerce div.product .woocommerce-tabs .panel .alignfull {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Images dans la description : s'adaptent au container */
.woocommerce div.product .woocommerce-tabs .panel img,
.woocommerce div.product .woocommerce-tabs .panel figure img,
.woocommerce div.product .woocommerce-tabs .panel .wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile : image un peu en retrait (pas collée aux bords) */
@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-tabs .panel img,
  .woocommerce div.product .woocommerce-tabs .panel figure img,
  .woocommerce div.product .woocommerce-tabs .panel .wp-block-image img {
    max-width: 92% !important;
  }
}
