:root {
  --ink: #14213d;
  --muted: #64748b;
  --line: #d7deea;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --rail: #07111f;
  --blue: #2563eb;
  --teal: #0f766e;
  --amber: #f59e0b;
  --rose: #e11d48;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  width: 268px;
  grid-template-rows: auto 1fr auto auto;
  gap: 22px;
  padding: 24px;
  background: var(--rail);
  color: #fff;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand small { margin-top: 3px; color: #a8b3c7; font-size: 12px; }
.rail-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.rail-nav a, .admin-link, .cart-button {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px;
  color: #dce7f7;
  font-weight: 800;
}
.rail-nav a[aria-current="true"], .rail-nav a:hover {
  background: #fff;
  color: var(--rail);
}
.cart-button {
  display: flex;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
}
.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
}
.admin-link { display: block; text-align: center; }

.site-shell {
  min-height: 100vh;
  margin-left: 268px;
}
.top-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(14px);
}
.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.search-bar label { color: var(--muted); font-size: 13px; font-weight: 800; }
.search-bar input, .coupon-row input, .checkout-form input, .checkout-form textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}
.support-pill {
  display: grid;
  gap: 2px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
}
.support-pill span { color: var(--muted); font-size: 12px; font-weight: 800; }
.support-pill a { color: var(--blue); font-size: 13px; font-weight: 800; }
.page-root { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 64px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 54px; line-height: 1.02; }
h2 { font-size: 32px; }
p { color: var(--muted); line-height: 1.7; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .feature-cover, .metric-strip, .shop-head, .filter-panel, .product-card, .collection-board, .product-detail, .contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    #fff;
}
.hero-actions, .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.primary-link, .secondary-link, .product-card button, .detail-actions button, .checkout-button, .coupon-row button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}
.primary-link, .product-card button, .detail-actions button, .checkout-button, .coupon-row button { background: var(--blue); color: #fff; }
.secondary-link { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.feature-cover {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.feature-cover img, .product-card img, .detail-cover img, .cart-line img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef5;
}
.feature-cover span { font-size: 20px; font-weight: 900; }
.feature-cover strong { color: var(--teal); font-size: 22px; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 34px;
  overflow: hidden;
}
.metric-strip article {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.metric-strip article:last-child { border-right: 0; }
.metric-strip strong { display: block; font-size: 28px; }
.metric-strip span { color: var(--muted); font-size: 13px; font-weight: 800; }

.section-head, .shop-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 24px 0 18px;
}
.section-head a { color: var(--blue); font-weight: 900; }
.shop-head { padding: 26px; align-items: center; }
.shop-head h1, .collection-board h1 { margin-bottom: 8px; }
.sort-box { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}
.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
}
.filter-panel h2 { font-size: 22px; }
.filter-panel button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}
.filter-panel button.is-active { background: var(--ink); color: #fff; }
.result-line {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 14px;
}
.product-card:hover { transform: translateY(-3px); }
.card-copy span, .isbn {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.product-card h3 { margin: 8px 0; font-size: 20px; line-height: 1.2; }
.product-card p { min-height: 74px; font-size: 14px; }
.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.card-actions strong { color: var(--teal); font-size: 20px; }
.collection-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 34px;
}
.collection-board strong {
  display: grid;
  height: 150px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 58px;
}
.collection-board.new { border-left: 8px solid var(--amber); }
.collection-board.best { border-left: 8px solid var(--rose); }
.product-detail {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
}
.detail-cover { padding: 16px; border-radius: 8px; background: var(--soft); }
.back-link { color: var(--blue); font-weight: 900; }
.byline { font-weight: 900; color: var(--ink); }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.fact-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.fact-grid dt { color: var(--muted); font-size: 12px; font-weight: 900; }
.fact-grid dd { margin: 6px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.detail-actions strong { color: var(--teal); font-size: 32px; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 36px;
}
.contact-panel address {
  display: grid;
  align-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 22px;
  background: var(--ink);
  color: #fff;
  font-style: normal;
}
.contact-panel address span { color: #a8b3c7; font-weight: 900; }
.contact-panel address a { color: #fff; font-weight: 900; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(7, 17, 31, 0.44);
}
.cart-drawer.is-open { display: flex; }
.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: #fff;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.cart-items, .checkout-form, .totals { display: grid; gap: 12px; }
.cart-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.cart-line img { width: 54px; grid-row: span 2; }
.cart-line span { color: var(--muted); font-weight: 800; }
.quantity-tools {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.quantity-tools button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.coupon-row { display: grid; gap: 8px; margin: 14px 0; }
.coupon-row div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.checkout-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.totals {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.totals div { display: flex; justify-content: space-between; }
.grand-total { font-size: 22px; font-weight: 900; }
.empty-note, .payment-note { color: var(--muted); }

.paypal-buttons {
  margin-top: 12px;
  min-height: 44px;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  transition: 180ms ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.cover-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 9 / 13;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .shell-rail { position: static; width: auto; grid-template-rows: auto; }
  .rail-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-shell { margin-left: 0; }
  .hero-panel, .product-detail, .contact-panel { grid-template-columns: 1fr; }
  .product-grid, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell-rail { padding: 14px; }
  .rail-nav { grid-template-columns: 1fr 1fr; }
  .top-strip { grid-template-columns: 1fr; padding: 14px; }
  .search-bar { grid-template-columns: 1fr; }
  .page-root { width: min(100% - 24px, 1200px); padding-top: 18px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .hero-copy, .shop-head, .collection-board, .contact-panel { padding: 22px; }
  .metric-strip, .catalog-layout, .collection-board, .fact-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.compact, .collection-grid { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}

/* LioraMae LLC coastal bookstore theme */
:root {
  --lm-paper: #fffdf7;
  --lm-white: #ffffff;
  --lm-foam: #eef9fb;
  --lm-blue: #167da0;
  --lm-blue-strong: #0b5f80;
  --lm-yellow: #ffd166;
  --lm-coral: #ef7b5d;
  --lm-ink: #1f2933;
  --lm-muted: #60707d;
  --lm-line: #d6e6ea;
  --lm-shadow: 0 18px 48px rgba(22, 125, 160, 0.14);
}

html {
  background:
    linear-gradient(180deg, #f3fbfd 0%, #fffdf7 45%, #ffffff 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 209, 102, 0.32), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(22, 125, 160, 0.18), transparent 32%),
    linear-gradient(180deg, #f4fbfd 0%, #fffdf7 58%, #ffffff 100%);
  color: var(--lm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  width: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  border: 0;
  border-bottom: 1px solid rgba(11, 95, 128, 0.16);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(31, 41, 51, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lm-ink);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 2px solid var(--lm-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lm-blue-strong);
  background:
    linear-gradient(145deg, #ffffff 0%, #edf9fb 100%);
  box-shadow: inset 0 -7px 0 rgba(255, 209, 102, 0.48);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--lm-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.rail-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--lm-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.rail-nav a:hover,
.rail-nav a[aria-current="true"] {
  background: var(--lm-yellow);
  color: var(--lm-ink);
}

.cart-button,
.admin-link {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(11, 95, 128, 0.22);
  background: #fff;
  color: var(--lm-blue-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(22, 125, 160, 0.08);
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--lm-coral);
  color: #fff;
  font-size: 0.8rem;
}

.site-shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

.top-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.search-bar {
  display: grid;
  gap: 8px;
}

.search-bar label,
.coupon-row label {
  color: var(--lm-blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-bar input,
.coupon-row input,
.checkout-form input,
.checkout-form textarea,
.sort-box select {
  min-height: 46px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lm-ink);
  padding: 0 14px;
  font: inherit;
  box-shadow: 0 8px 24px rgba(22, 125, 160, 0.06);
}

.checkout-form textarea {
  min-height: 86px;
  padding-top: 12px;
}

.support-pill {
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 16px;
  color: var(--lm-muted);
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.support-pill span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--lm-coral);
}

.support-pill a {
  color: var(--lm-blue-strong);
  font-weight: 800;
  text-decoration: none;
}

.page-root {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 56px) 80px;
}

.hero-panel {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(22, 125, 160, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 249, 251, 0.94) 58%, rgba(255, 209, 102, 0.24) 100%);
  box-shadow: var(--lm-shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -138px;
  width: 420px;
  height: 260px;
  border-radius: 50% 50% 0 0;
  border: 28px solid rgba(22, 125, 160, 0.11);
  border-bottom: 0;
  pointer-events: none;
}

.eyebrow {
  color: var(--lm-coral);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.shop-head h1,
.collection-board h1,
.contact-panel h1,
.detail-copy h1 {
  margin: 10px 0 16px;
  color: var(--lm-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-copy p {
  max-width: 620px;
  color: var(--lm-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.detail-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.product-card button,
.detail-actions button,
.checkout-button,
.coupon-row button {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--lm-blue);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lm-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 125, 160, 0.18);
}

.secondary-link {
  background: #fff;
  color: var(--lm-blue-strong);
}

.feature-cover {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--lm-ink);
  text-decoration: none;
  transform: rotate(2deg);
  position: relative;
  z-index: 1;
}

.feature-cover img,
.cover-link img,
.detail-cover img,
.product-card img,
.cart-line img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.feature-cover img {
  width: min(320px, 74vw);
  aspect-ratio: 0.69;
  border-radius: 8px;
  box-shadow: 0 28px 56px rgba(31, 41, 51, 0.22);
}

.feature-cover span {
  text-align: center;
  font-weight: 900;
}

.feature-cover strong {
  color: var(--lm-blue-strong);
  font-size: 1.2rem;
}

.metric-strip {
  margin: 28px 0 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-strip article {
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(22, 125, 160, 0.08);
}

.metric-strip strong {
  display: block;
  color: var(--lm-blue-strong);
  font-size: 1.5rem;
}

.metric-strip span {
  color: var(--lm-muted);
  font-weight: 800;
}

.section-head,
.shop-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 18px;
}

.section-head h2,
.filter-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0;
}

.section-head a,
.back-link {
  color: var(--lm-blue-strong);
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(22, 125, 160, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(22, 125, 160, 0.14);
}

.cover-link {
  aspect-ratio: 0.69;
  border-radius: 8px;
  overflow: hidden;
  background: var(--lm-foam);
  border: 1px solid rgba(22, 125, 160, 0.14);
}

.card-copy {
  display: grid;
  gap: 8px;
}

.card-copy span,
.isbn {
  color: var(--lm-coral);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.card-copy h3 a {
  color: var(--lm-ink);
  text-decoration: none;
}

.card-copy p {
  margin: 0;
  color: var(--lm-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.card-actions {
  justify-content: space-between;
  border-top: 1px solid var(--lm-line);
  padding-top: 12px;
}

.card-actions strong,
.detail-actions strong {
  color: var(--lm-blue-strong);
  font-size: 1.18rem;
}

.product-card button {
  min-height: 38px;
  padding: 0 14px;
}

.shop-head {
  padding: 28px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef9fb 100%);
}

.shop-head h1,
.collection-board h1,
.contact-panel h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.shop-head p,
.collection-board p,
.contact-panel p {
  color: var(--lm-muted);
  line-height: 1.65;
}

.sort-box {
  display: grid;
  gap: 8px;
  color: var(--lm-blue-strong);
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}

.filter-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 9px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 125, 160, 0.08);
}

.filter-panel button {
  min-height: 40px;
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lm-ink);
  font: inherit;
  font-weight: 850;
}

.filter-panel button.is-active {
  border-color: var(--lm-blue);
  background: var(--lm-blue);
  color: #fff;
}

.result-line {
  margin-bottom: 14px;
  color: var(--lm-muted);
  font-weight: 850;
}

.collection-board {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: 34px;
  border-radius: 8px;
  border: 1px solid var(--lm-line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,249,251,.96)),
    linear-gradient(90deg, transparent, rgba(255,209,102,.25));
  box-shadow: var(--lm-shadow);
}

.collection-board strong {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--lm-yellow);
  color: var(--lm-ink);
  font-size: 2.2rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 54px);
  background: #fff;
  box-shadow: var(--lm-shadow);
}

.detail-cover {
  aspect-ratio: 0.69;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(31, 41, 51, 0.18);
}

.detail-copy p {
  color: var(--lm-muted);
  line-height: 1.7;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.fact-grid div {
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  padding: 14px;
  background: var(--lm-paper);
}

.fact-grid dt {
  color: var(--lm-coral);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, #fff 0%, #eef9fb 70%, rgba(255, 209, 102, 0.28) 100%);
  box-shadow: var(--lm-shadow);
}

.contact-panel address {
  border-radius: 8px;
  border: 1px solid var(--lm-line);
  background: #fff;
  padding: 22px;
  font-style: normal;
  display: grid;
  gap: 6px;
}

.contact-panel address span {
  color: var(--lm-coral);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-panel address a {
  color: var(--lm-blue-strong);
  font-weight: 900;
}

.cart-drawer {
  background: rgba(31, 41, 51, 0.38);
  backdrop-filter: blur(6px);
}

.cart-panel {
  width: min(460px, 100%);
  border-left: 1px solid var(--lm-line);
  background: var(--lm-paper);
  color: var(--lm-ink);
  box-shadow: -24px 0 54px rgba(31, 41, 51, 0.16);
}

.cart-head,
.cart-line,
.totals {
  border-color: var(--lm-line);
}

.cart-line {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.cart-line img {
  aspect-ratio: 0.69;
  border-radius: 6px;
}

.quantity-tools {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-tools button,
.icon-button {
  min-height: 32px;
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lm-blue-strong);
  font-weight: 850;
}

.totals {
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #fff;
}

.grand-total {
  color: var(--lm-blue-strong);
  font-size: 1.14rem;
}

.empty-note,
.payment-note {
  color: var(--lm-muted);
}

.paypal-buttons {
  margin-top: 12px;
  min-height: 44px;
}

.toast {
  border-radius: 999px;
  background: var(--lm-blue-strong);
  color: #fff;
}

@media (max-width: 1040px) {
  .shell-rail {
    grid-template-columns: 1fr auto;
  }

  .rail-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-link {
    display: none;
  }

  .hero-panel,
  .product-detail,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

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

  .filter-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell-rail,
  .top-strip {
    grid-template-columns: 1fr;
  }

  .shell-rail {
    padding: 14px 16px;
    gap: 12px;
  }

  .rail-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .rail-nav a {
    white-space: nowrap;
  }

  .cart-button {
    justify-self: start;
  }

  .support-pill {
    white-space: normal;
    border-radius: 8px;
  }

  .page-root {
    padding: 24px 16px 64px;
  }

  .hero-panel {
    min-height: 0;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .metric-strip,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .section-head,
  .shop-head,
  .collection-board {
    display: grid;
  }

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