/* ==========================================================================
   Sagar Paper Products — Site Styles
   ========================================================================== */

:root {
  --color-navy: #14213d;
  --color-navy-light: #1f3260;
  --color-navy-lighter: #2a4374;
  --color-gold: #c8912f;
  --color-gold-light: #e0ac47;
  --color-bg: #f8f7f4;
  --color-white: #ffffff;
  --color-text: #26292f;
  --color-muted: #636b78;
  --color-border: #e5e2da;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 33, 61, 0.06);
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.14);
  --container: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

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

.brand-text small {
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(20, 33, 61, 0.06);
}

.nav-links a.active {
  color: var(--color-white);
  background: var(--color-navy);
}

.nav-cta {
  background: var(--color-gold) !important;
  color: var(--color-navy) !important;
}
.nav-cta:hover {
  background: var(--color-gold-light) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.12), 0 2px 5px rgba(20, 33, 61, 0.08);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 10px rgba(20, 33, 61, 0.14);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 14px 26px rgba(200, 145, 47, 0.35), 0 2px 6px rgba(20, 33, 61, 0.12);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-light);
  box-shadow: 0 20px 36px rgba(200, 145, 47, 0.42), 0 4px 10px rgba(20, 33, 61, 0.14);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  box-shadow: none;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
  box-shadow: none;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(20, 33, 61, 0.22);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 55%, var(--color-navy-lighter) 100%);
  color: var(--color-white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(200, 145, 47, 0.25), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(240px, 340px);
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-content {
    order: 1;
    max-width: 100%;
  }
  .hero-visual {
    order: 2;
    max-width: 300px;
    margin: 10px auto 0;
  }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 34px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-gold-light);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
  padding: 84px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-navy);
  margin: 0 0 14px;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-alt {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Overview / two-column */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.overview-grid h2 {
  color: var(--color-navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 0;
}

.overview-grid p {
  color: var(--color-muted);
  font-size: 1.03rem;
}

.overview-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.overview-list {
  display: grid;
  gap: 18px;
}

.overview-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(200, 145, 47, 0.14);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 860px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Cards grid (products) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  perspective: 1200px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-lighter));
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -6px 10px rgba(0, 0, 0, 0.22), 0 14px 22px rgba(20, 33, 61, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateZ(0) rotateX(8deg);
  transform-style: preserve-3d;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* 3D tilt/lift on hover — desktop pointer devices only, so touch screens never
   get a "stuck" hover/tilt state. */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.015);
    box-shadow: 0 30px 55px rgba(20, 33, 61, 0.18), 0 8px 18px rgba(20, 33, 61, 0.1);
  }
  .card:hover .card-icon {
    transform: translateZ(22px) rotateX(0deg) rotateY(-8deg);
  }
  .overview-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
    box-shadow: var(--shadow-lg);
  }
}

.card h3 {
  color: var(--color-navy);
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.97rem;
}

/* Product note / callout */
.callout {
  background: var(--color-white);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
}

.callout-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(200, 145, 47, 0.14);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-icon svg {
  width: 22px;
  height: 22px;
}

.callout h3 {
  margin: 0 0 6px;
  color: var(--color-navy);
  font-size: 1.05rem;
}

.callout p {
  margin: 0;
  color: var(--color-muted);
}

/* About page */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.info-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.info-item h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.info-item p {
  margin: 0;
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy), var(--color-navy-lighter));
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-list .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(20, 33, 61, 0.06);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list .icon svg {
  width: 20px;
  height: 20px;
}

.contact-list h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.contact-list a,
.contact-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.97rem;
}

.contact-list a:hover {
  color: var(--color-gold);
}

.map-wrap {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
  background: var(--color-white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.form-status.is-error {
  display: block;
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.25);
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-white);
  padding: 64px 0;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin: 0;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb a:hover {
  color: var(--color-gold-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.site-footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}
.footer-list a:hover {
  color: var(--color-gold-light);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold-light);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-lg {
  margin-top: 40px;
}

@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }
  .cta-band {
    padding: 34px 26px;
  }
}

/* ==========================================================================
   Hero visual — CSS-only 3D notebook stack (no images, no icon libraries)
   ========================================================================== */

.hero-visual {
  position: relative;
  height: 320px;
  perspective: 1200px;
}

.book-stack {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(8deg);
  animation: heroStackFloat 6s ease-in-out infinite;
}

.book-layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(10, 16, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.book-layer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  border-radius: 16px 0 0 16px;
  background: rgba(0, 0, 0, 0.12);
}

.book-layer.layer-1 {
  background: linear-gradient(160deg, #ffffff, #e9e6dc);
  transform: translateZ(0px) translate(0, 26px) rotate(-8deg);
}

.book-layer.layer-2 {
  background: linear-gradient(160deg, #f2e6c9, #ddc182);
  transform: translateZ(26px) translate(16px, 10px) rotate(1deg);
}
.book-layer.layer-2::before {
  background: rgba(20, 33, 61, 0.18);
}

.book-layer.layer-3 {
  background: linear-gradient(160deg, var(--color-navy-lighter), var(--color-navy));
  transform: translateZ(52px) translate(30px, -8px) rotate(10deg);
}
.book-layer.layer-3::before {
  background: var(--color-gold);
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.floating-chip svg {
  width: 15px;
  height: 15px;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.chip-1 {
  top: 4px;
  left: -8px;
  animation: heroChipFloat 5s ease-in-out infinite;
}

.chip-2 {
  bottom: 18px;
  right: -18px;
  animation: heroChipFloat 6.5s ease-in-out infinite reverse;
}

@keyframes heroStackFloat {
  0%, 100% { transform: rotateY(-20deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-20deg) rotateX(8deg) translateY(-14px); }
}

@keyframes heroChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .book-stack,
  .chip-1,
  .chip-2 {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-visual {
    height: 240px;
  }
  .book-stack {
    width: 180px;
    height: 180px;
  }
}

/* ==========================================================================
   Product gallery (Products page)
   ========================================================================== */

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  perspective: 1400px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-3deg) scale(1.015);
    box-shadow: 0 30px 55px rgba(20, 33, 61, 0.2), 0 8px 18px rgba(20, 33, 61, 0.1);
  }
  .product-card:hover .product-media img {
    transform: scale(1.05);
  }
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f1efe9, #e6e3da);
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: var(--color-muted);
}

.media-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  opacity: 0.85;
}

.media-placeholder .tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-gold);
}

.media-placeholder code {
  font-size: 0.72rem;
  background: rgba(20, 33, 61, 0.06);
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--color-navy);
  word-break: break-all;
}

.product-body {
  padding: 22px 24px 26px;
}

.product-body h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1.12rem;
}

.product-desc {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.product-price {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price .price-value {
  color: var(--color-gold);
  font-weight: 700;
}
