/* ============================================================
   DocuSoft — Main Stylesheet
   Pure CSS replacement for the original Tailwind + custom styles.
   Uses CSS custom properties for easy theming (brand colors).
   ============================================================ */

/* ---------- Fonts (loaded via <link rel="preconnect"> in HTML) ---------- */
/* Cormorant Garamond (serif) + Inter (sans) — declared in each HTML via <link>
   for better control over preload. No @import here to avoid render-blocking. */

/* ============================================================
   1. Design tokens (themeable via JS)
   ============================================================ */
:root {
  --brand-bg: #ffffff;
  --brand-ink: #000000;
  --brand-muted: #717171;
  --brand-border: #e5e7eb;
  --brand-surface: #f9fafb;
  --brand-accent: #2563eb;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --max-w: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button, [role="button"], select,
input[type="checkbox"], input[type="radio"],
input[type="file"], input[type="submit"] { cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--brand-accent); color: #fff; }

/* Screen-reader-only helper */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   3. Layout primitives
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }

/* ============================================================
   4. Typography utilities
   ============================================================ */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   5. Colors
   ============================================================ */
.text-brand-ink    { color: var(--brand-ink); }
.text-brand-muted  { color: var(--brand-muted); }
.text-brand-accent { color: var(--brand-accent); }
.text-white        { color: #fff; }

.bg-brand-bg      { background-color: var(--brand-bg); }
.bg-brand-ink     { background-color: var(--brand-ink); }
.bg-brand-surface { background-color: var(--brand-surface); }
.bg-brand-accent  { background-color: var(--brand-accent); }
.bg-white         { background-color: #fff; }
.bg-black\/20     { background-color: rgba(0, 0, 0, 0.2); }
.bg-black\/40     { background-color: rgba(0, 0, 0, 0.4); }

.border       { border: 1px solid var(--brand-border); }
.border-t     { border-top: 1px solid var(--brand-border); }
.border-b     { border-bottom: 1px solid var(--brand-border); }
.border-brand-border { border-color: var(--brand-border); }
.border-brand-ink    { border-color: var(--brand-ink); }

/* ============================================================
   6. Component classes (originals preserved)
   ============================================================ */
.bw-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bw-card-hover:hover {
  border-color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.bw-input {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.bw-input:focus,
.bw-input:focus-within {
  border-color: var(--brand-ink);
  background: #fff;
}

.bw-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none;
}
.bw-button-primary:hover { background: #1f2937; }
.bw-button-primary:active { transform: scale(0.97); }
.bw-button-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.bw-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-border);
  color: var(--brand-ink);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.1s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.bw-button-secondary:hover { border-color: var(--brand-ink); }
.bw-button-secondary:active { transform: scale(0.97); }

.bw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--brand-border);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  width: 40px;
  height: 40px;
}
.bw-icon-btn:hover {
  border-color: var(--brand-ink);
  background: var(--brand-surface);
}

/* Scrollbar hider */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Snap */
.snap-x { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }

/* ============================================================
   7. Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  padding: 16px;
}
@media (min-width: 768px) { .navbar { padding: 16px 32px; } }

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-box {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-name { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; }
@media (max-width: 767px) { .logo-name { display: none; } }

.search-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 448px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  border-radius: 9999px;
  padding: 8px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search-box:focus-within { border-color: var(--brand-ink); background: #fff; }
.search-box input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; }
.search-box input::placeholder { color: var(--brand-muted); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .nav-actions { gap: 12px; } }

.social-list { display: none; gap: 12px; align-items: center; }
@media (min-width: 768px) { .social-list { display: flex; } }
.social-list a { transition: transform 0.2s ease; }
.social-list a:hover { transform: scale(1.1); }

.mobile-social-toggle { display: flex; }
@media (min-width: 768px) { .mobile-social-toggle { display: none; } }

.mobile-social-menu {
  position: absolute; right: 16px; top: 80px; z-index: 60;
  width: 192px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 8px;
  box-shadow: var(--shadow-xl);
  opacity: 0; transform: translateY(-20px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-social-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-social-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700;
  color: var(--brand-ink);
}
.mobile-social-menu a:hover { background: var(--brand-surface); }

.mobile-social-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-social-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .mobile-social-menu, .mobile-social-overlay { display: none !important; } }

/* ============================================================
   8. Category menu
   ============================================================ */
.cat-menu { background: #fff; padding: 24px 0; }
.cat-menu-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 16px 16px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: flex-start;
}
.cat-menu-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cat-menu-row { justify-content: center; } }

.cat-item {
  display: flex;
  flex: 0 0 28%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  text-decoration: none;
}
@media (min-width: 640px) { .cat-item { flex: 0 0 auto; min-width: 100px; } }
.cat-item:hover { transform: scale(1.05); }
.cat-item.active { transform: scale(0.95); }

.cat-icon-box {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--brand-border);
  color: var(--brand-accent);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  overflow: hidden;
}
.cat-item:hover .cat-icon-box { border-color: var(--brand-ink); }
.cat-item.active .cat-icon-box { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.cat-icon-box img { width: 100%; height: 100%; object-fit: cover; }

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-muted);
}
.cat-item.active .cat-label { color: var(--brand-ink); }

/* ============================================================
   9. Product card
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.3s var(--ease-out);
}
@media (min-width: 640px) { .product-card { padding: 16px; } }
.product-card:hover {
  border-color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
}
@media (min-width: 640px) { .product-thumb { border-radius: var(--radius-md); } }
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.1); }

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2px 6px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
  .product-badge { font-size: 10px; padding: 4px 8px; }
}
.product-badge svg { width: 10px; height: 10px; color: var(--brand-accent); }
@media (min-width: 640px) { .product-badge svg { width: 12px; height: 12px; } }

.product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .product-body { padding: 0 4px; margin-top: 16px; }
}

.product-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 640px) {
  .product-title-row { flex-direction: row; justify-content: space-between; gap: 8px; }
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  transition: color 0.2s ease;
}
@media (min-width: 640px) { .product-title { font-size: 14px; min-height: 40px; } }
.product-title:hover { color: var(--brand-accent); }

.product-price { font-size: 12px; font-weight: 900; color: var(--brand-ink); white-space: nowrap; }

.product-desc {
  display: none;
  font-size: 11px;
  color: var(--brand-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) { .product-desc { display: -webkit-box; } }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
@media (min-width: 640px) { .product-footer { margin-top: 16px; } }

.product-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-muted);
}
@media (min-width: 640px) { .product-cat { font-size: 10px; } }

.product-dl-btn {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: var(--brand-ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}
@media (min-width: 640px) { .product-dl-btn { width: 32px; height: 32px; } }
.product-dl-btn:hover { background: #1f2937; }
.product-dl-btn:active { transform: scale(0.9); }
.product-dl-btn svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .product-dl-btn svg { width: 16px; height: 16px; } }

/* ============================================================
   10. Grids
   ============================================================ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) { .grid-products { gap: 32px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.grid-products-5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) { .grid-products-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid-products-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-products-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }

/* ============================================================
   11. Slider (horizontal scroll)
   ============================================================ */
.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.slider::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .slider { gap: 32px; } }

.slider-item {
  flex: 0 0 75%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .slider-item-3 { flex: 0 0 calc(33.333% - 1.33rem); }
}
@media (min-width: 640px) {
  .slider-item-5 { flex: 0 0 45%; }
}
@media (min-width: 1024px) {
  .slider-item-5 { flex: 0 0 calc(20% - 1.6rem); }
}

/* ============================================================
   12. Sections (Home)
   ============================================================ */
.section { margin-bottom: 64px; }
.section-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.section-title { font-size: 36px; font-weight: 900; letter-spacing: -0.025em; color: var(--brand-ink); }
@media (min-width: 768px) { .section-title { font-size: 40px; } }
.section-subtitle {
  margin-top: 16px;
  max-width: 640px;
  font-size: 18px;
  color: var(--brand-muted);
}
.section-nav { margin-top: 32px; display: flex; gap: 16px; }
.section-nav .bw-icon-btn { width: 48px; height: 48px; }
.section-nav .bw-icon-btn svg { width: 24px; height: 24px; color: var(--brand-accent); }

.section-head-left {
  margin-bottom: 32px;
}
.section-head-left h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.025em; color: var(--brand-ink); }
.section-head-left p { font-size: 14px; color: var(--brand-muted); margin-top: 4px; }

/* ============================================================
   13. Main & breadcrumb
   ============================================================ */
main { padding: 32px 16px; max-width: var(--max-w); margin: 0 auto; }
@media (min-width: 768px) { main { padding: 32px; } }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-muted);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb .sep { opacity: 0.3; }
.breadcrumb .current { color: var(--brand-ink); }

/* ============================================================
   14. Footer
   ============================================================ */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--brand-border);
  background: #fff;
  padding: 64px 0;
}
.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .site-footer .inner { padding: 0 32px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-brand .logo-name { display: block; font-weight: 900; }
.footer-brand p { max-width: 20rem; font-size: 14px; line-height: 1.625; color: var(--brand-muted); }

.footer-col h4 {
  margin-bottom: 32px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-ink);
}
.footer-col ul { display: flex; flex-direction: column; gap: 16px; font-size: 14px; font-weight: 500; color: var(--brand-muted); }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-ink); }

.footer-copy {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-border);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  opacity: 0.6;
}

/* ============================================================
   15. Product Detail page
   ============================================================ */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 1024px) { .pd-hero { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }

.pd-image-wrap {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 640px) { .pd-image-wrap { padding: 40px; } }
.pd-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  box-shadow: var(--shadow-sm);
}
.pd-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.pd-image:hover img { transform: scale(1.05); }
.pd-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(0,0,0,0.05), transparent);
  pointer-events: none;
}

.pd-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pd-panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--brand-surface);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.pd-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
}
@media (min-width: 768px) { .pd-title { font-size: 48px; } }

.pd-desc { font-size: 18px; line-height: 1.625; color: var(--brand-muted); font-weight: 300; }

.pd-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.pd-price-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-muted); }
.pd-price { font-size: 60px; font-weight: 300; letter-spacing: -0.05em; color: var(--brand-ink); line-height: 1; }
.pd-price sup { font-size: 14px; font-weight: 500; color: var(--brand-muted); vertical-align: baseline; margin-left: 4px; }

.pd-buy-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-ink);
  padding: 24px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}
.pd-buy-btn:hover { background: #111; }
.pd-buy-btn:active { transform: scale(0.98); }
.pd-buy-btn svg { transition: transform 0.2s ease; }
.pd-buy-btn:hover svg { transform: translateY(-4px); }

.pd-trust {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-trust-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pd-trust-icon {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--brand-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-accent);
}
.pd-trust-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-muted); }

.pd-content-wrap {
  margin-top: 128px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 40px;
}
.pd-content { font-weight: 300; color: var(--brand-muted); line-height: 1.625; max-width: none; }
.pd-content :where(h1, h2, h3, h4) { color: var(--brand-ink); font-family: var(--font-serif); font-weight: 300; margin: 0 0 24px; }
.pd-content h2 { font-size: 32px; }
.pd-content h3 { font-size: 24px; }
.pd-content p { margin-bottom: 24px; font-size: 18px; }
.pd-content img, .pd-content video, .pd-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.pd-content pre { overflow-x: auto; max-width: 100%; }

.pd-tags-row { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.pd-tag-chip {
  padding: 6px 16px;
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
}

.pd-related-head {
  margin-top: 128px;
  padding-top: 64px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.pd-related-head h2 { font-family: var(--font-serif); font-size: 40px; font-weight: 300; color: var(--brand-ink); }

/* ============================================================
   16. Static page (About, Contact, Legal...)
   ============================================================ */
.static-main { max-width: 64rem; margin: 0 auto; padding: 80px 16px; }
@media (min-width: 768px) { .static-main { padding: 80px 32px; } }
.static-title { font-size: 60px; font-weight: 900; letter-spacing: -0.025em; color: var(--brand-ink); margin-bottom: 48px; line-height: 1; }
@media (max-width: 640px) { .static-title { font-size: 42px; } }

.static-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 48px;
  font-size: 18px;
  line-height: 1.625;
}
@media (max-width: 640px) { .static-card { padding: 24px; } }
.static-card :where(p) { margin-bottom: 24px; font-weight: 300; color: var(--brand-muted); }
.static-card :where(h3) { margin-bottom: 16px; font-size: 20px; font-weight: 700; color: #111; margin-top: 32px; }
.static-card :where(h3:first-child) { margin-top: 0; }

/* Contact page grid */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .bw-input { padding: 16px; }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-success {
  background: #f0fdf4;
  padding: 24px;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
}
.contact-success h4 { font-weight: 700; color: #166534; }
.contact-success p { font-size: 14px; color: #16a34a; margin-top: 4px; }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-side .bw-card { padding: 24px; }
.contact-side h4 { font-weight: 900; color: var(--brand-ink); margin-bottom: 4px; }
.contact-side p { font-size: 14px; color: var(--brand-muted); }

/* ============================================================
   17. Modal
   ============================================================ */
.modal-root {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-root.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s var(--ease-out);
}
.modal-root.open .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--brand-muted);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--brand-ink); }

.modal-head { text-align: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 30px; font-weight: 900; color: var(--brand-ink); }
.modal-head p { font-size: 14px; color: var(--brand-muted); margin-top: 8px; }

.modal-body { display: flex; flex-direction: column; gap: 16px; }

.input-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
}
.input-icon:focus-within { border-color: var(--brand-ink); background: #fff; }
.input-icon svg { width: 20px; height: 20px; color: var(--brand-accent); flex-shrink: 0; }
.input-icon input {
  width: 100%; background: transparent; border: none; outline: none; font-size: 14px;
}

.total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-2xl);
}
.total-row .lhs { display: flex; align-items: center; gap: 12px; }
.total-row .lhs svg { color: var(--brand-accent); }
.total-row strong { font-size: 20px; font-weight: 900; }

.success-box {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 16px 0;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 9999px;
  border: 4px solid var(--brand-accent);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-accent);
}

.file-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.file-link:hover { border-color: var(--brand-ink); background: #fff; }
.file-link .lhs { display: flex; align-items: center; gap: 12px; }
.file-link .ico {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}
.file-link .fname { font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.file-link .fsize { font-size: 10px; color: var(--brand-muted); }

/* ============================================================
   18. Fade-in on view (replaces framer-motion enter animations)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.6s ease-out, transform 0.6s var(--ease-out); }
.reveal-left.in-view { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(20px); transition: opacity 0.6s ease-out, transform 0.6s var(--ease-out); }
.reveal-right.in-view { opacity: 1; transform: none; }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ============================================================
   19. Admin page
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--brand-surface); }
.admin-sidebar {
  width: 256px;
  background: #fff;
  border-right: 1px solid var(--brand-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
}
.admin-sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) {
  .admin-sidebar { position: sticky; transform: none; }
}
.admin-main {
  flex: 1;
  padding: 24px;
  max-width: 100%;
}
@media (min-width: 1024px) { .admin-main { padding: 40px; } }

.admin-tab-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--brand-muted);
  background: none; border: none;
  text-align: left; cursor: pointer; width: 100%;
  transition: background 0.2s, color 0.2s;
}
.admin-tab-btn:hover { background: var(--brand-surface); color: var(--brand-ink); }
.admin-tab-btn.active { background: var(--brand-ink); color: #fff; }
.admin-tab-btn.active:hover { background: #111; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Tailwind-ish shortcuts used in templates */
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; } .gap-12 { gap: 48px; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; }
.p-4 { padding: 16px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; } .p-10 { padding: 40px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.overflow-hidden { overflow: hidden; }
