﻿/* ========================================================================
   MJK E-Commerce — Complete Redesign 2026
   Clean · Modern · Professional
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  --blue:        #1D4ED8;
  --blue-dark:   #1E3A8A;
  --blue-mid:    #2563EB;
  --blue-light:  #3B82F6;
  --blue-pale:   #EFF6FF;
  --blue-border: #BFDBFE;

  --white:   #FFFFFF;
  --bg:      #F8FAFC;
  --bg-card: #FFFFFF;

  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;

  --green:  #10B981;
  --red:    #EF4444;
  --orange: #F59E0B;

  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.08);
  --sh:    0 4px 12px rgba(0,0,0,.08);
  --sh-md: 0 8px 24px rgba(0,0,0,.10);
  --sh-lg: 0 16px 40px rgba(0,0,0,.12);
  --sh-blue: 0 8px 24px rgba(29,78,216,.25);

  --t: all .25s ease;
  --w: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:14px; }
body {
  font-family:'Tajawal',system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink-800);
  line-height:1.6;
  overflow-x:hidden;
  padding-top: 0 !important;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition:var(--t); }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
ul { list-style:none; }

.container { max-width:var(--w); margin:0 auto; padding:0 1.5rem; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.2; color:var(--ink-900); margin-bottom:.75rem; }
h1 { font-size:clamp(2rem,4vw,3.25rem); }
h2 { font-size:clamp(1.5rem,3vw,2.25rem); }
h3 { font-size:1.5rem; }
h4 { font-size:1.25rem; }
p  { color:var(--ink-600); margin-bottom:.75rem; }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.75rem 1.75rem; font-weight:700; font-size:.9375rem;
  border-radius:var(--r-full); border:none; cursor:pointer; transition:var(--t);
}
.btn-primary {
  background:linear-gradient(135deg,var(--blue-mid),var(--blue-light));
  color:#fff; box-shadow:var(--sh-blue);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(29,78,216,.35); }
.btn-outline {
  background:transparent; border:2px solid var(--blue-mid); color:var(--blue-mid);
}
.btn-outline:hover { background:var(--blue-mid); color:#fff; }
.btn-white { background:#fff; color:var(--blue-mid); box-shadow:var(--sh-md); }
.btn-white:hover { transform:translateY(-2px); box-shadow:var(--sh-lg); }
.btn-sm  { padding:.5rem 1.25rem; font-size:.875rem; }
.btn-lg  { padding:1rem 2.25rem; font-size:1.0625rem; }
.btn-primary-full {
  display:block; width:100%; text-align:center;
  background:linear-gradient(135deg,var(--blue-mid),var(--blue-light));
  color:#fff; padding:1rem; border-radius:var(--r-md); font-weight:700; transition:var(--t);
}
.btn-primary-full:hover { transform:translateY(-2px); box-shadow:var(--sh-blue); }

/* ── Badges ── */
.badge {
  display:inline-flex; align-items:center; padding:.3rem .75rem;
  font-size:.75rem; font-weight:700; border-radius:var(--r-full);
}
.badge-blue   { background:var(--blue-pale);  color:var(--blue-mid); }
.badge-green  { background:#D1FAE5; color:#059669; }
.badge-red    { background:#FEE2E2; color:#DC2626; }
.badge-orange { background:#FEF3C7; color:#D97706; }
.badge-purple { background:#EDE9FE; color:#7C3AED; }

/* ── Section ── */
#main-content { padding-top: 0; margin-top: 0; }
.section { padding:5rem 0; }
.section-header { text-align:center; max-width:640px; margin:0 auto 3rem; }
.section-header h2 { margin-bottom:.75rem; }
.section-header p  { font-size:1.0625rem; }

/* ── Topbar ── */
/* .topbar {
  background:var(--ink-900);
  color:rgba(255,255,255,.8);
  padding:.5rem 0;
  font-size:.8125rem;
}
.topbar .container {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.75rem;
}
.topbar-left,.topbar-right { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.topbar span { display:flex; align-items:center; gap:.4rem; }
.topbar i { color:var(--blue-light); } */
.social-links { display:flex; gap:.5rem; }
.social-links a {
  width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border-radius:50%; transition:var(--t);
}
.social-links a:hover { background:var(--blue-mid); transform:translateY(-2px); }

/* ── Navbar ── */
.navbar {
  background:#fff;
  box-shadow:0 1px 0 var(--ink-200), 0 4px 16px rgba(0,0,0,.06);
  position:sticky; top:0; z-index:1000;
}
.navbar .container {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:.875rem; padding-bottom:.875rem; gap:1.5rem;
}

/* Logo */
.navbar-brand {
  display:flex; flex-direction:column; align-items:flex-start;
  gap:.2rem; flex-shrink:0; text-decoration:none;
}
.navbar-logo-img { height:44px; width:auto; max-width:160px; object-fit:contain; }
.logo-sub { font-size:.7rem; color:var(--ink-400); font-weight:500; }

/* Search */
.navbar-search { flex:1; max-width:480px; }
.navbar-search form { position:relative; display:flex; }
.navbar-search input {
  width:100%; padding:.8rem 3.25rem .8rem 1.25rem;
  border:2px solid var(--ink-200); border-radius:var(--r-full);
  font-size:.9375rem; background:var(--ink-50); transition:var(--t);
  font-family:inherit;
}
.navbar-search input:focus {
  outline:none; border-color:var(--blue-mid); background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.navbar-search button {
  position:absolute; left:.4rem; top:50%; transform:translateY(-50%);
  width:38px; height:38px; background:var(--blue-mid); color:#fff;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  transition:var(--t);
}
.navbar-search button:hover { background:var(--blue-dark); transform:translateY(-50%) scale(1.05); }

/* Nav Actions */
.navbar-actions { display:flex; align-items:center; gap:.75rem; }
.nav-action {
  position:relative; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  background:var(--ink-100); border-radius:50%;
  color:var(--ink-700); font-size:1.125rem; transition:var(--t);
}
.nav-action:hover { background:var(--blue-mid); color:#fff; transform:translateY(-2px); }
.cart-badge {
  position:absolute; top:-4px; right:-4px;
  background:var(--red); color:#fff;
  width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:.6875rem; font-weight:700; border:2px solid #fff;
}
.mobile-menu-btn {
  display:none; flex-direction:column; gap:5px;
  width:44px; height:44px; align-items:center; justify-content:center;
  background:var(--ink-100); border-radius:var(--r);
}
.mobile-menu-btn span { width:22px; height:2.5px; background:var(--ink-700); border-radius:2px; transition:var(--t); }

/* Nav Menu */
.navbar-menu { background:#fff; border-top:1px solid var(--ink-100); }
.nav-links {
  display:flex; align-items:center; justify-content:center;
  gap:.25rem; padding:.625rem 0;
}
.nav-links > li > a {
  display:flex; align-items:center; gap:.5rem;
  padding:.625rem 1.125rem; color:var(--ink-700);
  font-weight:600; font-size:.9375rem; border-radius:var(--r-md); transition:var(--t);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { background:var(--blue-pale); color:var(--blue-mid); }
.nav-links .arrow { font-size:.7rem; transition:var(--t); }
.nav-links .has-dropdown:hover .arrow { transform:rotate(180deg); }

/* Mega Menu */
.has-dropdown { position:relative; }
.mega-menu {
  position:absolute; top:calc(100% + .5rem); right:0;
  background:#fff; border-radius:var(--r-lg);
  box-shadow:var(--sh-lg); padding:2rem;
  min-width:680px; opacity:0; visibility:hidden;
  transform:translateY(8px); transition:var(--t); z-index:100;
  border:1px solid var(--ink-100);
}
.has-dropdown:hover .mega-menu { opacity:1; visibility:visible; transform:translateY(0); }
.mega-menu-inner { display:grid; grid-template-columns:repeat(4,1fr); gap:1.75rem; }
.mega-col h4 {
  font-size:.9375rem; color:var(--ink-900); margin-bottom:.875rem;
  display:flex; align-items:center; gap:.5rem;
  padding-bottom:.5rem; border-bottom:2px solid var(--blue-pale);
}
.mega-col h4 i { color:var(--blue-mid); }
.mega-col a { display:block; padding:.4rem 0; color:var(--ink-600); font-size:.9rem; transition:var(--t); }
.mega-col a:hover { color:var(--blue-mid); padding-right:.5rem; }

/* ── Cart Sidebar ── */
.cart-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px); z-index:9998;
  opacity:0; visibility:hidden; transition:var(--t);
}
.cart-overlay.active { opacity:1; visibility:visible; }
.cart-sidebar {
  position:fixed; top:0; left:-420px; width:420px; height:100%;
  background:#fff; box-shadow:var(--sh-lg); z-index:9999;
  display:flex; flex-direction:column; transition:var(--t);
}
.cart-sidebar.active { left:0; }
.cart-sidebar-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.25rem 1.5rem; border-bottom:1px solid var(--ink-100);
}
.cart-sidebar-header h3 { font-size:1.125rem; margin:0; display:flex; align-items:center; gap:.5rem; }
.close-cart {
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  background:var(--ink-100); border-radius:50%; color:var(--ink-700); transition:var(--t);
}
.close-cart:hover { background:var(--red); color:#fff; }
.cart-sidebar-body { flex:1; overflow-y:auto; padding:1.25rem 1.5rem; }
.cart-sidebar-footer { padding:1.25rem 1.5rem; border-top:1px solid var(--ink-100); }
.cart-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; font-weight:700; }
.total-price { color:var(--blue-mid); font-size:1.5rem; }

/* ── Footer ── */
.footer { background:var(--ink-900); color:var(--ink-400); margin-top:5rem; }
.footer-top { padding:4rem 0 2.5rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:3rem; }
.footer-brand .footer-logo { display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.footer-brand p { color:var(--ink-500); line-height:1.8; margin-bottom:1.5rem; font-size:.9375rem; }
.footer-social { display:flex; gap:.625rem; }
.footer-social a {
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.07); border-radius:50%; color:#fff; transition:var(--t);
}
.footer-social a:hover { background:var(--blue-mid); transform:translateY(-3px); }
.footer-col h4 { color:#fff; font-size:1rem; margin-bottom:1.25rem; }
.footer-col ul li { margin-bottom:.625rem; }
.footer-col ul li a { color:var(--ink-500); display:flex; align-items:center; gap:.5rem; transition:var(--t); font-size:.9375rem; }
.footer-col ul li a:hover { color:var(--blue-light); padding-right:.375rem; }
.footer-col ul li i { font-size:.7rem; }
.contact-list li { display:flex; align-items:flex-start; gap:.75rem; margin-bottom:.875rem; color:var(--ink-500); font-size:.9375rem; }
.contact-list li i { color:var(--blue-light); margin-top:.2rem; flex-shrink:0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.07); padding:1.25rem 0; }
.footer-bottom .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { color:var(--ink-500); margin:0; font-size:.875rem; }
.payment-icons { display:flex; gap:.875rem; font-size:1.625rem; color:var(--ink-600); }

/* ── Toast ── */
.toast-container { position:fixed; top:90px; left:20px; z-index:10000; display:flex; flex-direction:column; gap:.875rem; }
.toast {
  background:#fff; padding:.875rem 1.25rem; border-radius:var(--r-md);
  box-shadow:var(--sh-lg); display:flex; align-items:center; gap:.875rem;
  min-width:280px; animation:toastIn .3s ease;
}
.toast.success { border-right:4px solid var(--green); }
.toast.error   { border-right:4px solid var(--red); }
.toast.info    { border-right:4px solid var(--blue-light); }
.toast.success i { color:var(--green); font-size:1.375rem; }
.toast.error   i { color:var(--red);   font-size:1.375rem; }
.toast.info    i { color:var(--blue-light); font-size:1.375rem; }
@keyframes toastIn { from { transform:translateX(-100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ── Back to Top ── */
.back-to-top {
  position:fixed; bottom:28px; left:28px;
  width:48px; height:48px; background:var(--blue-mid); color:#fff;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.125rem; box-shadow:var(--sh-blue);
  opacity:0; visibility:hidden; transition:var(--t); z-index:1000;
}
.back-to-top.visible { opacity:1; visibility:visible; }
.back-to-top:hover { background:var(--blue-dark); transform:translateY(-4px); }

/* ── Responsive ── */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .mega-menu { min-width:560px; }
  .mega-menu-inner { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  /* .topbar .container { justify-content:center; } */
  .navbar .container { flex-wrap:wrap; }
  .navbar-search { order:3; width:100%; max-width:100%; }
  .mobile-menu-btn { display:flex; }
  .navbar-menu { display:none; position:absolute; top:100%; right:0; width:100%; background:#fff; box-shadow:var(--sh-lg); }
  .navbar-menu.active { display:block; }
  .nav-links { flex-direction:column; align-items:stretch; padding:.75rem; }
  .nav-links > li > a { justify-content:space-between; }
  .mega-menu { position:static; min-width:auto; box-shadow:none; padding:.75rem; margin-top:0; opacity:1; visibility:visible; transform:none; display:none; border:none; }
  .has-dropdown.active .mega-menu { display:block; }
  .mega-menu-inner { grid-template-columns:1fr; gap:.75rem; }
  .footer-grid { grid-template-columns:1fr; gap:2rem; }
  .cart-sidebar { width:100%; left:-100%; }
  .cart-sidebar.active { left:0; }
  .section { padding:3rem 0; }
}
@media (max-width:480px) {
  .container { padding:0 1rem; }
}
/*  Navbar  */
.navbar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Nav Menu center */
.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .875rem;
  color: #334155;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 10px;
  transition: all .25s ease;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: #EFF6FF;
  color: #2563EB;
}

.nav-links > li > a.active { font-weight: 700; }

.arrow { font-size: .625rem; transition: transform .25s ease; }
.has-dropdown:hover .arrow { transform: rotate(180deg); }

/* Mega Menu */
.has-dropdown { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  padding: 1.75rem;
  min-width: 620px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 200;
  border: 1px solid #F1F5F9;
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-col h4 {
  font-size: .875rem;
  color: #0F172A;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #EFF6FF;
}

.mega-col h4 i { color: #2563EB; }

.mega-col a {
  display: block;
  padding: .35rem 0;
  color: #475569;
  font-size: .875rem;
  transition: all .25s ease;
}

.mega-col a:hover { color: #2563EB; padding-right: .375rem; }

/* Right Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

/* Search */
.nav-search-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .35s ease, opacity .35s ease;
}

.nav-search-wrap.open {
  max-width: 260px;
  opacity: 1;
}

.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-form input {
  width: 240px;
  padding: .6rem 2.75rem .6rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 9999px;
  font-size: .9rem;
  font-family: inherit;
  background: #F8FAFC;
  transition: all .25s ease;
}

.nav-search-form input:focus {
  outline: none;
  border-color: #2563EB;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.nav-search-form button {
  position: absolute;
  left: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #2563EB;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  transition: all .25s ease;
}

.nav-search-form button:hover { background: #1E3A8A; }

.nav-search-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 50%;
  color: #334155;
  font-size: 1rem;
  transition: all .25s ease;
  flex-shrink: 0;
}

.nav-search-toggle:hover,
.nav-search-toggle.active {
  background: #2563EB;
  color: #fff;
}

/* Cart */
.nav-action {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 50%;
  color: #334155;
  font-size: 1.0625rem;
  transition: all .25s ease;
  flex-shrink: 0;
}

.nav-action:hover {
  background: #2563EB;
  color: #fff;
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 10px;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all .25s ease;
  display: block;
}

/*  Responsive Navbar  */
@media (max-width: 1024px) {
  .mega-menu { min-width: 480px; }
  .mega-menu-inner { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-search-toggle { display: none; }
  .nav-search-wrap { display: none; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-top: 1px solid #F1F5F9;
    flex-direction: column;
    justify-content: flex-start;
  }

  .navbar-menu.active { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem;
    gap: .125rem;
  }

  .nav-links > li > a {
    justify-content: space-between;
    padding: .75rem 1rem;
  }

  .mega-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: .5rem 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #F8FAFC;
    border-radius: 10px;
    margin: .25rem 0;
  }

  .has-dropdown.active .mega-menu { display: block; }
  .mega-menu-inner { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}

/*  Footer  */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cart-sidebar { width: 100%; left: -100%; }
  .cart-sidebar.active { left: 0; }
  .section { padding: 3rem 0; }
  /* .topbar .container { justify-content: center; } */
}

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  padding: 2rem 0;
  color: #fff;
}
.page-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: .5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: .625rem; }

/* ── Footer Newsletter ── */
.footer-newsletter { margin-top: 1.25rem; }

.newsletter-form {
  display: flex;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}

.newsletter-form input {
  flex: 1;
  padding: .625rem 1rem;
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: none; background: rgba(255,255,255,.12); }

.newsletter-form button {
  padding: .625rem 1rem;
  background: #2563EB;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  font-size: .9375rem;
}

.newsletter-form button:hover { background: #1D4ED8; }

/* ========================================================================
   RESPONSIVE — Complete Fix
   ======================================================================== */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {

  /* Slider */
  .hero-slider-wrap { height: 70vh; min-height: 480px; max-height: 640px; }
  .slide-text h1 { font-size: 2.25rem; }
  .slide-text p { font-size: 1rem; }
  .sl-thumbs { display: none; }
  .sl-dots { bottom: 1.5rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { height: 240px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Topbar — hide on mobile */
  /* .topbar { display: none; } */

  /* Navbar */
  .nav-container { height: 60px; gap: 1rem; }
  .navbar-logo-img { height: 38px; }
  .mobile-menu-btn { display: flex; }
  .nav-search-toggle { display: none; }
  .nav-search-wrap { display: none; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-top: 1px solid #F1F5F9;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-menu.active { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem;
    gap: .125rem;
  }
  .nav-links > li > a {
    justify-content: space-between;
    padding: .875rem 1rem;
    border-radius: 10px;
  }

  .mega-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: .5rem .75rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #F8FAFC;
    border-radius: 10px;
    margin: .25rem 0;
  }
  .has-dropdown.active .mega-menu { display: block; }
  .mega-menu-inner { grid-template-columns: 1fr 1fr; gap: .75rem; }

  /* Slider */
  .hero-slider-wrap { height: 60vh; min-height: 400px; max-height: 560px; }
  .slide-text { max-width: 100%; padding: 0 1rem; }
  .slide-text h1 { font-size: 1.75rem; }
  .slide-text p { font-size: .9375rem; display: none; }
  .slide-btns { gap: .75rem; }
  .sbtn { padding: .75rem 1.25rem; font-size: .875rem; }
  .slide-stats { gap: 1rem; }
  .ss-item strong { font-size: 1.25rem; }
  .sl-prev { right: .75rem; }
  .sl-next { left: .75rem; }
  .sl-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .sl-dots { bottom: 1rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1.25rem; }
  .stat-content h3 { font-size: 1.5rem; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .category-card { height: 200px; }
  .cat-content h3 { font-size: 1.125rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-image { height: 180px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .feature-card { padding: 1.5rem 1.25rem; }

  /* CTA */
  .cta-content h2 { font-size: 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { padding: 2.5rem 0 1.5rem; }

  /* Cart */
  .cart-sidebar { width: 100%; left: -100%; }
  .cart-sidebar.active { left: 0; }

  /* Section */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {

  .container { padding: 0 .875rem; }

  /* Slider */
  .hero-slider-wrap { height: 55vh; min-height: 360px; }
  .slide-text h1 { font-size: 1.5rem; }
  .slide-btns { flex-direction: column; }
  .sbtn { justify-content: center; }
  .slide-stats { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card { padding: 1rem; gap: .75rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.125rem; }
  .stat-content h3 { font-size: 1.375rem; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .category-card { height: 170px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Mega menu */
  .mega-menu-inner { grid-template-columns: 1fr; }

  /* Page header */
  .page-header h1 { font-size: 1.5rem; }
}


/* ========================================================================
   MJK Premium Navbar & Footer  2026
   ======================================================================== */

/* Switch body font to Inter for English layout */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/*  Top Bar  */
.mjk-topbar {
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mjk-social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  transition: all .2s ease;
  text-decoration: none;
}

.mjk-social-icon:hover {
  background: #2563EB;
  color: #fff;
  transform: translateY(-2px);
}

/*  Main Navbar  */
.mjk-navbar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  z-index: 1000;
}

.mjk-brand { text-decoration: none; }

.mjk-logo-img {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Nav Links */
.mjk-nav-link {
  display: inline-flex;
  align-items: center;
  padding: .5rem .9rem;
  color: #334155;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.mjk-nav-link:hover,
.mjk-nav-link.active {
  background: #EFF6FF;
  color: #2563EB;
}

.mjk-nav-link.active { font-weight: 700; }

.mjk-arrow {
  font-size: .6rem;
  transition: transform .2s ease;
}

/* Dropdown */
.mjk-dropdown { position: relative; }

.mjk-dropdown:hover .mjk-arrow { transform: rotate(180deg); }

.mjk-mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
  padding: 1.75rem;
  min-width: 640px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  z-index: 200;
}

.mjk-dropdown:hover .mjk-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mjk-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mjk-mega-heading {
  font-size: .8125rem;
  font-weight: 700;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #EFF6FF;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.mjk-mega-heading i { color: #2563EB; }

.mjk-mega-col a {
  display: block;
  padding: .3rem 0;
  color: #475569;
  font-size: .875rem;
  text-decoration: none;
  transition: all .2s ease;
}

.mjk-mega-col a:hover {
  color: #2563EB;
  padding-left: .375rem;
}

/* Icon Buttons */
.mjk-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 50%;
  color: #334155;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  flex-shrink: 0;
}

.mjk-icon-btn:hover {
  background: #2563EB;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}

/* Cart Badge */
.mjk-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Search */
.mjk-search-wrap {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .35s ease, opacity .35s ease;
}

.mjk-search-wrap.open {
  max-width: 260px;
  opacity: 1;
}

.mjk-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.mjk-search-form input {
  width: 240px;
  padding: .55rem 2.75rem .55rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 9999px;
  font-size: .875rem;
  font-family: inherit;
  background: #F8FAFC;
  transition: all .2s ease;
}

.mjk-search-form input:focus {
  outline: none;
  border-color: #2563EB;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.mjk-search-form button {
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: #2563EB;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: background .2s ease;
}

.mjk-search-form button:hover { background: #1E3A8A; }

/* Hamburger */
.mjk-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mjk-hamburger span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  display: block;
  transition: all .25s ease;
}

/* Mobile Menu */
.mjk-mobile-menu {
  display: none;
  flex-direction: column;
  padding: .75rem 0 1rem;
  border-top: 1px solid #F1F5F9;
}

.mjk-mobile-menu.open { display: flex; }

.mjk-mobile-link {
  padding: .75rem 1rem;
  color: #334155;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  border-radius: 10px;
  transition: all .2s ease;
}

.mjk-mobile-link:hover,
.mjk-mobile-link.active {
  background: #EFF6FF;
  color: #2563EB;
}

/*  Footer  */
.mjk-footer {
  background: #0F172A;
  color: #94A3B8;
  margin-top: 5rem;
}

.mjk-footer-top { padding: 4rem 0 2.5rem; }

.mjk-footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mjk-footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}

.mjk-footer-links { margin: 0; padding: 0; }

.mjk-footer-links li { margin-bottom: .625rem; }

.mjk-footer-links a {
  color: #64748B;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}

.mjk-footer-links a:hover {
  color: #3B82F6;
  padding-left: .25rem;
}

.mjk-footer-contact { margin: 0; padding: 0; }

.mjk-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .875rem;
  color: #64748B;
  font-size: .9rem;
}

.mjk-footer-contact li i {
  margin-top: .15rem;
  flex-shrink: 0;
  width: 14px;
}

.mjk-footer-social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  color: #94A3B8;
  font-size: .875rem;
  text-decoration: none;
  transition: all .2s ease;
}

.mjk-footer-social:hover {
  background: #2563EB;
  color: #fff;
  transform: translateY(-3px);
}

.mjk-newsletter-form {
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

.mjk-newsletter-form input {
  flex: 1;
  padding: .625rem 1rem;
  background: rgba(255,255,255,.07);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
  min-width: 0;
}

.mjk-newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.mjk-newsletter-form input:focus { outline: none; background: rgba(255,255,255,.1); }

.mjk-newsletter-form button {
  padding: .625rem 1.125rem;
  background: #2563EB;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .9375rem;
  transition: background .2s ease;
  flex-shrink: 0;
}

.mjk-newsletter-form button:hover { background: #1D4ED8; }

.mjk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
}

/*  Responsive  */
@media (max-width: 1024px) {
  .mjk-mega-menu { min-width: 480px; }
  .mjk-mega-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .mjk-mega-menu { display: none !important; }
}

@media (max-width: 768px) {
  .mjk-logo-img { height: 38px; }
  .mjk-footer-top { padding: 2.5rem 0 1.5rem; }
}

/* ── Brand Tagline ── */
.mjk-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.mjk-tagline {
  font-size: .65rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* ── Hero Carousel ── */
.hero-img {
  height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .hero-img {
    height: 50vh;
  }
}

/* ========================================================================
   Bottom Navigation Bar — Mobile Only
   ======================================================================== */
.mjk-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1100;
  padding: 0 4px;
}

/* Push page content up so it's not hidden behind the bar */
@media (max-width: 991px) {
  body { padding-bottom: 64px; }
  /* Hide the top hamburger + mobile menu on small screens — bottom nav replaces it */
  .mjk-hamburger { display: none !important; }
  .mjk-mobile-menu { display: none !important; }
}

/* Regular nav item */
.mjk-bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #94a3b8;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .2s ease;
  padding: 6px 0;
  position: relative;
}

.mjk-bn-item i {
  font-size: 1.25rem;
  transition: transform .2s ease, color .2s ease;
}

.mjk-bn-item span {
  line-height: 1;
}

.mjk-bn-item:hover,
.mjk-bn-item.active {
  color: #2563eb;
}

.mjk-bn-item.active i {
  transform: translateY(-2px);
}

/* Active indicator dot */
.mjk-bn-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: #2563eb;
  border-radius: 50%;
}

/* Centre cart bubble */
.mjk-bn-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding-bottom: 20px; /* lift it above the bar */
}

.mjk-bn-cart-bubble {
  position: relative;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 3px solid #fff;
}

.mjk-bn-cart:hover .mjk-bn-cart-bubble,
.mjk-bn-cart.active .mjk-bn-cart-bubble {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37,99,235,.55);
}

.mjk-bn-cart-bubble i {
  font-size: 1.25rem;
  color: #fff;
}

.mjk-bn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Bottom nav account button (for logged-in user dropdown) */
.mjk-bn-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  padding: 6px 0;
  width: 100%;
  font-family: inherit;
  transition: color .2s ease;
}

.mjk-bn-item-btn i {
  font-size: 1.25rem;
  transition: transform .2s ease, color .2s ease;
}

.mjk-bn-item-btn:hover,
.mjk-bn-item.show .mjk-bn-item-btn {
  color: #2563eb;
}

/* Hide top bar on mobile */
@media (max-width: 991px) {
  .mjk-topbar { display: none; }
}

/* Lift back-to-top above bottom nav on mobile */
@media (max-width: 991px) {
  .back-to-top { bottom: 80px; }
}

/* Remove any gap above navbar */
html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.mjk-navbar.sticky-top {
  top: 0 !important;
  margin-top: 0 !important;
}

/* ── Language Select ── */
.mjk-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #F1F5F9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px 6px;
  border: none;
  border-radius: 9999px;
  padding: .4rem 2rem .4rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all .2s ease;
  height: 40px;
  min-width: 80px;
  outline: none;
  font-family: inherit;
}

.mjk-lang-select:hover,
.mjk-lang-select:focus {
  background-color: #2563EB;
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E");
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}

/* Mobile full-width variant */
.mjk-lang-select.w-100 {
  border-radius: 10px;
  padding: .6rem 2.25rem .6rem 1rem;
  font-size: .9rem;
  height: auto;
}
