:root {
  --theme-primary: #a85c48;
  --theme-primary-dark: #382218;
  --theme-primary-light: rgba(168, 92, 72, 0.12);
  --theme-border: rgba(56, 34, 24, 0.14);
  --theme-border-subtle: rgba(56, 34, 24, 0.08);
  --theme-text-body: #382218;
  --theme-text-muted: #7d5e53;
  --theme-panel-bg: #faf4f0;
  --theme-panel-bg-subtle: #f3eae4;
  --theme-panel-gradient: linear-gradient(180deg, #ffffff 0%, #faf4f0 100%);
  --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 244, 240, 0.92) 100%);
  --theme-accent-gradient: linear-gradient(90deg, transparent 0%, #a85c48 50%, transparent 100%);
  --theme-card-shadow: 0 4px 14px rgba(56, 34, 24, 0.04);
  --theme-card-shadow-hover: 0 8px 20px rgba(56, 34, 24, 0.10);
  --nav-bg: #e5cfc5;
  --nav-bg-strong: #c99f8d;
  --nav-text: #000000;
  --nav-panel-bg: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
  --nav-hover-bg: rgba(168, 92, 72, 0.10);
  --nav-active-bg: linear-gradient(180deg, rgba(168, 92, 72, 0.22), rgba(168, 92, 72, 0.12));
  --nav-parent-active-bg: rgba(168, 92, 72, 0.14);
  --nav-sub-bg: rgba(56, 34, 24, 0.03);
  --page-bg: radial-gradient(circle at top, rgba(168, 92, 72, 0.12), transparent 42%), linear-gradient(180deg, #f8f1ec 0%, #e8dad2 100%);
  --page-shell-bg: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
  --link: #a85c48;
  --link-hover: #382218;
  --border-soft: rgba(56, 34, 24, 0.14);
  --shadow-soft: 0 0 0 1px rgba(56, 34, 24, 0.08), 0 18px 40px rgba(125, 94, 83, 0.12);
}

/* ==========================================================================
   Magyar Emléklapok Webmúzeuma (MEW)
   Unified Archival Design System (Terracotta / Warm Brick Palette)
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Top Navigation & SmartMenus Theme (Consolidated)
   ------------------------------------------------------------------------- */
.sm-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.sm-simple,
.sm-simple * {
  box-sizing: border-box;
}

.sm-simple a,
.sm-simple a:link,
.sm-simple a:visited,
.sm-simple a:hover,
.sm-simple a:focus,
.sm-simple a:active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
  text-decoration: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sm-simple a:hover,
.sm-simple a:focus {
  background: rgba(255, 255, 255, 0.55);
  color: #000000;
}

.sm-simple a.disabled {
  color: #9c857c;
  cursor: default;
}

/* Sub-indicator: Clear, solid, high-contrast marker - NO movement */
.sm-simple a .sub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 14px;
  pointer-events: none;
}

.sm-simple a .sub-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000000;
  transform: none !important;
  transition: none !important;
}

/* Mobile list items & sub-menus */
.sm-simple li {
  position: relative;
  border-top: 1px solid rgba(56, 34, 24, 0.08);
}

.sm-simple > li:first-child {
  border-top: 0;
}

.sm-simple ul {
  position: static;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(243, 234, 228, 0.75);
  border-top: 1px solid rgba(56, 34, 24, 0.08);
  border-bottom: 1px solid rgba(56, 34, 24, 0.08);
}

.sm-simple ul a,
.sm-simple ul a:link,
.sm-simple ul a:visited {
  padding: 10px 18px 10px 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: #382218;
  border-left: 3px solid transparent;
}

.sm-simple ul a:hover,
.sm-simple ul a:focus {
  background: rgba(255, 255, 255, 0.65);
  color: #8c4633;
  border-left-color: #a85c48;
}

.sm-simple ul ul a {
  padding-left: 44px;
}

.sm-simple ul a img {
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sm-simple .menu-globe-icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 6px;
}

/* -------------------------------------------------------------------------
   Desktop Layout (min-width: 769px)
   STRICT: All items have IDENTICAL styling, zero width shift, zero movement
   ------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .topmenu-mobile-bar {
    display: none !important;
  }

  #layoutMenu {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    background: linear-gradient(180deg, #d8b7aa 0%, #ba8a77 45%, #a85c48 100%);
    border-bottom: 1px solid rgba(56, 34, 24, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
  }

  #topmenu-nav {
    height: 32px;
  }

  #main-menu {
    display: block !important;
    height: 32px;
  }

  .sm-simple {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
  }

  .sm-simple > li {
    float: left;
    height: 32px;
    border-top: 0;
    border-left: 0;
  }

  .sm-simple > li.langglobe {
    margin-left: auto; /* push language to right edge */
  }

  /* Desktop topbar links - EVERY LINK has identical styling */
  .sm-simple > li > a,
  .sm-simple > li > a:link,
  .sm-simple > li > a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 32px !important;
    white-space: nowrap;
    color: #000000 !important;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .sm-simple > li > a:hover,
  .sm-simple > li > a:focus,
  .sm-simple > li > a.highlighted {
    background: rgba(255, 255, 255, 0.45) !important;
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 32px !important;
    transform: none !important;
  }

  .sm-simple > li > a.has-submenu {
    padding: 0 12px !important;
  }

  .sm-simple > li > a .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    margin-left: 6px;
    margin-right: 0;
    flex: 0 0 9px;
    position: static;
    border: none;
    background: transparent;
    pointer-events: none;
  }

  .sm-simple > li > a .sub-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5.5px solid #000000;
    opacity: 0.92;
    transform: none !important;
    transition: none !important;
  }

  .sm-simple > li > a:hover .sub-arrow::after,
  .sm-simple > li > a:focus .sub-arrow::after,
  .sm-simple > li > a.highlighted .sub-arrow::after {
    border-top-color: #000000;
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  /* Desktop floating dropdown sub-menus */
  .sm-simple ul {
    position: absolute;
    top: 100%;
    width: auto;
    min-width: 13em;
    background: #ffffff;
    border: 1px solid rgba(56, 34, 24, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 25px -4px rgba(56, 34, 24, 0.18), 0 4px 8px -2px rgba(56, 34, 24, 0.08);
    padding: 5px 0;
    margin: 0;
    z-index: 10000;
  }

  .sm-simple ul li {
    float: none;
    border-top: 0;
    height: auto;
    margin: 0;
    padding: 0;
  }

  /* Dropdown links: constant padding and font-weight on hover */
  .sm-simple ul a,
  .sm-simple ul a:link,
  .sm-simple ul a:visited {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4 !important;
    white-space: nowrap;
    color: #2c1e10;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  /* Hover strictly maintains exact 7px 16px padding and 500 weight - ZERO size growth */
  .sm-simple ul a:hover,
  .sm-simple ul a:focus,
  .sm-simple ul a:active,
  .sm-simple ul a.highlighted {
    background: #faf4f0;
    color: #8c4633;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 16px !important;
    border-left-color: #a85c48;
    transform: none !important;
  }

  .sm-simple ul a .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex: 0 0 8px;
    pointer-events: none;
  }

  .sm-simple ul a .sub-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #382218;
    transform: none !important;
    transition: none !important;
  }

  .sm-simple > li.langglobe > a {
    padding: 0 10px !important;
  }

  .sm-simple > li.langglobe .lang-menu-text {
    display: none;
  }

  .sm-simple > li.langglobe > ul {
    right: 0 !important;
    left: auto !important;
    min-width: 9.5em;
    width: auto;
  }

  .sm-simple > li.langglobe > ul a {
    white-space: nowrap;
    gap: 8px;
  }
}

/* -------------------------------------------------------------------------
   Mobile Specific Layout (max-width: 768px)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #layoutMenu {
    position: relative;
    height: auto !important;
    min-height: 42px !important;
    background: linear-gradient(180deg, #d8b7aa 0%, #ba8a77 45%, #a85c48 100%);
    border-bottom: 1px solid rgba(56, 34, 24, 0.22);
  }

  .topmenu-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .main-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(56, 34, 24, 0.22);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  .main-menu-btn:active {
    transform: scale(0.97);
  }

  .main-menu-btn:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .main-menu-btn-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 15px;
    height: 12px;
  }

  .main-menu-btn-icon .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-1 {
    transform: translateY(5px) rotate(45deg);
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-2 {
    opacity: 0;
  }

  #layoutMenu.menu-open .main-menu-btn-icon .bar-3 {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-quick-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-quick-lang .m-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(56, 34, 24, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .mobile-quick-lang .m-lang-btn:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .mobile-quick-lang .m-lang-btn.is-active {
    background: #a85c48;
    border-color: #8c4633;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(56, 34, 24, 0.3);
  }

  #main-menu {
    display: none;
    width: 100% !important;
    background: linear-gradient(180deg, #faf4f0 0%, #ebdcd4 100%);
    box-shadow: 0 10px 24px rgba(56, 34, 24, 0.22);
    border-bottom: 2px solid #a85c48;
    border-top: 1px solid rgba(56, 34, 24, 0.12);
  }

  .sm-simple a {
    padding: 12px 18px;
    font-size: 14px;
  }

  .sm-simple > li {
    float: none;
    width: 100%;
    border-top: 1px solid rgba(56, 34, 24, 0.08);
  }

  .sm-simple > li:first-child {
    border-top: 0;
  }

  .sm-simple > li.langglobe {
    display: none !important;
  }

  .sm-simple .lang-menu-text {
    display: inline;
  }
}

/* ==========================================================================
   2. Core Site Layout & Styles
   ========================================================================== */

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

@font-face {
    font-family: MainTitle;
    src: url('../fonts/PlayfairDisplay-Bold.ttf');
    font-display: swap;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	background:
		radial-gradient(circle at top, rgba(168, 92, 72, 0.12), transparent 42%),
		linear-gradient(180deg, #f8f1ec 0%, #e8dad2 100%);
	color: #382218;
}

#container {
	width: 96%;
	max-width: 1720px;
	margin: 14px auto 20px auto;
	background: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
	box-shadow: 0 0 0 1px rgba(56, 34, 24, 0.08), 0 18px 40px rgba(125, 94, 83, 0.12);
	border-radius: 16px;
	overflow: hidden;
}

/* Header */
#layoutHeader {
	background: url(../images/header.webp) no-repeat left;
	position: relative;
	width: 100%;
	height: 116px;
	border-bottom: 1px solid rgba(56, 34, 24, 0.14);
}

.maintitle {
    text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    color: #333;
    opacity: 1;
    font: clamp(20px, 2.5vw, 48px) 'MainTitle', Georgia, serif;
    position: absolute;
    bottom: 1px;
    right: 10px;
    text-align: right;
    white-space: nowrap;
}

.maintitle br {
	display: none;
}

@media (max-width: 1350px) {
	.maintitle {
		font: clamp(18px, 2.8vw, 30px) 'MainTitle', Georgia, serif;
		line-height: 1.15;
		bottom: 6px;
		white-space: normal;
	}

	.maintitle br {
		display: inline;
	}
}

/* Central Wrapper */
#layoutCenterBody {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 5px 0 10px;
    padding-bottom: 18px;
}

/* Left Navigation Menu */
#layoutNavigation {
    width: 200px;
    min-width: 200px;
    flex: 0 0 200px;
    border: 1px solid rgba(56, 34, 24, 0.14);
    background: linear-gradient(180deg, #fffdfc 0%, #faf4f0 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 12px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: normal;
}

#layoutNavigation .navTitle {
    background: linear-gradient(180deg, #e5cfc5 0%, #c99f8d 100%);
    color: #382218;
    font-weight: bold;
    padding: 6px 8px;
    letter-spacing: 0.02em;
    margin: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

#layoutNavigation .navTitle::after {
    content: "▾";
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}

#layoutNavigation.is-collapsed .navTitle::after {
    transform: rotate(-90deg);
}

@media screen and (min-width: 769px) {
    #layoutNavigation .navTitle::after {
        display: none;
    }
}

#layoutNavigation ul,
#layoutNavigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#layoutNavigation a {
    display: block;
    background: transparent;
    border-bottom: 1px solid rgba(56, 34, 24, 0.10);
    margin: 0;
    padding: 5px 10px;
    color: #382218;
    text-decoration: none;
    line-height: 1.45;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: normal;
    transition: background 0.15s ease, color 0.15s ease;
}

#layoutNavigation a:hover {
    color: #20120b;
    background: rgba(168, 92, 72, 0.12);
    font-weight: normal;
}

#layoutNavigation .active > a,
#layoutNavigation .active a,
#layoutNavigation a#active {
    color: #20120b !important;
    background: linear-gradient(180deg, rgba(168, 92, 72, 0.22), rgba(168, 92, 72, 0.12));
    font-weight: bold;
}

#layoutNavigation li:has(.active) > a {
    color: #20120b !important;
    font-weight: bold;
    background: rgba(168, 92, 72, 0.14);
}

#layoutNavigation .topnav {
    list-style: none;
    font-weight: bold;
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

#layoutNavigation > ul.topnav {
    display: block;
}

#layoutNavigation .topnav li {
    padding: 0;
    margin: 0;
    line-height: 1.35;
}

#layoutNavigation .topnav li:last-child a {
    border-bottom: none;
}

#layoutNavigation .topnav li:last-child {
    padding-bottom: 0;
}

#layoutNavigation .topnav ul {
    display: none;
    padding-left: 10px;
    background: rgba(56, 34, 24, 0.03);
}

#layoutNavigation .topnav ul ul:last-child li {
    font-weight: normal;
}

#layoutNavigation ul.topnav span {
    float: right;
}

/* Center Content Card */
#layoutBodyContent {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px;
    color: #382218;
    background: linear-gradient(180deg, rgba(255,253,252,0.98), rgba(250,244,240,0.9));
    border: 1px solid rgba(56, 34, 24, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(56, 34, 24, 0.04);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

#layoutBodyContent a:link,
#layoutBodyContent a:visited {
    color: #a85c48;
    text-decoration: none;
}

#layoutBodyContent a:hover {
	color: #20120b;
	font-weight: bold;
}

#layoutBodyContent > p {
    margin-top: 10px;
}

/* Catalog Card Grid & Details */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 4px 6px 0;
}

.catalog-header h1 {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.2;
    color: #382218;
    letter-spacing: -0.02em;
}

.catalog-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0e2db 0%, #d8b7aa 100%);
    border: 1px solid rgba(56, 34, 24, 0.18);
    color: #382218;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 3px 10px rgba(168, 92, 72, 0.16);
}

.catalog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
    padding: 6px 2px 20px;
}

.catalog-card {
    margin: 0;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #faf5f2 100%);
    border: 1px solid rgba(56, 34, 24, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(56, 34, 24, 0.05), 0 1px 3px rgba(56, 34, 24, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.catalog-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #a85c48, #c99f8d, #a85c48);
    opacity: 0.9;
    z-index: 2;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 28px rgba(56, 34, 24, 0.12), 0 4px 10px rgba(56, 34, 24, 0.06);
    border-color: #a85c48;
}

/* Card Header: ID Badge & Secondary Badge */
.catalog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(56, 34, 24, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.card-badge-id {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #382218;
    letter-spacing: 0.02em;
}

.card-badge-fv {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(168, 92, 72, 0.12);
    border: 1px solid rgba(168, 92, 72, 0.28);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #8c4633;
}

/* Multi-image group card indicators */
.catalog-card.is-group-card {
    position: relative;
}

.catalog-card.is-group-card::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 8px;
    left: 8px;
    height: 8px;
    background: #eadecc;
    border: 1px solid rgba(56, 34, 24, 0.16);
    border-radius: 10px 10px 0 0;
    z-index: -1;
    box-shadow: 0 2px 6px rgba(56, 34, 24, 0.08);
    transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card.is-group-card:hover::after,
.catalog-card.is-group-card:focus-visible::after {
    top: -6px;
}

.card-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(168, 92, 72, 0.14);
    border: 1px solid rgba(168, 92, 72, 0.32);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #8c4633;
    letter-spacing: 0.02em;
}

.card-badge-group svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.card-group-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(56, 34, 24, 0.84);
    color: #ffffff;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

.card-group-pill svg {
    stroke: #f5c4b8;
    flex-shrink: 0;
}

/* Card Image Stage */
.catalog-card-image {
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: radial-gradient(circle at center, #ffffff 40%, #faf4f0 100%);
    position: relative;
    overflow: hidden;
}

.catalog-card-image img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.04);
}

/* Hover hint overlay */
.catalog-card-hover-hint {
    position: absolute;
    inset: auto 12px 10px auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(56, 34, 24, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.catalog-card:hover .catalog-card-hover-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Card Body: Available Details */
.catalog-card-body {
    padding: 10px 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    border-top: 1px solid rgba(56, 34, 24, 0.06);
}

.catalog-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-meta-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(56, 34, 24, 0.08);
}

.card-meta-line:last-child {
    border-bottom: none;
}

.card-meta-k {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #7d5e53;
    font-weight: 600;
    text-transform: capitalize;
    flex-shrink: 0;
}

.card-meta-v {
    font-weight: 700;
    color: #382218;
    text-align: right;
    word-break: break-word;
}

.card-meta-empty {
    color: #9c857c;
    font-size: 11px;
}

/* Card Action Footer */
.catalog-card-footer {
    padding: 8px 12px;
    background: #faf5f2;
    border-top: 1px solid rgba(56, 34, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-open-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #a85c48;
    transition: color 0.15s ease;
}

.card-open-hint.is-group-hint {
    color: #8c4633;
}

.card-open-hint.is-group-hint svg {
    stroke: currentColor;
}

.catalog-card:hover .card-open-hint {
    color: #20120b;
}

