:root {
  color-scheme: light;
  --ink: #191816;
  --muted: #746f68;
  --line: #e4dfd7;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #2f6f5e;
  --accent-strong: #174f41;
  --warm: #ba6d43;
  --soft: #f1ece4;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-chrome {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
}

.shop-top-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 7px clamp(16px, 4vw, 42px);
  background: #050505;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.shop-top-bar a {
  justify-self: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-top-bar .gift-certificate-link {
  font-size: 0.98rem;
  font-weight: 900;
}

.shop-top-bar span:first-child {
  min-width: 0;
}

.store-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: right;
}

.store-status-text {
  display: grid;
  gap: 1px;
}

.store-status-subline {
  font-size: 0.68rem;
  font-weight: 700;
}

.store-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.store-status.is-open {
  color: #8be29e;
}

.store-status.is-closed {
  color: #f2b6ad;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.brand-logo {
  width: clamp(128px, 11vw, 190px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  font-size: 0.95rem;
  min-width: 0;
}

.main-nav > a,
.nav-group > a,
.header-icon-link {
  border-radius: 8px;
  padding: 10px 12px;
}

.main-nav > a:hover,
.nav-group:hover > a,
.header-icon-link:hover {
  background: var(--soft);
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(31, 28, 24, 0.12);
}

.nav-menu a {
  display: block;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
}

.nav-menu a:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: block;
}

.nav-group.menu-dismissed .nav-menu {
  display: none;
}

.tags-menu {
  max-height: 320px;
  overflow: auto;
}

.header-icon-link {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.header-action-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  pointer-events: none;
}

.header-count,
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.site-search {
  position: relative;
  width: clamp(170px, 17vw, 260px);
  min-width: 150px;
}

.site-search input {
  min-height: 42px;
  padding: 10px 44px 10px 13px;
  background: var(--panel);
}

.site-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 34px;
  min-height: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.site-search button::before {
  width: 13px;
  height: 13px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.site-search button::after {
  position: absolute;
  width: 8px;
  height: 2px;
  margin-top: 14px;
  margin-left: 14px;
  border-radius: 2px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.site-search button:hover {
  background: var(--soft);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.account-menu summary:hover,
.account-menu[open] summary {
  background: var(--soft);
}

.profile-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  flex: 0 0 auto;
}

.profile-status {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #a13c2f;
}

.signed-in .profile-status {
  background: var(--accent);
}

.signed-out .profile-status::before,
.signed-out .profile-status::after {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.signed-out .profile-status::before {
  transform: rotate(45deg);
}

.signed-out .profile-status::after {
  transform: rotate(-45deg);
}

.signed-in .profile-status::before {
  position: absolute;
  top: 1px;
  left: 2px;
  width: 4px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(45deg);
}

.account-name {
  display: none;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(31, 28, 24, 0.12);
}

.account-dropdown a {
  border-radius: 6px;
  padding: 10px;
  color: var(--muted);
}

.account-dropdown a:hover {
  background: var(--soft);
  color: var(--ink);
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 28px;
  align-items: end;
  padding: clamp(34px, 6vw, 82px) clamp(16px, 4vw, 42px) 28px;
}

.shop-hero h1,
.empty-state h1,
.cart-page h1,
.detail-panel h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-hero p,
.detail-description,
.empty-state p,
.checkout-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(16px, 4vw, 42px) 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.toolbar a {
  color: var(--accent-strong);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 22px;
  padding: 0 clamp(16px, 4vw, 42px) 54px;
}

.catalog-shell.has-filters {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 42px) 54px;
}

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

.catalog-shell.has-filters .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  padding: 0;
}

.filter-panel {
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.filter-panel form {
  display: grid;
  gap: 14px;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.filter-panel-header a {
  color: var(--accent-strong);
  font-weight: 800;
}

.filter-section {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 14px;
  background: transparent;
}

.filter-section legend {
  padding: 0 0 8px;
}

.filter-section label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
}

.filter-section input {
  width: 18px;
  margin-top: 3px;
}

.filter-section span {
  min-width: 0;
}

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

.filter-more summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
  list-style-position: inside;
}

.filter-more-options {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.load-more-status {
  margin: -28px clamp(16px, 4vw, 42px) 54px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ebe8e1;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.load-more-sentinel {
  height: 1px;
  margin-bottom: 54px;
}

.product-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-card > a {
  display: grid;
  gap: 12px;
}

.image-stack {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: var(--soft);
}

.image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 220ms ease;
}

.secondary-image {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .secondary-image {
  opacity: 1;
}

.product-card:hover .primary-image {
  transform: scale(1.025);
}

.product-card.is-sold-out .image-stack img {
  filter: grayscale(0.35);
  opacity: 0.62;
}

.product-card.is-sold-out .favorite-product-display {
  display: grid;
  gap: 12px;
}

.sold-out-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.25rem;
  cursor: pointer;
}

.heart.active {
  background: var(--accent);
  color: #fff;
}

.favorite-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
}

.favorite-form .heart {
  position: static;
  padding: 0;
}

.product-meta {
  display: grid;
  gap: 3px;
  min-height: 68px;
}

.product-meta span {
  color: var(--muted);
}

.price {
  font-weight: 800;
}

.promo-label {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.promo-label--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(25, 20, 18, 0.14);
}

.promo-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--ink);
  font-weight: 800;
}

.promo-price del {
  color: var(--muted);
  font-weight: 600;
}

.promo-price strong,
.promo-price span {
  color: var(--accent);
}

.product-card.skeleton {
  min-height: 420px;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--soft), #fff, var(--soft));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(18px, 4vw, 42px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.gallery-frame {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(5, 5, 5, 0.9);
}

.image-viewer-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.image-viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.image-viewer-close,
.image-viewer-nav {
  position: fixed;
  z-index: 101;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.image-viewer-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.55rem;
}

.image-viewer-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  font-size: 2.1rem;
  transform: translateY(-50%);
}

.image-viewer-nav--previous {
  left: 18px;
}

.image-viewer-nav--next {
  right: 18px;
}

.detail-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.detail-panel h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
}

.buy-box,
.checkout-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.buy-box strong {
  font-size: 1.55rem;
}

.promo-price--large strong {
  font-size: 1.55rem;
}

label {
  font-weight: 700;
}

select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.button,
button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.58;
}

.cart-message {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.cart-page,
.checkout-page,
.account-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
}

.cart-page > div:first-child,
.checkout-heading {
  grid-column: 1 / -1;
}

.account-page.single {
  grid-template-columns: minmax(0, 680px);
}

.account-wide {
  grid-column: 1 / -1;
}

.account-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.favorite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.favorite-list a,
.button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel);
  font-weight: 800;
}

.cart-lines {
  display: grid;
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}

.cart-line img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.cart-line div {
  display: grid;
  gap: 4px;
}

.cart-line span {
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
}

.checkout-panel {
  align-self: start;
}

.checkout-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-form {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.checkout-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel);
}

.checkout-login-prompt .button {
  flex: 0 0 auto;
}

.checkout-form fieldset,
.checkout-form label,
.checkout-form .form-row,
.checkout-form input,
.checkout-form textarea,
.checkout-page .order-summary {
  min-width: 0;
}

.checkout-page .order-summary .summary-line > span,
.checkout-page .order-summary .summary-total > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-page .order-summary .summary-line > strong,
.checkout-page .order-summary .summary-total > strong {
  flex-shrink: 0;
}

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

legend {
  padding: 0 6px;
  font-weight: 800;
}

.checkout-form label {
  display: grid;
  gap: 7px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkout-panel .cart-delivery-options,
.cart-delivery-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

.cart-warning {
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #fff7df;
  color: #7a5200;
  font-size: 0.95rem;
}

.delivery-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.delivery-option input {
  width: 18px;
  margin-top: 3px;
}

.delivery-option__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.delivery-option__content span:last-child {
  text-align: right;
  white-space: nowrap;
}

.selected-delivery-method {
  margin: 0;
}

.shop-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 35, 35, 0.34);
}

.shop-popup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  width: min(760px, 100%);
  max-height: min(82vh, 620px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.shop-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 34px;
  cursor: pointer;
  appearance: none;
}

.shop-popup__close:hover {
  border-color: #d1cabf;
  background: var(--soft);
}

.shop-popup__media {
  min-height: 300px;
  background: #f4f1ed;
}

.shop-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-popup__content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 48px 42px 40px;
}

.shop-popup__content h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
}

.shop-popup__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shop-popup--text-only {
  grid-template-columns: 1fr;
  width: min(540px, 100%);
}

.checkout-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.checkout-choice input {
  width: 18px;
  margin-top: 3px;
}

.checkout-choice span,
.checkout-choice small {
  display: block;
}

.checkout-choice small,
.saved-address-note {
  color: var(--muted);
}

.saved-address-note {
  margin: 0;
}

input,
textarea,
select {
  width: 100%;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.form-row.name-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-row.street-row {
  grid-template-columns: minmax(0, 7fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
}

.form-error,
.validation-message {
  margin: 0;
  color: #a13c2f;
  font-weight: 700;
}

.order-summary h2 {
  margin: 0;
  font-size: 1.15rem;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.summary-line small {
  color: var(--muted);
}

.summary-promo {
  display: block;
  margin-top: 3px;
  color: var(--accent) !important;
  font-weight: 800;
}

.gift-certificate-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  padding: 38px 28px 70px;
}

.gift-certificate-form {
  max-width: 760px;
}

.gift-certificate-form h1 {
  margin: 0 0 26px;
  font-size: 2.6rem;
  line-height: 1.05;
}

.gift-certificate-preview {
  padding-top: 42px;
}

.gift-card-preview {
  aspect-ratio: 1.42;
  border: 1px solid #ded6ca;
  background: #f7f4ef;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #141414;
}

.gift-card-preview span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-card-preview strong {
  font-size: 2.4rem;
}

.gift-card-preview p,
.gift-card-preview small {
  margin: 0;
}

.gift-cart-thumb {
  width: 68px;
  height: 90px;
  border: 1px solid #ded6ca;
  background: #f7f4ef;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.account-order-link {
  color: inherit;
  text-decoration: none;
}

.account-order-link:hover {
  color: var(--accent-strong);
}

.summary-total {
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.1rem;
}

.order-confirmation {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--panel);
}

.order-confirmation h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.empty-state {
  display: grid;
  gap: 14px;
  max-width: 720px;
  padding: clamp(34px, 8vw, 92px) clamp(16px, 4vw, 42px);
}

.empty-state.inline {
  max-width: none;
  padding: 24px 0;
}

.site-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
  color: var(--ink);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.info-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: clamp(26px, 5vw, 58px) clamp(16px, 4vw, 42px) 54px;
}

.info-page.narrow {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.info-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--panel);
}

.info-panel h1,
.info-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.info-panel h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.info-panel h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-lines {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.google-map {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.google-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 460px);
  border: 0;
}

.status-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-heading::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-heading.is-open {
  color: var(--accent-strong);
}

.status-heading.is-closed {
  color: var(--warm);
}

.opening-hours {
  display: grid;
  gap: 0;
  margin: 0;
}

.opening-hours div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.opening-hours div:last-child {
  border-bottom: 0;
}

.opening-hours dt {
  font-weight: 800;
}

.opening-hours dd {
  margin: 0;
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-message {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.form-message.success {
  background: #e4f4e8;
  color: #1f6b32;
}

.form-message.error {
  background: #f8e8e1;
  color: #8a3a20;
}

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

.terms-tabs {
  display: grid;
  gap: 18px;
}

.terms-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tab-list label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-panel {
  display: none;
  max-width: 920px;
  line-height: 1.7;
}

.tab-panel h2 {
  margin-bottom: 8px;
}

#terms-shipping:checked ~ .tab-list label[for="terms-shipping"],
#terms-payment:checked ~ .tab-list label[for="terms-payment"],
#terms-return:checked ~ .tab-list label[for="terms-return"],
#terms-general:checked ~ .tab-list label[for="terms-general"] {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

#terms-shipping:checked ~ .tab-panel.shipping,
#terms-payment:checked ~ .tab-panel.payment,
#terms-return:checked ~ .tab-panel.returns,
#terms-general:checked ~ .tab-panel.general {
  display: grid;
  gap: 12px;
}

@media (max-width: 980px) {
  .shop-top-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .store-status,
  .shop-top-bar a {
    justify-self: center;
  }

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

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-search {
    width: clamp(180px, 32vw, 260px);
  }

  .shop-hero,
  .product-detail,
  .cart-page,
  .checkout-page {
    grid-template-columns: 1fr;
  }

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

  .catalog-shell.has-filters {
    grid-template-columns: 1fr;
  }

  .gift-certificate-page {
    grid-template-columns: 1fr;
  }

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

  .gift-certificate-preview {
    padding-top: 0;
  }

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

  .filter-panel {
    position: static;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .main-nav {
    grid-row: 3;
  }

  .site-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .brand-logo {
    width: 128px;
  }

  .account-name {
    max-width: 86px;
  }

  .checkout-choice-list,
  .checkout-form .form-row,
  .form-row.name-row,
  .form-row.street-row {
    grid-template-columns: 1fr;
  }

  .checkout-login-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .catalog-shell.has-filters .product-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .shop-hero h1,
  .empty-state h1,
  .cart-page h1,
  .detail-panel h1 {
    font-size: 2.15rem;
  }

  .cart-line {
    grid-template-columns: 68px 1fr auto;
  }

  .cart-line img {
    width: 68px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-popup {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }

  .shop-popup__media {
    min-height: 220px;
  }

  .shop-popup__content {
    padding: 40px 24px 28px;
  }
}

/* Keep the desktop navigation inline; use the same links in the mobile menu. */
.shop-navigation {
  display: contents;
}

.mobile-menu-toggle,
.mobile-menu-heading,
.mobile-menu-extras {
  display: none;
}

@media (max-width: 980px) {
  .shop-top-bar,
  .site-footer,
  .toolbar,
  .catalog-shell > .filter-panel {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 42px minmax(0, 1fr) repeat(3, 42px);
    gap: 12px 8px;
    padding: 12px 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand-logo {
    width: clamp(80px, 20vw, 128px);
    max-height: 48px;
  }

  .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }

  .header-actions {
    display: contents;
  }

  .header-actions > .header-icon-link,
  .header-actions > .account-menu {
    grid-row: 1;
  }

  .favorites-link { grid-column: 4; }
  .account-menu { grid-column: 5; }
  .cart-link { grid-column: 6; }

  .account-name { display: none; }

  .header-actions > .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }

  .shop-navigation {
    display: none;
  }

  .shop-navigation:popover-open {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(390px, 100%);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: var(--paper);
    color: var(--ink);
  }

  .shop-navigation::backdrop {
    background: rgb(0 0 0 / 35%);
  }

  .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .mobile-menu-heading button {
    min-width: 42px;
    min-height: 42px;
  }

  .shop-navigation .main-nav,
  .mobile-menu-extras,
  .mobile-menu-extras nav {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .shop-navigation .nav-group > a,
  .mobile-menu-extras nav a {
    display: block;
    padding: 12px;
  }

  .shop-navigation .nav-menu {
    display: grid;
    position: static;
    min-width: 0;
    max-height: none;
    margin-left: 12px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
  }

  .mobile-menu-extras {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .mobile-menu-extras .filter-panel {
    max-height: none;
    overflow: visible;
    margin: 12px 0;
  }

  .product-grid,
  .catalog-shell.has-filters .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .product-card { min-width: 0; overflow-wrap: anywhere; }
}

.mobile-category-toggle,
.nav-menu .mobile-category-all {
  display: none;
}

@media (max-width: 980px) {
  .shop-navigation .nav-group > .desktop-category-link {
    display: none;
  }

  .mobile-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mobile-category-toggle:hover,
  .mobile-category-toggle[aria-expanded="true"] {
    background: var(--soft);
  }

  .shop-navigation .nav-group > .nav-menu {
    display: none;
  }

  .shop-navigation .nav-group.is-expanded > .nav-menu {
    display: grid;
  }

  .shop-navigation .nav-menu .mobile-category-all {
    display: block;
    font-weight: 700;
  }
}

.voucher-redemption { display: block !important; padding: 1rem 0; border-top: 1px solid #ddd; }
.voucher-actions, .voucher-entry { display: grid !important; gap: .6rem; }
.voucher-entry { margin-top: .8rem; }
.voucher-entry input { width: 100%; min-width: 0; }
.voucher-selected { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; overflow-wrap: anywhere; }
.voucher-selected strong { display: block; }
.voucher-note { font-size: .85rem; }
