/* Flixelz Store — Shared Editorial Monochrome Stylesheet */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #efefef;
  --ink: #0a0a0a;
  --muted: #525252;
  --subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #171717;
  --wa-green: #16a34a;
  --wa-green-hover: #15803d;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input {
  font-family: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--subtle);
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-2);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Main Container */
.main-wrap {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 20px 72px;
  flex: 1;
}

.narrow-wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 76px;
  flex: 1;
}

/* Page Intro */
.store-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 6px;
}

.store-intro h1,
.doc-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.store-intro p,
.doc-header p {
  color: var(--muted);
  font-size: 14px;
  max-width: 580px;
  margin-top: 8px;
}

.class-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn.active,
.pill-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

/* Book Card */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.book-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  border-color: #d4d4d4;
  box-shadow: var(--shadow-md);
}

@media (min-width: 780px) {
  .book-card {
    grid-template-columns: 340px 1fr;
    padding: 28px;
    gap: 40px;
    align-items: center;
  }
}

.cover-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
}

.cover-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 210 / 297;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cover-stage:hover .cover-frame img {
  transform: scale(1.02);
}

.zoom-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.84);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.tag.solid {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.book-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.book-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #262626;
}

.feature-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-note {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}

/* Razorpay-Only Checkout Box */
.pay-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rzp-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.rzp-slot form {
  margin: 0;
  display: flex;
  align-items: center;
}

.paid-helper {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.paid-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* Steps Strip */
.how-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.how-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
}

.how-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.how-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.how-card p {
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #262626;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-wa {
  background: var(--wa-green);
  color: #ffffff;
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
}

.btn-wa:hover {
  background: var(--wa-green-hover);
}

/* Policy / Content Pages */
.doc-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.doc-section {
  margin-bottom: 26px;
}

.doc-section h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc-section p {
  font-size: 14px;
  color: #262626;
  margin-bottom: 10px;
}

.doc-section ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #262626;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
}

.contact-card h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Order Tracking UI */
.track-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #262626;
}

.field-group input {
  width: 100%;
  height: 46px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.field-group input:focus {
  border-color: var(--ink);
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Post-Payment Strict Confirmation View */
.confirmation-screen {
  min-height: 100vh;
  width: 100%;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.confirmation-card {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 26px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.confirm-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.confirmation-card h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.status-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.order-id-pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  color: var(--ink);
}

/* Order Progress Timeline */
.timeline {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--subtle);
}

.t-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d4d4d4;
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.timeline li.done {
  color: var(--ink);
}

.timeline li.done .t-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.timeline li.current {
  color: var(--ink);
  font-weight: 700;
}

.timeline li.current .t-dot {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.1);
}

.t-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--subtle);
  margin-top: 2px;
}

.wa-helper {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 10px;
  margin-bottom: 14px;
}

.copy-msg-btn {
  width: 100%;
  height: 42px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.copy-msg-btn:hover {
  background: var(--surface);
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--subtle);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 20px 24px;
  margin-top: auto;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--subtle);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox img {
  max-height: 90vh;
  max-width: 92vw;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 100;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}
