/**
 * S. Parthasarathy Author Site — Components
 * Palette: "Lime-wash & Lamplight" (Karaikudi / Chettinad)
 */

/* ==========================================================================
   1. Buttons & Links (Minimum 48px standard / 56px large touch target)
   ========================================================================== */
.btn-literary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--control-h, 48px);
  height: var(--control-h, 48px);
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-control, 10px);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-normal);
  border: 1px solid transparent;
  box-sizing: border-box;
  line-height: 1;
}

.btn-primary,
.btn-primary-literary,
.btn--primary {
  background-color: var(--cta, #6E2B25);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border-color: var(--cta, #6E2B25);
}

.btn-primary:hover,
.btn-primary-literary:hover,
.btn--primary:hover {
  background-color: var(--cta-hover, #56211C);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(110, 43, 37, 0.4);
}

.btn-secondary,
.btn-outline,
.btn--outline,
.btn-outline-literary {
  background-color: transparent;
  color: var(--walnut, #3F2A1D);
  border: 1.5px solid var(--walnut, #3F2A1D);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn--outline:hover,
.btn-outline-literary:hover {
  background-color: rgba(63, 42, 29, 0.06);
  border-color: var(--walnut, #3F2A1D);
  color: var(--walnut, #3F2A1D);
  transform: translateY(-1px);
}

.btn-ghost,
.btn--ghost {
  background: transparent;
  color: #6B5645;
  border: 1px solid transparent;
}

.btn-ghost:hover,
.btn--ghost:hover {
  background: rgba(43, 29, 20, 0.06);
  color: #2B1D14;
}

.btn-sm,
.btn--sm {
  min-height: 40px;
  height: 40px;
  padding: 0 1rem;
  font-size: 0.88rem;
}

.btn-md,
.btn--md {
  min-height: var(--control-h, 48px);
  height: var(--control-h, 48px);
  padding: 0 1.25rem;
  font-size: 0.95rem;
}

.btn-lg,
.btn--lg {
  min-height: var(--control-h-lg, 56px);
  height: var(--control-h-lg, 56px);
  padding: 0 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-control, 10px);
}

.btn-loading,
.btn.is-loading,
.is-loading {
  position: relative;
  pointer-events: none !important;
  opacity: 0.85;
}

.btn:disabled,
.btn[disabled],
.btn.is-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.band-dusk .btn-primary-literary,
.band-dusk .btn--primary {
  background-color: var(--cta);
  color: var(--cta-text);
  border-color: rgba(248, 240, 221, 0.2);
}

.band-dusk .btn-primary-literary:hover,
.band-dusk .btn--primary:hover {
  background-color: var(--cta-hover);
  color: #FFFFFF;
}

.btn-outline-literary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-outline-literary:hover {
  background-color: rgba(31, 26, 22, 0.04);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.band-dusk .btn-outline-literary {
  color: var(--text-main);
  border-color: var(--line-strong);
}

.band-dusk .btn-outline-literary:hover {
  background-color: rgba(241, 235, 221, 0.08);
  border-color: var(--lamp);
  color: var(--lamp);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  padding: 0.4rem 0;
  min-height: 44px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.link-arrow:hover {
  text-decoration-color: currentColor;
  color: var(--accent-hover);
}

.band-dusk .link-arrow {
  color: var(--accent);
}

.band-dusk .link-arrow:hover {
  color: var(--accent-hover);
}

.btn-icon {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--sand);
  border-color: var(--line-strong);
  color: var(--accent);
}

/* ==========================================================================
   2. Dismissible Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--plum) 0%, var(--plum-2) 100%);
  color: var(--on-dark-heading);
  padding: 0.55rem 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1010;
  border-bottom: 1px solid rgba(241, 235, 221, 0.12);
}

.announcement-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88%;
  text-align: center;
}

.announcement-bar a {
  color: var(--lamp);
  font-weight: 600;
  margin-left: 0.5rem;
  text-decoration: underline;
}

.announcement-dismiss {
  background: none;
  border: none;
  color: var(--on-dark-heading);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  margin-left: 0.75rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.announcement-dismiss:hover {
  opacity: 1;
}

/* ==========================================================================
   3. Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: min-height var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

[data-theme="dark"] .site-header {
  background-color: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(30, 21, 32, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.25rem;
  transition: min-height var(--transition-fast);
}

.site-header.scrolled .nav-container {
  min-height: 60px;
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}

.site-brand span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  display: block;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: none;
  font-style: italic;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Nav wrapping handling between 768px and 1080px */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .mobile-drawer-toggle {
    display: inline-flex !important;
  }
}

/* Mobile Offcanvas Drawer */
.mobile-drawer-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-drawer-toggle:hover {
  background-color: var(--sand);
  border-color: var(--line-strong);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100svh;
  background-color: var(--surface);
  box-shadow: -10px 0 30px rgba(30, 21, 32, 0.25);
  z-index: 1050;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: right 300ms var(--ease);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 21, 32, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-links {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.drawer-links a {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.drawer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   4. Pill Chips Component (Horizontal Scroll on Mobile)
   ========================================================================== */
.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  background: var(--surface);
  cursor: pointer;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.chip[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

/* ==========================================================================
   5. Poem Grid (Writing Archive)
   ========================================================================== */
.poem-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .poem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .poem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   6. Forms & Controls (Minimum 16px font-size to prevent iOS zoom)
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label-literary {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control-literary {
  width: 100%;
  height: var(--control-h, 48px);
  min-height: var(--control-h, 48px);
  padding: 0 1.15rem;
  font-family: var(--font-sans);
  font-size: 1rem; /* >= 16px prevents iOS zoom */
  background-color: var(--surface, #FAF7F0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control, 10px);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.form-control-literary:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 90, 78, 0.18);
}

textarea.form-control-literary {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute !important;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  height: 0;
  width: 0;
  margin: 0;
}

/* ==========================================================================
   7. Site Footer (Karaikudi Chettinad Heritage Styling)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #171216;
  color: #CBBFB1;
  border-top: 1px solid rgba(241, 235, 221, 0.1);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem;
  font-size: var(--text-sm);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("../img/patterns/athangudi-tile.svg");
  background-repeat: repeat;
  background-size: 60px 60px;
}

.site-footer a {
  color: #CBBFB1;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--lamp);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FBF7EC;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  text-decoration: none;
  color: #D1BFA5;
  transition: color 150ms ease, transform 150ms ease;
}

@media (max-width: 767.98px) {
  .footer-links {
    gap: 0.25rem;
  }
  .footer-links a {
    min-height: 44px;
    padding: 0.4rem 0;
    width: 100%;
  }
}

.footer-links a:hover {
  color: #FAF7F0;
  text-decoration: none;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(241, 235, 221, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-xs);
  color: #8C8479;
  position: relative;
  z-index: 1;
}

.footer-back-to-top {
  color: #CBBFB1;
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-back-to-top:hover {
  color: var(--lamp);
}

/* ==========================================================================
   Product Catalogue Cards, Grids & Carousels (Phase 2)
   ========================================================================== */
.product-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .product-grid--4col { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-paper);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-paper);
    border-color: var(--line-strong);
  }
}
.product-card__cover-link {
  display: block;
  background: #f7f3ec;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
}
.product-card__cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4eee3;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__img {
  transform: scale(1.03);
}
.product-card__badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 0.03em;
}
.product-card__badge-free {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #236942;
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem;
  gap: 0.6rem;
}
.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
}
.product-card__category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card__format {
  color: var(--muted);
  font-weight: 500;
}
.product-card__title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  line-height: 1.3;
  margin: 0;
}
.product-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.product-card__title a:hover {
  color: var(--accent);
}
.product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.product-card__mrp {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}
.product-card__btn {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: var(--text-xs);
}

/* Horizontal scroll carousel for 5+ new releases */
.product-carousel-wrap {
  position: relative;
  margin-left: calc(-1 * var(--container-pad, 1.5rem));
  margin-right: calc(-1 * var(--container-pad, 1.5rem));
  padding-left: var(--container-pad, 1.5rem);
  padding-right: var(--container-pad, 1.5rem);
}
.product-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.75rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.product-carousel::-webkit-scrollbar {
  height: 6px;
}
.product-carousel::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.product-carousel > * {
  flex: 0 0 clamp(260px, 30vw, 320px);
  scroll-snap-align: start;
}
.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--ink);
  transition: all 0.2s ease;
}
.carousel-nav-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.carousel-nav-prev { left: 0.5rem; }
.carousel-nav-next { right: 0.5rem; }

/* ==========================================================================
   Slide-in Cart Drawer & Navbar Cart Badge (Phase 3)
   ========================================================================== */
.header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--transition-fast);
}
.header-cart-link:hover {
  background: rgba(31, 26, 22, 0.05);
  border-color: var(--line-strong);
  color: var(--accent);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 11, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--surface);
  box-shadow: -4px 0 25px rgba(0,0,0,0.18);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}
.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: #fbf8f2;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-drawer__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cart-drawer__item-thumb {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  background: #f4eee3;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer__item-info {
  flex: 1;
  min-width: 0;
}
.cart-drawer__item-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.cart-drawer__item-title {
  font-size: 0.9rem;
  font-family: var(--font-serif);
  margin: 0.15rem 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.cart-drawer__item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-drawer__item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.cart-drawer__item-remove:hover {
  color: #dc3545;
}

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fbf8f2;
}

/* ==========================================================================
   Design System Components (Phase 2.5 Stabilisation)
   ========================================================================== */

/* 1. Buttons & Close */
.btn--outline {
  background-color: transparent;
  color: var(--cta);
  border: 1.5px solid var(--accent, #A9792B);
  box-shadow: 0 1px 2px rgba(43, 29, 20, 0.05);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: rgba(169, 121, 43, 0.08);
  border-color: var(--accent-hover, #8C621F);
  color: var(--cta-hover, #521E19);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(169, 121, 43, 0.15);
}
.btn--outline:active {
  transform: translateY(0);
}
.btn--in-cart {
  background-color: rgba(25, 135, 84, 0.08) !important;
  border-color: #198754 !important;
  color: #198754 !important;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn--ghost:hover {
  background: rgba(43, 29, 20, 0.06);
  color: var(--ink);
}

.btn--text {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 0;
  min-height: auto;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--text:hover {
  color: var(--accent-hover);
}

.btn--sm {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  font-size: var(--text-xs);
}

.btn--lg {
  min-height: 52px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

.btn.is-loading,
.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}

.btn-close {
  box-sizing: content-box;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem;
  color: var(--ink);
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232B1D14'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.1rem auto no-repeat;
  border: 0;
  border-radius: 4px;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-close:hover {
  opacity: 1;
  background-color: rgba(43, 29, 20, 0.08);
}

/* 2. Form System */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary, #6B5645);
}

.form-control,
.form-input,
.form-select {
  width: 100%;
  height: var(--control-h, 48px);
  min-height: var(--control-h, 48px);
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: normal;
  letter-spacing: normal;
  color: var(--ink);
  background-color: var(--surface, #FAF7F0);
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.25));
  border-radius: var(--radius-control, 10px);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(169, 121, 43, 0.2);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--ink);
  background-color: var(--surface, #FAF7F0);
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.25));
  border-radius: var(--radius-control, 10px);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.form-control-lg,
.form-input-lg,
.btn-lg {
  height: var(--control-h-lg, 56px);
  min-height: var(--control-h-lg, 56px);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 0.25rem;
}

.form-error {
  font-size: var(--text-xs);
  color: #B02A37;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.has-error .form-control,
.has-error .form-input,
.has-error .form-select,
.has-error .form-textarea {
  border-color: #B02A37;
}

.has-success .form-control,
.has-success .form-input {
  border-color: #198754;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-group > .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  background-color: #FAF6EE;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
}
.input-group > .form-control,
.input-group > .form-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  flex: 1 1 auto;
}

/* 3. Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--primary,
.badge.bg-primary {
  background-color: var(--cta);
  color: #FFFFFF;
}

.badge--accent,
.badge-subtle {
  background-color: rgba(169, 121, 43, 0.15);
  color: #7B5518;
  border: 1px solid rgba(169, 121, 43, 0.3);
}

.badge--success,
.badge.bg-success,
.badge.bg-success-subtle {
  background-color: rgba(25, 135, 84, 0.12);
  color: #0F5132;
  border: 1px solid rgba(25, 135, 84, 0.25);
}

.badge--warning,
.badge.bg-warning,
.badge.bg-warning-subtle {
  background-color: rgba(255, 193, 7, 0.2);
  color: #664D03;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.badge--danger,
.badge.bg-danger,
.badge.bg-danger-subtle {
  background-color: rgba(220, 53, 69, 0.12);
  color: #842029;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.badge--discount {
  background-color: rgba(110, 43, 37, 0.12);
  color: var(--cta);
  font-weight: 700;
}

.badge.bg-secondary-subtle {
  background-color: rgba(107, 86, 69, 0.12);
  color: var(--ink-secondary);
  border: 1px solid rgba(107, 86, 69, 0.2);
}

.badge.bg-dark {
  background-color: #2B1D14;
  color: #FAF6EE;
}

.rounded-pill {
  border-radius: 999px;
}

/* 4. Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.card__body {
  padding: 1.5rem;
}

.card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(241, 230, 207, 0.3);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* 5. Breadcrumb */
.breadcrumb {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: var(--text-xs);
  color: var(--muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  font-size: 1.15em;
  color: var(--line-strong, #CBBBA0);
  line-height: 1;
}

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb__current {
  color: var(--ink);
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.breadcrumb-mobile-back {
  display: none;
}

@media (max-width: 575.98px) {
  .breadcrumb-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--brass-text, #7A5416);
    font-weight: 500;
    text-decoration: none;
    min-height: 44px;
    padding: 4px 0;
    margin-bottom: 0.75rem;
  }
  .breadcrumb-mobile-back:hover {
    text-decoration: underline;
  }
  .breadcrumb-desktop-trail {
    display: none !important;
  }
}

/* 6. Price Block */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price-block__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-sans);
}

.price-block__mrp {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-block__discount {
  font-size: var(--text-xs);
  color: var(--cta);
  font-weight: 700;
  background: rgba(110, 43, 37, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* 7. Spec List */
.spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 480px) {
  .spec-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.spec-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

/* 8. Accordion (FAQ) */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface);
  overflow: hidden;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__trigger::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
  font-family: monospace;
}

.accordion__item.is-open .accordion__trigger::after {
  content: "−";
}

.accordion__content {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
  display: none;
}

.accordion__item.is-open .accordion__content {
  display: block;
}

/* 9. Empty State */
.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md, 8px);
  margin: 2rem 0;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.empty-state__lead {
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.empty-state__action {
  display: inline-flex;
}

/* 10. Toasts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: var(--ink, #2B1D14);
  color: #FAF6EE;
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-size: var(--text-sm);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast--success {
  border-left: 4px solid #198754;
}

.toast--error {
  border-left: 4px solid #DC3545;
}

.toast--info {
  border-left: 4px solid var(--accent);
}

.toast__close {
  background: none;
  border: none;
  color: #FAF6EE;
  opacity: 0.7;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  line-height: 1;
}
.toast__close:hover {
  opacity: 1;
}

/* 11. Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.page-item {
  display: inline-flex;
}

.page-link {
  min-height: 40px;
  min-width: 40px;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.page-item.active .page-link,
.page-item.is-active .page-link {
  background: var(--cta);
  color: #FFFFFF;
  border-color: var(--cta);
}

.page-item.disabled .page-link,
.page-item.is-disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

/* 12. Tabs & Nav Pills */
.tabs {
  display: flex;
  flex-direction: column;
}

.tabs__nav,
.nav-pills {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  padding: 0 0 0.5rem 0;
  margin: 0;
}
.tabs__nav::-webkit-scrollbar,
.nav-pills::-webkit-scrollbar {
  display: none;
}

.tabs__btn {
  padding: 0.75rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.tabs__btn:hover {
  color: var(--ink);
}

.tabs__btn.is-active,
.tabs__btn[aria-selected="true"] {
  color: var(--cta);
  border-bottom-color: var(--cta);
}

.nav-pills .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm, 6px);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-pills .nav-link:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.nav-pills .nav-link.active {
  background: var(--cta);
  color: #FFFFFF;
  border-color: var(--cta);
}

.tabs__pane {
  padding-top: 1.5rem;
  display: none;
}

.tabs__pane.is-active {
  display: block;
}

/* 13. Skeletons */
.skeleton {
  background: linear-gradient(90deg, #f0e6d6 25%, #f9f3ea 50%, #f0e6d6 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm, 4px);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-card {
  height: 280px;
  width: 100%;
}

/* 14. Single Product Layout & Sticky Buy Bar */
.book-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 992px) {
  .book-layout {
    grid-template-columns: 360px 1fr;
  }
}

.book-layout__sticky {
  position: static;
}

@media (min-width: 992px) {
  .book-layout__sticky {
    position: sticky;
    top: 96px;
  }
}

.sticky-buy-bar {
  display: none;
}

@media (max-width: 767px) {
  .sticky-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 1030;
    gap: 1rem;
  }
}

/* 15. Catalogue Filter Toolbar */
.filter-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.filter-toolbar__form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-toolbar__search {
  flex: 1 1 240px;
  min-width: 200px;
}

.filter-toolbar__select {
  flex: 0 1 180px;
  min-width: 150px;
}

.filter-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 767px) {
  .filter-toolbar__form {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-toolbar__search,
  .filter-toolbar__select,
  .filter-toolbar__actions {
    width: 100%;
    flex: 1 1 100%;
    margin-left: 0;
  }
  .filter-toolbar__actions {
    justify-content: stretch;
  }
  .filter-toolbar__actions .btn {
    flex: 1;
  }
}

/* 16. Pillars Grid & Webinar Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.webinar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel, 10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .webinar-card {
    grid-template-columns: 260px 1fr;
  }
}

.webinar-card__media {
  position: relative;
  background: #f7f3ec;
  overflow: hidden;
  min-height: 200px;
  max-height: 260px;
}

.webinar-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webinar-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 17. General Utility Classes */
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-end { align-items: flex-end; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

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

.text-muted { color: var(--muted, #6B5645); }
.text-dark { color: var(--ink, #2B1D14); }
.text-success { color: #198754; }
.text-danger { color: #DC3545; }
.text-accent { color: var(--accent); }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-bold { font-weight: 700; }

.fs-xxs { font-size: 0.7rem; }
.fs-xs { font-size: var(--text-xs, 0.75rem); }
.fs-sm { font-size: var(--text-sm, 0.875rem); }
.fs-md { font-size: 1rem; }
.fs-5 { font-size: 1.25rem; }
.fs-4 { font-size: 1.5rem; }
.fs-3 { font-size: 1.75rem; }
.fs-2 { font-size: 2.25rem; }
.fs-1 { font-size: 2.75rem; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-monospace { font-family: monospace; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }
.py-5 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-3 { padding-top: 1rem; }

.border { border: 1px solid var(--line); }
.border-top { border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); }
.border-0 { border: 0 !important; }

.rounded { border-radius: var(--radius-sm, 6px); }
.rounded-0 { border-radius: 0; }
.rounded-pill { border-radius: 999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-decoration-none {
  text-decoration: none;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}
.position-absolute {
  position: absolute;
}
.top-0 { top: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }
.bottom-0 { bottom: 0; }
.m-2 { margin: 0.5rem; }

/* Grid Helper */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
.g-0 { margin-right: 0; margin-left: 0; }
.g-0 > * { padding-right: 0; padding-left: 0; }
.g-2 { margin-right: -0.25rem; margin-left: -0.25rem; }
.g-2 > * { padding-right: 0.25rem; padding-left: 0.25rem; }
.g-3 { margin-right: -0.5rem; margin-left: -0.5rem; }
.g-3 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
.g-4 { margin-right: -0.75rem; margin-left: -0.75rem; }
.g-4 > * { padding-right: 0.75rem; padding-left: 0.75rem; }
.g-5 { margin-right: -1rem; margin-left: -1rem; }
.g-5 > * { padding-right: 1rem; padding-left: 1rem; }

@media (min-width: 576px) {
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .d-sm-inline { display: inline !important; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .text-lg-end { text-align: right; }
  .justify-content-lg-end { justify-content: flex-end; }
}

/* 3D Cover Tilt & Stage (Desktop) */
.book-cover-stage {
  perspective: 1000px;
}
.book-cover-stage img {
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(43, 29, 20, 0.18), 0 3px 8px rgba(43, 29, 20, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
@media (hover: hover) and (min-width: 992px) {
  .book-cover-stage:hover img {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-4px);
    box-shadow: 0 22px 46px rgba(43, 29, 20, 0.25), 0 6px 14px rgba(43, 29, 20, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .book-cover-stage:hover img {
    transform: none;
  }
}

/* Cart Badge Bump Micro-Interaction */
@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-badge.bump {
  animation: badgeBump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   JOURNAL & ESSAYS EDITORIAL SYSTEM
   ========================================================================== */

/* Reusable Category / Tag Chip */
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: rgba(169, 121, 43, 0.12);
  color: var(--walnut, #2B1D14);
  border: 1px solid rgba(169, 121, 43, 0.28);
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.category-chip:hover {
  background: var(--walnut, #2B1D14);
  color: #FAF7F0;
  border-color: var(--walnut, #2B1D14);
}

/* Journal Controls Bar (Filters & Search) */
.journal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line, #E5DCB8);
}
.journal-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.journal-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #6F6259);
  border: 1px solid var(--line, #E5DCB8);
  text-decoration: none;
  min-height: 38px;
  transition: all 0.2s ease;
}
.journal-filter-pill:hover {
  color: var(--walnut, #2B1D14);
  border-color: var(--walnut, #2B1D14);
  background: rgba(43, 29, 20, 0.04);
}
.journal-filter-pill.is-active {
  background: var(--walnut, #2B1D14);
  color: #FAF7F0;
  border-color: var(--walnut, #2B1D14);
  font-weight: 600;
}
.journal-search-form {
  position: relative;
  min-width: 260px;
  max-width: 100%;
}
.journal-search-input {
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--line, #E5DCB8);
  background: var(--surface, #FFFFFF);
  color: var(--ink, #1F1914);
  min-height: 40px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.journal-search-input:focus {
  border-color: var(--brass, #A9792B);
  box-shadow: 0 0 0 3px rgba(169, 121, 43, 0.15);
}
.journal-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #6F6259);
  pointer-events: none;
}

/* Featured Post Banner */
.journal-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5DCB8);
  border-radius: var(--radius-card, 12px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(43, 29, 20, 0.04));
  transition: box-shadow 0.3s ease;
}
@media (min-width: 860px) {
  .journal-featured {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}
.journal-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #FAF6EE;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.journal-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .journal-featured:hover .journal-featured__img {
    transform: scale(1.025);
  }
}
.journal-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted, #6F6259);
}
.journal-featured__title {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--walnut, #2B1D14);
  margin: 0 0 1rem;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.journal-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.journal-featured__title a:hover {
  color: var(--brass, #A9792B);
}
.journal-featured__excerpt {
  color: var(--ink, #1F1914);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Journal Card Grid */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.journal-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5DCB8);
  border-radius: var(--radius-card, 10px);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(43, 29, 20, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(43, 29, 20, 0.08);
    border-color: rgba(169, 121, 43, 0.4);
  }
}
.journal-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FAF6EE;
  border-bottom: 1px solid var(--line, #E5DCB8);
}
.journal-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .journal-card:hover .journal-card__img {
    transform: scale(1.03);
  }
}
.journal-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.journal-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted, #6F6259);
}
.journal-card__title {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--walnut, #2B1D14);
  margin: 0 0 0.75rem;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.journal-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.journal-card__title a:hover {
  color: var(--brass, #A9792B);
}
.journal-card__excerpt {
  color: var(--muted, #6F6259);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.journal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.85rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--muted, #6F6259);
}

/* ==========================================================================
   SINGLE ESSAY / JOURNAL POST VIEW
   ========================================================================== */
.journal-single {
  max-width: 68ch;
  margin: 0 auto;
}
.journal-single__header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line, #E5DCB8);
  padding-bottom: 1.75rem;
}
.journal-single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted, #6F6259);
}
.journal-single__title {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--walnut, #2B1D14);
  margin: 0 0 1.25rem;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.journal-single__byline {
  font-size: 0.92rem;
  color: var(--muted, #6F6259);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.journal-single__hero {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card, 10px);
  overflow: hidden;
  border: 1px solid var(--line, #E5DCB8);
  margin-bottom: 3rem;
  background: #FAF6EE;
}
.journal-single__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.journal-single__hero-caption {
  font-size: 0.8rem;
  color: var(--muted, #6F6259);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Prose Typography & Tamil Script Support */
.journal-single__prose {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink, #1F1914);
}
.journal-single__prose p {
  margin-bottom: 1.65rem;
}
.journal-single__prose h2 {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  color: var(--walnut, #2B1D14);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}
.journal-single__prose h3 {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: 1.35rem;
  color: var(--walnut, #2B1D14);
  margin: 2rem 0 0.85rem;
}
.journal-single__prose blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--brass, #A9792B);
  background: rgba(169, 121, 43, 0.04);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  color: var(--walnut, #2B1D14);
}

/* Tamil Typography */
.tamil-text,
.tamil-block,
[lang="ta"] {
  font-family: 'Noto Serif Tamil', serif !important;
  line-height: 2 !important;
  font-size: 1.08em;
}

/* Share & Engagement Bar */
.journal-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line, #E5DCB8);
  border-bottom: 1px solid var(--line, #E5DCB8);
  margin: 3.5rem 0;
}
.journal-share-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.journal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5DCB8);
  color: var(--walnut, #2B1D14);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}
.journal-share-btn:hover {
  border-color: var(--walnut, #2B1D14);
  background: rgba(43, 29, 20, 0.05);
}

/* Prev / Next Navigation */
.journal-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3.5rem 0;
}
@media (min-width: 600px) {
  .journal-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.journal-nav-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5DCB8);
  border-radius: var(--radius-card, 8px);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.journal-nav-card:hover {
  border-color: var(--brass, #A9792B);
  transform: translateY(-2px);
}
.journal-nav-card--next {
  text-align: right;
}
.journal-nav-direction {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass-text, #85622A);
  margin-bottom: 0.5rem;
}
.journal-nav-title {
  font-family: var(--font-display, Cormorant Garamond, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--walnut, #2B1D14);
  line-height: 1.3;
}


/* ==========================================================================
   LIST-PAGE SYSTEM: PageHeader, FilterBar & EmptyState (Task 3)
   ========================================================================== */

/* 1. PageHeader Component */
.list-page-header {
  text-align: left;
  margin-bottom: 40px;
}

.list-page-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.list-page-breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.list-page-breadcrumb .breadcrumb-item a {
  color: var(--muted, #6B5645);
  text-decoration: none;
}
.list-page-breadcrumb .breadcrumb-item a:hover {
  color: var(--brass-text, #7A5416);
  text-decoration: underline;
}
.list-page-breadcrumb .breadcrumb-item.active {
  color: var(--ink, #2A1A10);
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.list-page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-right: 8px;
  color: rgba(63, 42, 29, 0.35);
}

.list-page-title {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: var(--type-h1);
  line-height: var(--type-h1-lh, 1.15);
  color: var(--walnut, #3F2A1D);
  margin: 0.4rem 0 0.75rem;
  font-weight: 600;
  text-wrap: balance;
}

.list-page-lead {
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: var(--type-lead);
  line-height: var(--type-lead-lh, 1.6);
  color: var(--muted, #6B5645);
  max-width: 56ch;
  margin: 0 0 24px;
}

.list-page-hairline {
  border: none;
  border-top: 1px solid rgba(169, 121, 43, 0.25);
  margin: 24px 0 0;
}

/* 2. FilterBar Component */
.list-filter-card {
  background-color: var(--surface, #FAF7F0);
  border: 1px solid rgba(169, 121, 43, 0.28);
  border-radius: var(--radius-control, 10px);
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(43, 29, 20, 0.04);
}

.list-filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.list-filter-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.list-filter-search-icon {
  position: absolute;
  left: 14px;
  color: var(--brass-text, #7A5416);
  pointer-events: none;
  flex-shrink: 0;
}

.list-filter-search-input {
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 1rem 0 42px !important;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 0.95rem !important;
  color: var(--ink, #2A1A10) !important;
  background-color: var(--surface, #FAF7F0) !important;
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.25)) !important;
  border-radius: var(--radius-control, 10px) !important;
  box-sizing: border-box !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.list-filter-search-input:focus {
  border-color: var(--brass, #A9792B) !important;
  box-shadow: 0 0 0 3px rgba(169, 121, 43, 0.2) !important;
}

.list-filter-selects {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-filter-select-wrap {
  position: relative;
  width: 190px;
  display: flex;
  align-items: center;
}

.list-filter-select {
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 34px 0 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 0.9rem !important;
  color: var(--ink, #2A1A10) !important;
  background-color: var(--surface, #FAF7F0) !important;
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.25)) !important;
  border-radius: var(--radius-control, 10px) !important;
  box-sizing: border-box !important;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.list-filter-select:focus {
  border-color: var(--brass, #A9792B) !important;
  box-shadow: 0 0 0 3px rgba(169, 121, 43, 0.2) !important;
}

.list-filter-select-chevron {
  position: absolute;
  right: 12px;
  color: var(--brass-text, #7A5416);
  pointer-events: none;
}

.list-filter-clear-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass-text, #7A5416);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 12px;
  white-space: nowrap;
}

.list-filter-mobile-toggle {
  display: none;
  height: 48px;
  padding: 0 14px;
  align-items: center;
  gap: 6px;
  background-color: var(--surface, #FAF7F0);
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.25));
  border-radius: var(--radius-control, 10px);
  color: var(--walnut, #3F2A1D);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .list-filter-selects {
    display: none;
  }
  .list-filter-mobile-toggle {
    display: inline-flex;
  }
}

.list-filter-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--muted, #6B5645);
}

.list-filter-clear-link {
  color: var(--brass-text, #7A5416);
  text-decoration: underline;
  font-weight: 500;
}

/* Mobile Bottom Sheet */
.list-filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 16, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1050;
}
.list-filter-sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.list-filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface, #FAF7F0);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(42, 26, 16, 0.25);
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1060;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.list-filter-sheet.is-open {
  transform: translateY(0);
}
.list-filter-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(169, 121, 43, 0.2);
  padding-bottom: 12px;
}
.list-filter-sheet-title {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  color: var(--walnut, #3F2A1D);
}
.list-filter-sheet-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--muted, #6B5645);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* 3. EmptyState Component */
.list-empty-coming-soon,
.list-empty-no-matches {
  background-color: var(--surface, #FAF7F0);
  border: 1px solid rgba(169, 121, 43, 0.28);
  border-radius: 16px;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 32px);
  text-align: center;
  max-width: 640px;
  margin: 40px auto;
  box-shadow: 0 4px 16px rgba(43, 29, 20, 0.05);
}

.list-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(169, 121, 43, 0.1);
  color: var(--brass-text, #7A5416);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.list-empty-title {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--walnut, #3F2A1D);
  margin: 0 0 12px;
  font-weight: 600;
}

.list-empty-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted, #6B5645);
  max-width: 48ch;
  margin: 0 auto 24px;
}

.list-empty-form-wrap {
  max-width: 440px;
  margin: 0 auto 28px;
}

.list-empty-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.list-empty-input {
  flex: 1;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 1rem !important;
  background-color: var(--surface, #FAF7F0) !important;
  border: 1px solid var(--line-strong, rgba(63, 42, 29, 0.28)) !important;
  border-radius: var(--radius-control, 10px) !important;
  font-size: 0.95rem !important;
  color: var(--ink, #2A1A10) !important;
  box-sizing: border-box !important;
  outline: none;
}
.list-empty-input:focus {
  border-color: var(--brass, #A9792B) !important;
  box-shadow: 0 0 0 3px rgba(169, 121, 43, 0.2) !important;
}

.list-empty-btn {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 1.4rem !important;
  background-color: var(--cta, #6E2B25) !important;
  color: #FFFFFF !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-control, 10px) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.list-empty-btn:hover {
  background-color: var(--cta-hover, #56211C) !important;
}

@media (max-width: 480px) {
  .list-empty-input-group {
    flex-direction: column;
  }
  .list-empty-btn {
    width: 100%;
  }
}

.list-empty-divider {
  border: none;
  border-top: 1px solid rgba(169, 121, 43, 0.2);
  margin: 24px 0 20px;
}

.list-empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
}
.list-empty-links-title {
  color: var(--muted, #6B5645);
  font-weight: 500;
  width: 100%;
  margin-bottom: -4px;
}
