/* /public_html/assets/site.css
   Header + Footer CSS (Responsive, App/WebView friendly)
*/

:root{
  --bg:#f5f7fb;
  --text:#0f172a;
  --muted:#64748b;

  --card:#ffffff;
  --border:#e6eaf2;

  --shadow:0 10px 28px rgba(15,23,42,.08);
  --shadowSm:0 6px 18px rgba(15,23,42,.10);

  --radius:14px;
  --accent:#0ea5e9;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit;}

.wrap, .ks-wrap{
  width:min(1240px, calc(100% - 28px));
  margin:0 auto;
}

/* Skip link */
.ks-skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.ks-skip:focus{
  left:14px; top:14px;
  width:auto; height:auto;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  z-index:9999;
}

/* =========================
   HEADER
   ========================= */
.ks-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.ks-header.is-scrolled{ box-shadow: var(--shadowSm); }

.ks-headbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 0;
}

.ks-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
}

/* Logo: image only + hide any accidental text nodes */
.ks-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:0;
  margin:0;
  font-size:0;             /* hides any text fallback */
  line-height:0;
}
.ks-logo img{
  height: 34px;            /* Flipkart-like */
  width: auto;
  display:block;
  object-fit:contain;
}

/* Desktop search: fixed width */
.ks-search{
  position:relative;
  display:flex;
  align-items:center;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 10px;     /* professional */
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
  width:100%;
  min-width: 220px;
}
.ks-search.ks-d-only{
  flex: 0 1 560px;         /* fixed size on desktop */
  max-width: 560px;
}
.ks-search-ic{
  position:absolute;
  left:12px;
  color: rgba(15,23,42,.55);
}
.ks-search input{
  width:100%;
  padding: 12px 44px 12px 40px;
  border:0;
  outline:none;
  background:transparent;
  font-size:14px;
}
.ks-search:focus-within{
  border-color: rgba(14,165,233,.35);
  box-shadow: 0 0 0 4px rgba(14,165,233,.10);
}
.ks-search-btn{
  position:absolute;
  right:6px;
  width:36px;
  height:36px;
  border-radius: 10px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: rgba(15,23,42,.75);
}
.ks-search-btn:hover{ box-shadow: 0 6px 14px rgba(15,23,42,.08); }

/* Actions */
.ks-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex: 0 0 auto;
}
.ks-action{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color: rgba(15,23,42,.90);
}
.ks-action:hover{ box-shadow: var(--shadowSm); }
.ks-action-ic{ display:inline-flex; color: rgba(15,23,42,.78); }

.ks-cart{ position:relative; }
.ks-badge{
  position:absolute;
  top:-7px;
  right:-7px;
  background: var(--accent);
  color:#fff;
  font-weight:900;
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  border:2px solid #fff;
}

/* Desktop nav row */
.ks-navrow{
  background:#fff;
  border-top:1px solid var(--border);
}
.ks-navinner{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 10px 0;
}

.ks-cats{ position:relative; }
.ks-catbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fff;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.ks-catbtn:hover{ box-shadow: var(--shadowSm); }

.ks-catpanel{
  display:none;
  position:absolute;
  top: 46px;
  left:0;
  width: min(520px, 70vw);
  background:#fff;
  border:1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index:120;
}
.ks-catgrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ks-catgrid a{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:800;
  color: rgba(15,23,42,.90);
  border:1px solid transparent;
  background: rgba(15,23,42,.02);
}
.ks-catgrid a:hover{
  background: rgba(14,165,233,.06);
  border-color: rgba(14,165,233,.14);
}

.ks-nav{
  display:flex;
  align-items:center;
  gap:18px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
  flex:1;
}
.ks-nav::-webkit-scrollbar{display:none;}
.ks-nav a{
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color: rgba(15,23,42,.85);
  padding: 10px 2px;
  position:relative;
  white-space:nowrap;
}
.ks-nav a:hover{ color: rgba(15,23,42,1); }
.ks-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:4px;
  width:0;
  height:2px;
  background: var(--accent);
  transition: width .18s ease;
}
.ks-nav a:hover::after{ width:100%; }

/* Mobile search bar wrapper spacing */
.ks-msearchbar{
  padding: 0 0 12px;
}

/* Drawer */
.ks-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index:140;
}
.ks-drawer{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:min(360px, 86vw);
  background:#fff;
  z-index:150;
  transform: translateX(-110%);
  transition: transform .18s ease;
  border-right:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.ks-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px;
  border-bottom:1px solid var(--border);
}
.ks-drawer-logo img{ height:34px; width:auto; display:block; object-fit:contain; }
.ks-drawer-body{ padding:10px; overflow:auto; }
.ks-drawer-body a{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:900;
  color: rgba(15,23,42,.90);
  border:1px solid transparent;
}
.ks-drawer-body a:hover{
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.06);
}
.ks-drawer-title{
  padding: 10px 12px 6px;
  font-size:12px;
  font-weight:900;
  color: var(--muted);
}
.ks-sep{ height:1px; background: var(--border); margin: 10px 0; }

/* Icon buttons */
.ks-ibtn{
  width:40px; height:40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.ks-ibtn:hover{ box-shadow: var(--shadowSm); }

/* Page wrapper */
.page{ padding: 14px 0 0; }

/* Visibility helpers */
.ks-d-only{display:inline-flex;}
.ks-m-only{display:none;}

/* MOBILE BREAKPOINT */
@media (max-width: 900px){
  .ks-d-only{display:none;}
  .ks-m-only{display:flex;}

  /* On mobile: search should not be in top row, it is below as full width */
  .ks-headbar{ padding-bottom: 8px; }
  .ks-search--mobile{ width:100%; }
  .ks-action{ padding:10px; } /* compact icons */
}

@media (max-width: 520px){
  .ks-wrap{ width: calc(100% - 20px); }
  .ks-logo img{ height:32px; }
  .ks-search input{ font-size:13px; }
}

/* =========================
   FOOTER (your existing footer styles can remain below)
   ========================= */

/* (Keep your footer CSS here as-is — no need to change if already added) */
-search input{ font-size:13px; }
}

/* ==========================
   Professional Footer Styles
   ========================== */

.site-footer{
  margin-top: 26px;
  background:#0b1320;
  color: rgba(255,255,255,.92);
}

.site-footer .wrap{
  width:min(1200px, calc(100% - 28px));
  margin:0 auto;
}

.footer-divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
}

/* Trust row */
.footer-trust{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  padding: 18px 0 0;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.trust-ic{
  width:40px;
  height:40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  font-size:18px;
}
.trust-title{
  font-weight:900;
  font-size:13px;
}
.trust-sub{
  color: rgba(255,255,255,.70);
  font-size:12px;
  margin-top:2px;
}

/* Grid */
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap:18px;
  padding: 8px 0 0;
}

.footer-col a{
  display:block;
  color: rgba(255,255,255,.82);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  padding:6px 0;
}
.footer-col a:hover{color:#fff; text-decoration:underline;}

.footer-brand{font-weight:900;font-size:16px; letter-spacing:.2px;}
.footer-title{font-weight:900;margin-bottom:8px;}
.footer-text{
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.6;
  margin:10px 0 0;
}
.footer-text.small{ font-size:12px; margin-top:8px; }

/* Social */
.footer-social{
  display:flex;
  gap:10px;
  margin-top: 14px;
}
.footer-social a{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:900;
  color: rgba(255,255,255,.90);
}
.footer-social a:hover{
  background: rgba(255,255,255,.10);
}

/* Newsletter */
.newsletter-form{
  display:flex;
  gap:8px;
  margin-top: 10px;
}
.newsletter-form input{
  flex:1;
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.newsletter-form input::placeholder{
  color: rgba(255,255,255,.55);
}
.newsletter-form button{
  padding: 11px 14px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.newsletter-form button:hover{
  background: rgba(255,255,255,.14);
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px 0 16px;
  color: rgba(255,255,255,.70);
  font-size:12px;
}
.footer-mini-links a{color:rgba(255,255,255,.70); text-decoration:none;}
.footer-mini-links a:hover{color:#fff; text-decoration:underline;}
.footer-bottom .dot{opacity:.7; margin:0 8px;}

/* Responsive */
@media (max-width: 900px){
  .footer-trust{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .newsletter-form{ flex-direction:column; }
  .newsletter-form button{ width:100%; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

