/* ============================================================
   INNOVVA EDITORA — Main Stylesheet
   Premium Editorial Bookstore Experience
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colors */
  --cream:        #FAF8F4;
  --cream-dark:   #F2EEE7;
  --parchment:    #EDE8DE;
  --charcoal:     #1C1C1C;
  --charcoal-mid: #3A3A3A;
  --charcoal-lt:  #6B6B6B;
  --gold:         #B8962E;
  --gold-light:   #D4AE50;
  --gold-pale:    #F5ECD0;
  --sage:         #7A8C7A;
  --sage-light:   #A8B8A8;
  --sage-pale:    #EBF0EB;
  --rust:         #C0543A;
  --rust-light:   #E8896F;
  --white:        #FFFFFF;
  --border:       rgba(28,28,28,.10);
  --border-gold:  rgba(184,150,46,.25);
  --shadow-sm:    0 1px 4px rgba(28,28,28,.06);
  --shadow-md:    0 4px 20px rgba(28,28,28,.08);
  --shadow-lg:    0 12px 40px rgba(28,28,28,.12);
  --shadow-xl:    0 24px 60px rgba(28,28,28,.15);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 5rem;
  --card-radius: 12px;
  --btn-radius:  8px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:   180ms;
  --dur-mid:    320ms;
  --dur-slow:   500ms;

  /* Header */
  --header-h: 72px;
  --topbar-h: 40px;
}

/* Dark mode */
[data-theme="dark"] {
  --cream:        #141414;
  --cream-dark:   #1E1E1E;
  --parchment:    #282828;
  --charcoal:     #F0EDE8;
  --charcoal-mid: #C8C4BC;
  --charcoal-lt:  #8A8680;
  --border:       rgba(240,237,232,.10);
  --shadow-sm:    0 1px 4px rgba(0,0,0,.30);
  --shadow-md:    0 4px 20px rgba(0,0,0,.40);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.50);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-weight: 400;
  font-size: .9375rem;
  overflow-x: hidden;
  transition: background var(--dur-mid) var(--ease), color var(--dur-mid) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}
.display-serif { font-family: var(--font-serif); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--parchment); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--gold-pale); color: var(--charcoal); }

/* ── Utilities ────────────────────────────────────────────── */
.section-gap     { padding: var(--section-gap) 0; }
.section-gap-sm  { padding: 2.5rem 0; }
.text-gold       { color: var(--gold) !important; }
.text-sage       { color: var(--sage); }
.text-muted-sm   { font-size: .8125rem; color: var(--charcoal-lt); }
.font-serif      { font-family: var(--font-serif); }
.fw-500          { font-weight: 500; }
.border-gold     { border-color: var(--border-gold) !important; }
.bg-cream        { background: var(--cream); }
.bg-cream-dark   { background: var(--cream-dark); }
.bg-parchment    { background: var(--parchment); }
.rounded-card    { border-radius: var(--card-radius); }

/* ── Section Headers ──────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: .9375rem;
  color: var(--charcoal-lt);
  max-width: 480px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-innovva {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6875rem 1.5rem;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: all var(--dur-mid) var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(184,150,46,.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184,150,46,.50);
  transform: translateY(-1px);
}
.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--charcoal-mid);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-dark {
  border: 1.5px solid var(--border);
  color: var(--charcoal);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}
.btn-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--dur-fast) var(--ease);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge-promo {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 4px;
}
.badge-novo {
  background: var(--sage);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-block;
}
.badge-best {
  background: var(--gold);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 4px;
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  display: flex;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,.75); transition: color var(--dur-fast) var(--ease); }
.topbar a:hover { color: var(--gold-light); }
.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}
.topbar-ticker span { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,248,244,.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .site-header {
  background: rgba(20,20,20,.96);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .logo-mark {
  width: 42px; height: 42px;
  background: var(--charcoal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .site-logo .logo-mark { background: var(--gold); }
.site-logo .logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 100%);
}
.logo-text-wrap .logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: -.01em;
}
.logo-text-wrap .logo-tagline {
  font-size: .6875rem;
  color: var(--charcoal-lt);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Search bar */
.header-search-wrap {
  flex: 1;
  max-width: 520px;
  margin: 0 2rem;
  position: relative;
}
.header-search {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: var(--cream-dark);
  padding: 0 1.25rem 0 3rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--charcoal);
  transition: all var(--dur-mid) var(--ease);
  outline: none;
}
[data-theme="dark"] .header-search { background: var(--parchment); color: var(--charcoal); }
.header-search:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-pale);
}
.header-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--charcoal-lt);
  font-size: .9rem;
  pointer-events: none;
}
.search-btn-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.search-btn-submit:hover { background: var(--gold-light); }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: .75rem 0;
  display: none;
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}
[data-theme="dark"] .search-dropdown { background: var(--parchment); }
.search-dropdown.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.search-result-item:hover { background: var(--cream); }
.search-result-img {
  width: 36px; height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--parchment);
}
.search-result-name { font-size: .875rem; font-weight: 500; }
.search-result-author { font-size: .75rem; color: var(--charcoal-lt); }
.search-result-price { font-size: .875rem; color: var(--gold); font-weight: 600; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.header-action-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--charcoal-mid);
  font-size: 1.1rem;
  transition: all var(--dur-fast) var(--ease);
}
.header-action-btn:hover {
  background: var(--parchment);
  color: var(--charcoal);
}
.header-action-btn .badge-count {
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  background: var(--gold);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.btn-login-header {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  margin-left: .25rem;
  transition: all var(--dur-fast);
}
.btn-login-header:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR (Mega Menu)
   ══════════════════════════════════════════════════════════ */
.site-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 48px;
  display: flex;
  align-items: center;
  position: sticky;
  top: var(--header-h);
  z-index: 999;
}
[data-theme="dark"] .site-navbar { background: var(--cream-dark); }
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.navbar-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.navbar-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 1rem;
  height: 100%;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  white-space: nowrap;
  transition: color var(--dur-fast);
  border-bottom: 2px solid transparent;
}
.navbar-link:hover,
.navbar-item.active .navbar-link {
  color: var(--charcoal);
  border-bottom-color: var(--gold);
}
.navbar-link .fa-chevron-down {
  font-size: .65rem;
  transition: transform var(--dur-fast);
}
.navbar-item:hover .fa-chevron-down { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--dur-mid) var(--ease);
  pointer-events: none;
}
[data-theme="dark"] .mega-menu { background: var(--parchment); }
.navbar-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-menu-col h6 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.mega-menu-col a {
  display: block;
  font-size: .8375rem;
  color: var(--charcoal-mid);
  padding: .25rem 0;
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.mega-menu-col a:hover {
  color: var(--charcoal);
  padding-left: .35rem;
}

/* Mobile toggle */
.navbar-toggler {
  display: none;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
   HERO / BANNER
   ══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

/* Slider wrapper — define altura e empilha slides */
.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

/* Todos os slides ficam ocultos por padrão */
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
  pointer-events: none;
  will-change: opacity;
}

/* Apenas o slide ativo é visível */
.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
  transition: opacity 1s var(--ease);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,28,28,.9) 40%, rgba(28,28,28,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.hero-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-price-tag {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .5rem 1rem;
  margin-bottom: 1.5rem;
}
.hero-price-tag .price-old {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  text-decoration: line-through;
}
.hero-price-tag .price-new {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 700;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--dur-mid) var(--ease);
}
.hero-cta-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(184,150,46,.4);
}
.hero-cta-primary:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,150,46,.5);
}
.hero-cta-secondary {
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
/* Book mockup in hero */
.hero-book {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  perspective: 600px;
}
.hero-book img {
  width: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow: -8px 8px 40px rgba(0,0,0,.5);
  transform: rotateY(-12deg);
  transition: transform var(--dur-slow) var(--ease);
}
.hero-book:hover img { transform: rotateY(0deg); }

/* Slider controls */
.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.hero-arrow:hover { background: rgba(255,255,255,.2); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   BENEFITS STRIP
   ══════════════════════════════════════════════════════════ */
.benefits-strip {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.benefits-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 2rem;
  border-right: 1px solid var(--border);
  font-size: .8375rem;
  color: var(--charcoal-mid);
}
.benefit-item:last-child { border-right: none; }
.benefit-item .benefit-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .9rem;
  flex-shrink: 0;
}
.benefit-item strong { display: block; font-weight: 600; color: var(--charcoal); font-size: .875rem; }

/* ══════════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════════ */
.product-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--dur-mid) var(--ease);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .product-card { background: var(--cream-dark); }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

/* Book cover */
.product-cover {
  position: relative;
  background: var(--cream-dark);
  aspect-ratio: 2/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
[data-theme="dark"] .product-cover { background: var(--parchment); }
.product-cover img {
  width: auto;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -4px 4px 16px rgba(0,0,0,.2);
  transition: transform var(--dur-mid) var(--ease);
}
.product-card:hover .product-cover img {
  transform: scale(1.04) rotate(-1deg);
}

/* Floating badges */
.product-badges {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* Quick actions */
.product-quick-actions {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--dur-mid) var(--ease);
}
.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}
.quick-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-lt);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--dur-fast);
  box-shadow: var(--shadow-sm);
}
.quick-action-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.quick-action-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Card body */
.product-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .35rem;
}
.product-name {
  font-family: var(--font-serif);
  font-size: .9875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-author {
  font-size: .8125rem;
  color: var(--charcoal-lt);
  margin-bottom: .75rem;
  font-style: italic;
}
.product-author a { transition: color var(--dur-fast); }
.product-author a:hover { color: var(--gold); }

/* Stars */
.product-stars {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .75rem;
}
.product-stars .stars { color: var(--gold); font-size: .75rem; letter-spacing: .05em; }
.product-stars .count { font-size: .75rem; color: var(--charcoal-lt); }

/* Pricing */
.product-pricing { margin-top: auto; }
.price-old-card {
  font-size: .8125rem;
  color: var(--charcoal-lt);
  text-decoration: line-through;
  line-height: 1;
}
.price-current {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.price-current.promo { color: var(--rust); }
.price-pix {
  font-size: .75rem;
  color: var(--sage);
  font-weight: 500;
}
.price-pix strong { color: var(--charcoal); }

/* Add to cart */
.btn-add-cart {
  width: 100%;
  margin-top: .875rem;
  padding: .6rem;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-size: .8375rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  transition: all var(--dur-mid) var(--ease);
}
.btn-add-cart:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--parchment) 25%, var(--cream-dark) 50%, var(--parchment) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════
   CATEGORIES GRID
   ══════════════════════════════════════════════════════════ */
.category-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease);
  text-align: center;
  overflow: hidden;
}
[data-theme="dark"] .category-card { background: var(--cream-dark); }
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  transition: all var(--dur-mid) var(--ease);
}
.category-card:hover .category-icon {
  background: var(--gold-pale);
  transform: scale(1.1);
}
.category-name {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}
.category-count { font-size: .78rem; color: var(--charcoal-lt); }

/* ══════════════════════════════════════════════════════════
   AUTHORS SECTION
   ══════════════════════════════════════════════════════════ */
.author-card {
  text-align: center;
  cursor: pointer;
}
.author-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--parchment);
  margin: 0 auto .75rem;
  transition: all var(--dur-mid) var(--ease);
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--charcoal-lt);
}
.author-card:hover .author-avatar {
  border-color: var(--gold);
  transform: scale(1.06);
}
.author-name {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 600;
}
.author-specialty { font-size: .78rem; color: var(--charcoal-lt); }

/* ══════════════════════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════════════════════ */
.newsletter-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,46,.12) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}
.newsletter-desc { font-size: .9375rem; color: rgba(255,255,255,.6); margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  height: 50px;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 25px;
  background: rgba(255,255,255,.06);
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: #fff;
  outline: none;
  transition: border-color var(--dur-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-btn {
  height: 50px;
  padding: 0 1.5rem;
  border-radius: 25px;
  background: var(--gold);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast);
}
.newsletter-btn:hover { background: var(--gold-light); }

/* ══════════════════════════════════════════════════════════
   MINI CART SIDEBAR
   ══════════════════════════════════════════════════════════ */
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,28,28,.45);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-mid) var(--ease);
}
.mini-cart-overlay.active { opacity: 1; visibility: visible; }
.mini-cart {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .mini-cart { background: var(--cream-dark); }
.mini-cart-overlay.active .mini-cart { transform: translateX(0); }
.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mini-cart-header h5 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
}
.mini-cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-lt);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.mini-cart-close:hover { background: var(--parchment); color: var(--charcoal); }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.mini-cart-item {
  display: flex;
  gap: .75rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.mini-cart-item-img {
  width: 52px; height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.mini-cart-item-name {
  font-family: var(--font-serif);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .2rem;
}
.mini-cart-item-author { font-size: .75rem; color: var(--charcoal-lt); margin-bottom: .4rem; }
.mini-cart-item-price { font-size: .9375rem; color: var(--gold); font-weight: 700; }
.mini-cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mini-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.mini-cart-total .total-label { font-size: .875rem; color: var(--charcoal-lt); }
.mini-cart-total .total-value {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ══════════════════════════════════════════════════════════
   PRODUCT PAGE (detail)
   ══════════════════════════════════════════════════════════ */
.product-gallery { position: sticky; top: calc(var(--header-h) + 64px); }
.gallery-main {
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  cursor: zoom-in;
}
.gallery-main img {
  width: 85%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-main:hover img { transform: scale(1.08); }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb {
  width: 64px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--dur-fast);
  background: var(--cream-dark);
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info-brand { font-size: .75rem; color: var(--sage); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.product-info-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: .5rem 0 .4rem;
  line-height: 1.2;
}
.product-info-author { font-size: .9375rem; color: var(--charcoal-lt); font-style: italic; margin-bottom: 1rem; }
.product-info-author a { color: var(--gold); transition: color var(--dur-fast); }
.product-info-author a:hover { color: var(--gold-light); }

/* Price box */
.price-box {
  background: var(--cream-dark);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}
[data-theme="dark"] .price-box { background: var(--parchment); }
.price-box .old { font-size: .875rem; color: var(--charcoal-lt); text-decoration: line-through; }
.price-box .current {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin: .25rem 0 .4rem;
}
.price-box .current.promo { color: var(--rust); }
.price-box .pix-price { font-size: .875rem; color: var(--sage); }
.price-box .pix-price strong { color: var(--charcoal); font-size: 1rem; }
.price-box .installment { font-size: .8125rem; color: var(--charcoal-lt); margin-top: .2rem; }

/* Action buttons */
.product-actions { display: flex; flex-direction: column; gap: .625rem; }
.btn-comprar {
  padding: .9rem 1.5rem;
  background: var(--gold);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all var(--dur-mid) var(--ease);
  box-shadow: 0 4px 16px rgba(184,150,46,.4);
}
.btn-comprar:hover {
  background: var(--gold-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,150,46,.5);
}
.btn-carrinho {
  padding: .85rem 1.5rem;
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all var(--dur-mid) var(--ease);
}
.btn-carrinho:hover {
  background: var(--charcoal);
  color: #fff;
}

/* Tech info table */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.tech-table tr { border-bottom: 1px solid var(--border); }
.tech-table td { padding: .6rem .5rem; }
.tech-table td:first-child { color: var(--charcoal-lt); width: 40%; }
.tech-table td:last-child { font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════════════════════════ */
.cart-table {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
[data-theme="dark"] .cart-table { background: var(--cream-dark); }
.cart-table-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: .875rem 1.5rem;
  background: var(--cream-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
}
.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  align-items: center;
  padding: 1.125rem 1.5rem;
  border-top: 1px solid var(--border);
}
.cart-item-product { display: flex; gap: .875rem; align-items: center; }
.cart-item-img {
  width: 56px; height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.cart-item-name {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .2rem;
}
.cart-item-author { font-size: .8125rem; color: var(--charcoal-lt); }
.qty-input {
  display: flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-dark);
  color: var(--charcoal);
  font-size: .8rem;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.qty-btn:hover { background: var(--gold-pale); color: var(--gold); }
.qty-num {
  width: 36px;
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--charcoal);
  outline: none;
}
.cart-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-lt);
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: .85rem;
}
.cart-remove:hover { background: var(--rust); color: #fff; border-color: var(--rust); }

/* Order summary */
.order-summary {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
[data-theme="dark"] .order-summary { background: var(--cream-dark); }
.summary-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 0;
  border-top: 2px solid var(--border);
  margin-top: .5rem;
}
.summary-total .label { font-size: .9375rem; font-weight: 600; }
.summary-total .value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}
.coupon-form {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
}
.coupon-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 .875rem;
  font-size: .8375rem;
  background: var(--cream-dark);
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--dur-fast);
}
.coupon-input:focus { border-color: var(--gold); }
.coupon-btn {
  padding: 0 .875rem;
  height: 40px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.coupon-btn:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════
   CHECKOUT
   ══════════════════════════════════════════════════════════ */
.checkout-steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}
.checkout-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-bubble {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--charcoal-lt);
  margin-bottom: .4rem;
  transition: all var(--dur-mid) var(--ease);
}
.checkout-step.active .step-bubble {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 6px var(--gold-pale);
}
.checkout-step.done .step-bubble {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.step-label { font-size: .75rem; color: var(--charcoal-lt); font-weight: 500; }
.checkout-step.active .step-label { color: var(--gold); font-weight: 600; }

/* Form card */
.form-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1rem;
}
[data-theme="dark"] .form-card { background: var(--cream-dark); }
.form-card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.form-card-title .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Payment methods */
.payment-method {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: .875rem 1.125rem;
  cursor: pointer;
  transition: all var(--dur-fast);
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: .5rem;
}
.payment-method:hover { border-color: var(--gold-pale); }
.payment-method.selected { border-color: var(--gold); background: var(--gold-pale); }
.payment-method .method-icon {
  width: 48px; height: 32px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════
   CLIENTE DASHBOARD
   ══════════════════════════════════════════════════════════ */
.dashboard-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.dashboard-sidebar {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
[data-theme="dark"] .dashboard-sidebar { background: var(--cream-dark); }
.sidebar-user {
  padding: 1.5rem;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
}
.sidebar-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gold-pale);
  margin: 0 auto .75rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  border: 3px solid rgba(255,255,255,.15);
}
.sidebar-user-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.sidebar-user-email { font-size: .78rem; color: rgba(255,255,255,.55); }
.sidebar-menu { padding: .75rem 0; }
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  color: var(--charcoal-mid);
  cursor: pointer;
  transition: all var(--dur-fast);
  border-left: 3px solid transparent;
}
.sidebar-menu-item:hover { background: var(--cream-dark); color: var(--charcoal); }
.sidebar-menu-item.active {
  background: var(--gold-pale);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-menu-item .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.sidebar-menu-item.active .icon { background: var(--gold); color: #fff; }

/* Dashboard stats */
.dashboard-stat {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
[data-theme="dark"] .dashboard-stat { background: var(--cream-dark); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label { font-size: .8125rem; color: var(--charcoal-lt); }

/* Orders table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.orders-table th {
  padding: .75rem 1rem;
  background: var(--cream-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.status-pending  { background: #FFF8E6; color: #B07D00; }
.status-paid     { background: #E8F5E9; color: #2E7D32; }
.status-shipped  { background: #E3F2FD; color: #1565C0; }
.status-delivered{ background: #E8F5E9; color: #1B5E20; }
.status-canceled { background: #FFEBEE; color: #C62828; }

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════ */
.breadcrumb-wrap {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--charcoal-lt); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--charcoal); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   FILTERS SIDEBAR
   ══════════════════════════════════════════════════════════ */
.filters-sidebar {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.5rem;
}
[data-theme="dark"] .filters-sidebar { background: var(--cream-dark); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  margin-bottom: .875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .8375rem;
  color: var(--charcoal-mid);
  cursor: pointer;
}
.filter-item input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; }
.filter-item .count { color: var(--charcoal-lt); margin-left: auto; font-size: .75rem; }

/* Price range */
.price-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 60%, var(--border) 60%);
  outline: none;
  margin: .75rem 0;
}
.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(184,150,46,.4);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 360px;
  font-size: .875rem;
  animation: toastIn .3s var(--ease-bounce);
  transition: all var(--dur-mid) var(--ease);
}
.toast-notification.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
.toast-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.toast-success .toast-icon { background: #E8F5E9; color: #2E7D32; }
.toast-info    .toast-icon { background: #E3F2FD; color: #1565C0; }
.toast-warning .toast-icon { background: #FFF8E6; color: #B07D00; }
.toast-error   .toast-icon { background: #FFEBEE; color: #C62828; }

/* ══════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 380px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  z-index: 1500;
  display: none;
  animation: cookieIn .5s var(--ease-bounce);
}
[data-theme="dark"] .cookie-banner { background: var(--parchment); }
.cookie-banner.show { display: block; }
@keyframes cookieIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner h6 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.cookie-banner p { font-size: .8125rem; color: var(--charcoal-lt); margin-bottom: 1rem; line-height: 1.6; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   PWA INSTALL BANNER
   ══════════════════════════════════════════════════════════ */
.pwa-banner {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: #fff;
  border-radius: 12px;
  padding: .875rem 1.25rem;
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 1500;
  max-width: 420px;
  animation: pwaIn .4s var(--ease-bounce);
}
.pwa-banner.show { display: flex; }
@keyframes pwaIn {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}
.pwa-banner .pwa-icon { font-size: 1.5rem; }
.pwa-banner .pwa-text { flex: 1; font-size: .8375rem; }
.pwa-banner .pwa-text strong { display: block; font-size: .9375rem; font-weight: 600; }
.pwa-install-btn {
  padding: .45rem 1rem;
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast);
  white-space: nowrap;
}
.pwa-install-btn:hover { background: var(--gold-light); }
.pwa-close-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}
.pwa-close-btn:hover { background: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: rgba(255,255,255,.4); }
.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-top: .875rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.125rem;
}
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a {
  font-size: .8375rem;
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.footer-links a:hover { color: var(--gold-light); padding-left: .3rem; }
.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .875rem;
}
.payment-flag {
  width: 48px; height: 30px;
  border-radius: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}
.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color var(--dur-fast); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════════════
   DARK MODE TOGGLE
   ══════════════════════════════════════════════════════════ */
.dark-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--charcoal-lt);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.dark-toggle:hover { background: var(--parchment); color: var(--charcoal); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up:nth-child(2) { transition-delay: .1s; }
.fade-in-up:nth-child(3) { transition-delay: .2s; }
.fade-in-up:nth-child(4) { transition-delay: .3s; }
.fade-in-up:nth-child(5) { transition-delay: .4s; }
.fade-in-up:nth-child(6) { transition-delay: .5s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .dashboard-wrap { grid-template-columns: 220px 1fr; }
  .mega-menu { width: 580px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }
  .header-search-wrap { max-width: 360px; margin: 0 1rem; }
  .site-navbar { display: none; }
  .navbar-toggler { display: flex; }
  .mega-menu { display: none; }
  .dashboard-wrap { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .cart-table-header { display: none; }
  .cart-item { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .hero-book { display: none; }
}

@media (max-width: 767px) {
  :root { --section-gap: 3rem; }
  .header-search-wrap { display: none; }
  .benefits-strip { display: none; }
  .benefit-item { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-cart { width: 100%; }
  .cookie-banner { left: 1rem; right: 1rem; width: auto; }
  .newsletter-form { flex-direction: column; }
  .checkout-steps { display: none; }
  .topbar { display: none; }
  .logo-text-wrap .logo-tagline { display: none; }
}

@media (max-width: 575px) {
  .hero-slide { min-height: 400px; }
  .hero-title { font-size: 1.75rem; }
}

/* Lazy load */
img[loading="lazy"] { background: var(--cream-dark); }
