/* ════════════════════════════════════════════════════════════════
   ARORA STATIONER — STYLESHEET
   ----------------------------------------------------------------
   To find a section quickly, search (Ctrl+F) for the section name
   in CAPS, e.g. search "HEADER" or "PRODUCT CARDS".
   
   Order:
     1. DESIGN TOKENS (colors, fonts) — change brand colors here
     2. RESETS
     3. LAYOUT HELPERS (.container, .btn)
     4. TOP BAR
     5. HEADER (logo + search + actions)
     6. NAV
     7. HERO
     8. WHY US strip
     9. SECTION HEADINGS (shared)
    10. CATEGORY CARDS
    11. PRODUCT CARDS
    12. BRANDS
    13. CONTACT (info + form)
    14. FOOTER
    15. RESPONSIVE (mobile / tablet)
   ════════════════════════════════════════════════════════════════ */


/* ───── 1. DESIGN TOKENS ─────
   Change a value here and it updates everywhere on the site. */
:root {
  --red:       #c8102e;   /* primary brand color */
  --red-dark:  #a30d26;   /* hover state of red buttons */
  --red-soft:  #fff5f5;   /* very pale red for backgrounds */
  --navy:      #1a1a2e;   /* dark sections (hero, footer, nav) */
  --navy-2:    #16213e;   /* slight variation for hero gradient */
  --orange:    #f4a261;   /* accent color */
  --bg:        #f8f8fa;   /* "soft" page background */
  --bg-2:      #ffffff;   /* white */
  --text:      #1a1a2e;   /* main text color */
  --text-2:    #5a5a6a;   /* secondary text (subtitles, meta) */
  --text-3:    #9a9aa8;   /* tertiary text (very light) */
  --border:    #e6e6ec;   /* card borders, dividers */
}


/* ───── 2. RESETS ───── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-2);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;        /* prevent horizontal scroll from any rogue element */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ───── 3. LAYOUT HELPERS ───── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.btn {
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.section { padding: 56px 0; }
.bg-soft { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }


/* ───── 4. TOP BAR ───── */
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  padding: 8px 24px;
  text-align: center;
  font-weight: 500;
}
.topbar i { font-size: 13px; vertical-align: middle; margin-right: 4px; }
.topbar .sep { margin: 0 14px; opacity: 0.6; }


/* ───── 5. HEADER ───── */
.header {
  border-bottom: 2px solid var(--red);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 10.5px;
  color: var(--text-2);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.search {
  display: flex;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
}
.search button {
  background: var(--red);
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
}
.search button:hover { background: var(--red-dark); }
.head-actions { display: flex; gap: 4px; }
.head-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
}
.head-action:hover { background: var(--red-soft); color: var(--red); }
.head-action i { font-size: 20px; }


/* ───── 6. NAV ───── */
.nav {
  background: var(--navy);
  position: relative;
}
.nav-inner {
  display: flex;
  gap: 0;
}
.nav a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 18px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.active { color: #fff; border-bottom-color: var(--red); }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  color: #fff;
  padding: 12px 18px;
  font-size: 22px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  background: transparent;
}
.nav-toggle i { font-size: 22px; }


/* ───── 7. HERO ───── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--red) 110%);
  color: #fff;
  padding: 80px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .pre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(244,162,97,0.12);
  padding: 5px 12px;
  border: 1px solid rgba(244,162,97,0.3);
  border-radius: 100px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange); }
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s;
}
.hero-tile:hover { background: rgba(255,255,255,0.14); }
.hero-tile i { font-size: 30px; color: var(--orange); }
.hero-tile .ht-name { font-size: 14.5px; font-weight: 700; }
.hero-tile .ht-meta { font-size: 11.5px; color: rgba(255,255,255,0.6); }


/* ───── 8. WHY US strip ───── */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.why .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.why .item:last-child { border-right: none; }
.why .ic {
  width: 42px;
  height: 42px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.why .item strong { font-size: 13.5px; display: block; }
.why .item small { font-size: 11.5px; color: var(--text-2); }


/* ───── 9. SECTION HEADINGS (shared) ───── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2 i { font-size: 22px; color: var(--red); }
.section-head .sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.section-head a.viewall {
  font-size: 13.5px;
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head a.viewall:hover { color: var(--red-dark); }


/* ───── 10. CATEGORY CARDS ───── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--red); transform: translateY(-2px); }
.cat-card .ic {
  width: 50px;
  height: 50px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cat-card:hover .ic { background: var(--red); color: #fff; }
.cat-card .name { font-size: 14px; font-weight: 700; }
.cat-card .count { font-size: 11.5px; color: var(--text-3); font-weight: 500; }


/* ───── 11. PRODUCT CARDS ───── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.prod-card:hover { border-color: var(--red); transform: translateY(-2px); }

/* The image area sits at the top of each product card.
   If a product has an image set in products.json, that image fills this area.
   If not, a fallback icon shows (placeholder pattern). */
.prod-img {
  height: 160px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: repeating-linear-gradient(45deg, rgba(20,24,31,0.025) 0 1px, transparent 1px 10px);
  overflow: hidden;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.prod-img i { font-size: 54px; color: var(--text); opacity: 0.55; }

.prod-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.prod-tag.tag-new     { background: #1a6335; }
.prod-tag.tag-popular { background: var(--orange); color: var(--navy); }

.prod-info { padding: 14px; }
.prod-brand { font-size: 10px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.prod-name  { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; min-height: 36px; }
.prod-pack  { font-size: 11.5px; color: var(--text-2); margin-bottom: 8px; }
.prod-price-row { display: flex; align-items: baseline; gap: 8px; }
.prod-price { font-size: 18px; font-weight: 800; color: var(--red); }
.prod-old   { font-size: 12px; color: var(--text-2); text-decoration: line-through; }


/* ───── 12. BRANDS ───── */
.brand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}
.brand-chip:hover { border-color: var(--red); color: var(--red); }


/* ───── 13. CONTACT ───── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-info { padding: 28px; background: var(--navy); color: #fff; border-radius: 10px; }
.contact-info h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.contact-info p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 22px; }
.contact-info .row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: center;
}
.contact-info .row .ic {
  width: 36px;
  height: 36px;
  background: rgba(244,162,97,0.15);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-info .row strong { display: block; font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-info .row span { font-size: 14px; color: #fff; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.contact-form h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.contact-form > p { font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: var(--bg);
}
.field input:focus, .field textarea:focus { border-color: var(--red); background: #fff; }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 0; }
.contact-form .btn { margin-top: 10px; width: 100%; justify-content: center; }


/* ───── 14. FOOTER ───── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer .logo-foot { font-size: 24px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.footer .logo-foot small { display: block; color: #fff; font-weight: 500; font-size: 11.5px; margin-top: 4px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 12px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}


/* ───── 15. RESPONSIVE (mobile / tablet) ───── */

/* Mid-large screens — 3 column product grid */
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid  { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet and small laptops */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .hero { padding: 50px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr 1fr; }
  .why .item:nth-child(2) { border-right: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Collapse nav into hamburger */
  .nav-toggle { display: flex; }
  .nav-inner {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.open .nav-inner { max-height: 400px; }
  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav a:hover, .nav a.active {
    border-bottom-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
  }
}

/* Small phones (under 560px) */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section  { padding: 40px 0; }

  /* Topbar — stack info, smaller text */
  .topbar { font-size: 11px; padding: 8px 16px; }
  .topbar .sep { display: none; }
  .topbar span { display: block; padding: 2px 0; }

  /* Header — logo + 3 icons in a row, search below */
  .header { padding: 14px 0; }
  .header-inner { gap: 14px; }
  .logo { font-size: 22px; }
  .logo small { font-size: 9.5px; }
  .head-actions .head-action { padding: 4px 6px; }
  .head-action span { display: none; }
  .head-action i { font-size: 18px; }

  /* Hero */
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }

  /* Why-us stacked */
  .why { grid-template-columns: 1fr; }
  .why .item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .why .item:last-child { border-bottom: none; }

  /* Grids stack */
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  /* Section headings */
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
  .section-head h2 { font-size: 22px; }

  /* Contact info — prevent overflow of long emails / addresses */
  .contact-info { padding: 22px; }
  .contact-info .row span { font-size: 13px; word-break: break-word; }
  .contact-form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Tiny phones (under 380px — older devices) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .logo { font-size: 20px; }
  .head-action { padding: 4px 4px; }
  .head-action i { font-size: 16px; }
  .hero h1 { font-size: 24px; }
  .hero-tile { padding: 16px 14px; }
  .hero-tiles { grid-template-columns: 1fr; }
  .topbar { font-size: 10.5px; }
  .brand-chip { padding: 9px 14px; font-size: 13px; }
}

/* Toast banner shown after form submit */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a6335;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 1000;
}
