/* =========================
   Global Styles
========================= */
*{
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;
  margin:0;
  background:#f5f7fb;
  color:#222;
}

/* =========================
   Header
========================= */
.topbar{
  position:sticky;
  top:0;
  background:#fff;
  padding:20px 16px 16px;
  border-bottom:1px solid #e5e7eb;
  z-index:100;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}

.brand{
  flex:1;
}

/* Brand with larger proportional logo */
.brand-wrap{
  display:flex;
  align-items:center;
  gap:18px;
}

.brand-logo{
  width:120px;
  height:auto;
  object-fit:contain;
  flex-shrink:0;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.logo{
  font-size:46px;
  font-weight:800;
  line-height:1.05;
  color:#16a34a;
  letter-spacing:-0.5px;
}

.tagline{
  font-size:22px;
  color:#555;
  margin-top:6px;
  line-height:1.3;
}

.tagline strong{
  color:#222;
  font-weight:800;
}

/* WhatsApp Admin button */
.admin-wa-btn{
  background:#25D366;
  color:#fff;
  text-decoration:none;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(37,211,102,.25);
  transition:all .2s ease;
}

.admin-wa-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(37,211,102,.35);
}

/* Search bar with icon button */
.search-wrap{
  position:relative;
  width:100%;
}

.search-wrap input{
  width:100%;
  padding:16px 56px 16px 18px; /* space for icon */
  border:2px solid #16a34a;
  border-radius:999px;
  font-size:18px;
  outline:none;
  background:#fff;
}

.search-wrap input:focus{
  box-shadow:0 0 0 4px rgba(22,163,74,.12);
}

.search-btn{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border:none;
  border-radius:50%;
  background:transparent;
  color:#64748b;
  font-size:18px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
}

.search-btn:hover{
  background:#f3f4f6;
  color:#16a34a;
}

.search-btn:active{
  transform:translateY(-50%) scale(.95);
}

.count{
  margin-top:10px;
  font-size:15px;
  color:#555;
}

/* =========================
   Main Layout
========================= */
main{
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px;
}

/* =========================
   Product Card
========================= */
.card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.card img{
  width:100%;
  aspect-ratio:1/1;      /* keeps all cards same height */
  object-fit:contain;    /* show full image */
  background:#f8fafc;    /* light background behind image */
  display:block;
  padding:3px;           /* small breathing space */
}

/* Product stock badge */
.card-image-wrap{
  position:relative;
}

.stock-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

.stock-badge.in{
  background:#16a34a;
}

.stock-badge.out{
  background:#dc2626;
}

.card-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.card-title{
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  min-height:44px;
}

.price{
  color:#16a34a;
  font-weight:700;
  font-size:18px;
}

.location{
  font-size:14px;
  color:#666;
}

/* =========================
   Product Buttons
========================= */
.card-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  width:100%;
}

.card-actions button,
.card-actions a{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  height:42px;
  padding:0 10px;
  border-radius:12px;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
  transition:all .2s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}

.details-btn{
  background:#fff;
  color:#111827;
  border:1px solid #d1d5db;
}

.details-btn:hover{
  border-color:#16a34a;
  color:#16a34a;
  box-shadow:0 4px 10px rgba(22,163,74,.12);
}

.wa-btn{
  background:#25D366;
  color:#fff;
  border:1px solid #25D366;
}

.wa-btn:hover{
  background:#1ebe5b;
  border-color:#1ebe5b;
  box-shadow:0 4px 12px rgba(37,211,102,.28);
}

.card-actions button:active,
.card-actions a:active{
  transform:translateY(0);
}

/* =========================
   Load More
========================= */
.load-wrap{
  text-align:center;
  margin:24px 0;
}

#loadMoreBtn{
  padding:12px 24px;
  border:none;
  background:#16a34a;
  color:#fff;
  border-radius:999px;
  font-size:16px;
  cursor:pointer;
}

/* =========================
   Product Modal
========================= */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  padding:0;
  z-index:9999;
}

.hidden{
  display:none;
}

.modal-content{
  background:#fff;
  width:min(960px,100%);
  border-radius:24px 24px 0 0;
  padding:20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  position:relative;
  margin-top:20px;
  min-height:calc(100vh - 20px);
}

.modal-gallery{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.modal-content::before{
  content:'';
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  width:56px;
  height:6px;
  border-radius:999px;
  background:#d1d5db;
}

.close{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  background:#111;
  color:#fff;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:22px;
  cursor:pointer;
  z-index:10;
}

.modal-gallery #mainImage{
  width:100%;
  max-height:520px;
  border-radius:18px;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#f8fafc;
  display:block;
}

/* Responsive thumbnail grid */
.thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(72px, 1fr));
  gap:10px;
  margin-top:14px;
  width:100%;
}

.thumbs img{
  width:100%;
  aspect-ratio:1/1;
  border-radius:12px;
  object-fit:cover;
  cursor:pointer;
  border:2px solid transparent;
  transition:all .2s ease;
}

.thumbs img:hover{
  transform:scale(1.03);
}

.thumbs img.active{
  border-color:#16a34a;
  box-shadow:0 0 0 3px rgba(22,163,74,.15);
}

.modal-info h2{
  margin-top:12px;
  margin-bottom:12px;
  font-size:36px;
  line-height:1.15;
}

.modal-info .price{
  font-size:32px;
  margin-bottom:4px;
}

.modal-info .location{
  font-size:15px;
  margin-bottom:18px;
}

#modalDescription p{
  margin:0 0 16px;
  line-height:1.7;
  color:#374151;
  font-size:15px;
}

#modalDescription p:last-child{
  margin-bottom:0;
}

.actions{
  display:flex;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap;
}

.actions a{
  flex:1;
  min-width:140px;
  text-align:center;
  padding:14px 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
}

.call-btn{
  background:#111;
  color:#fff;
}

/* =========================
   Mobile Styles
========================= */
@media (max-width:700px){

  .topbar{
    padding:16px 12px 14px;
  }

  .header-row{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .admin-wa-btn{
    width:100%;
    text-align:center;
  }

  .brand-wrap{
    justify-content:flex-start;
    align-items:center;
    gap:12px;
  }

  .brand-logo{
    width:72px;
  }

  .logo{
    font-size:28px;
  }

  .tagline{
    font-size:14px;
  }

  /* Search bar with icon inside */
  .search-wrap input{
    font-size:16px;
    padding:14px 52px 14px 16px; /* right space for icon */
  }

  .search-btn{
    width:38px;
    height:38px;
    font-size:16px;
    right:8px;
  }

  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }

  .card-actions{
    flex-direction:column;
    gap:12px;
    margin-top:14px;
  }

  .card-actions button,
  .card-actions a{
    width:100%;
    min-height:52px;
    padding:12px 14px;
    font-size:15px;
    border-radius:14px;
    justify-content:center;
    gap:8px;
  }

  .card-body{
    padding:12px;
  }

  .modal{
    align-items:flex-start;
  }

  .modal-content{
    width:100%;
    max-width:none;
    min-height:100vh;
    margin:0;
    border-radius:24px 24px 0 0;
    padding:16px 16px 32px;
    grid-template-columns:1fr;
    gap:18px;
  }

  .modal-gallery #mainImage{
    width:100%;
    aspect-ratio:1/1;
    max-height:58vh;
    object-fit:contain;
    background:#f8fafc;
    border-radius:18px;
  }

  .thumbs{
    gap:8px;
  }

  .thumbs img{
    width:72px;
    height:72px;
  }

  .modal-info h2{
    font-size:28px;
  }

  .modal-info .price{
    font-size:26px;
  }

  .actions{
    position:sticky;
    bottom:0;
    background:#fff;
    padding-top:12px;
    border-top:1px solid #e5e7eb;
  }
}

/* Disabled buttons */
.card-actions button:disabled,
.disabled-link{
  opacity:.5;
  pointer-events:none;
  cursor:not-allowed;
}

/* =========================================================
   SELL BUTTON IN HEADER
   ========================================================= */

.sell-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 105px;
  height: 46px;

  padding: 0 20px;
  margin-left: 10px;

  border-radius: 8px;

  background: #ff9f43;
  color: #ffffff;

  text-decoration: none;

  font-weight: 800;
  font-size: 15px;

  transition: 0.2s ease;
}

.sell-top-btn:hover {
  background: #f28c28;
  transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .sell-top-btn {
    min-width: 90px;
    height: 42px;

    padding: 0 16px;

    font-size: 14px;
  }

}

/* =========================================================
   PREMIUM MARKETPLACE HEADER
   ========================================================= */

.topbar {
  background: #ffffff;
  padding: 28px 20px 0;
  border-bottom: 1px solid #e5e7eb;
}


/* Main header area */

.market-header {
  max-width: 1600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 32px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}


/* Brand */

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}


.brand-logo {
  width: 105px;
  height: auto;
  object-fit: contain;
}


.brand-text {
  display: flex;
  flex-direction: column;
}


.logo {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  color: #08a64a;
  letter-spacing: -1.5px;
}


.logo span {
  color: #222222;
}


.tagline {
  margin-top: 8px;
  font-size: 20px;
  color: #4b5563;
}


.tagline strong {
  color: #111111;
  font-weight: 800;
}


/* Header action buttons */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}


.admin-wa-btn,
.sell-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 14px;
  padding: 14px 22px;

  text-decoration: none;
  font-size: 16px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.admin-wa-btn {
  background: #08b84f;
  color: #ffffff;

  box-shadow: 0 6px 16px rgba(8, 184, 79, 0.20);
}


.sell-top-btn {
  background: #ff9f43;
  color: #ffffff;

  min-width: 100px;

  box-shadow: 0 6px 16px rgba(255, 159, 67, 0.20);
}


.admin-wa-btn:hover,
.sell-top-btn:hover {
  transform: translateY(-2px);
}


.admin-wa-btn i {
  font-size: 19px;
}


.sell-top-btn i {
  font-size: 16px;
}


/* =========================================================
   SEARCH BAR
   ========================================================= */

.search-wrap {
  max-width: 1600px;
  margin: 25px auto 0;

  height: 58px;

  display: flex;
  align-items: center;

  position: relative;

  background: #ffffff;

  border: 2px solid #08a64a;
  border-radius: 30px;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}


.search-wrap input {
  flex: 1;

  height: 100%;

  border: none;
  outline: none;

  padding: 0 15px;

  background: transparent;

  font-size: 17px;
  color: #222222;
}


.search-wrap input::placeholder {
  color: #6b7280;
}


.search-btn {
  width: 54px;
  height: 54px;

  border: none;
  background: transparent;

  color: #64748b;

  font-size: 18px;

  cursor: pointer;
}


/* Product count */

.count {
  max-width: 1600px;
  margin: 12px auto 0;

  padding: 0 2px 15px;

  font-size: 14px;
  color: #374151;
}

/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 900px) {

  .market-header {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .brand-wrap {
    justify-content: center;
    text-align: center;
  }

  .brand-text {
    align-items: center;
  }

  .logo {
    font-size: 36px;
  }

  .tagline {
    font-size: 16px;
  }

  .header-actions {
    justify-content: center;
  }

}


@media (max-width: 600px) {

  .topbar {
    padding: 12px 10px 0;
  }

  .market-header {
    padding: 20px 15px;
    border-radius: 16px;
  }

  .brand-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .brand-logo {
    width: 85px;
  }

  .logo {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .tagline {
    font-size: 14px;
  }

  .header-actions {
    width: 100%;
    gap: 10px;
  }

  .admin-wa-btn,
  .sell-top-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
  }

  .search-wrap {
    height: 52px;
    margin-top: 15px;
  }

  .search-wrap input {
    font-size: 15px;
  }

}

/* =========================================================
   HEADER FINAL SIZE REFINEMENT
   ========================================================= */

.market-header {
  padding: 34px 38px 36px;
}


.brand-wrap {
  gap: 28px;
}


.brand-logo {
  width: 120px;
}


.logo {
  font-size: 52px;
}


.tagline {
  margin-top: 10px;
  font-size: 21px;
}


.header-actions {
  gap: 20px;
}


.admin-wa-btn,
.sell-top-btn {
  padding: 16px 25px;
  font-size: 16px;
  border-radius: 15px;
}


.search-wrap {
  height: 62px;
  margin-top: 28px;
}


.search-wrap input {
  font-size: 18px;
} 


.search-btn {
  width: 58px;
  height: 58px;
}


.count {
  margin-top: 14px;
  padding-bottom: 18px;
}

/* =========================================================
   MOBILE LAYOUT - COMPACT + STICKY HEADER
   ========================================================= */

@media (max-width: 600px) {

  /* ---------------------------------------------------------
     STICKY TOP AREA
     --------------------------------------------------------- */

  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    padding: 10px 12px 8px !important;
    box-sizing: border-box;

    background: #ffffff !important;

    /* subtle separation from products */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }


  /* ---------------------------------------------------------
     HEADER ROW
     --------------------------------------------------------- */

  .header-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    width: 100%;
  }


  /* ---------------------------------------------------------
     BRAND
     --------------------------------------------------------- */

  .brand {
    width: 100%;
    margin: 0 !important;
  }


  .brand-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 12px;

    width: 100%;
  }


  /* Bigger logo */

  .brand-logo {
    width: 88px !important;
    height: 68px !important;

    object-fit: contain;

    flex-shrink: 0;
  }


  /* Brand text */

  .brand-text {
    flex: 1;
    min-width: 0;

    text-align: left !important;
  }


  .logo {
    font-size: 28px !important;
    line-height: 1.05 !important;

    font-weight: 800;

    margin: 0 !important;
  }


  .tagline {
    font-size: 13px !important;
    line-height: 1.25 !important;

    margin-top: 4px !important;
  }


  /* ---------------------------------------------------------
     WHATSAPP + SELL BUTTONS
     --------------------------------------------------------- */

  .admin-wa-btn,
  .sell-top-btn {

    height: 42px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    margin: 2px 0 0 !important;

    border-radius: 12px !important;

    font-size: 14px !important;
    font-weight: 700;

    box-sizing: border-box;
  }


  .admin-wa-btn {
    width: calc(68% - 5px) !important;
  }


  .sell-top-btn {
    width: calc(32% - 5px) !important;
  }


  /* ---------------------------------------------------------
     SEARCH BAR
     --------------------------------------------------------- */

  .search-wrap {
    width: 100% !important;

    height: 48px !important;

    margin-top: 9px !important;

    border-radius: 25px !important;

    box-sizing: border-box;
  }


  #searchInput {
    width: 100% !important;

    height: 48px !important;

    font-size: 15px !important;

    padding: 0 44px 0 40px !important;

    box-sizing: border-box;
  }


  .search-btn {
    width: 44px !important;
    height: 44px !important;
  }


  /* ---------------------------------------------------------
     PRODUCT COUNT
     --------------------------------------------------------- */

  .count {
    font-size: 13px !important;

    margin-top: 5px !important;
    margin-bottom: 2px !important;
  }


  /* ---------------------------------------------------------
     MAIN PRODUCT AREA
     --------------------------------------------------------- */

  main {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
  }


  .grid {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 8px !important;

    padding: 8px !important;

    margin: 0 !important;

    box-sizing: border-box;
  }


  /* ---------------------------------------------------------
     PRODUCT CARDS
     --------------------------------------------------------- */

  .product-card {
    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    border-radius: 11px !important;

    overflow: hidden;
  }


  .product-card img {
    width: 100% !important;

    height: 165px !important;

    object-fit: cover;
  }


  .product-card h3 {
    font-size: 14px !important;

    line-height: 1.25 !important;

    margin: 8px 8px 4px !important;
  }


  .product-card .price {
    font-size: 15px !important;

    margin: 0 8px 3px !important;
  }


  .product-card .location {
    font-size: 12px !important;

    margin: 0 8px 7px !important;
  }


  /* ---------------------------------------------------------
     PRODUCT BUTTONS
     --------------------------------------------------------- */

  .product-card .actions {
    display: flex !important;

    gap: 5px !important;

    padding: 0 7px 8px !important;
  }


  .product-card .actions a,
  .product-card .actions button {

    flex: 1 !important;

    min-width: 0 !important;

    font-size: 11px !important;

    padding: 8px 3px !important;

    white-space: nowrap;
  }


  /* ---------------------------------------------------------
     LOAD MORE
     --------------------------------------------------------- */

  .load-wrap {
    padding: 12px 8px 30px !important;
  }

}
/* =========================================================
   FINAL MOBILE HEADER REFINEMENT
   Compact header, sticky logo/search, single search icon
   ========================================================= */

@media (max-width: 600px) {

  /* Keep the header/search area visible while scrolling */
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 1px 10px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Keep the header elements tightly grouped */
  .header-row {
    gap: 1px !important;
    row-gap: 1px !important;
    margin-bottom: 0 !important;
  }

  /* Logo area */
  .brand-wrap {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    text-align: center !important;
  }

  .brand-logo {
    width: 102px !important;
    height: 58px !important;
    object-fit: contain !important;
    margin: -3px 0 0 !important;
  }

  .brand-text {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    margin: -2px 0 0 !important;
  }

  .logo {
    font-size: 29px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* Tagline */
  .tagline {
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 1px 0 0 !important;
  }

  /* WhatsApp + SELL buttons */
  .admin-wa-btn,
  .sell-top-btn {
    height: 40px !important;
    min-height: 40px !important;
    margin: 1px 0 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
  }

  .admin-wa-btn {
    width: calc(68% - 5px) !important;
  }

  .sell-top-btn {
    width: calc(32% - 5px) !important;
    min-width: 0 !important;
  }

  /* Search bar brought much closer to the buttons */
  .search-wrap {
    height: 46px !important;
    margin: 1px 0 0 !important;
    border-radius: 24px !important;
  }

  #searchInput,
  .search-wrap input {
    height: 44px !important;
    font-size: 15px !important;
    padding: 0 45px 0 16px !important;
    text-align: left !important;
  }

  /* Remove any old/duplicate left search icon */
  .search-icon {
    display: none !important;
  }

  /* Keep only the clickable search icon on the right */
  .search-btn {
    display: flex !important;
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* Product count immediately below search */
  .count {
    margin: 1px 0 0 !important;
    padding: 0 2px 2px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  /* Bring products closer to the count */
  main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .grid {
    gap: 8px !important;
    padding: 3px 6px 8px !important;
    margin: 0 !important;
  }
}


/* =========================================================
   MOBILE HEADER — REDUCE OVERALL HEIGHT
   Keep logo size unchanged
   ========================================================= */

@media (max-width: 600px) {

  /* Reduce space surrounding the complete header */
  .topbar {
    padding-top: 0 !important;
    padding-bottom: 1px !important;
  }


  /* Keep logo exactly the same size */
  .brand-logo {
    width: 102px !important;
    height: 58px !important;
    margin: -6px 0 0 !important;
  }


  /* Pull the brand text slightly closer to logo */
  .brand-text {
    margin: -4px 0 0 !important;
  }


  /* Keep marketplace name prominent */
  .logo {
    font-size: 29px !important;
    line-height: 0.95 !important;
    margin: 0 !important;
  }


  /* Tighten tagline */
  .tagline {
    font-size: 13px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }


  /* Tighten buttons against tagline */
  .admin-wa-btn,
  .sell-top-btn {
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
  }


  /* Bring search bar closer to buttons */
  .search-wrap {
    height: 46px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }


  #searchInput,
  .search-wrap input {
    height: 44px !important;
  }


  /* Bring item count right up under search */
  .count {
    margin: 0 !important;
    padding: 0 2px 1px !important;
    line-height: 1.05 !important;
  }


  /* Products immediately follow the count */
  main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .grid {
    padding-top: 7px !important;
  }

}

@media (max-width: 600px) {

  .tagline {
    margin-top: 3px !important;
  }

}

@media (max-width: 600px) {

  .count {
    display: none !important;
  }

}


/* =========================================================
   MOBILE SEARCH AREA — ADD BREATHING SPACE
   ========================================================= */

@media (max-width: 600px) {

  /* White card/background surrounding the search bar */
  .search-wrap {
    height: auto !important;

    padding: 7px 0 3px !important;

    margin-top: 0 !important;
    margin-bottom: 7px !important;

    background: #ffffff !important;

    border: none !important;
    border-radius: 16px !important;

    box-shadow: none !important;

    box-sizing: border-box !important;
  }


  /* Keep the actual search bar itself unchanged */
  #searchInput,
  .search-wrap input {
    height: 46px !important;

    margin: 0 !important;

    border: 2px solid #16a34a !important;
    border-radius: 999px !important;

    background: #ffffff !important;

    box-sizing: border-box !important;
  }


  /* Keep products from touching the search section */
  .grid {
    padding-top: 2px !important;
  }

}

@media (max-width: 600px) {

  .grid {
    margin-top: 5px !important;
  }

}

@media (max-width: 600px) {

  #searchInput,
  .search-wrap input {
    box-shadow:
      0 4px 14px rgba(22, 163, 74, 0.25) !important;
  }

}