:root {
  --cream-50: #fffdfb;
  --cream-100: #faf5f2;
  --sand-200: #ece0da;
  --wood-300: #dac5bc;
  --wood-500: #ba9990;
  --coffee-600: #8d726c;
  --coffee-800: #62514c;
  --ink-900: #312725;
  --ink-700: #6f5e5a;
  --card: #fffdfbf0;
  --line: #eadcd6;
  --accent-100: #f6eeea;
  --accent-200: #eadbd5;
  --accent-400: #cfb0a6;
  --accent-500: #b8958b;
  --accent-600: #9d7971;
  --accent-700: #7b5f59;
  --accent-800: #5d4945;
  --brand-logo-size: 6.25rem;
  --brand-logo-size-tablet: 5rem;
  --brand-logo-size-mobile: 4rem;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at 12% 0%, #f8ece7 0%, #fdf8f6 42%, #ffffff 100%);
  color: var(--ink-900);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.bg-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  left: -8rem;
  top: -10rem;
  background: #e6d2ca;
}

.glow-b {
  right: -10rem;
  top: 14rem;
  background: #efe1dc;
}

.top-ribbon {
  position: relative;
  z-index: 2;
  text-align: center;
  background: linear-gradient(90deg, #ccb2aa, #dfcbc5, #efe3df);
  color: var(--ink-900);
  padding: 0.55rem 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.84rem;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ebcec8;
  background: #fffaf9ee;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ebcec8;
  background: #fffaf9ee;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-home-link {
  text-decoration: none;
  color: inherit;
}

.brand-home-link:hover {
  opacity: 0.92;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-600), var(--accent-700));
}

.brand-logo {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  display: block;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 1px solid #e3bcb5;
  background: #fff;
}

.page-header-center {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  min-width: 0;
}

.page-header-context {
  margin: 0;
  color: #7a3438;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.brand-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-700);
}

.main-header .brand-eyebrow {
  font-size: clamp(1.1rem, 0.98rem + 0.52vw, 1.45rem);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.brand-block h1 {
  margin: 0.05rem 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.9rem, 0.84rem + 0.26vw, 1.08rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  background: #fffaf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap,
.header-actions {
  min-width: 0;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px #efe1dc;
}

.header-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.nav-dual-btn {
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #fffdfb, #f2e8e3);
  color: var(--ink-900);
  padding: 0.38rem 0.62rem 0.45rem;
  min-height: 2.65rem;
  min-width: 140px;
  display: inline-grid;
  align-content: center;
  justify-items: start;
  line-height: 1.08;
  gap: 0.08rem;
  cursor: pointer;
}

.nav-dual-btn .line-top {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coffee-600);
}

.nav-dual-btn .line-bottom {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink-900);
}

.account-menu-wrap {
  position: relative;
}

.account-trigger {
  min-width: 170px;
}

.account-menu-wrap.is-open .account-trigger,
.account-trigger:hover {
  border-color: var(--accent-400);
}

.account-mega-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.52rem);
  width: min(620px, 92vw);
  border: 1px solid #e5c1ba;
  border-radius: 0.9rem;
  background: #fffaf8;
  box-shadow: 0 22px 34px -24px rgba(93, 73, 69, 0.24);
  z-index: 36;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.account-mega-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  right: 2.2rem;
  width: 0.9rem;
  height: 0.9rem;
  background: #fffaf8;
  border-top: 1px solid #e5c1ba;
  border-left: 1px solid #e5c1ba;
  transform: rotate(45deg);
}

.account-menu-wrap.is-open .account-mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-mega-top {
  padding: 0.82rem 0.85rem 0.72rem;
  border-bottom: 1px solid #e8d0ca;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.account-signin-btn {
  border: 1px solid var(--accent-400);
  border-radius: 0.55rem;
  background: linear-gradient(180deg, var(--accent-500), var(--accent-600));
  color: #fff;
  font-weight: 800;
  min-width: min(330px, 94%);
  padding: 0.52rem 0.8rem;
  cursor: pointer;
}

.account-mega-sub {
  margin: 0;
  font-size: 0.79rem;
  color: #7a4c47;
}

.inline-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent-700);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.79rem;
  padding: 0;
}

.account-mega-columns {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.account-col {
  padding: 0.78rem 0.85rem 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.28rem;
}

.account-col + .account-col {
  border-left: 1px solid #e8d0ca;
}

.account-col h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.account-link {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--coffee-800);
  font-size: 0.88rem;
  padding: 0.14rem 0;
  cursor: pointer;
}

.account-link:hover {
  color: var(--accent-700);
  text-decoration: underline;
}

.account-menu-actions {
  margin-top: 0.38rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e8c8c2;
  display: grid;
  gap: 0.15rem;
}

.account-link.is-admin {
  color: var(--accent-700);
  font-weight: 700;
}

.account-link.is-danger {
  color: var(--accent-700);
  font-weight: 700;
}

.cart-btn {
  min-height: 2.65rem;
  padding-inline: 1rem;
}

.ghost-btn,
.solid-btn,
.link-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.ghost-btn {
  background: #fffdfb;
  color: var(--coffee-800);
  border: 1px solid var(--line);
}

.solid-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  box-shadow: 0 10px 22px -12px rgba(123, 95, 89, 0.35);
}

.solid-btn:hover {
  filter: brightness(1.04);
}

.solid-btn.is-disabled,
.solid-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.tag-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf8;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  color: #7f6059;
  white-space: nowrap;
}

.tag-btn.is-active {
  border-color: var(--accent-400);
  color: var(--accent-800);
  background: var(--accent-100);
}

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-menu-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.menu-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #e6c5be;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--accent-700);
  font-size: 1.2rem;
  cursor: pointer;
}

.side-menu-nav {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.side-menu-nav .tag-btn {
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  padding: 0.68rem 0.8rem;
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 1.6rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  background: linear-gradient(130deg, #fffdfb, #f5ece8);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.hero-eyebrow {
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent-700);
  font-weight: 800;
}

.hero h2 {
  margin: 0.45rem 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(160deg, #fffaf8, #ffffff);
  display: grid;
  gap: 0.55rem;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card-count {
  font-size: 0.78rem;
  color: var(--coffee-600);
  font-weight: 700;
}

.hero-card h3 {
  margin: 0.2rem 0;
  font-size: 1.2rem;
}

.hero-card span {
  color: #785c58;
  font-size: 0.9rem;
}

.hero-category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-category-preview .tag-btn {
  padding-inline: 0.75rem;
}

.hero-menu-btn {
  width: 100%;
  min-width: 0;
  box-shadow: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.9rem;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 14px 30px -24px #bf8179;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.catalog-filters-minimal {
  display: flex;
  justify-content: flex-end;
}

.filter-field-compact {
  min-width: 220px;
  max-width: 260px;
}

.catalog-filters-minimal .filter-field {
  min-width: 220px;
  max-width: 260px;
}

.filter-field-compact select {
  margin-top: 0;
}

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

.menu-toggle {
  height: 2.7rem;
  min-width: 124px;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  display: inline-grid;
  place-content: center;
  gap: 0.22rem;
  cursor: pointer;
  padding: 0.52rem 0.85rem;
  color: var(--accent-700);
  font-weight: 700;
  box-shadow: 0 8px 18px -16px rgba(123, 95, 89, 0.35);
}

.menu-toggle span {
  width: 1.12rem;
  height: 2px;
  background: var(--accent-700);
  border-radius: 999px;
  justify-self: center;
}

.menu-toggle em {
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(98, 81, 76, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 30;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100dvh;
  padding: 1rem 0.9rem;
  border-right: 1px solid #e6c4bc;
  background: linear-gradient(180deg, #fff8f7, #fff1ed);
  box-shadow: 20px 0 34px -28px rgba(93, 73, 69, 0.28);
  z-index: 31;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  transform: translateX(-104%);
  transition: transform 0.22s ease;
}

.side-menu.open {
  transform: translateX(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(93, 73, 69, 0.34);
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-card {
  width: min(540px, 100%);
  max-height: 92dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 28px 42px -34px rgba(93, 73, 69, 0.28);
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.modal-card-wide {
  width: min(1080px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.modal-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.event-modal-body p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.5;
}

.event-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.tab-row {
  display: flex;
  gap: 0.55rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fbf4f1;
  color: var(--coffee-800);
  border-radius: 0.7rem;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--accent-100);
  border-color: var(--accent-400);
  color: var(--accent-800);
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}

.auth-form input[readonly] {
  color: #80625c;
  background: #fff5f2;
}

.form-feedback {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.84rem;
  color: var(--accent-700);
}

.admin-form-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.check-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #785c58;
  font-weight: 700;
}

.admin-form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: auto;
  max-height: 46dvh;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #eadad5;
  font-size: 0.84rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff1ee;
  color: #7a3438;
}

.admin-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.action-btn {
  border: 1px solid #e6c4bc;
  background: #fff5f2;
  color: #93443a;
  border-radius: 0.6rem;
  padding: 0.28rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.action-btn.danger {
  border-color: var(--accent-400);
  color: var(--accent-700);
  background: var(--accent-100);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 44;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff6f3f7;
  box-shadow: 0 20px 30px -26px rgba(93, 73, 69, 0.24);
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #785c58;
}

.cookie-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cookie-info-modal {
  width: min(980px, 100%);
  max-height: 88dvh;
}

.cookie-info-body {
  display: grid;
  gap: 0.9rem;
  color: #6a4647;
}

.cookie-info-body > p {
  margin: 0;
  line-height: 1.55;
}

.cookie-info-block {
  border: 1px solid #ecc8c1;
  border-radius: 0.9rem;
  background: #fff8f6;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.cookie-info-block h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--coffee-800);
}

.cookie-info-block ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.3rem;
}

.cookie-info-actions {
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.global-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  border-radius: 0.7rem;
  border: 1px solid #e0c0b9;
  background: #fff7f4;
  color: var(--accent-800);
  padding: 0.62rem 0.8rem;
  max-width: min(440px, calc(100% - 2rem));
  box-shadow: 0 18px 28px -24px rgba(93, 73, 69, 0.22);
}

.filter-field {
  display: grid;
  gap: 0.22rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7f6059;
}

.filter-field input,
.filter-field select,
.filter-field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  background: #fff;
  color: var(--ink-900);
  font-family: inherit;
}

.filter-reset-btn {
  height: 2.55rem;
}

.count-pill {
  font-size: 0.78rem;
  background: var(--accent-100);
  color: var(--accent-800);
  font-weight: 800;
  padding: 0.33rem 0.6rem;
  border-radius: 999px;
}

.panel-highlight {
  box-shadow: 0 0 0 2px rgba(184, 149, 139, 0.48), 0 16px 26px -24px rgba(123, 95, 89, 0.42);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.7rem;
  background: #fffaf8;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  height: 100%;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -20px #9a6259;
}

.swatch-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.swatch {
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 0.8rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5c4bd;
  background: linear-gradient(135deg, #faf3f0, #ead9d2);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.08);
  transition: transform 0.22s ease;
}

.swatch-link:hover .product-image {
  transform: scale(1.12);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #7b5a56;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-title {
  margin: 0;
  font-size: 0.92rem;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #785c58;
  font-size: 0.83rem;
}

.price {
  color: var(--accent-700);
  font-size: 1rem;
  font-weight: 800;
}

.add-btn {
  border: 1px solid #e6c4bc;
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
  background: #f9f2ef;
  color: var(--accent-800);
  font-weight: 700;
  cursor: pointer;
}

.add-btn:hover {
  background: #f2e6e1;
}

.add-btn.is-disabled,
.add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8f4f2;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.cart-list {
  min-height: 220px;
  display: grid;
  gap: 0.55rem;
}

.cart-promo-block {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff9f7;
  padding: 0.6rem;
  margin-bottom: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.cart-promo-field {
  gap: 0.35rem;
}

.cart-promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.cart-promo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-promo-meta small {
  color: #7f5e58;
}

.cart-item {
  border: 1px solid var(--line);
  background: #fffaf8;
  border-radius: 0.8rem;
  padding: 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid #e6c4bc;
  background: #fff4f2;
  color: #924238;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px dashed #e6c4bc;
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.cart-total-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-total-line strong {
  font-size: 1rem;
}

.cart-total-final {
  margin-top: 0.1rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #e6c4bc;
}

.cart-footer p {
  margin: 0;
  color: #785c58;
}

.cart-shipping-hint {
  margin: -0.1rem 0 0;
  color: #8a625c;
  font-size: 0.8rem;
}

.cart-total-final strong {
  font-size: 1.22rem;
}

.checkout-btn {
  margin-top: 0.3rem;
}

.link-btn {
  background: transparent;
  color: var(--accent-700);
  padding: 0;
}

.empty-block {
  border: 1px dashed #e6c4bc;
  border-radius: 0.8rem;
  padding: 0.85rem;
  color: #785c58;
  background: #fff;
  font-size: 0.87rem;
}

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

.product-card {
  animation: cardIn 0.28s ease both;
}

@media (max-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel {
    grid-column: 1 / -1;
  }

  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .main-header,
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .page-header-center {
    min-height: 0;
  }

  .page-header-context {
    font-size: 0.84rem;
  }

  .search-wrap {
    grid-column: 1 / -1;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .header-actions > * {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-content {
    padding: 0.95rem 1rem 1.4rem;
  }

  .brand-logo {
    width: var(--brand-logo-size-tablet);
    height: var(--brand-logo-size-tablet);
  }
}

@media (max-width: 860px) {
  .main-header,
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    position: static;
  }

  .search-wrap {
    grid-column: 1 / -1;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .header-actions > * {
    width: 100%;
  }

  .account-menu-wrap {
    grid-column: 1 / -1;
  }

  .nav-dual-btn,
  .account-trigger,
  .cart-btn {
    min-width: 0;
    width: 100%;
  }

  .account-trigger {
    min-width: 0;
  }

  .account-mega-menu {
    right: auto;
    left: 0;
    width: min(96vw, 560px);
  }

  .account-mega-menu::before {
    left: 2rem;
    right: auto;
  }

  .account-mega-columns {
    grid-template-columns: 1fr;
  }

  .account-col + .account-col {
    border-left: 0;
    border-top: 1px solid #e8d0ca;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    min-width: 138px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    width: var(--brand-logo-size-mobile);
    height: var(--brand-logo-size-mobile);
  }
}

@media (max-width: 640px) {
  .top-ribbon {
    padding: 0.5rem 0.8rem;
    font-size: 0.76rem;
  }

  .main-header,
  .site-header {
    position: static;
    padding: 0.8rem 0.9rem;
  }

  .page-content {
    padding: 0.85rem;
  }

  .brand-block {
    align-items: flex-start;
  }

  .page-header-center {
    display: none;
  }

  .hero {
    padding: 0.95rem;
    gap: 0.8rem;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: clamp(1.45rem, 7.4vw, 1.95rem);
  }

  .menu-toggle,
  .filter-reset-btn {
    width: 100%;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .account-mega-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .account-mega-menu::before {
    left: 1.7rem;
  }

  .panel {
    padding: 0.8rem;
  }

  .catalog-layout {
    gap: 0.75rem;
  }

  .catalog-filters,
  .product-grid,
  .product-actions,
  .cart-promo-row {
    grid-template-columns: 1fr;
  }

  .product-title {
    min-height: 0;
  }

  .cart-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .qty-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .cart-total-line {
    align-items: flex-start;
  }

  .cart-promo-meta,
  .cookie-banner,
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .ghost-btn,
  .cookie-actions .solid-btn {
    width: 100%;
  }

  .modal-card,
  .modal-card-wide,
  .cookie-info-modal {
    width: 100%;
    padding: 0.8rem;
  }

  .side-menu {
    width: min(92vw, 320px);
  }

  .global-notice {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}
