/* ═══════════════════════════════════════════════
   Boutik Pam Home — Front CSS v3.2.0
   Pa fosse okenn koulè fon — kite tèm WordPress la
   Koulè primè: #1B3DE8 (ble Boutik Pam)
═══════════════════════════════════════════════ */

/* ── BOX-SIZING SÈLMAN — pa touche fon tèm nan ── */
body.bph-homepage,
body.bph-homepage * { box-sizing: border-box; }

body.bph-homepage {
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────────────────────────────────
   HEADER (fixed, blan, ble)
───────────────────────────────────── */
/* Promo bar height variable (0 si pa aktif) */
:root { --bp-promo-h: 0px; }

#bph-promo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100001;
}

#bp-header {
  position: fixed;
  top: var(--bp-promo-h, 0px); left: 0; right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(27,61,232,.07);
  z-index: 99999;
  font-family: 'Poppins', sans-serif;
}

.bp-hx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bp-logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; gap:8px; }
.bp-logo img { height:48px; width:auto; object-fit:contain; display:block; }
.bph-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 900;
  color: #1B3DE8; letter-spacing: -.3px; text-transform: uppercase;
}

.bp-nav { display:flex; align-items:center; gap:2px; flex:1; justify-content:center; }
.bp-nl {
  font-size:.85rem; font-weight:500; color:#374151;
  text-decoration:none; padding:6px 13px; border-radius:8px;
  white-space:nowrap; transition:all .18s;
}
.bp-nl:hover { background:#eff3ff; color:#1B3DE8; }

.bp-ha { display:flex; align-items:center; gap:8px; flex-shrink:0; }

.bp-icon {
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px;
  border:1.5px solid #e5e7eb; border-radius:9px;
  color:#374151; text-decoration:none; background:#fff;
  transition:all .18s;
}
.bp-icon:hover { border-color:#1B3DE8; color:#1B3DE8; background:#eff3ff; }

.bp-badge {
  position:absolute; top:-5px; right:-5px;
  background:#1B3DE8; color:#fff;
  font-size:.58rem; font-weight:800;
  min-width:17px; height:17px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  padding:0 3px; border:2px solid #fff;
}

.bp-user {
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px;
  background:var(--bp-primary,#1B3DE8); color:#fff;
  border-radius:50%; font-weight:700; font-size:.85rem;
  border:none; cursor:pointer; flex-shrink:0;
  transition:transform .2s, box-shadow .2s;
}
.bp-user:hover { transform:scale(1.06); box-shadow:0 4px 12px rgba(27,61,232,.35); }

/* ── Konteyner dropdown ── */
.bp-user-wrap { position:relative; }

.bp-user-menu {
  position:absolute; right:0; top:calc(100% + 10px);
  background:#fff;
  border:1.5px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 12px 36px rgba(27,61,232,.13);
  min-width:210px;
  z-index:100010;
  padding:6px;
  animation:bpUmIn .18s ease;
}
@keyframes bpUmIn {
  from { opacity:0; transform:translateY(-6px) scale(.97); }
  to   { opacity:1; transform:translateY(0)    scale(1);   }
}
.bp-um-header {
  padding:10px 12px 8px;
}
.bp-um-name  { display:block; font-weight:700; font-size:.85rem; color:#111827; margin-bottom:2px; }
.bp-um-email { display:block; font-size:.72rem; color:#9ca3af; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.bp-um-sep   { height:1px; background:#f3f4f6; margin:4px 0; }
.bp-um-link {
  display:flex; align-items:center; gap:9px;
  padding:10px 12px; border-radius:9px;
  font-size:.84rem; font-weight:600; color:#374151;
  text-decoration:none; transition:background .15s;
  white-space:nowrap;
}
.bp-um-link:hover  { background:#f3f4f6; color:#111827; }
.bp-um-logout      { color:#dc2626; }
.bp-um-logout:hover { background:#fef2f2; color:#b91c1c; }

/* ── Bouton login (icon) ── */
.bp-login-btn {
  background:#fff;
  border:1.5px solid #e5e7eb;
  cursor:pointer;
}
.bp-login-btn:hover { border-color:var(--bp-primary,#1B3DE8); color:var(--bp-primary,#1B3DE8); background:#eff3ff; }

/* ── Drawer : info itilizatè konekte ── */
.bp-dw-user-info {
  display:flex; align-items:center; gap:12px;
  padding:12px; background:#f8f9ff;
  border:1.5px solid #e0e7ff;
  border-radius:12px; margin-bottom:14px;
}
.bp-dw-avatar {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; flex-shrink:0;
  background:var(--bp-primary,#1B3DE8); color:#fff;
  border-radius:50%; font-weight:700; font-size:.95rem;
}
.bp-dw-user-text { overflow:hidden; }
.bp-dw-uname  { font-weight:700; font-size:.85rem; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bp-dw-uemail { font-size:.72rem; color:#9ca3af; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Bouton Dekonekte (drawer) ── */
.bp-logout-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:12px; margin-top:10px;
  background:#fff; border:1.5px solid #fca5a5;
  color:#dc2626; border-radius:12px;
  font-weight:700; font-size:.85rem;
  text-decoration:none; transition:all .18s;
  font-family:inherit;
}
.bp-logout-btn:hover { background:#fef2f2; border-color:#ef4444; color:#b91c1c; }

#bp-hbg {
  display:none; flex-direction:column; justify-content:space-between;
  width:26px; height:18px; background:none; border:none; cursor:pointer; padding:0;
}
#bp-hbg span { display:block; height:2px; width:100%; background:#374151; border-radius:2px; transition:all .28s; }
#bp-hbg.open span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
#bp-hbg.open span:nth-child(2) { opacity:0; }
#bp-hbg.open span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────────────
   DRAWER MOBIL
───────────────────────────────────── */
#bp-drawer {
  position:fixed; top:0; right:0; bottom:0;
  width:min(300px,85vw);
  background:#fff; z-index:100000;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow:-8px 0 40px rgba(27,61,232,.12);
  font-family:'Poppins',sans-serif;
}
#bp-drawer.open { transform:translateX(0); }
.bp-dw { display:flex; flex-direction:column; height:100%; padding:20px; overflow-y:auto; }
.bp-dw-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.bp-dw-top button { background:#f3f4f6; border:none; width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:1rem; }
.bp-dl { display:block; padding:13px 12px; border-radius:9px; text-decoration:none; color:#374151; font-weight:500; border-bottom:1px solid #f3f4f6; transition:all .18s; }
.bp-dl:hover { background:#eff3ff; color:#1B3DE8; padding-left:18px; }
.bp-drawer-cta { margin-top:auto; padding-top:20px; }
.bp-cta-btn { display:block; text-align:center; padding:13px; background:#1B3DE8; color:#fff; border-radius:12px; font-weight:700; text-decoration:none; transition:opacity .18s; }
.bp-cta-btn:hover { opacity:.88; color:#fff; }
#bp-back { position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(2px); z-index:99998; opacity:0; pointer-events:none; transition:opacity .28s; }
#bp-back.open { opacity:1; pointer-events:auto; }
.bp-header-spacer { height:calc(var(--bp-promo-h,0px) + 64px); }

/* ─────────────────────────────────────
   SPACER APRè HEADER (paj akèy)
───────────────────────────────────── */
#bph-main { padding-top: calc(var(--bp-promo-h, 0px) + 64px); }

/* ─────────────────────────────────────
   HERO — fon trè klè, pa fonse
───────────────────────────────────── */
.bph-hero {
  padding: 52px 20px 44px;
  text-align: center;
  background: linear-gradient(160deg, #f0f4ff 0%, #f8f9ff 60%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.bph-container { max-width:680px; margin:0 auto; }

.bph-eyebrow {
  display: inline-flex; align-items:center; gap:6px;
  background: rgba(27,61,232,.07);
  border: 1px solid rgba(27,61,232,.15);
  color: #1B3DE8;
  font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:5px 14px; border-radius:999px; margin-bottom:18px;
}
.bph-eyebrow-dot {
  width:7px; height:7px; background:#10b981; border-radius:50%;
  animation: bph-pulse 2s infinite;
}
@keyframes bph-pulse {
  0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)}
}

.bph-hero-h1 {
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  font-weight: 900; line-height:1.1;
  color: #0f172a; margin:0 0 14px; letter-spacing:-.03em;
}
.bph-hero-h1 span { color:#1B3DE8; }

.bph-hero-sub {
  font-size: clamp(.88rem, 2.2vw, 1rem);
  color: #6b7280; line-height:1.7;
  max-width:520px; margin:0 auto 22px;
}

.bph-hero-badges { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.bph-badge-pill {
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 14px; border-radius:999px;
  font-size:.76rem; font-weight:600;
}
.bph-pill-blue   { background:#eff3ff; color:#1B3DE8; border:1px solid rgba(27,61,232,.18); }
.bph-pill-green  { background:#ecfdf5; color:#059669; border:1px solid rgba(16,185,129,.18); }
.bph-pill-orange { background:#fffbeb; color:#d97706; border:1px solid rgba(245,158,11,.18); }

/* ─────────────────────────────────────
   RECHÈCH
───────────────────────────────────── */
.bph-search-wrap {
  background:#fff; border-bottom:1px solid #e5e7eb; padding:12px 16px;
}
.bph-search-box {
  position:relative; display:flex; align-items:center;
  max-width:1200px; margin:0 auto;
  height:48px; background:#f8f9ff;
  border:1.5px solid #d1d5db; border-radius:12px;
  padding:0 14px; gap:10px;
  transition:border-color .18s, box-shadow .18s;
}
.bph-search-box:focus-within { border-color:#1B3DE8; box-shadow:0 0 0 3px rgba(27,61,232,.10); background:#fff; }
.bph-search-ico { flex-shrink:0; color:#9ca3af; pointer-events:none; }

input.bp-hs-input,
.bp-hs-input {
  all: unset !important;
  flex:1 !important; min-width:0 !important;
  font-family:'Poppins',sans-serif !important;
  font-size:.9rem !important; color:#111827 !important; cursor:text !important;
}
input.bp-hs-input::placeholder,
.bp-hs-input::placeholder { color:#9ca3af; }

.bp-hs-clear {
  width:30px; height:30px; border:none; border-radius:999px;
  background:#f3f4f6; color:#6b7280; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0;
}
.bp-hs-clear:hover { background:#1B3DE8; color:#fff; }

.bp-hs-results {
  position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#fff; border:1.5px solid #e5e7eb; border-radius:12px;
  box-shadow:0 8px 32px rgba(27,61,232,.12); z-index:9998;
  overflow:hidden; max-height:340px; overflow-y:auto;
}
.bp-hs-results[hidden] { display:none !important; }
.bp-hs-item { display:flex; align-items:center; gap:12px; padding:10px 14px; text-decoration:none; color:#111827; transition:background .14s; border-bottom:1px solid #f3f4f6; }
.bp-hs-item:last-child { border-bottom:none; }
.bp-hs-item:hover { background:#eff3ff; }
.bp-hs-thumb { width:42px; height:32px; object-fit:cover; border-radius:6px; flex-shrink:0; background:#f0f0f0; }
.bp-hs-thumb-icon { width:42px; height:32px; display:flex; align-items:center; justify-content:center; background:#f3f4f6; border-radius:6px; flex-shrink:0; font-size:1rem; }
.bp-hs-text { flex:1; min-width:0; }
.bp-hs-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bp-hs-tag { display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; background:#eff3ff; color:#1B3DE8; font-size:.62rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; flex-shrink:0; }
.bp-hs-name { font-size:.84rem; font-weight:700; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bp-hs-sub  { font-size:.73rem; color:#9ca3af; margin-top:1px; }
.bp-hs-none, .bp-hs-loading { padding:16px 14px; text-align:center; color:#9ca3af; font-size:.84rem; }

/* ─────────────────────────────────────
   TABS KATEGORI (sticky)
───────────────────────────────────── */
.bph-cat-bar {
  position: sticky;
  top: calc(var(--bp-promo-h, 0px) + 64px);
  z-index: 999;
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.bph-cat-inner {
  display:flex; align-items:center; gap:4px;
  max-width:1200px; margin:0 auto; padding:0 16px;
  overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none;
}
.bph-cat-inner::-webkit-scrollbar { display:none; }
.bph-cat-tab {
  display:inline-flex; align-items:center; gap:6px;
  padding:12px 16px;
  background:none; border:none;
  border-bottom:3px solid transparent; margin-bottom:-2px;
  font-family:'Poppins',sans-serif; font-size:.82rem; font-weight:600;
  color:#6b7280; cursor:pointer; white-space:nowrap;
  transition:all .18s; flex-shrink:0;
}
.bph-cat-tab:hover { color:#1B3DE8; }
.bph-cat-tab.bph-cat-active { color:#1B3DE8; border-bottom-color:#1B3DE8; }

/* ─────────────────────────────────────
   SEKSYON
───────────────────────────────────── */
.bph-shop { max-width:1200px; margin:0 auto; padding:24px 16px 60px; }
.bph-sec { margin-bottom:44px; }
.bph-sec.bph-hidden { display:none; }

.bph-sec-header {
  display:flex; align-items:center; gap:12px;
  margin-bottom:16px; padding:6px 0 6px 14px;
  border-left:4px solid var(--bp-sec-border, #1B3DE8);
}
.bph-sec-title {
  font-size:1rem; font-weight:800; color:var(--bp-primary,#1B3DE8);
  text-transform:uppercase; letter-spacing:.08em; margin:0; white-space:nowrap; flex-shrink:0;
}
.bph-sec-line { flex:1; height:1px; background:linear-gradient(90deg,rgba(27,61,232,.2) 0%,transparent 100%); }
.bph-sec-count { font-size:.72rem; font-weight:600; color:#9ca3af; background:#f3f4f6; padding:3px 9px; border-radius:999px; white-space:nowrap; flex-shrink:0; }

/* ─────────────────────────────────────
   GRIY KAT
───────────────────────────────────── */
.bph-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
@media(min-width:480px)  { .bph-grid { grid-template-columns:repeat(3,1fr); } }
@media(min-width:768px)  { .bph-grid { grid-template-columns:repeat(4,1fr); } }
@media(min-width:1024px) { .bph-grid { grid-template-columns:repeat(5,1fr); } }

/* ─────────────────────────────────────
   KAT
───────────────────────────────────── */
.bph-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--bp-card-border, #e5e7eb);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .22s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
/* Hover desktop */
.bph-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 44px rgba(27,61,232,.16);
  border-color: var(--bp-primary, #1B3DE8);
}
/* Press touch mobil */
.bph-card:active,
.bph-card.bph-pressing {
  transform: scale(.96) !important;
  box-shadow: 0 4px 12px rgba(27,61,232,.18) !important;
  border-color: var(--bp-primary, #1B3DE8) !important;
  transition: transform .1s, box-shadow .1s !important;
}

/* Shine overlay lè hover */
.bph-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .45s ease;
  z-index: 2; pointer-events: none;
}
.bph-card:hover::before { left: 140%; }

.bph-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f2f8;
  position: relative;
}
.bph-card-img img {
  width: 100%; height: 100%; display: block;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.bph-card:hover .bph-card-img img { transform: scale(1.08); }
.bph-card.bph-pressing .bph-card-img img { transform: scale(.98); }

.bph-card-body { padding: 10px 10px 13px; text-align: center; }
.bph-card-name {
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: #111827; margin: 0 0 10px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bph-achte-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px 0;
  background: var(--bp-primary, #1B3DE8); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: .73rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border: none; border-radius: 10px; cursor: pointer; text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.bph-achte-btn::after {
  content: '';
  position: absolute; inset: 0; border-radius: 10px;
  background: rgba(255,255,255,0);
  transition: background .18s;
}
.bph-achte-btn:hover  { background: #1530c8; color: #fff; box-shadow: 0 6px 18px rgba(27,61,232,.35); transform: translateY(-1px); }
.bph-achte-btn:active { transform: scale(.97); box-shadow: none; }
.bph-achte-btn:active::after { background: rgba(255,255,255,.12); }

/* ─────────────────────────────────────
   MESAJ VIDE
───────────────────────────────────── */
.bph-empty { text-align:center; padding:70px 20px; color:#6b7280; }
.bph-empty-icon { font-size:3rem; margin-bottom:16px; }
.bph-empty h3 { font-size:1.1rem; font-weight:700; color:#374151; margin:0 0 8px; }
.bph-empty p  { font-size:.88rem; margin:0; }

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
#bph-footer {
  background:#0d1b2a; border-top:1px solid rgba(255,255,255,.06);
  margin-top:48px; font-family:'Poppins',sans-serif;
}
.bph-ft-inner { max-width:1200px; margin:0 auto; padding:44px 24px 26px; }
.bph-ft-top { display:flex; gap:40px; flex-wrap:wrap; margin-bottom:28px; }
.bph-ft-brand { flex:1; min-width:200px; }
.bph-ft-logo  { height:36px; width:auto; object-fit:contain; }
.bph-ft-logo-text { font-size:1.15rem; font-weight:900; color:#fff; text-transform:uppercase; letter-spacing:.05em; }
.bph-ft-desc  { font-size:.8rem; color:#4b6075; line-height:1.65; max-width:280px; margin:12px 0 0; }
.bph-ft-services { flex:1; min-width:180px; }
.bph-ft-label { font-size:.68rem; font-weight:700; color:#2e3f52; text-transform:uppercase; letter-spacing:.1em; margin:0 0 12px; }
.bph-ft-pills { display:flex; flex-wrap:wrap; gap:6px; }
.bph-ft-pill { display:inline-flex; padding:5px 12px; border-radius:999px; background:rgba(27,61,232,.08); border:1px solid rgba(27,61,232,.18); font-size:.72rem; font-weight:600; color:#4d79ff; text-decoration:none; transition:all .18s; white-space:nowrap; }
.bph-ft-pill:hover, a.bph-ft-pill:hover { background:rgba(27,61,232,.2); color:#fff; }
.bph-ft-sep  { height:1px; background:rgba(255,255,255,.06); margin-bottom:20px; }
.bph-ft-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.bph-ft-socials { display:flex; gap:6px; }
.bph-ft-soc { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); color:#4b6075; text-decoration:none; transition:all .18s; overflow:hidden; }
.bph-ft-soc:hover { background:rgba(27,61,232,.25); color:#4d79ff; border-color:rgba(27,61,232,.3); }
.bph-ft-copy { font-size:.68rem; color:#2e3f52; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media(max-width:768px) {
  .bp-nav  { display:none !important; }
  #bp-hbg  { display:flex !important; }
  .bph-hero { padding:44px 16px 32px; }
  .bph-shop { padding:16px 10px 50px; }
  .bph-search-wrap { padding:10px 12px; }
  .bph-ft-top { flex-direction:column; gap:24px; }
  .bph-ft-bottom { flex-direction:column; align-items:flex-start; }
}
@media(max-width:480px) {
  .bph-cat-tab { padding:10px 12px; font-size:.76rem; }
}

/* ─────────────────────────────────────
   KACHE DOUBLONS MY-ACCOUNT
───────────────────────────────────── */
body.woocommerce-account #cn-hdr-wrap,
body.woocommerce-account #cn-dr,
body.woocommerce-account #cn-ov { display:none !important; visibility:hidden !important; height:0 !important; overflow:hidden !important; padding:0 !important; margin:0 !important; }
body.woocommerce-account .cn-ham { display:none !important; }

  .bph-earn-right { display: none; }
  .bph-earn-inner { gap: 24px; }
}
