/* ── BP Card Front CSS v1.4.6 ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════
   SAFE MODE
   Pa kache header tèm globalman ankò, paske sa te ka kraze
   paj akèy la sou kèk konfigurasyon.
══════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   HEADER BP CARD
══════════════════════════════════════════════ */
#bp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bp-h, 64px);
  background: var(--bp-hbg, #fff);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  z-index: 99999;
  font-family: var(--bp-font,'Poppins',sans-serif);
}
.bp-hx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Logo */
.bp-logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.bp-logo img  { height:40px; width:auto; object-fit:contain; }
.bp-logo span { font-size:1.3rem; font-weight:800; color:#111827; letter-spacing:-.4px; }

/* Nav desktop */
.bp-nav { display:flex; align-items:center; gap:2px; flex:1; justify-content:center; }
.bp-nl  {
  font-size:.87rem; font-weight:500; color:#111827;
  text-decoration:none; padding:6px 12px; border-radius:8px;
  white-space:nowrap; transition:all .18s;
}
.bp-nl:hover { background:#fff7ed; color:var(--bp-primary,#f97316); }

/* Actions droite */
.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: 40px; height: 40px;
  border: 1.5px solid #e5e7eb; border-radius: 9px;
  color: #111827; text-decoration: none; background: #fff;
  transition: all .18s;
}
.bp-icon:hover { border-color:var(--bp-primary,#f97316); color:var(--bp-primary,#f97316); }

.bp-badge {
  position: absolute; top:-5px; right:-5px;
  background: var(--bp-primary,#f97316); color:#fff;
  font-size: .6rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.bp-user {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--bp-primary,#f97316); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: .88rem;
  text-decoration: none; transition: transform .2s;
}
.bp-user:hover { transform: scale(1.06); }

/* Hamburger */
#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: #111827; 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 MOBILE
══════════════════════════════════════════════ */
#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: -6px 0 30px rgba(0,0,0,.12);
  font-family: var(--bp-font,'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:#f5f5f5; 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: #111827; font-weight: 500;
  border-bottom: 1px solid #e5e7eb; transition: all .18s;
}
.bp-dl:hover { background:#fff7ed; color:var(--bp-primary,#f97316); padding-left:18px; }

.bp-drawer-cta { margin-top: auto; padding-top: 20px; }
.bp-cta-btn {
  display: block; text-align: center; padding: 13px;
  background: var(--bp-primary,#f97316); color: #fff;
  border-radius: 10px; font-weight: 700;
  text-decoration: none; font-family: var(--bp-font,'Poppins',sans-serif);
  transition: opacity .18s;
}
.bp-cta-btn:hover { opacity: .88; color: #fff; }

/* Backdrop */
#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; }

/* Spacer pou paj ki pa home (header-global) */
.bp-header-spacer { height: var(--bp-h, 64px); }

/* ══════════════════════════════════════════════
   BARRE RECHERCHE LIVE
══════════════════════════════════════════════ */
.bp-hero-search {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
}
/* Box — contenant unique ikonn + input */
.bp-hs-box {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  max-width: 1200px;
  margin: 0 auto;
  height: 46px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 0 14px;
  gap: 10px;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}
.bp-hs-box:focus-within {
  border-color: var(--bp-primary,#f97316);
  box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}
.bp-hs-ico {
  flex-shrink: 0;
  color: #9ca3af;
  display: block;
  pointer-events: none;
}
.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; line-height:1; flex-shrink:0;
}
.bp-hs-clear:hover { background:#111827; color:#fff; }
/* Input — reset total Astra */
input.bp-hs-input,
.bp-hs-input {
  all: unset !important;
  flex: 1 !important;
  min-width: 0 !important;
  font-family: var(--bp-font,'Poppins',sans-serif) !important;
  font-size: .9rem !important;
  color: #111827 !important;
  cursor: text !important;
  box-sizing: border-box !important;
}
input.bp-hs-input::placeholder,
.bp-hs-input::placeholder { color: #9ca3af; }

/* Dropdown résultats */
.bp-hs-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  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: #fff7ed; }
.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; color: #9ca3af; 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; justify-content:center; padding:3px 8px; border-radius:999px; background:#f3f4f6; color:#4b5563; font-size:.64rem; 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 {
  padding: 16px 14px;
  text-align: center;
  color: #9ca3af;
  font-size: .84rem;
}
.bp-hs-loading {
  padding: 14px;
  text-align: center;
  color: #9ca3af;
  font-size: .82rem;
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.bp-shop { max-width:1200px; margin:0 auto; padding:20px 14px 60px; }
.bp-sec  { margin-bottom:48px; }

.bp-sec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 4px 0 4px 12px;
  border-left: 3px solid var(--bp-sec-border,#f97316);
}

.bp-sec-title {
  font-size: 1rem; font-weight: 800;
  color: var(--bp-primary,#f97316);
  text-transform: uppercase; letter-spacing: .1em;
  margin: 0; white-space: nowrap; flex-shrink: 0;
}
.bp-sec-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--bp-sec-border,#f97316) 0%, transparent 100%);
  border-radius: 2px; opacity: .18;
}

/* ══════════════════════════════════════════════
   GRILLE
══════════════════════════════════════════════ */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}
@media(min-width:480px)  { .bp-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:768px)  { .bp-grid { grid-template-columns: repeat(4,1fr); } }
@media(min-width:1024px) { .bp-grid { grid-template-columns: repeat(5,1fr); } }

/* ══════════════════════════════════════════════
   CARTE
══════════════════════════════════════════════ */
.bp-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 0 0 1.5px var(--bp-card-border,#e5e7eb);
  border: none;
  transition: all .24s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.bp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid var(--bp-primary,#f97316);
  opacity: 0;
  transition: opacity .24s;
  pointer-events: none;
  z-index: 1;
}
.bp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.14), 0 0 0 1.5px var(--bp-card-border,#e5e7eb);
}
.bp-card:hover::before { opacity: 1; }

.bp-card-img { width:100%; aspect-ratio:4/3; overflow:hidden; background:#f0f0f0; }
.bp-card-img img { width:100%; height:100%; display:block; transition:transform .4s ease, filter .3s; }
.bp-card:hover .bp-card-img img { transform:scale(1.05); filter:brightness(1.04); }

.bp-card-body { padding:10px 10px 12px; text-align:center; }
.bp-card-name { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#111827; margin:0 0 9px; line-height:1.3; }

.bp-voir {
  display:block; width:100%; padding:9px 0;
  background:#111827; color:#fff;
  font-family:var(--bp-font,'Poppins',sans-serif);
  font-size:.76rem; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; border:none; border-radius:8px;
  cursor:pointer; text-decoration:none; text-align:center;
  transition: background .2s, box-shadow .2s;
}
.bp-voir:hover {
  background:var(--bp-primary,#f97316); color:#fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--bp-primary,#f97316) 40%, transparent);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media(max-width:768px) {
  .bp-nav  { display: none; }
  #bp-hbg  { display: flex; }
  .bp-shop { padding: 16px 10px 50px; }
  .bp-hero-search { padding: 10px 12px; }
}

/* ══════════════════════════════════════════════
   KACHE BLÒK CUSTOM NAN PAJ MY-ACCOUNT
   (#cn-hdr-wrap = lòt header ki enjekte nan entry-content)
══════════════════════════════════════════════ */
body.woocommerce-account #cn-hdr-wrap,
body.woocommerce-account html body #cn-hdr-wrap,
body.woocommerce-account body #cn-hdr-wrap { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }

body.woocommerce-account #cn-dr,
body.woocommerce-account html body #cn-dr,
body.woocommerce-account body #cn-dr { display: none !important; visibility: hidden !important; }

body.woocommerce-account #cn-ov,
body.woocommerce-account html body #cn-ov { display: none !important; }

body.woocommerce-account .cn-ham { display: none !important; }
