:root {
  --brand: #b30000;
  --brand-dark: #8a0000;
  --brand-deep: #6e0000;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --ok: #1f8a3b;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 0% 0%, rgba(179, 0, 0, 0.06), transparent 40%),
    radial-gradient(circle at 100% 10%, rgba(179, 0, 0, 0.04), transparent 35%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-mark span { color: var(--ink); }
.logo-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.search {
  display: flex;
  border: 1.5px solid #d8d8d8;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0.75rem 1rem;
  background: transparent;
}
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: #fff5f5; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.92rem; }

.nav {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-inner {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.7rem 0;
}
.nav a {
  white-space: nowrap;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--brand); }

.flash {
  margin: 1rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}
.flash-success { background: #e8f7ec; color: #14612a; }
.flash-error { background: #fdecec; color: #8a1515; }

.hero {
  padding: 2.4rem 0 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-copy p {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #333;
}
.value-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff0f0;
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px;
  background:
    linear-gradient(120deg, rgba(179,0,0,0.12), rgba(0,0,0,0.35)),
    url('/images/hero-warehouse.svg') center/cover no-repeat,
    #2a2a2a;
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255,255,255,0.94);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  max-width: 240px;
  font-weight: 700;
  font-size: 0.95rem;
}
.map-pins {
  position: absolute;
  inset: 0;
  background: url('/images/india-map.svg') left 8% center / 46% no-repeat;
  opacity: 0.95;
  animation: float 5s ease-in-out infinite;
}

.section { padding: 2.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.section-head a { color: var(--brand); font-weight: 700; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.7rem;
  text-align: center;
  transition: 0.2s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: #f0b0b0;
  box-shadow: var(--shadow);
}
.category-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.7rem;
  border-radius: 16px;
  object-fit: cover;
  background: #fff4f4;
}
.category-card span {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
  color: #444;
}
.tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f2f2f2;
}
.product-body { padding: 0.9rem 1rem 1.1rem; }
.product-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.price {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.moq { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.55rem; }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.86rem;
}

.stats {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  box-shadow: var(--shadow);
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff0f0;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.stat strong { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.88rem; }

.newsletter {
  margin-top: 2rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.newsletter h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.newsletter p { margin: 0; opacity: 0.92; }
.newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter input {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  min-width: 240px;
}
.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.footer {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, var(--brand-dark), #4d0000);
  color: #fff;
  padding: 2.5rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 1.4rem;
}
.footer h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}
.footer a, .footer p, .footer li {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.45rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.8);
}
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }

.page {
  padding: 2rem 0 3rem;
}
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.page h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 2rem;
}
.muted { color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff0f0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}
.dash-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
}
.side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.side a {
  display: block;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.side a:hover, .side a.active { background: #fff0f0; color: var(--brand); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-copy { animation: rise 0.7s ease both; }
.category-card, .product-card { animation: rise 0.6s ease both; }

.split-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}
.split-2.equal { grid-template-columns: 1fr 1fr; }

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: 1fr; }
  .hero-grid, .dash-grid, .split-2, .split-2.equal { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .footer-grid, .value-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .category-grid, .product-grid, .stats, .footer-grid, .value-row { grid-template-columns: 1fr; }
  .top-actions .ghost-link span { display: none; }
}
