.kv-topbar{background:linear-gradient(135deg,var(--kv-primary),var(--kv-secondary));color:#fff;font-size:14px}
.kv-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.kv-top-actions,.kv-header-actions{display:flex;align-items:center;gap:10px}
.kv-mini-btn{width:38px;height:38px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.18);color:#fff;cursor:pointer}
.kv-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid var(--kv-border);box-shadow:0 5px 30px rgba(0,0,0,.04)}
html[data-theme="dark"] .kv-header{background:rgba(15,15,26,.86);border-color:rgba(255,255,255,.08)}
.kv-header-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;min-height:82px}
.kv-logo-text{display:flex;align-items:center;gap:12px;font-weight:900;font-size:24px}
.kv-logo-mark{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,var(--kv-primary),var(--kv-secondary));display:grid;place-items:center;color:#fff}
.kv-menu{display:flex;align-items:center;justify-content:center;gap:6px;list-style:none;margin:0;padding:0}
.kv-menu a{display:block;padding:12px 14px;border-radius:999px;font-weight:700;color:var(--kv-muted)}
.kv-menu a:hover{background:rgba(230,57,70,.10);color:var(--kv-primary)}
.kv-cart-link{display:inline-flex;align-items:center;gap:8px;background:var(--kv-text);color:#fff;border-radius:999px;padding:10px 16px;font-weight:800}
.kv-cart-count{background:var(--kv-primary);color:#fff;min-width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px}
.kv-account-link,.kv-search-open{padding:10px 12px;border-radius:999px;background:#f3f3f8;color:var(--kv-text);border:0;font-weight:700}
html[data-theme="dark"] .kv-account-link,html[data-theme="dark"] .kv-search-open{background:rgba(255,255,255,.08);color:#fff}
.kv-menu-toggle{display:none;background:none;border:0;font-size:28px}
.kv-search-panel{display:none;border-top:1px solid var(--kv-border);padding:16px 0}
.kv-search-panel.is-open{display:block}
.kv-search-panel form{display:flex;gap:10px}
.kv-search-panel input{flex:1;border:1px solid var(--kv-border);border-radius:999px;padding:13px 18px}
.kv-footer{background:#11111d;color:#fff;padding:64px 0 22px;margin-top:70px}
.kv-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:32px}
.kv-footer p{color:#bebed0}.kv-footer h3{margin-top:0}
.kv-footer-menu{list-style:none;margin:0;padding:0;display:grid;gap:8px;color:#d7d7e5}
.kv-footer-newsletter{display:flex;gap:8px}.kv-footer-newsletter input{min-width:0;flex:1;border:0;border-radius:999px;padding:12px 15px}.kv-footer-newsletter button{border:0;background:var(--kv-primary);color:#fff;border-radius:999px;padding:12px 16px;font-weight:800}
.kv-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding-top:20px;color:#aaa}

/* v4 Arabic-first expanded header and FastPro footer */
.kv-header-v4{grid-template-columns:170px 1fr auto;min-height:92px}
.kv-logo-img-link{display:flex;align-items:center}.kv-logo-img{max-width:150px;max-height:68px;border-radius:18px;object-fit:contain}
.kv-top-actions a{color:#fff;font-weight:800;font-size:13px;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 12px}
.kv-header-cats{display:flex;gap:10px;overflow:auto;padding:0 0 14px;scrollbar-width:thin}
.kv-header-cats a{white-space:nowrap;background:#fff;border:1px solid var(--kv-border);border-radius:999px;padding:9px 14px;font-size:13px;font-weight:900;color:var(--kv-muted)}
.kv-header-cats a:hover{background:rgba(230,57,70,.09);color:var(--kv-primary)}
html[data-theme="dark"] .kv-header-cats a{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08);color:#ddd}
.kv-footer-v4{background:linear-gradient(135deg,#0f0f1a,#1f1f3d)}
.kv-footer-brand img{max-width:150px;max-height:72px;border-radius:18px;margin-bottom:18px}
.kv-fastpro-credit{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#d7d7e5}
.kv-fastpro-credit a{color:#fff;font-weight:900;text-decoration:underline}
@media(max-width:1100px){.kv-header-v4{grid-template-columns:1fr auto}.kv-header-cats{padding-top:8px}}

/* v5 refined classic header */
.kv-classic-header{box-shadow:0 10px 34px rgba(18,18,32,.06)}
.kv-header-v5{grid-template-columns:230px 1fr auto;min-height:96px}
.kv-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.kv-logo-img{max-width:118px;max-height:64px;border-radius:0;object-fit:contain;background:#fff}.kv-fastpro-header{font-size:11px;font-weight:900;color:var(--kv-primary);border:1px solid rgba(230,57,70,.22);background:rgba(230,57,70,.06);padding:6px 9px;border-radius:999px;white-space:nowrap}
.kv-dismissible-bar .kv-topbar-inner{justify-content:center;position:relative}.kv-offer-text{font-weight:900}.kv-topbar-close{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.14);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.kv-header-actions .kv-mini-btn{background:#f8f5ee;color:#1f1b18;border:1px solid #eadfcc}.kv-header-actions .kv-mini-btn:hover{background:var(--kv-primary);color:#fff}
.kv-menu a{font-family:var(--kv-ar);font-weight:800;color:#312820}.kv-menu a:hover{background:#fbf3ea;color:var(--kv-primary)}
.kv-header-cats a{background:#fffaf4;border-color:#eadfcc;color:#6f5741}.kv-header-cats a:hover{background:#1c1714;color:#fff;border-color:#1c1714}
.kv-footer-v5{background:#14110f;color:#fff}.kv-footer-v5 h3{color:#f4dfb6}.kv-footer-bottom-clean{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:18px;color:#cdbf9d;text-align:center}.kv-footer-brand img{background:#fff;max-width:130px;border-radius:0;padding:6px}
@media(max-width:1180px){.kv-header-v5{grid-template-columns:1fr auto}.kv-fastpro-header{display:inline-flex}.kv-header-actions{grid-column:1/-1;justify-content:center}.kv-main-nav{grid-column:1/-1}}

/* v6 requested layout changes */
.kv-header-cats{
  justify-content:center;
  text-align:center;
  padding-left:0;
  padding-right:0;
}
.kv-header-cats a{
  text-align:center;
}
.kv-fastpro-credit{
  justify-content:center;
  text-align:center;
  align-items:center;
  gap:8px;
  color:#d7d7e5;
}
.kv-fastpro-credit a{
  color:#fff;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.7);
}
.kv-fastpro-credit a:hover{
  color:#D4AF37;
}
