/* Aurora theme — clean, fast, mobile-first. Theme colors injected as CSS
   custom properties by the storefront engine, so seller settings apply at
   render time without touching this file. */

:root {
  --primary: #0F766E;
  --primary-dark: #0B5A54;
  --accent: #F59E0B;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #78716C;
  --border: #E7E5E4;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* header */
.topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 7px 12px;
}
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.nav form { flex: 1; max-width: 420px; }
.nav input[type="search"] {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  background: var(--bg);
}
.cart-link {
  position: relative;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cart-link .count {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 1px 7px;
  vertical-align: top;
  margin-left: 2px;
}

/* hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 16px;
  text-align: center;
}
.hero h1 { font-size: clamp(24px, 5vw, 40px); line-height: 1.3; font-weight: 700; }
.hero p { opacity: .92; margin-top: 8px; font-size: clamp(14px, 3vw, 18px); }

/* product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb {
  aspect-ratio: 1;
  background: #F1F0EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B8B4B0;
  font-size: 12px;
}
.card .info { padding: 10px 12px 14px; }
.card .name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  color: var(--text);
}
.price { font-weight: 700; color: var(--primary); margin-top: 4px; }
.price .compare {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

/* section titles */
.section { margin: 28px 0; }
.section h2 { font-size: 20px; margin-bottom: 12px; }

/* product page */
.pdp { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .pdp { grid-template-columns: 1fr 1fr; } }
.pdp .media {
  aspect-ratio: 1;
  background: #F1F0EE;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #B8B4B0;
}
.pdp h1 { font-size: 24px; line-height: 1.3; }
.pdp .price { font-size: 26px; }
.pdp .compare-at { color: var(--muted); text-decoration: line-through; font-size: 16px; margin-left: 8px; }
.pdp .desc { margin-top: 14px; color: #44403C; white-space: pre-line; }

/* forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn.full { width: 100%; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.accent { background: var(--accent); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table th, .cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 15px; }
.cart-table td.num { text-align: right; }
.summary { margin-left: auto; max-width: 320px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .grand { font-weight: 700; font-size: 18px; border-top: 2px solid var(--text); padding-top: 8px; }

/* flash / errors */
.flash {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
}
.flash.error { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.flash.success { background: #D1FAE5; border-color: #A7F3D0; color: #065F46; }

/* success page */
.success-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin: 32px auto;
  max-width: 560px;
}
.success-box .big { font-size: 40px; }
.success-box h1 { font-size: 22px; margin: 8px 0; }

/* footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer.site .links { margin-top: 6px; }
footer.site .links a { margin: 0 8px; color: var(--muted); }

/* tracking + misc */
.track-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.pending { background: #FEF3C7; color: #92400E; }
.badge.shipped { background: #CFFAFE; color: #155E75; }
.badge.delivered { background: #D1FAE5; color: #065F46; }
.badge.cancelled { background: #FEE2E2; color: #991B1B; }

/* 404 */
.notfound { text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: 64px; color: var(--primary); }
.notfound p { color: var(--muted); margin: 8px 0 20px; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin-top: 14px; }
.crumbs a { color: var(--muted); }

@media print { .topbar, header.site, footer.site, .noprint { display: none; } }
