/* --- NEW STYLES FOR PREMIUM TRADE HIND DESIGN --- */
:root {
    --th-red: #E31837;
    --th-blue: #E31837;
    --th-dark: #0f172a;
    --th-muted: #64748b;
    --th-bg: #f8fafc;
    --th-border: #e2e8f0;
    --radius: 14px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: var(--th-bg);
    color: #222;
}

/* NAVBAR */
.navbar {
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}
.navbar form {
    display: flex !important;
    flex-grow: 1;
    margin-inline-start: 15px;
}
.navbar .form-control {
    border-radius: 999px;
}
/* Fix SELL button hover issue */
.navbar .btn-outline-danger:hover {
    background-color: #ff0000 !important;  /* Red background */
    color: #ffffff !important;             /* White text */
    border-color: #ff0000 !important;
}

/* Ensure icon inside SELL button also turns white */
.navbar .btn-outline-danger:hover i {
    color: #ffffff !important;
}

.hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #bd1717b3;
    backdrop-filter: blur(4px);
    border-radius: 20px;
}
.hero-wrap > .container {
    position: relative;
    z-index: 5;
}



/* HERO SECTION */
.hero-wrap {
    background: #ffffff;
    padding: 24px 0 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    border-radius: 20px;
}
.hero-heading {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.hero-subtitle {
    font-size: 1.02rem;
    margin-bottom: 18px !important;
    color: var(--th-muted);
}

.hero-search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    border: 2px solid var(--th-red);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* HERO CATEGORY SIDEBAR */
.col-lg-3.d-none.d-lg-block {
    padding-left: 0 !important;
}
.hero-categories-list {
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px 14px;
    border: 1px solid var(--th-border);
    height: 100%;
    margin-left: -16px;
}
.hero-categories-list a {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #E31837;
    text-decoration: none;
    border-bottom: 1px dashed #e5e7eb;
}
.hero-categories-list a:last-of-type { border-bottom: none; }
.hero-categories-list a:hover {
    color: var(--th-red);
    font-weight: 500;
}
.hero-categories-list .list-header {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--th-dark);
    border-bottom: 2px solid var(--th-red);
    padding-bottom: 5px;
    font-size: 1.05rem;
}

/* STATS CARDS — FIXED & POLISHED */
.stats-row {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.stats-card {
    flex: 1;
    background: #ffffff;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid var(--th-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.2s ease;
    min-height: 80px;
}

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

.stats-card h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--th-dark);
}

.stats-card small {
    font-size: 0.8rem;
    color: var(--th-muted);
}

/* CTA CARDS */
.cta-card {
    background: linear-gradient(135deg, var(--th-red), #ff7a7a);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    padding-bottom: 15px; /* extra spacing inside card */
}
.cta-card h4 { font-weight: 700; }
.cta-card .btn-light {
    font-weight: 600;
    color: var(--th-red);
    border-radius: 999px;
}
.navbar form {
  display: none !important;
}
/* CATEGORY CARDS */
.category-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 10px;
    transition: 0.2s ease;
    text-align: center;
    border: 1px solid var(--th-border);
    
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--th-blue);
}
.category-img img {
    width: 52px;
    height: 52px;
}
.product-img-wrapper {
    width: 100%;
    height: 180px;            /* FORCE SAME HEIGHT */
    background: #f8f9fc;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* NO CROPPING */
}
.product-card {
    padding-bottom: 15px; /* extra spacing inside card */
}
    /* BRANDS STRIP */
  
.brand-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s ease-in-out;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 7px;
}

.brand-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: capitalize;
}


.brands-strip {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e9eaef;
  overflow: hidden;

  margin-left: 15px;      /* ➜ Add left spacing */
  margin-right: 15px;     /* ➜ Add right spacing */
  margin-bottom: 25px;    /* ➜ Add bottom spacing */
}

.brands-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.brands-wrapper img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: 0.2s ease-in-out;
}

.brands-wrapper img:hover {
  filter: grayscale(0);
  transform: translateY(-3px);
}

@media (max-width: 576px) {
  .brands-strip {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
  }

  .brands-wrapper {
    gap: 10px;
  }

  .brands-wrapper img {
    height: 28px;
  }
}

/* LOGIN POPUP */
.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.login-popup-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.17);
}

.app-section {
      background: linear-gradient(120deg, #1a1d29, #131722);
      color: #ffffff;
      border-radius: 20px;
      padding: 26px 22px;
    }

    .app-section .btn-store {
      border-radius: 999px;
      border: 1px solid #E31837;
      padding: 8px 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.04);
      color: #ffffff;
      text-decoration: none;
    }

    .app-section .btn-store img {
      height: 28px;
    }
/* RESPONSIVE FIXES */
@media(max-width: 991.98px){
    .hero-categories-list { display: none; }
    .hero-heading { font-size: 2.1rem; }
}
@media(max-width:768px){
    .stats-row { flex-direction: column; }
}