.mobile-navigation {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-navigation a { display: block; padding: .75rem; }
.mobile-navigation a[aria-current] { color: var(--brand-leaf); font-weight: 700; }
.site-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 20px 80px #0003;
}
.site-dialog::backdrop { background: #12251999; }
.cart-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(28rem, 100%);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.cart-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: cart-slide-in 240ms ease-out;
}
.cart-drawer > * { flex-shrink: 0; }
.cart-drawer .cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 1.5rem 0 0;
}
.cart-drawer::backdrop {
  background: rgb(20 30 16 / 40%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cart-drawer .dialog-heading {
  padding-bottom: 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.cart-brand { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cart-drawer .dialog-heading h2 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.875rem; line-height: 1.2; margin: 0; outline: none; }
.cart-drawer .dialog-close { display: grid; place-items: center; border: 0; background: transparent; min-width: 2rem; min-height: 2rem; }
.cart-drawer .dialog-close img { width: 1rem; height: 1rem; }
.cart-drawer .cart-item { align-items: flex-start; padding: 1.25rem 0; gap: 1rem; }
.cart-drawer .cart-item:first-child { padding-top: 1.25rem; }
.cart-drawer .cart-product-image { flex: 0 0 6rem; }
.cart-drawer .cart-product-image img { width: 6rem; height: 6rem; object-fit: cover; border-radius: .375rem; }
.cart-product-name { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.125rem; line-height: 1.25; }
.cart-product-price { font-size: .875rem; margin-top: .375rem; }
.cart-drawer .cart-quantity { gap: .75rem; margin-top: 1.25rem; font-size: .875rem; }
.cart-drawer .cart-quantity button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; min-width: 1.75rem; min-height: 1.75rem; border-radius: .375rem; box-shadow: 0 1px 2px #0000000d; }
.cart-drawer .cart-quantity img { width: .875rem; height: .875rem; }
.cart-drawer .cart-quantity span { min-width: .75rem; text-align: center; }
.cart-drawer button:disabled { opacity: .45; cursor: not-allowed; }
.cart-footer { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cart-drawer .cart-total { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.5rem; }
.cart-checkout { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; height: 2.5rem; border-radius: .375rem; background: var(--primary); color: var(--primary-foreground); font-size: .875rem; cursor: pointer; box-shadow: var(--shadow-button); }
.cart-checkout img { width: 1rem; height: 1rem; filter: invert(1); }
.cart-checkout-note { margin-top: .75rem; text-align: center; font-size: .6875rem; color: var(--muted-foreground); }
.cart-checkout-status { margin-top: .75rem; font-size: .875rem; }
.cart-checkout-status a, .cart-empty a { text-decoration: underline; }
@keyframes cart-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
body:has(.site-dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { font-family: var(--font-display); font-size: 1.75rem; }
.site-dialog button, .site-dialog input, .site-dialog a { outline-offset: 4px; }
.dialog-close, .cart-quantity button { border: 1px solid var(--border); border-radius: .3rem; min-width: 2.5rem; min-height: 2.5rem; cursor: pointer; }
.site-search-input { display: block; width: 100%; margin-top: .5rem; padding: .75rem; border: 1px solid var(--border); border-radius: .3rem; }
.search-results, .cart-items { margin: 1rem 0; }
.search-result, .cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.search-result img, .cart-item img { width: 4rem; height: 5rem; object-fit: cover; border-radius: .25rem; }
.search-result:hover, .cart-item a:hover { color: var(--brand-leaf); }
.cart-item-content { flex: 1; min-width: 0; }
.cart-quantity { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.cart-remove { text-decoration: underline; cursor: pointer; font-size: .85rem; }
.cart-total { font-weight: 700; font-size: 1.2rem; margin: 1rem 0; }
.dialog-action { display: inline-block; margin-top: 1rem; background: var(--primary); color: var(--primary-foreground); padding: .75rem 1rem; border-radius: .3rem; }
.dialog-note { font-size: .875rem; color: var(--muted-foreground); }
.cart-badge { position: absolute; top: -.25rem; right: -.25rem; background: var(--brand-gold); color: var(--foreground); border-radius: 1rem; padding: .1rem .35rem; font-size: .65rem; font-weight: 700; }
@media (min-width: 768px) { .mobile-navigation { display: none; } }
@media (hover: none) and (min-width: 768px) {
  [data-add-to-cart].absolute { opacity: 1; transform: none; translate: none; }
}
