/* ============================================================
   Stationery Point Multan — Design System
   Aesthetic: Refined trade — Navy + Gold + Cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0b1d3a;
  --navy-2: #142a4f;
  --gold: #c9a227;
  --gold-dark: #a3801b;
  --gold-light: #f0d784;
  --cream: #faf6ef;
  --cream-2: #f3ece0;
  --line: #e5dfd0;
  --text: #1a1a1a;
  --text-soft: #5a5a5a;
  --red: #c0392b;
  --green: #1f8a4c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.topbar {
  background: var(--navy);
  color: #d8d3c2;
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.3px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: var(--gold-light); margin-left: 16px; }
.topbar a:hover { color: var(--gold); }

/* ===== Header ===== */
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 50px; height: 50px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 26px;
  border: 2px solid var(--gold);
  letter-spacing: -1px;
}
.logo-text { line-height: 1.1; }
.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  display: block;
}
.logo-text .tag {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Search */
.search-box {
  flex: 1; max-width: 480px;
  display: flex;
  border: 2px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search-box input {
  flex: 1; padding: 10px 14px;
  border: none; outline: none;
  font-family: inherit; font-size: 14px;
  background: transparent;
}
.search-box button {
  background: var(--navy); color: var(--gold);
  border: none; padding: 0 22px;
  font-weight: 700; cursor: pointer; font-size: 14px;
  letter-spacing: 0.5px;
}
.search-box button:hover { background: var(--navy-2); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-actions a { color: var(--navy); font-weight: 600; font-size: 14px; position: relative; }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 800;
  border-radius: 50%; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Nav ===== */
.nav {
  background: var(--navy);
  color: #fff;
}
.nav-inner { display: flex; gap: 0; overflow-x: auto; }
.nav-inner a {
  color: #e8e2d0;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.nav-inner a:hover, .nav-inner a.active { background: var(--gold); color: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: 'STATIONERY';
  position: absolute;
  bottom: -30px; left: 0; right: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.05em;
  pointer-events: none;
  text-align: center;
  line-height: 0.8;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.hero p {
  color: #d4d0c2;
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: var(--gold); }
.btn-block { display: block; width: 100%; }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-light { background: #fff; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title .eyebrow {
  color: var(--gold-dark);
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-title h2 { display: inline-block; position: relative; padding-bottom: 12px; }
.section-title h2::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px;
  background: var(--gold);
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--cream-2);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-item .icon {
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--gold-dark);
}
.trust-item h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.trust-item p { font-size: 13px; color: var(--text-soft); }

/* ===== Categories grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 24px 14px;
  text-align: center;
  border-radius: 4px;
  transition: all 0.25s;
  cursor: pointer;
}
.cat-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11,29,58,0.15);
}
.cat-card .cat-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--gold-dark);
}
.cat-card:hover .cat-icon { color: var(--gold); }
.cat-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.cat-card:hover h4 { color: #fff; }

/* ===== Product card ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,29,58,0.12);
  border-color: var(--gold);
}
.product-img {
  aspect-ratio: 1;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .placeholder {
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark);
  font-size: 48px;
  opacity: 0.4;
}
.product-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-tag.premium { background: var(--gold); color: var(--navy); }
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 11px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 700;
}
.product-name {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 36px;
}
.product-spec {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.product-price small { font-size: 11px; color: var(--text-soft); font-family: 'Manrope', sans-serif; }
.add-cart {
  background: var(--navy);
  color: var(--gold);
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
}
.add-cart:hover { background: var(--gold); color: var(--navy); }

/* ===== Page layout: sidebar + content ===== */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 40px 0;
}
.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.sidebar h3 {
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 4px; }
.sidebar li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
.sidebar li a:hover, .sidebar li a.active {
  background: var(--cream-2);
  color: var(--navy);
  font-weight: 700;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.product-detail .detail-img {
  aspect-ratio: 1;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.product-detail .detail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.product-detail h1 { font-size: 32px; margin-bottom: 12px; }
.product-detail .brand-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.product-detail .big-price {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--navy);
  font-weight: 700;
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.product-detail .wholesale-note {
  background: var(--cream-2);
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.qty-input {
  display: flex;
  border: 2px solid var(--navy);
  width: fit-content;
}
.qty-input button {
  background: var(--navy);
  color: var(--gold);
  border: none;
  width: 40px;
  height: 44px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.qty-input input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
}
.spec-table {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.spec-table .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.spec-table .row strong { color: var(--text-soft); font-weight: 600; }

/* ===== Cart ===== */
.cart-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-collapse: collapse;
}
.cart-table th {
  background: var(--navy);
  color: var(--gold);
  text-align: left;
  padding: 14px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.cart-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-thumb {
  width: 60px; height: 60px;
  background: var(--cream-2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark);
  font-size: 20px;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.cart-summary {
  background: var(--cream-2);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.cart-summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.cart-summary .row.total {
  border-top: 2px solid var(--navy);
  margin-top: 12px;
  padding-top: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.remove-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}
.remove-btn:hover { background: var(--red); color: #fff; }

/* ===== Form ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { margin-bottom: 16px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  border-radius: 2px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-options label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.payment-options input[type="radio"] { accent-color: var(--gold); }
.payment-options label:has(input:checked) { border-color: var(--gold); background: var(--cream-2); }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #c4c0b0;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--gold);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,162,39,0.3);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c4c0b0; font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888373;
}
.payment-icons { display: flex; gap: 10px; margin-top: 14px; }
.payment-icons span {
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--green); }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--red); }
.alert-info { background: var(--cream-2); color: var(--navy); border-left: 4px solid var(--gold); }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #25d366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 99;
  transition: all 0.2s;
}
.whatsapp-float:hover { background: #128c7e; color: #fff; transform: scale(1.08); }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--text-soft); margin-bottom: 20px; }

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .search-box { order: 3; width: 100%; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
  .topbar { font-size: 11px; }
  .topbar .container { justify-content: center; text-align: center; }
  .nav-inner a { padding: 12px 14px; font-size: 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0; }
  .cart-table { font-size: 13px; }
  .cart-table th, .cart-table td { padding: 10px 8px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text .tag { display: none; }
  .header-actions { gap: 14px; }
}
