:root {
  --ink: #1e2522;
  --muted: #5e6c66;
  --paper: #fafafa; /* Clean near-white page background */
  --paper-strong: #ececec; /* Neutral dividers */
  --surface: #ffffff;
  --line: #e6e4e0; /* Soft neutral lines */
  --sage: #2a473c;
  --sage-dark: #162a22;
  --rust: #c2593f;
  --gold: #d97706;
  --oxblood: #881337;
  --blue: #1e40af;
  --link: #1f5f4a;
  --light-surface: #f7f3ea;
  --shadow-sm: 0 2px 8px rgba(22, 42, 34, 0.04);
  --shadow: 0 12px 34px rgba(22, 42, 34, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 48px rgba(22, 42, 34, 0.12), 0 8px 24px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-sm: 6px;
  --header-height: 98px;
  --anchor-offset: calc(var(--header-height) + 28px);
  
  /* Sage & Rust Custom Button Palette variables */
  --btn-add-bg: var(--sage);
  --btn-add-border: var(--sage-dark);
  --btn-add-color: #ffffff;
  --btn-add-hover-bg: #1e332b;
  
  --btn-buy-bg: var(--gold);
  --btn-buy-border: #b45309;
  --btn-buy-color: #ffffff;
  --btn-buy-hover-bg: #b45309;
  
  /* Green promo gradients start/end stops */
  --promo-green-start: #35584b;
  --promo-green-end: var(--sage-dark);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: var(--font-sans);
  --commerce-title-font: var(--font-sans);
  --commerce-title-color: var(--ink);
  --commerce-title-weight: 700;
  --commerce-author-font: var(--font-sans);
  --commerce-author-color: var(--muted);
  --commerce-author-weight: 500;
  --commerce-price-font: var(--font-sans);
  --commerce-price-color: var(--ink);
  --commerce-price-weight: 500;
  --commerce-price-prefix-color: var(--muted);
  --commerce-price-prefix-weight: 700;
  --commerce-price-detail-dollar-size: 2.15rem;
  --commerce-price-detail-symbol-size: 0.92rem;
  --commerce-price-detail-cent-size: 0.92rem;
  --commerce-price-buybox-dollar-size: 1.55rem;
  --commerce-price-buybox-symbol-size: 0.72rem;
  --commerce-price-buybox-cent-size: 0.72rem;
  --commerce-link-action-color: var(--sage-dark);
  --commerce-link-action-muted-color: var(--muted);
  --commerce-line-title-gap: 2px;
  --commerce-line-meta-gap: 4px;
  --commerce-line-control-gap: 8px;
  --commerce-line-action-gap: 6px;
  --product-card-width: 184px;
  --product-card-min: 158px;
  --product-card-gap: 18px;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.cart-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #111A17;
  border-bottom: 2px solid #0a110f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

/* Delivery Widget */
.header-delivery-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  color: #d1d5db;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  line-height: 1.25;
  flex-shrink: 0;
}

.header-delivery-widget:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-delivery-widget .delivery-to {
  display: block;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.05;
  max-width: 56px;
  text-align: right;
}

.header-delivery-widget .delivery-details {
  display: flex;
  flex-direction: column;
  min-width: 116px;
}

.header-delivery-widget .delivery-location {
  font-weight: 700;
  color: #FFFFFF;
}

/* Amazon-Style Search Form in Header */
.header-search-form {
  display: flex;
  flex: 0 1 660px;
  min-width: 0;
  max-width: 660px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  border: 2px solid rgb(217 119 6 / 0);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

.search-select-wrapper {
  background: #e5e7eb;
  border-right: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  flex: 0 0 142px;
  padding: 0 6px 0 1rem;
  height: 100%;
}

.search-select-wrapper select {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  outline: none;
  padding: 0 18px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 18px;
}

.search-input-wrapper {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: 100%;
}

.search-input-wrapper input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--ink);
  outline: none;
}

.header-search-submit {
  width: 46px;
  height: 100%;
  background: var(--gold);
  border: 0;
  color: #111A17;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}

.header-search-submit:hover {
  background: #f59e0b;
}

.header-search-submit svg {
  width: 20px;
  height: 20px;
}

/* Stacked Widgets on Right */
.header-widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-sans);
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 1.25;
  flex-shrink: 0;
}

.header-widget:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-widget .widget-top {
  font-size: 0.72rem;
  color: #9ca3af;
}

.header-widget .widget-bottom {
  font-size: 0.85rem;
  font-weight: 700;
}

.account-signin-link {
  text-decoration: none;
}

.account-menu {
  position: relative;
}

.account-menu[open] {
  background-color: rgba(255, 255, 255, 0.1);
}

.account-menu-summary {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.account-menu-summary::-webkit-details-marker {
  display: none;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -130px;
  z-index: 1200;
  width: min(560px, calc(100vw - 36px));
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.account-menu-panel::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 142px;
  width: 18px;
  height: 18px;
  background: #eaf7f5;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.account-menu-panel--guest {
  width: min(360px, calc(100vw - 36px));
  right: -80px;
}

.account-menu-panel--guest::before {
  right: 92px;
}

.account-menu-callout,
.account-menu-auth-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #eaf7f5;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.account-menu-callout span {
  color: var(--sage-dark);
  font-weight: 900;
}

.account-menu-callout a,
.account-menu-callout button,
.account-menu-auth-actions p a {
  color: #0f766e;
  background: transparent;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.account-menu-callout form {
  margin: 0;
  margin-left: auto;
}

.account-menu-auth-actions {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.account-menu-auth-actions .primary-button {
  width: 100%;
}

.account-menu-auth-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-menu-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.account-menu-panel--guest .account-menu-columns {
  grid-template-columns: 1fr;
}

.account-menu-columns section + section {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.account-menu-panel--guest .account-menu-columns section {
  border-left: 0;
  padding-left: 0;
}

.account-menu-columns h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.account-menu-columns a {
  display: block;
  padding: 5px 0;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.account-menu-columns a:hover,
.account-menu-columns a:focus-visible {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cart Toggle Widget */
.cart-toggle-widget {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.cart-toggle-widget:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.cart-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.cart-icon-wrapper .cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: #111A17;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0 2px;
}

.cart-label {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Sub-Navigation Row */
.site-header-subnav {
  display: flex;
  align-items: center;
  background: #1A2824;
  padding: 0 24px;
  height: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.subnav-left {
  margin-right: 20px;
}

.all-menu-button {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}

.all-menu-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.all-menu-button svg {
  width: 18px;
  height: 18px;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.subnav-links::-webkit-scrollbar {
  display: none;
}

.subnav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.subnav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-nav a:hover {
  color: var(--ink);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.icon-button,
.icon-only,
.primary-button,
.secondary-button,
.shelf-link,
.text-chip,
.tab-button {
  border: 0;
  cursor: pointer;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #fffdf8;
  background: var(--sage-dark);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(36, 63, 54, 0.22);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: #ffffff;
  background: var(--sage);
  border: 1px solid var(--sage-dark);
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 24px rgba(42, 71, 60, 0.18);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  color: #ffffff;
  background: var(--sage-dark);
  box-shadow: 0 12px 28px rgba(22, 42, 34, 0.24);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled,
.primary-button[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.72);
  background: var(--muted);
  border-color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: var(--sage-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--sage);
  box-shadow: 0 10px 22px rgba(22, 42, 34, 0.1);
}

.secondary-button:active {
  transform: translateY(1px);
}

.button-icon,
.icon-button svg {
  width: 20px;
  height: 20px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--sage-dark);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-count.badge-pop {
  animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-body,
.account-body {
  min-height: 100vh;
  background: var(--light-surface);
}

.auth-header,
.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.auth-header-link,
.account-topbar-nav a,
.account-topbar-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--sage-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.auth-header-link:hover,
.auth-header-link:focus-visible,
.account-topbar-nav a:hover,
.account-topbar-nav a:focus-visible,
.account-topbar-nav button:hover,
.account-topbar-nav button:focus-visible {
  border-color: var(--sage);
  box-shadow: 0 8px 18px rgba(22, 42, 34, 0.1);
}

.account-topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-topbar-user {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.account-topbar-nav form {
  margin: 0;
}

.account-topbar-nav button {
  cursor: pointer;
}

.auth-shell,
.account-shell {
  width: min(100% - 32px, 440px);
  margin: 56px auto;
}

.account-shell {
  width: min(100% - 32px, 720px);
}

.account-page-shell {
  width: min(100% - 32px, 1120px);
  margin: 34px auto 72px;
}

.account-page-shell--narrow {
  width: min(100% - 32px, 760px);
}

.account-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.account-breadcrumb a {
  color: #1d5f9f;
}

.account-breadcrumb a::after {
  content: "›";
  margin-left: 10px;
  color: var(--muted);
}

.account-page-heading {
  margin-bottom: 24px;
}

.account-page-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.account-page-heading h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.account-page-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.account-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 128px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.account-tool-card:hover,
.account-tool-card:focus-visible {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.account-tool-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--sage-dark);
  background: #eaf7f5;
  border: 1px solid #cfe8e3;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 900;
}

.account-tool-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.account-tool-card small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-card,
.account-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.auth-card {
  padding: 28px;
}

.account-panel {
  padding: clamp(24px, 4vw, 36px);
}

.account-setting-list,
.account-empty-state {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.account-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.account-setting-row:last-child {
  border-bottom: 0;
}

.account-setting-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.account-setting-row p {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.account-setting-row small {
  display: block;
  max-width: 520px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.account-setting-row > a,
.account-setting-row > span {
  min-width: 110px;
  padding: 8px 18px;
  color: var(--sage-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.account-setting-row > a:hover,
.account-setting-row > a:focus-visible {
  border-color: var(--sage);
  box-shadow: 0 8px 18px rgba(22, 42, 34, 0.1);
}

.account-setting-row--muted {
  background: #fbfaf7;
}

.account-order-search {
  display: flex;
  gap: 10px;
  min-width: min(100%, 460px);
}

.account-order-search input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.account-order-search button {
  min-height: 44px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--sage-dark);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.account-empty-state {
  padding: clamp(28px, 5vw, 44px);
}

.account-empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.account-empty-state p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.account-preference-note {
  padding: 16px;
  background: var(--light-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.account-preference-note strong {
  display: block;
  margin-bottom: 4px;
}

.account-preference-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-card h1,
.account-panel h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.2;
}

.account-panel-heading {
  margin-bottom: 24px;
}

.account-panel-heading h1 {
  margin-bottom: 8px;
}

.account-panel-heading p {
  margin: 0;
  color: var(--muted);
}

.account-eyebrow {
  margin: 0 0 6px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form,
.account-form {
  display: grid;
  gap: 16px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-form-grid--address {
  grid-template-columns: minmax(0, 1.35fr) minmax(92px, 0.65fr) minmax(120px, 0.75fr);
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label,
.account-checkbox {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(42, 71, 60, 0.14);
}

.auth-submit,
.auth-alt-action {
  width: 100%;
}

.auth-alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-alert--error {
  color: #7f1d1d;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.auth-alert--success {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.auth-alt {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-footnote {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-footnote p {
  margin: 0;
}

.text-link {
  color: var(--link);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.account-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sage);
  flex: 0 0 auto;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.account-actions .primary-button,
.account-actions .secondary-button {
  flex: 1 1 180px;
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) clamp(18px, 5vw, 64px);
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(42, 71, 60, 0.12), transparent 50%),
              linear-gradient(135deg, var(--sage-dark) 0%, #0d1a15 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  width: min(760px, 100%);
  position: relative;
  z-index: 2;
}

.hero-feature {
  justify-self: end;
  width: min(340px, 100%);
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.hero-feature .book-cover-container {
  height: 300px;
}

.hero-feature-copy {
  display: grid;
  gap: 9px;
  padding: 14px 4px 2px;
}

.hero-feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-feature-copy strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 600px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.text-chip {
  min-height: 38px;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.text-chip:hover,
.text-chip:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.text-chip.is-active {
  color: var(--sage-dark) !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.search-wrapper {
  position: relative;
  max-width: 680px;
  width: 100%;
  margin-bottom: 20px;
  z-index: 10;
}

.hero-search {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(42, 71, 60, 0.15), var(--shadow);
  border-color: var(--sage);
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-left: 12px;
  color: var(--muted);
}

.hero-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: #8c9c94;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  padding: 8px 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.suggestion-item:hover,
.suggestion-item.is-selected {
  background-color: var(--paper);
}

.suggestion-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.suggestion-author {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 8px;
}

.suggestion-meta {
  font-size: 0.8rem;
  color: var(--rust);
  font-weight: 700;
}

.suggestion-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 16px 4px;
  border-top: 1px solid var(--paper-strong);
}

.suggestion-group-title:first-child {
  border-top: 0;
  padding-top: 4px;
}



.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1240px, calc(100% - 36px));
  margin: -40px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

.trust-strip div {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 20px;
  background: var(--surface);
}

.trust-strip strong {
  color: var(--sage-dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.storefront,
.catalog-shell,
.feature-band,
.sell-band {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.storefront {
  display: grid;
  gap: clamp(34px, 5vw, 56px);
  padding: clamp(12px, 2vw, 20px) 0 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.88fr 0.88fr;
  gap: 16px;
}

.promo-tile {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  color: #ffffff;
  background: linear-gradient(135deg, #24566f 0%, #17364a 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease;
}

.promo-tile:hover,
.promo-tile:focus-visible {
  box-shadow: var(--shadow-lg);
}

.promo-tile .eyebrow {
  color: var(--gold);
}

.promo-tile strong {
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.promo-tile span:last-child {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.promo-large {
  min-height: 280px;
  background: linear-gradient(135deg, var(--promo-green-start) 0%, var(--promo-green-end) 100%);
}

.promo-tile.warm {
  background: linear-gradient(135deg, var(--rust) 0%, var(--oxblood) 100%);
}

.product-shelf {
  display: grid;
  gap: 18px;
}

.shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shelf-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.shelf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-control {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-control:hover {
  background: var(--sage);
  color: #ffffff;
  border-color: var(--sage);
}

.carousel-control svg {
  width: 18px;
  height: 18px;
}

.shelf-link {
  min-height: 36px;
  padding: 0 16px;
  color: var(--sage);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.shelf-link:hover,
.shelf-link:focus-visible {
  color: #ffffff;
  background: var(--sage);
  border-color: var(--sage);
}

.product-row-wrapper {
  position: relative;
  width: 100%;
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--product-card-width);
  gap: var(--product-card-gap);
  overflow-x: auto;
  padding: 6px 2px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.product-row::-webkit-scrollbar {
  display: none;
}

.product-tile {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-snap-align: start;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Cover holds the hover/touch Quick Add control */
.cover-wrap {
  position: relative;
}

.cover-wrap .book-cover-container {
  height: 248px;
  border: 0;
  background: transparent;
  padding: 0;
}

.quick-add-slot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.quick-add-slot button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.quick-add-slot button:hover {
  background-color: var(--gold);
  transform: scale(1.06);
}

/* Desktop: reveal on hover. Touch (no hover): always visible. */
@media (hover: hover) {
  .quick-add-slot {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .product-tile:hover .quick-add-slot,
  .product-tile:focus-within .quick-add-slot {
    opacity: 1;
    transform: none;
  }
}

.card-format {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.card-list-price {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
}

.card-discount {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rust);
}


.product-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
}

.product-tile > .book-cover-container {
  height: 100%;
}

.product-copy .card-title-link strong {
  font-family: var(--commerce-title-font);
  font-size: 1.05rem;
  font-weight: var(--commerce-title-weight);
  color: var(--commerce-title-color);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title-link {
  text-decoration: none;
}

.card-title-link:hover strong {
  color: var(--rust);
  text-decoration: underline;
}

.product-copy .author {
  color: var(--commerce-author-color);
  font-family: var(--commerce-author-font);
  font-size: 0.85rem;
  font-weight: var(--commerce-author-weight);
}

.product-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: end;
  min-height: 92px;
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.product-actions .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.catalog-shell {
  padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 80px);
  scroll-margin-top: var(--anchor-offset);
}

.search-results-view .catalog-shell {
  padding-top: clamp(24px, 3vw, 42px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--paper-strong);
  padding-bottom: 12px;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.catalog-header {
  margin-bottom: 24px;
}

.search-results-view .catalog-header {
  margin-bottom: 18px;
}

.search-results-view .catalog-header h1 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.filters {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-block {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-block label,
.filter-block legend,
.sort-label {
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

select,
.filters input[type="range"],
.filters input[type="search"] {
  width: 100%;
}

.filters input[type="search"] {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.filters input[type="search"]:focus {
  border-color: var(--sage);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 71, 60, 0.1);
}

select {
  min-height: 40px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

select:focus {
  outline: none;
  border-color: var(--sage);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  accent-color: var(--rust);
  height: 6px;
  border-radius: 999px;
  background: var(--paper-strong);
  cursor: pointer;
}

#priceValue {
  color: var(--rust);
  font-weight: 700;
  text-align: right;
  font-size: 0.95rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
}

.checkbox-filter-list {
  display: grid;
  gap: 8px;
}

.filter-block .filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.filter-block .filter-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--sage);
  cursor: pointer;
}

.rating-star-filter {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-block .rating-star-option {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #c8bdae;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rating-star-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rating-star-option.is-filled {
  color: var(--gold);
}

.rating-star-option.is-selected,
.rating-star-option:has(input:focus-visible) {
  background: rgba(42, 71, 60, 0.08);
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(42, 71, 60, 0.08);
}

.catalog-main {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Custom view tabs (override default tab buttons for catalog) */
.view-tabs .tab-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.view-tabs .tab-button:hover,
.view-tabs .tab-button:focus-visible,
.view-tabs .tab-button.is-active {
  color: #ffffff;
  background: var(--sage);
  border-color: var(--sage);
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sort-label select {
  width: auto;
  min-width: 160px;
}

.book-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--product-card-min)), 1fr));
  justify-content: start;
  gap: var(--product-card-gap);
}

.book-submeta,
.product-submeta {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 0;
}

.cover-button {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  cursor: pointer;
  display: block;
  outline: none;
  box-shadow: none !important;
}

/* Shared layout with product-tile */

.book-cover-container {
  container-type: size;
  height: 190px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.book-cover {
  height: 100%;
  aspect-ratio: var(--book-aspect-ratio, 0.68);
  max-width: 100%;
  position: relative;
  display: grid;
  align-items: end;
  padding: 10cqh 8cqh;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  background: var(--cover-color, var(--sage));
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    3px 3px 10px rgba(22, 42, 34, 0.12),
    inset 1px 1px 0px rgba(255, 255, 255, 0.15),
    inset -1px -1px 0px rgba(0, 0, 0, 0.1);
}

.book-cover .cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.book-cover .cover-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22) 0px, rgba(255, 255, 255, 0.1) 3px, transparent 10px),
              linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 45%);
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  z-index: 4;
  pointer-events: none;
}




.cover-text {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3cqh;
  padding-left: 6cqh;
  pointer-events: none;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 11cqh;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-author {
  font-family: var(--font-sans);
  font-size: 6cqh;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  flex: 1;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--sage-dark);
  background: #eef4eb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.condition {
  color: #fffdf8;
  background: var(--blue);
  min-height: 20px;
  font-size: 0.68rem;
  padding: 0 6px;
  font-weight: 700;
}

.book-title {
  color: var(--commerce-title-color);
  font-family: var(--commerce-title-font);
  font-size: 1.06rem;
  font-weight: var(--commerce-title-weight);
  line-height: 1.22;
}

.book-author,
.book-notes {
  margin: 0;
  color: var(--commerce-author-color);
  font-family: var(--commerce-author-font);
  font-weight: var(--commerce-author-weight);
}

.book-notes {
  font-size: 0.92rem;
}

.book-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  margin-top: auto;
  width: 100%;
}

.price-line {
  display: grid;
  gap: 1px;
  min-width: 90px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ui-price {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--commerce-price-part-gap, 2px);
  color: var(--commerce-price-color);
  font-family: var(--commerce-price-font);
  font-weight: var(--commerce-price-weight);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}

.ui-price-prefix {
  align-self: baseline;
  margin-right: 2px;
  color: var(--commerce-price-prefix-color);
  font-size: var(--commerce-price-prefix-size, 0.78rem);
  font-weight: var(--commerce-price-prefix-weight);
  line-height: 1.1;
}

.ui-price-symbol {
  margin-top: var(--commerce-price-symbol-offset, 0.14em);
  font-size: var(--commerce-price-symbol-size, 0.72em);
  font-weight: var(--commerce-price-weight);
  line-height: 1;
}

.ui-price-dollars {
  color: inherit;
  font-family: inherit;
  font-size: var(--commerce-price-dollar-size, 1.15rem);
  font-weight: inherit;
  line-height: 0.95;
}

.ui-price-cents {
  margin-top: var(--commerce-price-cents-offset, 0.08em);
  font-size: var(--commerce-price-cents-size, 0.58em);
  font-weight: inherit;
  line-height: 1;
}

.ui-price--card {
  --commerce-price-dollar-size: 1.18rem;
  --commerce-price-cents-size: 0.58em;
  --commerce-price-prefix-size: 0.78rem;
  --commerce-price-weight: 700;
}

.ui-price--detail {
  --commerce-price-dollar-size: var(--commerce-price-detail-dollar-size);
  --commerce-price-cents-size: var(--commerce-price-detail-cent-size);
  --commerce-price-symbol-size: var(--commerce-price-detail-symbol-size);
  --commerce-price-symbol-offset: 0.2rem;
  --commerce-price-cents-offset: 0.18rem;
  --commerce-price-part-gap: 1px;
  --commerce-price-weight: 500;
}

.ui-price--buybox {
  --commerce-price-dollar-size: var(--commerce-price-buybox-dollar-size);
  --commerce-price-cents-size: var(--commerce-price-buybox-cent-size);
  --commerce-price-symbol-size: var(--commerce-price-buybox-symbol-size);
  --commerce-price-symbol-offset: 0.13rem;
  --commerce-price-cents-offset: 0.12rem;
  --commerce-price-part-gap: 1px;
  --commerce-price-weight: 500;
}

.price-prefix {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--commerce-price-prefix-color);
}

.price-val {
  font-family: var(--font-sans);
  color: var(--commerce-price-color);
  font-size: 1.15rem;
  font-weight: 800;
}

.stock {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  color: var(--sage-dark);
  background: #edf3ea;
  border: 1px solid rgba(73, 105, 92, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.small-action svg {
  width: 18px;
  height: 18px;
}

.small-action:hover,
.small-action:focus-visible {
  color: #fffdf8;
  background: var(--sage-dark);
}

.small-action.add {
  color: #fffdf8;
  background: var(--rust);
  border-color: var(--rust);
}

.small-action.add:hover,
.small-action.add:focus-visible {
  background: #8f412c;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 300px;
  padding: 36px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed rgba(73, 105, 92, 0.35);
  border-radius: var(--radius);
}

.empty-state p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.feature-band,
.sell-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(38px, 6vw, 64px);
  margin-bottom: 44px;
  background: var(--sage-dark);
  border-radius: var(--radius);
  color: #fffdf8;
  overflow: hidden;
}

.feature-band p,
.sell-band p {
  max-width: 560px;
  color: rgba(255, 253, 248, 0.78);
}

.mini-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Staff Picks Cards Redesign */
.staff-pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}

.staff-pick-card:hover {
  border-color: rgba(194, 89, 63, 0.35);
  box-shadow: var(--shadow);
}

.staff-pick-cover {
  width: 128px;
  flex-shrink: 0;
  align-self: center;
}

.staff-pick-cover .book-cover-container {
  height: 184px;
  border: 0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.staff-pick-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-family: var(--font-sans);
  color: var(--ink);
  width: 100%;
}

.staff-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--rust);
  margin-bottom: 6px;
  display: block;
}

.staff-pick-info h4 {
  font-family: var(--commerce-title-font);
  font-size: 1.08rem;
  font-weight: var(--commerce-title-weight);
  color: var(--commerce-title-color);
  margin: 0 0 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.staff-pick-info .author {
  font-size: 0.86rem;
  color: var(--commerce-author-color);
  font-family: var(--commerce-author-font);
  font-weight: var(--commerce-author-weight);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.staff-quote {
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.staff-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  width: 100%;
}

.staff-footer .price {
  font-size: 0.82rem;
  color: var(--commerce-price-prefix-color);
  font-family: var(--commerce-price-font);
}

.staff-footer .price strong {
  font-size: 1.05rem;
  color: var(--commerce-price-color);
  margin-left: 2px;
}

.staff-btn {
  height: 30px;
  padding: 0 16px;
  border-radius: 15px;
  background: var(--rust);
  border: 1px solid var(--rust);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.staff-btn:hover {
  background: #aa4d35;
  border-color: #aa4d35;
}

.sell-band {
  grid-template-columns: minmax(0, 1fr) auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
}

.sell-band p {
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: end;
  background: rgba(18, 25, 22, 0.48);
}

.cart-drawer.is-open,
body.cart-open .cart-drawer {
  display: flex;
}

.cart-panel {
  width: min(440px, 100%);
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: var(--surface);
  box-shadow: -18px 0 44px rgba(22, 42, 34, 0.16);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel.no-drawer-animation,
body.cart-open .cart-drawer:not(.is-open) .cart-panel,
body.cart-drawer-updating .cart-panel {
  animation: none;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.icon-only {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--sage);
  background: var(--paper-strong);
  border-radius: 50%;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.icon-only:hover,
.icon-only:focus-visible {
  color: #ffffff;
  background: var(--sage);
}

.shipping-progress-container {
  padding: 16px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.shipping-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.shipping-progress-bar {
  height: 8px;
  background: var(--paper-strong);
  border-radius: 999px;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
}

.cart-empty {
  align-self: center;
  display: grid;
  gap: 10px;
  padding: 36px 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cart-empty strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-strong);
}

.cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-cover-slot {
  width: 50px;
  align-self: start;
}

.cart-cover-slot .book-cover-container {
  width: 50px;
  height: 72px;
  padding: 3px;
  border-radius: 4px;
}

.cart-cover-slot .book-cover {
  border-radius: 2px 4px 4px 2px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

.cart-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.cart-title-row strong {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.cart-title-row span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sage);
}

.cart-author {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.cart-line-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-quantity-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stepper button {
  width: 24px;
  height: 24px;
  color: var(--sage-dark);
  background: var(--paper);
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  transition: background-color 0.15s ease;
}

.stepper button:hover {
  background-color: var(--paper-strong);
}

.stepper button:disabled {
  color: var(--muted);
  background: var(--paper-strong);
  cursor: not-allowed;
  opacity: 0.58;
}

.stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.remove-button {
  padding: 0;
  color: var(--commerce-link-action-muted-color);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.remove-button:hover {
  color: var(--rust);
  text-decoration: underline;
}

.cart-secondary-action {
  padding: 0;
  color: var(--commerce-link-action-color);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.cart-secondary-action:hover {
  color: var(--ink);
  text-decoration: underline;
}

.cart-removed-notice {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-strong);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cart-removed-notice strong {
  color: var(--link);
  font-weight: 700;
}

.cart-undo-link {
  padding: 0;
  color: var(--link);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.cart-undo-link:hover {
  color: var(--sage-dark);
  text-decoration: underline;
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-row.total {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

.checkout-button {
  width: 100%;
}

.cart-trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-page-main {
  max-width: 1000px;
  min-height: 60vh;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 0.94rem;
}

.cart-page-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2.2rem;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px;
}

.cart-items-section {
  display: grid;
  gap: 24px;
}

.cart-items-card,
.saved-for-later-section {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cart-items-heading,
.saved-for-later-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-items-heading h2,
.saved-for-later-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.cart-items-heading span,
.saved-for-later-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.cart-items-list {
  display: grid;
}

.cart-item--page {
  grid-template-columns: 72px minmax(0, 1fr) 112px;
  align-items: start;
  gap: 18px;
  padding: 18px 0;
  border-bottom-color: var(--line);
}

.cart-cover-slot--page {
  width: 72px;
}

.cart-cover-slot--page .book-cover-container {
  width: 72px;
  height: 108px;
  padding: 4px;
  border-radius: 5px;
}

.cart-cover-slot--page .book-cover {
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.cart-cover-slot--saved {
  width: 62px;
}

.cart-cover-slot--saved .book-cover-container {
  width: 62px;
  height: 92px;
  padding: 4px;
  border-radius: 5px;
}

.cart-item-details {
  display: grid;
  align-content: start;
  gap: var(--commerce-line-meta-gap);
  padding-top: 0;
}

.cart-item-details strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.28;
  margin-bottom: var(--commerce-line-title-gap);
}

.cart-item-details span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.22;
}

.cart-item-details .cart-quantity-meta {
  margin-top: var(--commerce-line-control-gap);
}

.cart-page-stepper {
  width: fit-content;
  background: #faf8f3;
}

.cart-page-stepper button {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.95rem;
}

.cart-page-stepper span {
  min-width: 30px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.cart-line-limit {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-actions {
  display: grid;
  align-content: start;
  align-items: flex-end;
  justify-items: end;
  gap: var(--commerce-line-control-gap);
  padding-top: 0;
}

.cart-item-actions strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.28;
}

.cart-line-actions--page {
  display: grid;
  justify-items: end;
  gap: var(--commerce-line-action-gap);
  margin-top: 18px;
}

.saved-lines {
  display: grid;
  gap: 14px;
}

.saved-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 140px;
  align-items: start;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-strong);
}

.saved-line:last-child {
  border-bottom: 0;
}

.saved-line-copy {
  display: grid;
  gap: var(--commerce-line-meta-gap);
  padding-top: 0;
}

.saved-line-copy strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.28;
  margin-bottom: var(--commerce-line-title-gap);
}

.saved-line-copy span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.22;
}

.saved-line-actions {
  display: grid;
  justify-items: end;
  gap: var(--commerce-line-control-gap);
  padding-top: 0;
}

.saved-line-actions strong {
  color: var(--ink);
  font-size: 1rem;
}

.saved-line-primary {
  width: auto;
  padding: 0;
  font-size: 0.82rem;
}

.saved-line-action-group {
  display: grid;
  justify-items: end;
  gap: var(--commerce-line-action-gap);
  margin-top: 14px;
}

.cart-page-empty {
  padding: 60px 0;
  text-align: center;
  background: #faf8f3;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cart-page-empty p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.25rem;
}

.cart-page-empty .primary-button {
  display: inline-block;
}

.cart-summary-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cart-summary-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.28rem;
}

.cart-summary-progress {
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.cart-summary-card .cart-row {
  font-size: 0.9rem;
}

.cart-summary-card .cart-row.total {
  margin-top: 4px;
  padding-top: 10px;
}

.cart-summary-card form {
  margin-top: 2px;
}

.cart-summary-progress .shipping-progress-text {
  color: var(--muted);
}

.cart-summary-progress .shipping-progress-bar {
  height: 6px;
  margin-top: 8px;
  background: var(--line);
  border-radius: 3px;
}

.cart-summary-progress-fill {
  background: var(--gold);
}

.checkout-button--page {
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 700;
}

.cart-page-trust-badges {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  text-align: center;
}

.cart-page-trust-badges span::before {
  content: "✓ ";
}

@media (max-width: 760px) {
  /* Header: search drops to its own full-width row, declutter the rest */
  .header-top-bar {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-inline: 16px;
  }

  .header-search-form {
    order: 1;
    flex: 1 1 100%;
    max-width: none;
  }

  .header-delivery-widget {
    display: none;
  }

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

  .cart-item--page {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .cart-cover-slot--page {
    width: 60px;
  }

  .cart-cover-slot--page .book-cover-container {
    width: 60px;
    height: 90px;
  }

  .cart-item-actions {
    grid-column: 2;
    align-items: flex-start;
    justify-items: start;
    padding-top: 0;
  }

  .cart-line-actions--page {
    justify-items: start;
    margin-top: 0;
  }

  .cart-quantity-meta {
    flex-wrap: wrap;
  }

  .saved-line {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cart-cover-slot--saved {
    width: 56px;
  }

  .cart-cover-slot--saved .book-cover-container {
    width: 56px;
    height: 82px;
  }

  .saved-line-actions {
    grid-column: 2;
    justify-items: start;
  }

  .saved-line-primary {
    width: auto;
  }
}

.checkout-body {
  background: #f4f5f2;
}

.checkout-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 18px 32px;
  color: #ffffff;
  background: var(--ink);
}

.checkout-brand {
  justify-self: start;
}

.checkout-header h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0;
}

.checkout-header-assurance {
  justify-self: end;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  font-size: 0.94rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.checkout-sections {
  display: grid;
  gap: 18px;
}

.checkout-section,
.checkout-place-order-band,
.checkout-help-section,
.checkout-summary {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.checkout-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.checkout-section h2,
.checkout-place-order-band h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.22rem;
  letter-spacing: 0;
}

.checkout-section p,
.checkout-place-order-band p,
.checkout-help-section p,
.checkout-summary p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-section a {
  color: var(--link);
  font-weight: 700;
}

.checkout-eyebrow {
  margin-bottom: 8px !important;
  color: var(--sage) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-status {
  flex: 0 0 auto;
  align-self: flex-start;
  color: var(--sage-dark);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-delivery-section {
  display: block;
}

.checkout-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.checkout-items-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.checkout-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(240px, 0.72fr);
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-line:last-child {
  border-bottom: 0;
}

.checkout-line-cover .book-cover-container {
  width: 96px;
  height: 140px;
  padding: 5px;
}

.checkout-line-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.checkout-line-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: var(--commerce-line-title-gap);
}

.checkout-line-title-row strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
  white-space: nowrap;
}

.checkout-line-copy p {
  margin: 0 0 var(--commerce-line-meta-gap);
  font-size: 0.9rem;
  line-height: 1.22;
}

.checkout-line-copy > strong {
  display: inline-block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.checkout-delivery-options {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-delivery-options legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.checkout-delivery-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #faf8f3;
}

.checkout-place-order-band {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
}

.checkout-place-order-button {
  width: 100%;
  border-radius: 999px;
}

.checkout-help-section {
  padding: 24px 28px;
}

.checkout-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.checkout-summary-lines {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.checkout-summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.checkout-summary-lines strong {
  color: var(--ink);
  text-align: right;
}

.checkout-summary-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 1.14rem;
  font-weight: 800;
}

.checkout-summary-note {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-summary-note span::before {
  content: "✓ ";
}

@media (max-width: 900px) {
  .account-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-page-heading--split {
    align-items: stretch;
    flex-direction: column;
  }

  .account-order-search {
    min-width: 0;
  }

  .checkout-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .checkout-brand,
  .checkout-header-assurance {
    justify-self: center;
  }

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

  .checkout-summary {
    position: static;
  }

  .checkout-line {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .checkout-line-cover .book-cover-container {
    width: 70px;
    height: 104px;
  }

  .checkout-delivery-options {
    grid-column: 1 / -1;
  }

  .checkout-place-order-band {
    grid-template-columns: 1fr;
  }
}

.book-modal {
  width: min(840px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.book-modal::backdrop {
  background: rgba(15, 26, 21, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 0.6fr);
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-content .book-cover-container {
  height: 340px;
  width: 100%;
  align-self: start;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
}

.modal-details {
  display: grid;
  gap: 16px;
  align-content: start;
}

.modal-details .icon-only {
  position: absolute;
  top: 20px;
  right: 20px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-strong);
}

/* Modal Tab System */
.modal-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.modal-tab-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.modal-tab-button:hover {
  color: var(--ink);
}

.modal-tab-button.is-active {
  color: var(--sage);
}

.modal-tab-button.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--sage);
}

.modal-tab-content {
  display: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.modal-tab-content.is-active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--paper-strong);
}

.specs-table tr:last-child {
  border-bottom: 0;
}

.specs-table td {
  padding: 8px 0;
  font-size: 0.88rem;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--muted);
  width: 35%;
}

.specs-table td:last-child {
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  color: #fffdf8;
  background: var(--sage-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(214, 168, 75, 0.82);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .catalog-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 74px;
  }

  .hero-search {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .hero-search .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero,
  .trust-strip,
  .catalog-layout,
  .feature-band,
  .sell-band,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -20px;
  }

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

  .filters .secondary-button,
  .filters fieldset {
    grid-column: 1 / -1;
  }

  .section-heading,
  .toolbar {
    align-items: start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 68px;
  }

  .site-header .brand span:last-child {
    display: none;
  }

  .site-header .brand .brand-text {
    display: inline;
  }

  .auth-header,
  .account-topbar {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .auth-brand {
    justify-content: center;
  }

  .auth-brand span:last-child {
    display: inline;
  }

  .auth-header-link,
  .account-topbar-nav,
  .account-topbar-nav a,
  .account-topbar-nav form,
  .account-topbar-nav button,
  .account-topbar-user {
    width: 100%;
  }

  .account-topbar-user {
    text-align: center;
  }

  .account-topbar-nav {
    flex-direction: column;
  }

  .account-menu {
    position: static;
  }

  .account-menu-panel,
  .account-menu-panel--guest {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .account-menu-panel::before,
  .account-menu-panel--guest::before {
    display: none;
  }

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

  .account-menu-columns section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    padding-left: 0;
  }

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

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

  .account-setting-row > a,
  .account-setting-row > span {
    width: 100%;
  }

  .account-order-search {
    flex-direction: column;
  }

  .account-form-grid,
  .account-form-grid--address {
    grid-template-columns: 1fr;
  }

  .icon-button {
    min-width: 46px;
    padding: 0 11px;
  }

  .icon-button > span:not(.button-icon):not(.cart-count) {
    display: none;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .text-chip {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .filters,
  .mini-shelf {
    grid-template-columns: 1fr;
  }

  .book-footer {
    grid-template-columns: 1fr;
  }

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

  .small-action {
    width: 100%;
  }

  .sort-label {
    width: 100%;
    align-items: start;
    flex-direction: column;
  }

  .sort-label select {
    width: 100%;
  }

  .feature-band,
  .sell-band {
    padding: 28px 20px;
  }

  .cart-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Book Details View Page */
.book-details-view {
  width: min(1440px, calc(100% - clamp(32px, 4vw, 72px)));
  padding: 24px 0 56px;
  max-width: none;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}

.details-nav {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.back-link:hover {
  color: var(--sage-dark);
  background: #edf3ea;
  border-color: rgba(73, 105, 92, 0.3);
}

.back-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  }
}

.details-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-left .book-cover-container {
  height: 380px;
  width: 100%;
  max-width: 320px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-sizing: border-box;
}

.details-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.details-meta .pill {
  font-size: 0.8rem;
  font-weight: 700;
}

.details-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.details-author {
  font-family: var(--commerce-author-font);
  font-size: 1.12rem;
  font-weight: var(--commerce-author-weight);
  color: var(--commerce-author-color);
  margin: 0;
}

.details-author span {
  font-weight: var(--commerce-title-weight);
  color: var(--commerce-title-color);
}

.details-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-rating .stars {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.details-rating .rating-text {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.details-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #faf8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .details-quick-specs {
    grid-template-columns: 1fr;
  }
}

.details-quick-specs span strong {
  color: var(--ink);
}

.details-description h2,
.details-copies-section h2,
.details-tabs-section h2 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.details-description p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.details-copies-section {
  overflow: hidden;
}

.details-copies-section .section-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -6px 0 16px;
}

/* Copies Table */
.copies-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #ffffff;
}

.copies-table th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
}

.copies-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: middle;
}

.copies-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

.copies-table td.copy-price {
  color: var(--sage-dark);
  font-size: 1.05rem;
}

.copies-table .add {
  min-width: 110px;
  height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.details-tabs-section {
  margin-top: 0;
}

.details-tabs-section .modal-tabs {
  margin-bottom: 16px;
}

/* 3-Column Product Details Grid */
.details-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .details-grid-3col {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr) minmax(280px, 320px);
    gap: 24px;
  }
}

.product-detail-shell {
  padding: clamp(16px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(218, 210, 196, 0.9);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(36, 50, 44, 0.08);
}

/* Column 1: Media & Thumbnails */
.details-left-media {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.thumbnail-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 48px;
  flex-shrink: 0;
}

.thumb-btn {
  width: 48px;
  height: 48px;
  padding: 2px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.thumb-btn:hover,
.thumb-btn.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.thumb-color-block {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15);
}

.thumb-color-block.spine {
  width: 12px;
  height: 100%;
}

.thumb-color-block.back {
  opacity: 0.7;
}

.main-cover-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 18px;
  background: #f8f4ea;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.main-cover-wrapper .book-cover-container {
  height: 380px;
  width: 100%;
  max-width: 280px;
}

/* Column 2: Specs & Metadata */
.details-middle-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-info-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--shadow-sm);
}

.detail-summary-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.details-brand-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
  color: var(--muted);
}

.details-brand-link a {
  color: var(--sage-dark);
  text-decoration: none;
  font-weight: 700;
}

.details-brand-link a:hover {
  text-decoration: underline;
}

.details-price-row {
  display: flex;
  align-items: flex-start;
  margin-top: 0;
}

.discount-badge {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: #CC0C39;
  margin-right: 8px;
}

.list-price-row {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -4px;
}

.list-price-strike {
  text-decoration: line-through;
}

/* Column 3: Sticky Buy Box Card */
.details-right-buybox {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.buybox-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buybox-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prime-badge-icon {
  color: #00A8E1;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.buybox-delivery {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.delivery-highlight {
  font-weight: 700;
}

.delivery-time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.buybox-stock-status {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.in-stock {
  color: #007600;
}

.low-stock {
  color: #B12704;
}

.buybox-condition-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--commerce-author-font);
}

.buybox-condition-wrapper label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--commerce-author-color);
  text-transform: uppercase;
}

.buybox-option-text {
  color: var(--commerce-title-color);
  font-size: 0.95rem;
  font-weight: var(--commerce-title-weight);
}

.details-option-title {
  margin: 0 0 12px;
  color: var(--commerce-title-color);
  font-family: var(--commerce-author-font);
  font-size: 1.15rem;
  font-weight: var(--commerce-title-weight);
}

.swatches-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-format {
  display: block;
  color: var(--commerce-title-color);
  font-size: 0.95rem;
  font-weight: var(--commerce-title-weight);
}

.swatch-price {
  display: block;
  margin-top: 2px;
  color: var(--commerce-author-color);
  font-size: 0.8rem;
  font-weight: var(--commerce-author-weight);
}

.buybox-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.buybox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buybox-btn {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1px solid;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.buybox-btn.add-to-stack {
  background: var(--btn-add-bg);
  border-color: var(--btn-add-border);
  color: var(--btn-add-color);
}

.buybox-btn.add-to-stack:hover {
  background: var(--btn-add-hover-bg);
  border-color: var(--btn-add-border);
}

.buybox-btn.buy-now {
  background: var(--btn-buy-bg);
  border-color: var(--btn-buy-border);
  color: var(--btn-buy-color);
}

.buybox-btn.buy-now:hover {
  background: var(--btn-buy-hover-bg);
  border-color: var(--btn-buy-border);
}

.buybox-merchant-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 10px;
}

.merchant-row {
  display: flex;
}

.merchant-label {
  width: 90px;
}

.merchant-value {
  color: var(--ink);
  font-weight: 500;
}

.location-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  margin-left: 0;
}

.arrow-down {
  font-size: 0.65rem;
  color: #9ca3af;
  margin-left: 2px;
}

.book-details-view > .product-shelf {
  margin-top: 24px;
  padding: clamp(18px, 2vw, 24px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1023px) {
  .details-right-buybox {
    position: static;
  }
}

/* Amazon-Style Hero Carousel */
.hero-amazon-carousel {
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 350px);
  overflow: hidden;
}

.carousel-track-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background: var(--bg-grad, #1B352B);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 10vw, 120px) 56px;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-content {
  max-width: 500px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  animation: slideUpFade 0.6s ease-out;
}

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

.slide-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.slide-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
}

.slide-content p {
  font-size: 0.92rem;
  color: #e5e7eb;
  margin: 0 0 18px;
  line-height: 1.45;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  background: var(--gold);
  color: #111A17;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 21px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.slide-cta:hover {
  background: #f59e0b;
}

.carousel-control-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.2s ease;
}

.carousel-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-control-btn.prev {
  left: 0;
}

.carousel-control-btn.next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.carousel-dots {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel-dots .dot.active {
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Hero Overlay Grid Cards */
.hero-overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: min(1240px, calc(100% - 48px));
  margin: -54px auto 32px;
  position: relative;
  z-index: 20;
}

.overlay-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.overlay-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.browse-button-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 1;
}

.hero-overlay-grid .overlay-card:nth-child(-n+2) .card-grid-4 {
  grid-template-columns: 1fr;
  gap: 8px;
}

.grid-item-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  outline: none;
}

.grid-item-link:hover span {
  color: var(--sage-dark);
  text-decoration: underline;
}

.hero-overlay-grid .overlay-card:nth-child(-n+2) .grid-item-link span {
  display: none;
}

.grid-img-placeholder {
  height: 80px;
  background: #f3f4f6;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  width: 100%;
}

.browse-button-list .grid-img-placeholder {
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-align: center;
}

.hero-overlay-grid .overlay-card:nth-child(-n+2) .card-grid-4 .grid-img-placeholder {
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-align: center;
}

.grid-item-link:hover .grid-img-placeholder {
  transform: scale(1.03);
}

.grid-img-placeholder.fiction { background: #dce2f9; }
.grid-img-placeholder.mystery { background: #fadad8; }
.grid-img-placeholder.history { background: #f6e6cd; }
.grid-img-placeholder.cookbooks { background: #d0edd4; }
.grid-img-placeholder.science-fiction { background: #d7edf0; }
.grid-img-placeholder.memoir { background: #efe0f2; }

.grid-img-placeholder.price-5 { background: #ebdcf9; font-weight: 700; color: #6d28d9; }
.grid-img-placeholder.price-10 { background: #dae8fc; font-weight: 700; color: #1d4ed8; }
.grid-img-placeholder.price-15 { background: #fedeb7; font-weight: 700; color: #c2410c; }
.grid-img-placeholder.price-22 { background: #d0f0c0; font-weight: 700; color: #15803d; }

.card-bottom-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: none;
  margin-top: 16px;
  align-self: flex-start;
}

.card-bottom-link:hover {
  text-decoration: underline;
}

/* Single Feature Card */
.single-feature-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.feature-tile-cover {
  width: 90px;
  flex-shrink: 0;
  margin: 0 auto;
}

.feature-tile-cover .book-cover-container {
  height: 135px;
}

.feature-tile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
  color: var(--ink);
  width: 100%;
  align-items: center;
}

.feature-tile-info h4 {
  font-family: var(--commerce-title-font);
  font-size: 0.95rem;
  font-weight: var(--commerce-title-weight);
  color: var(--commerce-title-color);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.feature-tile-info .author {
  font-size: 0.78rem;
  color: var(--commerce-author-color);
  font-family: var(--commerce-author-font);
  font-weight: var(--commerce-author-weight);
  margin: 0;
}

/* Trade in steps widget */
.trade-in-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.trade-in-steps .step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-in-steps .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sage-dark);
  flex-shrink: 0;
}

.trade-in-steps .step-txt {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* Double CTA Card Buttons */
.card-double-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.card-btn {
  width: 100%;
  height: 32px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.card-btn.add-btn {
  background: var(--btn-add-bg);
  border-color: var(--btn-add-border);
  color: var(--btn-add-color);
}

.card-btn.add-btn:hover {
  background: var(--btn-add-hover-bg);
  border-color: var(--btn-add-border);
}

.card-btn.buy-now-btn {
  background: var(--btn-buy-bg);
  border-color: var(--btn-buy-border);
  color: var(--btn-buy-color);
}

.card-btn.buy-now-btn:hover {
  background: var(--btn-buy-hover-bg);
  border-color: var(--btn-buy-border);
}

/* Inherits product-tile typography and layouts */

.stars-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.stars-rating .stars-val {
  color: #ffa41c;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.stars-rating .rating-count {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #007185;
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.price-row .price {
  font-family: var(--commerce-price-font);
}

.price-row .price-prefix {
  font-size: 0.78rem;
  color: var(--commerce-price-prefix-color);
}

.price-row .price-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--commerce-price-color);
}

.condition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.shipping-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.prime-icon {
  color: #00A8E1;
  font-weight: 800;
}

/* Search Hub panel inside suggestions dropdown */
.search-hub-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0;
}

.searchhub-section {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  padding: 0 16px 14px;
}

.searchhub-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.searchhub-section-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.searchhub-recent-grid {
  display: flex;
  gap: 12px;
}

.searchhub-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  flex: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.searchhub-recent-item:hover {
  background: #f3f4f6;
  border-color: rgba(217, 119, 6, 0.2);
}

.searchhub-mini-cover {
  width: 32px;
  height: 44px;
  border-radius: 2px;
  background-color: var(--cover-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.searchhub-recent-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  overflow: hidden;
}

.searchhub-recent-text .title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchhub-recent-text .price {
  font-size: 0.72rem;
  color: var(--sage-dark);
  font-weight: 600;
}

.searchhub-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-grid-btn {
  height: 32px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.category-grid-btn:hover {
  background: var(--gold);
  color: #111A17;
  border-color: var(--gold);
}

.searchhub-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.history-item:hover {
  background: #f3f4f6;
}

.history-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
}

.history-icon {
  opacity: 0.5;
}

.history-remove {
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.history-remove:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #cc0000;
}

/* Stacking Featured Deal Action Buttons Vertically */
.feature-tile-info .card-double-buttons {
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.feature-tile-info .card-double-buttons .card-btn {
  width: 100% !important;
  height: 30px !important;
}

/* Stack Builder Card Styling */
.shipping-progress-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.progress-status-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.progress-bar-wrapper {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.progress-bar-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}

.progress-subtext {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--muted);
  margin: -4px 0 0;
}

.quick-filler-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quick-add-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-filler-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filler-book-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filler-book-row:hover {
  background: #f3f4f6;
  border-color: rgba(217, 119, 6, 0.15);
}

.filler-cover-mini {
  width: 28px;
  height: 40px;
  border-radius: 2px;
  background-color: var(--cover-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.filler-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  overflow: hidden;
  font-family: var(--font-sans);
}

.filler-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.filler-price {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--commerce-price-color);
  font-family: var(--commerce-price-font);
}

.filler-add-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #ffd814;
  border: 1px solid #fcd200;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0c0d0d;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.filler-add-btn:hover {
  background: #f7ca00;
}

/* Header Language Selector Widget Styles */
.language-selector-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.15s ease;
  height: 38px;
  min-width: 50px;
}

.language-selector-widget:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.language-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.language-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Empty State Hidden Display Correction */
.empty-state[hidden] {
  display: none !important;
}

/* Toolbar Layout Enhancements */
.toolbar-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.all-items-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: var(--sage);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 14px;
}

.result-count-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* E-commerce footer Styling */
.site-footer {
  background: #232f3e; /* Amazon dark footer blue */
  color: #eaeded;
  font-family: var(--font-sans);
  margin-top: 56px;
}

.back-to-top-btn {
  display: block;
  text-align: center;
  padding: 15px 0;
  background: #37475a;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.back-to-top-btn:hover {
  background: #485769;
}

.footer-links-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-column h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: #DDD;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-column a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.footer-middle-bar {
  border-top: 1px solid #3a4553;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

@media (max-width: 600px) {
  .footer-middle-bar {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-logo {
  color: #FFFFFF !important;
}

.footer-selectors {
  display: flex;
  gap: 12px;
}

.footer-selector {
  border: 1px solid #848688;
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #CCC;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-selector:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.footer-copyright-bar {
  background: #131a22; /* Amazon bottom sub-footer black */
  padding: 30px 24px;
  text-align: center;
  font-size: 0.74rem;
  color: #999;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #CCC;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.copyright-text {
  margin: 0;
}

/* Swatch Option Selectors */
.swatch-btn {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.swatch-btn:hover {
  border-color: var(--muted);
  background: var(--light-surface);
}

.swatch-btn.is-active {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(194, 89, 63, 0.05);
  box-shadow: 0 0 0 1px var(--rust);
}

/* HTMX Loading Feedbacks */
.card-btn.htmx-request,
.primary-button.htmx-request,
.small-action.htmx-request {
  opacity: 0.6 !important;
  pointer-events: none !important;
  position: relative !important;
  color: transparent !important; /* Hide text while loading */
}

.card-btn.htmx-request::after,
.primary-button.htmx-request::after,
.small-action.htmx-request::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: swatch-spin 0.6s linear infinite;
}

/* For dark text buttons, make spinner border dark */
.card-btn.add-btn.htmx-request::after,
.small-action.htmx-request::after {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--sage-dark);
}

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