
:root {
  --bg: #ffffff;
  --card: #f3f4f6;
  --muted: #6b7280;
  --text: #111827;
  --accent: #ffffff;
  --accent2: #ffffff;
}
*{ box-sizing:border-box; }
body{ margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu; background:var(--bg); color:var(--text); }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1100px; margin:20px auto; padding:0 16px; }
.header {
  position: sticky;
  top: 0;
  background: #ffffff;
  color: #111827;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
  transition: background 0.4s;
}
.header-inner{ display:flex; align-items:center; gap:16px; justify-content:space-between; padding:10px 16px; max-width:1100px; margin:0 auto; }
.logo a{ display:flex; align-items:center; gap:8px; font-size:18px; }
.logo-icon{ font-size:20px; }
.nav a{ margin-left:14px; padding:8px 12px; border-radius:12px; }
.nav a:hover{ background:#ffb347; }
/* ✅ Search Bar Wrapper */
.search-bar {
    width: 200px;                      /* ✅ Fixed width — अब पूरा header में नहीं फैलेगा */
    display: flex;
    position: relative;
    margin: 0 auto;
}

/* ✅ Input Box (Professional look) */
.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 45px;      /* ✅ Space for search icon */
    border-radius: 25px;
    border: 1px solid #d1d5db;         /* ✅ Light border */
    background: #f9fafb;               /* ✅ Soft light grey */
    color: #111827;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* ✅ Input Focus Effect */
.search-bar input:focus {
    border-color: #ffb347;
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.4);
    outline: none;
}

/* ✅ Search Icon Position */
.search-icon {
    position: absolute;
    right: 12px;                      /* ✅ Icon right side */
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffb347;               /* ✅ Orange background */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

/* ✅ Icon Hover */
.search-icon:hover {
    background: #ff9800;
}


.suggestions{
display:none;
position:absolute;
top:48px;
width:100%;
max-width:520px;
background:#ffffff;
border:1px solid #e5e7eb;
border-radius:12px;
box-shadow:0 4px 15px rgba(0,0,0,0.1);
overflow:hidden;
z-index:1000;
}
.suggestions a,
.no-suggest{
display:block;
padding:12px 14px;
border-bottom:1px solid #f3f4f6;
color:#333333;
font-size:15px;
transition:background 0.2s,color 0.2s;
}
.suggestions a:last-child,
.no-suggest:last-child{
border-bottom:none;
}
.suggestions a:hover{
background:#ffb347;
color:#ffffff;
}
/* SEARCH BAR WRAPPER */
.search-bar{
    flex:1;
    display:flex;
    justify-content:center;
    position:relative;
}

/* SEARCH INPUT */
#searchInput{
    width:420px;
    max-width:580px;
    padding:12px 18px;
    border-radius:25px 0 0 25px;
    border:1px solid #d1d5db;
    background:#fff;
    color:#000;
    font-size:15px;
    outline:none;
    box-shadow:0 2px 6px rgba(0,0,0,0.07);
}

/* INPUT FOCUS GLOW */
#searchInput:focus{
    border-color:#ff9900;
    box-shadow:0 0 0 3px rgba(255,153,0,0.25);
}

/* SEARCH BUTTON */
#searchBtn{
    background:#ff9900;
    color:#fff;
    border:none;
    padding:12px 18px;
    border-radius:0 25px 25px 0;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    margin-left:-1px;
    transition:0.25s ease;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

/* ICON SIZE */
#searchBtn svg{
    width:20px;
    height:20px;
}

/* HOVER EFFECT */
#searchBtn:hover{
    background:#ff7f00;
    transform:scale(1.04);
}

/* ACTIVE CLICK EFFECT */
#searchBtn:active{
    transform:scale(0.96);
}


.hero{ background:linear-gradient(120deg, rgba(34,197,94,.15), rgba(6,182,212,.12)); border-radius:24px; padding:40px; margin-top:16px; }
.hero .btn{ margin-top:12px; }
.grid{ display:grid; gap:16px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.card{ background:var(--card); border:1px solid #1f2937; padding:16px; border-radius:20px; }
.card.product img{ width:100%; height:160px; object-fit:cover; border-radius:12px; background:#ffffff; }
.btn, .btn-small, .btn-outline{ border:0; padding:10px 16px; border-radius:10px; cursor:pointer; font-weight:600; }
.btn{ background:linear-gradient(90deg,var(--accent),var(--accent2)); color:#081018; }
.btn-small{ background:#2563eb; color:white; }
.btn-outline{ background:transparent; color:#e5e7eb; border:1px solid #374151; }
.table{ width:100%; border-collapse:collapse; background:var(--card); border:1px solid #1f2937; border-radius:12px; overflow:hidden; }
.table th,.table td{ padding:12px; border-bottom:1px solid #1f2937; text-align:left; }
.thumb{ width:48px; height:48px; object-fit:cover; border-radius:8px; margin-right:8px; vertical-align:middle; }
.alert{ background:#7c3aed22; border:1px solid #7c3aed66; padding:10px 12px; border-radius:12px; margin:10px 0; }
.alert.success{ background:#16a34a22; border-color:#16a34a66; }
.product-detail{ display:flex; gap:24px; }
.product-img{ width:360px; height:360px; object-fit:cover; border-radius:20px; background:#ffffff; }
.product-info input[type=number], .form input, .form textarea{ width:100%; padding:10px 12px; border-radius:12px; border:1px solid #374151; background:#ffffff; color:var(--text); }
.form{ background:var(--card); border:1px solid #1f2937; padding:16px; border-radius:16px; }
.footer{ margin-top:40px; border-top:1px solid #1f2937; }
.footer-inner{ max-width:1100px; margin:0 auto; padding:20px 16px; color:#9ca3af; font-size:14px; }
.pagination{ margin:16px 0; }
.pagination a{ display:inline-block; padding:8px 12px; margin-right:6px; border:1px solid #374151; border-radius:10px; }
.pagination a.active, .pagination a:hover{ background:#ffffff; }
.offer-banner{ background:#ffffff; border:1px dashed #22c55e; padding:10px; text-align:center; border-radius:12px; }
@media(max-width:900px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .product-detail{ flex-direction:column; }
}
@media(max-width:560px){
  .header-inner{ flex-wrap:wrap; gap:10px; }
  .grid-4{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
}
/* ==== HEADER LAYOUT FIX ==== */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* SEARCH BAR CENTER FIX */
.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
}
.search-bar input {
    width: 100%;
    height: 42px;
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-size: 16px;
}

/* CATEGORIES DROPDOWN */
.header-categories select {
    height: 40px;
    padding: 6px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

/* RIGHT SIDE ICONS */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-right a {
    font-size: 16px;
    font-weight: 500;
}

/* HOVER FIX */
.nav a:hover,
.nav-right a:hover {
    color: #ff9800;
}

/* ==== MOBILE VIEW FIX ==== */
@media(max-width: 768px){

    /* Search bar full width */
    .search-bar {
        max-width: 100%;
        order: 3;
        margin-top: 8px;
    }

    /* Categories below search bar */
    .header-categories {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 6px;
    }
    .header-categories select {
        width: 80%;
    }

    /* Cart + Login visible on top-right */
    .nav-right {
        order: 2;
        margin-left: auto;
    }
}
/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
    font-size: 30px;
    border: none;
    background: none;
    cursor: pointer;
}

/* MOBILE NAV MENU */
@media (max-width:768px){

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 10px;
        background: white;
        width: 180px;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 25px rgba(0,0,0,0.15);
        flex-direction: column;
        z-index: 999;
    }

    .nav a {
        padding: 12px;
        border-bottom: 1px solid #eee;
        color: #333;
    }
    .nav a:hover {
        background: #ff9800;
        color: white;
    }

    .mobile-menu-btn {
        display: block;
    }
}
/* MOBILE ICON BAR */
.mobile-icons {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 24px;
}

.m-icon {
    cursor: pointer;
    font-size: 24px;
}

/* MOBILE SEARCH BAR (hidden default) */
.mobile-search {
    display: none;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.mobile-search input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    font-size: 16px;
}

/* SHOW MOBILE ONLY */
@media (max-width: 768px){
    .search-bar { display: none; }  /* hide desktop search */
    .header-categories { display: none; }  /* hide categories */
    .mobile-icons { display: flex; margin-left: auto; }
}
/* MOBILE SUGGESTION STYLE */
#mobileSearchBar {
    position: relative;
    z-index: 2000;
}

#mSuggestBox {
    position: absolute;
    top: 50px; /* search bar ke just neeche */
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.12);
    z-index: 3000;
}

#mSuggestBox a,
#mSuggestBox .no-suggest {
    padding: 12px 18px;
    display: block;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}

#mSuggestBox a:hover {
    background: #f4f4f4;
}

