/* Coffee Eight — warm earth & sage palette */

:root {
  --eggshell: #eae8d6;
  --dry-sage: #d4d3a9;
  --dusty-olive: #7e865b;
  --hunter-green: #445235;
  --parchment: #f3efe8;
  --toasted-almond: #d59372;
  --cinnamon-wood: #b76852;
  --mauve-bark: #754f43;

  --bg: var(--parchment);
  --bg-outer: var(--eggshell);
  --text: var(--hunter-green);
  --text-muted: var(--mauve-bark);
  --line: var(--dry-sage);
  --accent: var(--dusty-olive);
  --accent-warm: var(--cinnamon-wood);

  --sage: var(--dusty-olive);
  --sage-muted: var(--dry-sage);
  --sage-light: var(--eggshell);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 600px;
  --tab-h: 48px;
  --header-h: 256px;
  --banner-h: 32px;
  --shop-top-h: calc(var(--banner-h) + var(--header-h) + var(--tab-h));
  --sticky-top: var(--shop-top-h);
  --category-image-max-h: 800px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

.hidden,
.is-hidden {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--hunter-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 4px 0;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--hunter-green);
  outline-offset: 2px;
}

/* Fixed top — banner, header, category tabs */
.shop-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg);
  border-bottom: none;
}

.shop-banner {
  padding: 0.4rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.shop-banner-text {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Header — logo at top; name only after scroll */
.shop-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
  padding: 0.75rem 3rem 0.625rem;
  background: var(--bg);
  transition: min-height 0.28s ease, padding 0.28s ease;
}

.shop-top.is-header-compact .shop-header {
  min-height: 3.5rem;
  padding: 0.55rem 3rem;
}

.shop-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.shop-top.is-header-compact .shop-brand {
  gap: 0;
}

.shop-logo {
  width: 176px;
  height: 176px;
  flex-shrink: 0;
  transition: opacity 0.22s ease, width 0.28s ease, height 0.28s ease;
}

.shop-top.is-header-compact .shop-logo {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.shop-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, max-height 0.28s ease, transform 0.22s ease;
}

.shop-top.is-header-compact .shop-name {
  opacity: 1;
  max-height: 3rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(0);
}

.btn-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-icon:focus-visible {
  outline: 1px solid var(--sage);
  outline-offset: 2px;
}

/* Search */
.search-drawer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.search-field {
  flex: 1;
  height: 36px;
  padding: 0 0.5rem;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.875rem;
  background: transparent;
}

.search-field:focus {
  outline: none;
  border-bottom-color: var(--sage);
}

.search-field:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.search-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

/* Layout */
.shop-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--shop-top-h);
}

.shop-main {
  padding: 0 0 1.5rem;
}


.menu-sections {
  overflow-x: hidden;
}

/* Category tabs — icon bar, flush to first image */
.category-nav {
  background: var(--bg);
  border-bottom: 3px solid var(--dry-sage);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.125rem;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 0.125rem 0.5rem 0;
}

.category-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem 0.2rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: 0;
  background: transparent;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  min-height: var(--tab-h);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-tab__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 2.75rem;
}

.category-tab__icon {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.category-tab__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
  opacity: 0.85;
}

.category-tab.is-active {
  color: var(--hunter-green);
  font-weight: 600;
  background: var(--eggshell);
  border-bottom-color: var(--sage);
  border-radius: 10px 10px 0 0;
}

.category-tab.is-active .category-tab__label {
  opacity: 1;
}

.category-tab.is-active .category-tab__icon {
  transform: scale(1.05);
}

.category-tab:focus-visible {
  outline: 1px solid var(--sage);
  outline-offset: -1px;
}

.menu-sections {
  margin: 0;
  padding: 0;
}

/* Sections — sticky image, menu scrolls over */
.menu-category {
  position: relative;
  padding: 0;
  margin: 0;
}

.menu-category + .menu-category {
  margin-top: 0;
}

.category-heading {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 10.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.category-heading-note {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.975rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
}

.category-heading--overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: auto;
  z-index: 2;
  margin: 0;
  padding: 1rem 1rem 0.85rem;
  max-width: 92%;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.category-heading--overlay .category-heading-note {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.menu-subsection {
  margin-bottom: 1rem;
}

.section-crumb {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* Items — flat list cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.product-body {
  flex: 1;
  min-width: 0;
}

.product-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex-shrink: 0;
}

.product-cart__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-cart__variant {
  padding: 0.35rem 0.65rem;
  font-size: 0.89375rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--dusty-olive);
  background: var(--eggshell);
  border: 1px solid var(--dry-sage);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-cart__variant:hover {
  background: var(--parchment);
  border-color: var(--dusty-olive);
  color: var(--hunter-green);
}

.product-cart__variant.is-active {
  color: var(--hunter-green);
  background: var(--dry-sage);
  border-color: var(--dusty-olive);
}

.product-cart__variant--static {
  cursor: default;
  pointer-events: none;
}

.product-cart__variant--static:hover {
  background: var(--eggshell);
  border-color: var(--dry-sage);
  color: var(--dusty-olive);
}

.product-cart__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.product-cart__add {
  padding: 0.4rem 0.95rem;
  font-size: 0.975rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--hunter-green);
  background: transparent;
  border: 1.5px solid var(--dry-sage);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.product-cart__add:hover {
  background: var(--parchment);
  border-color: var(--hunter-green);
}

.product-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-cart__btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  color: var(--hunter-green);
  background: var(--parchment);
  border: 1px solid var(--dry-sage);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s;
}

.product-cart__btn:hover {
  background: var(--eggshell);
}

.product-cart__count {
  min-width: 1.25rem;
  text-align: center;
  font-size: 1.05625rem;
  font-weight: 600;
  color: var(--text);
}

.product-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.875rem;
  align-items: baseline;
  min-width: 0;
}

.product-name {
  margin: 0;
  font-size: 1.21875rem;
  font-weight: 500;
  line-height: 1.35;
  grid-column: 1;
}

.product-name__lines {
  display: inline-block;
  vertical-align: top;
}

.product-name__line {
  display: block;
}

.product-name--stacked .product-tag {
  vertical-align: top;
}

.product-tag {
  display: inline;
  margin-left: 0.35rem;
  font-size: 0.89375rem;
  font-weight: 500;
  color: var(--sage);
}

.product-tag::before {
  content: '(';
}

.product-tag::after {
  content: ')';
}

.product-detail {
  margin: 0;
  font-size: 1.05625rem;
  color: var(--text-muted);
  line-height: 1.4;
  grid-column: 1 / -1;
}

.product-price {
  margin: 0;
  font-size: 1.1375rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1;
}

/* Category image — 16:9, heading overlaid bottom-left */
.category-visual {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: var(--category-image-max-h);
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: normal;
}

.category-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.28) 38%,
    transparent 68%
  );
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.menu-category-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
  margin-top: 0;
  padding: 1.25rem 0.75rem 1.25rem;
  min-height: 4rem;
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--hunter-green) 12%, transparent);
}

.menu-category-content > .category-heading {
  padding-top: 0.25rem;
}

/* Noscript fallback (SEO + no-JS users) */
.noscript-fallback {
  font-family: Inter, system-ui, sans-serif;
  max-width: 28rem;
  margin: 1.5rem auto;
  padding: 1rem 0.75rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

.noscript-fallback h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.noscript-fallback p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.noscript-fallback address {
  font-style: normal;
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.noscript-fallback a {
  color: var(--accent);
}

/* Footer */
.shop-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.footer-info {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 0.75rem 0;
}

.footer-info:last-of-type {
  padding: 1rem 0.75rem 0.75rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.3;
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.footer-contact-line {
  display: block;
  line-height: 1.3;
}

.footer-phones-line {
  display: block;
  margin-top: 0.125rem;
  line-height: 1.3;
}

.footer-address-link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-address-link:hover {
  color: var(--accent);
}

.footer-phone-link {
  color: var(--accent-warm);
  text-decoration: none;
}

.footer-phone-link:hover {
  color: var(--toasted-almond);
  text-decoration: underline;
}

.footer-phone-sep {
  color: var(--text-muted);
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--dusty-olive);
}

.footer-social__icon {
  display: block;
  flex-shrink: 0;
}

.footer-social-link--stampino,
.footer-social-link--image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.footer-social__icon--img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-map-embed {
  width: calc(100% - 1.5rem);
  max-width: calc(var(--max-width) - 1.5rem);
  margin: 0.75rem auto 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--line);
}

.footer-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-hours {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}

.footer-hours li:last-child {
  border-bottom: none;
}

.hours-days {
  color: var(--text-muted);
}

.hours-time {
  font-weight: 400;
  color: var(--text);
}

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.footer-legal__copy,
.footer-legal__made {
  margin: 0;
}

.footer-legal__made {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-legal__flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(68, 82, 53, 0.12);
}

.footer-privacy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.5rem 0;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.footer-privacy-link:hover {
  color: var(--accent);
}

.footer-privacy-link__icon {
  display: block;
  flex-shrink: 0;
}

.footer-vat {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.loading,
.error,
.empty-search {
  text-align: center;
  padding: 2rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.error {
  color: var(--cinnamon-wood);
}

@media (min-width: 600px) {
  :root {
    --header-h: 288px;
  }

  .shop-logo {
    width: 208px;
    height: 208px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
    border-top: none;
  }

  .product-card {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 600px) {
  body {
    background: var(--bg-outer);
  }

  .shop {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--dry-sage);
  }
}

/* WhatsApp cart & enquiry */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--dry-sage);
  box-shadow: 0 -4px 16px rgba(45, 58, 42, 0.12);
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cart-bar.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cart-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.cart-bar.is-expanded .cart-details {
  max-height: min(40vh, 280px);
  overflow-y: auto;
  border-bottom: 1px solid var(--dry-sage);
}

.cart-items-list {
  list-style: none;
  margin: 0;
  padding: 0.65rem 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}

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

.cart-item__name {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.cart-item__price {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--hunter-green);
}

.cart-item--addon {
  padding-left: 0.75rem;
}

.cart-item--addon .cart-item__name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-addons {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--dry-sage);
}

.product-addons__title {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-addons__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-addon {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.product-addon--choices {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.product-addon--choices:last-child {
  border-bottom: none;
}

.product-addon__group {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--hunter-green);
}

.product-addon__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-addon__option {
  padding: 0.3rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--dusty-olive);
  background: var(--eggshell);
  border: 1px solid var(--dry-sage);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-addon__option:hover {
  border-color: var(--dusty-olive);
  color: var(--hunter-green);
}

.product-addon__option.is-active {
  color: var(--hunter-green);
  background: var(--dry-sage);
  border-color: var(--dusty-olive);
}

.product-addon__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.product-addon__add {
  padding: 0.3rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.3;
  text-align: left;
  color: var(--dusty-olive);
  background: var(--eggshell);
  border: 1px solid var(--dry-sage);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.product-addon__add:hover {
  border-color: var(--dusty-olive);
  color: var(--hunter-green);
}

.product-addon__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-bar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.cart-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cart-toggle__hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-bar.is-expanded .cart-toggle__hint {
  display: none;
}

.cart-toggle__chevron {
  flex-shrink: 0;
  color: var(--dusty-olive);
  transition: transform 0.2s ease;
}

.cart-bar.is-expanded .cart-toggle__chevron {
  transform: rotate(180deg);
}

.product-cart__variants--priced .product-cart__variant {
  font-size: 0.625rem;
  padding: 0.35rem 0.5rem;
}

#cart-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

#cart-total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hunter-green);
}

.whatsapp-order-btn {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.15s;
}

.whatsapp-order-btn:hover {
  filter: brightness(0.95);
}

.whatsapp-order-btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.5;
}

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: bottom 0.25s ease, filter 0.15s;
}

.whatsapp-fab:hover {
  filter: brightness(0.95);
}

.whatsapp-fab__icon {
  display: block;
}

body.has-cart .whatsapp-fab {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-cart .shop-main {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-cart-expanded .whatsapp-fab {
  bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
}

body.has-cart-expanded .shop-main {
  padding-bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 600px) {
  .cart-bar {
    left: 50%;
    right: auto;
    width: min(var(--max-width), 100%);
    transform: translateX(-50%) translateY(0);
  }

  .cart-bar.hidden {
    transform: translateX(-50%) translateY(100%);
  }

  body.has-cart .whatsapp-fab,
  body.has-cart-expanded .whatsapp-fab {
    right: calc(50% - min(var(--max-width), 100%) / 2 + 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cart-bar,
  .whatsapp-fab {
    transition: none;
  }
}
