/** Base styles of the storefront, loaded before the styles of the modules */

/* Reset styles inspired by https://www.joshwcomeau.com/css/custom-css-reset/ */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
}

html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
}

select {
  background-color: var(--color-background);
  color: currentcolor;
}

dialog {
  background-color: var(--color-background);
  color: var(--color-foreground);
}

p {
  text-wrap: pretty;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--color-brand);
}

p:empty {
  display: none;
}

:is(p, h1, h2, h3, h4, h5, h6):first-child,
:empty:first-child + :where(p, h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
}

:is(p, h1, h2, h3, h4, h5, h6):last-child,
:where(p, h1, h2, h3, h4, h5, h6) + :has(+ :empty:last-child) {
  margin-block-end: 0;
}

/** Theme styles below */
body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: objektiv, serif;
  padding-top: var(--header-height);
}

main {
  flex: 1;
}

/* Mobile first: 2 columns */
.section > div {
  width: 100%;
  max-width: 120rem;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Tablet: 3 columns */
@media (min-width: 640px) {
  .section > div {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Desktop: 6 columns */
@media (min-width: 1024px) {
  .section > div {
    grid-template-columns: repeat(6, 1fr);
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/**
 * Column span utilities
 * On mobile (2-col): cap at 2 so nothing overflows
 * On tablet (3-col): full range 1–3
 * On desktop (6-col): full range 1–3 (out of 6)
 */
.block:has(.col-span-1) { grid-column: span 1; }
.block:has(.col-span-2) { grid-column: span 2; }
.block:has(.col-span-3) { grid-column: span 2; } /* capped at 2 on mobile */

@media (min-width: 640px) {
  .block:has(.col-span-3) { grid-column: span 3; }
}

@media (min-width: 1024px) {
  .block:has(.col-span-1) { grid-column: span 1; }
  .block:has(.col-span-2) { grid-column: span 2; }
  .block:has(.col-span-3) { grid-column: span 3; }
}

/** Row span utilities */
.block:has(.row-span-1) { grid-row: span 1; }
.block:has(.row-span-2) { grid-row: span 2; }

/** Let block wrappers pass their full grid-row height down to card children */
.block {
  display: flex;
  flex-direction: column;
}
.block > * {
  flex: 1;
  min-width: 0;
}

/** Reusable button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius-outer);
  background-color: var(--color-foreground);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn--primary {
  background-color: var(--color-brand);
  color: var(--color-foreground);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--color-brand-hover);
}

.btn--border {
  background-color: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

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

/** Shown in the page editor for a module that has nothing to show yet */
.section__empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius-inner);
  text-align: center;
  opacity: 0.7;
}

/** Only for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-background);
  border-radius: 9rem;
  padding: 0.25rem;
}

.qty-selector__btn {
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-foreground);
  color: var(--color-brand);
  border-radius: 9rem;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-selector__btn--increase {
  background-color: var(--color-brand);
  color: var(--color-foreground);
}

.qty-selector__btn:hover:not(:disabled) {
  opacity: 0.8;
}

.qty-selector__btn--increase:hover:not(:disabled) {
  background-color: var(--color-brand-hover);
  opacity: 1;
}

.qty-selector__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-selector__value {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.section .banner {
  position: relative;
  overflow: hidden;
  max-width: initial;
  margin: 0 0 2rem;
  display: block;
  padding: 0;
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner__width {
  padding: 0 1.25rem;
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .banner__width {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .banner__width {
    padding: 0 4rem;
    grid-template-columns: repeat(12, 1fr);
  }
}

.banner__content {
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
  grid-column: 1 / -1;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .banner__content {
    margin: 4rem 0;
    grid-column: span 5;
  }
}

.banner__title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: nomnom, serif;
}

.banner__text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.banner__content .btn {
  margin-top: 1rem;
  align-self: center;
}

.product-grid__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
}

.product-grid__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.section > .product-grid {
  display: block;
  overflow-x: clip;
}

.product-grid__cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline-start: 2rem;
  padding-bottom: 0.5rem;
  margin-top: 1rem;
  margin-inline: -2rem;
  padding-inline: 2rem;
}

.product-grid__cards .block {
  flex: 0 0 auto;
  width: clamp(12rem, 35vw, 18rem);
  scroll-snap-align: start;
}

@media (min-width: 1300px) {
  .section > .product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .product-grid__header {
    grid-column: 1 / -1;
  }

  .product-grid__cards {
    display: contents;
  }

  .product-grid__cards .block {
    width: auto;
    flex: unset;
  }
}

.card-compact {
  height: 100%;
}

.card-compact > a {
  display: block;
  height: 100%;
}

.card-compact__image-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-outer);
  background-color: var(--color-secondary);
  position: relative;
}

.card-compact__image-wrapper--fill {
  height: 100%;
  box-shadow: var(--card-shadow);
  position: relative;
}

.card-compact__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-compact:hover .card-compact__image:not(.card-compact__image--hover) {
  transform: scale(1.04);
}

.card-compact__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-compact:hover .card-compact__image--hover {
  opacity: 1;
}

.card-compact__btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.card-compact__arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.card-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.card-detail__image-wrapper {
  overflow: hidden;
  background-color: var(--color-secondary);
  flex-shrink: 0;
}

.card-detail__image-wrapper--original .card-detail__image {
  height: auto;
  object-fit: initial;
}

.card-detail__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.card-detail .btn {
  width: 100%;
  margin-top: auto;
}

.card-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-detail__link:hover .card-detail__image {
  transform: scale(1.04);
}

.card-detail__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-detail__price {
  margin: .5rem 0 1rem;
  font-size: 1.25rem;
}

.card-detail__price span {
  font-size: 0.9rem;
}

.section > .cart {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding-top: 2rem;
}

.cart__title {
  font-size: 2rem;
  font-weight: 700;
  font-family: nomnom, serif;
}

.cart__empty {
  opacity: 0.6;
}

/* Validation and checkout errors, shown in place of a browser alert */
.cart__notice {
  /* One line of the message, so both icons can centre on it instead of on their own box */
  --notice-line: 1.5rem;

  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 2px solid var(--color-brand);
  border-radius: var(--border-radius-outer);
  background-color: var(--color-secondary);
  padding: 1rem 1.25rem;
}

.cart__notice[hidden] {
  display: none;
}

.cart__notice-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--notice-line);
  font-size: 1.4rem;
  color: var(--color-brand);
}

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

.cart__notice-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: var(--notice-line);
}

.cart__notice-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.cart__notice-list li + li {
  margin-top: 0.2rem;
}

.cart__notice-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--notice-line);
  height: var(--notice-line);
  background: none;
  border: none;
  padding: 0;
  font-size: 1.2rem;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cart__notice-close:hover {
  opacity: 1;
}

.cart__notice-close span {
  display: flex;
}

.cart__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
}

.cart__terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cart__terms a {
  color: inherit;
}

.cart__terms-checkbox {
  appearance: none;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  border: 1.5px solid color-mix(in srgb, var(--color-text) 30%, transparent);
  border-radius: 0.3rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

/* Two borders of a rotated box draw the tick */
.cart__terms-checkbox::before {
  content: '';
  width: 0.6rem;
  height: 0.3rem;
  margin-top: -0.15rem;
  border-left: 2px solid var(--color-foreground);
  border-bottom: 2px solid var(--color-foreground);
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.1s;
}

.cart__terms-checkbox:hover {
  border-color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.cart__terms-checkbox:checked {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.cart__terms-checkbox:checked::before {
  opacity: 1;
}

.cart__terms-checkbox:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.cart__checkout {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.cart__checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart__table {
  display: flex;
  flex-direction: column;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  overflow: hidden;
}

.cart__row.cart__row--header {
  display: none;
}

.cart__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "product remove"
    "qty     total";
  gap: 0.75rem 0.5rem;
  padding: 1rem;
  border-bottom: 0.125rem dashed var(--color-border);
}

.cart__row:last-child {
  border-bottom: none;
}

.cart__cell--product  { grid-area: product; }
.cart__price          { display: none; }
.cart__cell--qty      { grid-area: qty; align-self: center; }
.cart__line-total     { grid-area: total; align-self: center; justify-self: end; }
.cart__cell--remove   { grid-area: remove; align-self: start; text-align: right; }

/* Desktop: restore 5-column table */
@media (min-width: 980px) {
  .cart__row.cart__row--header {
    display: grid;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    text-align: center;
    color: var(--color-text);
  }

  .cart__row--header > span:first-of-type {
    text-align: left;
  }

  .cart__row {
    grid-template-columns: 1fr 7rem 11rem 7rem 2.5rem;
    grid-template-areas: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .cart__row:first-child {
    border-bottom: 0.125rem solid var(--color-border);
  }

  .cart__cell--product  { grid-area: auto; }
  .cart__price          { display: block; }
  .cart__cell--qty      { grid-area: auto; align-self: auto; }
  .cart__line-total     { grid-area: auto; align-self: auto; justify-self: auto; }
  .cart__cell--remove   { grid-area: auto; align-self: auto; }
}

.cart__cell--product {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cart__image-link {
  flex-shrink: 0;
}

.cart__image-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius-inner);
  overflow: hidden;
  background-color: var(--color-secondary);
}

.cart__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cart__product-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cart__product-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart__product-title:hover {
  text-decoration: underline;
}

.cart__product-variant {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart__price,
.cart__line-total {
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
}

.cart__line-total {
  font-weight: 700;
}


.cart__remove {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.45;
  padding: 0.25rem;
  border-radius: var(--border-radius-inner);
  transition: opacity 0.15s;
}

.cart__remove:hover {
  opacity: 1;
}

.cart__remove svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cart__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.cart__totals {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.cart__totals-label {
  font-size: 1rem;
  opacity: 0.7;
}

.cart__totals-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.pickup {
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pickup {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
}

.pickup_heading {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* Calendar */
.calendar {
  max-width: 22rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .calendar { min-width: 18rem; }
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.calendar__month-label {
  font-size: 0.95rem;
}

.calendar__nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  color: inherit;
  border-radius: var(--border-radius-inner);
  transition: background 0.15s;
}

.calendar__nav:hover {
  background-color: var(--color-foreground-hover);
}

.calendar__weekdays,
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.calendar__weekdays {
  margin-bottom: 0.35rem;
}

.calendar__weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.45;
  padding: 0.2rem 0;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: none;
  background: none;
  border-radius: 99rem;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s;
}

.calendar__day:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--color-text) 10%, transparent);
}

.calendar__day--selected {
  background-color: var(--color-brand) !important;
  color: var(--color-foreground);
  font-weight: 700;
}

.calendar__day--past,
.calendar__day:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar__day--empty {
  pointer-events: none;
}

/* Time slots */
.pickup__times {
  display: flex;
  flex-direction: column;
  gap: 0;
      max-height: 20rem;
}

.pickup__times-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.4rem;
}

.pickup__times-empty {
  font-size: 0.85rem;
  opacity: 0.5;
  padding: .5rem .5rem 2rem .5rem;
  max-width: 8rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .pickup__times {
    flex-shrink: 0;
    min-width: 10rem;
    align-self: stretch;
  }

  .pickup__times-scroll {
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 1;
    overflow-y: auto;
    padding-top: 0.4rem;
  }
}

.pickup__time-slot {
  background: none;
  border: 1.5px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: var(--border-radius-inner);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: inherit;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.pickup__time-slot:hover {
  background-color: color-mix(in srgb, var(--color-text) 8%, transparent);
}

.pickup__time-slot--active, .pickup__time-slot--active:hover {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-foreground);
  font-weight: 700;
}

/* Contact / address fields */
.pickup__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.pickup__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pickup__field--row {
  flex-direction: row;
  gap: 0.75rem;
}

.pickup__field--row > .pickup__field {
  flex: 1;
  min-width: 0;
}

.pickup__label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.65;
}

.pickup__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: var(--border-radius-inner);
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.pickup__input:focus {
  outline: none;
  border-color: var(--color-brand);
}

.collection-list__title {
  grid-column: 1 / -1;
  font-size: 2rem;
  font-weight: 700;
}

.collection-list__item {
  grid-column: span 2;
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: var(--border-radius-outer);
  overflow: hidden;
  background-color: var(--color-text);
  text-decoration: none;
  color: var(--color-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  padding: 2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.collection-list__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  font-size: 0;
  filter: brightness(var(--collection-brightness, 1));
  transition: transform 0.3s ease;
}

.collection-list__item:hover .collection-list__image {
  transform: scale(1.04);
}

.collection-list__item span {
  position: relative;
}

@media (min-width: 500px) {
  .collection-list__item {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .collection-list__item {
    grid-column: span 2;
  }
}

.collection__filter-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.collection__filter-link {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
}

.collection__filter-link:hover {
  font-weight: 700;
}

.collection__filter-link--active {
  font-weight: 700;
  opacity: 1;
}

/* Mobile: filters + main both full width, stacked */
.collection__filters {
  grid-column: 1 / -1;
}

.collection__main {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tablet: sidebar 1 col, main fills the rest */
@media (min-width: 640px) {
  .collection__filters {
    grid-column: span 1;
  }

  .collection__main {
    grid-column: span 2;
  }
}

/* Desktop: sidebar 1 col, main 5 cols */
@media (min-width: 1024px) {
  .collection__main {
    grid-column: span 5;
  }
}

.collection__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.65;
}

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

.collection__breadcrumbs a:hover {
  text-decoration: underline;
}

.collection__breadcrumb-sep {
  opacity: 0.5;
}

.collection__title {
  font-size: 2rem;
  font-weight: 700;
  font-family: nomnom, serif;
  line-height: 1.2;
}

.collection__description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 60ch;
}

.collection__products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .collection__products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .collection__products {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.collection__empty {
  grid-column: 1 / -1;
  opacity: 0.6;
}

/* Product card — mirrors card-detail */
.collection__card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.collection__card-image-link {
  display: block;
}

.collection__card-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
  flex-shrink: 0;
  position: relative;
}

.collection__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.collection__card-image-link:hover .collection__card-image:not(.collection__card-image--hover) {
  transform: scale(1.04);
}

.collection__card-image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collection__card-image-link:hover .collection__card-image--hover {
  opacity: 1;
}

.collection__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  gap: 0;
}

.collection__card-body .btn {
  width: 100%;
  margin-top: auto;
}

.collection__card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex-grow: 1;
}

.collection__card-price {
  margin: 0.5rem 0 1rem;
  font-size: 1.1rem;
}

.collection__card-price span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Pagination */
.collection__pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.collection__pagination a,
.collection__pagination em {
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-inner);
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.collection__pagination a:hover {
  opacity: 0.7;
}

.collection__pagination em {
  font-style: normal;
  font-weight: 700;
}

.contact-form__box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  position: relative;
  overflow: hidden;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.contact-form__content {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.contact-form__circle {
  position: absolute;
  width: 300%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-secondary);
  opacity: 0.5;
  top: 0;
  left: -50%;
  transform: translate(5%, -65%);
  z-index: 0;
  pointer-events: none;
}


.contact-form__title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: nomnom, serif;
  margin-bottom: 0.75rem;
}

.contact-form__intro {
  line-height: 1.6;
}

.contact-form__fields {
  padding-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__field--full,
.contact-form__submit {
  grid-column: 1 / -1;
}

.contact-form__submit {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.contact-form__field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field textarea {
  padding: 0.6rem 0.875rem;
  background-color: var(--color-foreground);
  border: 1px solid var(--color-text);
  border-radius: .3rem;
  color: var(--color-text);
  font-size: 1rem;
  width: 100%;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 20rem;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.contact-form__success {
  font-weight: 600;
}

.contact-form__error {
  color: red;
}

@media (min-width: 640px) {
  .contact-form__box {
    padding: 3rem;
  }

  .contact-form__circle {
    width: 200%;
    left: -30%;
  }

  .contact-form__fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-form__box {
    padding: 4rem;
  }

  .contact-form__circle {
    width: 110%;
    left: 0%;
  }

  .contact-form__content {
    grid-column: 2 / -2;
  }

}

.faq__heading,
.faq {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .faq__heading,
  .faq {
    grid-column: 2 / 6;
  }
}

.faq__heading {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.faq {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-outer);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.faq__item {
  background-color: var(--color-foreground);
  border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq__icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.faq__item[open] .faq__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq__answer a {
  color: var(--color-brand);
}

.masonry-classic__card { grid-column: span 2; }

@media (min-width: 640px) {
  .masonry-classic__card { grid-column: span 3; }
}

@media (min-width: 1024px) {
  .section > .masonry-classic {
    grid-template-columns: 1.5fr 3fr 1.5fr;
  }
  .masonry-classic__card { grid-column: span 1; }
}

.masonry-classic__card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.masonry-classic__image-wrapper {
  height: 18rem;
  overflow: hidden;
  background-color: var(--color-secondary);
  flex-shrink: 0;
}

.masonry-classic__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.masonry-classic__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  padding: 1.5rem;
}

.masonry-classic__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.masonry-classic__text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.masonry-classic__card .btn {
  align-self: flex-start;
  margin-top: auto;
}

footer {
  background-color: var(--color-secondary);
  color: var(--color-header-text);
  margin-top: 2rem;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  padding: 3rem 4rem;
  max-width: 120rem;
  margin: 0 auto;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer__col-title a {
  color: inherit;
  text-decoration: none;
}

.footer__col-text {
  line-height: 1.6;
  font-size: 1rem;
}

.footer__col-notice {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
}

.footer__col-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col-links a {
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer__col-links a:hover {
  font-weight: 700;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer__social a {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.half-image > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  padding: 1rem;
}

@media (min-width: 640px) {
  .half-image > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

.half-image--reverse {
  direction: rtl;
}

.half-image--reverse > * {
  direction: ltr;
}

.half-image__image-side {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
}

@media (min-width: 640px) {
  .half-image__image-side {
    min-height: 0;
  }
}

.half-image__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-inner);
}

.half-image__image--placeholder {
  background-color: var(--color-secondary);
}

.half-image__content {
  padding: 2rem;
}

@media (min-width: 1024px) {
  .half-image__content {
    padding: 4rem;
  }
}

.half-image__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: nomnom, serif;
  margin-bottom: 1rem;
}

.half-image__text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.half-map > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .half-map > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

.half-map--reverse {
  direction: rtl;
}

.half-map--reverse > * {
  direction: ltr;
}

.half-map__map-side {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-inner);
  background-color: var(--color-foreground);
  min-height: 20rem;
}

@media (min-width: 640px) {
  .half-map__map-side {
    min-height: 28rem;
  }
}

.half-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.half-map__content {
  padding: 2rem;
  position: relative;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .half-map__content {
    padding: 4rem;
  }
}

.half-map__content > div:last-child {
  position: relative;
  z-index: 1;
}

.half-map__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: nomnom, serif;
  margin-bottom: 1rem;
}

.half-map__text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.half-map__circle {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-secondary);
  opacity: 0.5;
  top: 0;
  left: 0;
  transform: translate(-20%, -75%);
  z-index: 0;
}

:root {
  --header-height: 8rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  background-color: var(--color-secondary);
  flex-wrap: wrap;
  min-height: 4rem;
  align-content: center;
}

header svg {
  width: 2rem;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--border-radius-inner);
}
.header__hamburger span {
  display: block;
  width: 1.2rem;
  height: .1rem;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s, height 0.2s;
}

.header__logo a {
  justify-content: flex-start;
}
.header__logo img {
  height: 2rem;
  width: auto;
}

.header__menu {
  flex: 99;
  display: flex;
  gap: 1rem;
  height: 100%;
}

.header__menu-item:not(.header__menu-item--mega) {
  position: relative;
  height: 100%;
  align-items: center;
}

.header__menu-item > a {
  position: relative;
  text-decoration: none;
  color: var(--color-header-text);
  height: 100%;
  width: 100%;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.header__menu-item > a:hover {
  border-color: var(--color-header-accent);
  font-weight: 700;
}

.header__dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 12rem;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-inner);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 10;
}


.header__menu-item:hover .header__dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.header__dropdown::before, .header__mega::before {
  position: absolute;
  top: -1.5rem;
  left: -.5rem;
  width: calc(100% + 1rem);
  height: 2rem;
  z-index: 11;
}

.header__dropdown li {
  list-style: none;
}

.header__dropdown li a {
  display: block;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
}

.header__dropdown li:hover {
  background-color: var(--color-background);
  font-weight: 600;
}

.header--nav-open .header__hamburger span {
  transform: translateY(calc(0.43rem)) rotate(45deg);
  height: .15rem;
}

.header--nav-open .header__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header--nav-open .header__hamburger span:nth-child(3) {
  transform: translateY(calc(-0.43rem)) rotate(-45deg);
}

/* Hide inline nav on mobile (default, overridden at breakpoint) */
header .header__menu {
  display: none;
}

/* Open: nav becomes full-page panel below header */
.header--nav-open .header__menu {
  display: flex;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  background-color: var(--color-foreground);
  overflow-y: auto;
  flex-direction: column;
  height: auto;
  gap: 0;
  padding: 1rem 2rem;
}

.header--nav-open .header__menu-item {
  height: auto;
  border-bottom: 1px solid var(--color-border);
}

.header--nav-open .header__menu-item > a {
  height: auto;
  padding: 1rem 0;
  border-bottom: none;
  font-size: 1.1rem;
}

.header--nav-open .header__menu-item:hover > a {
  border-color: transparent;
}

.header--nav-open .header__dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  position: static;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  min-width: 0;
  padding: 0 0 0.5rem 1rem;
  transition: none;
}

.header__icons {
  display: flex;
  gap: 1rem;
  flex-grow: 1;
  justify-content: flex-end;
}

.header__icons > * {
  text-decoration: none;
  display: block;
  height: 2.5rem;
  width: 2.5rem;
  padding: .5rem;
  color: var(--color-text);
  background: var(--color-foreground);
  border-radius: var(--border-radius-inner);
}

.header__icons > *.brand {
  color: var(--color-cart-btn-text);
  background: var(--color-cart-btn);
  transition: background-color 0.2s ease;
}

.header__icons > *.brand:hover {
  background: var(--color-cart-btn-hover);
}

/* Search */
/* Search — mobile base: always-visible full-width bar */
.header__search {
  order: 10;
  flex-basis: 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-foreground);
  border-radius: var(--border-radius-inner);
  padding: 0;
}

.header__search-btn {
  position: absolute;
  background: none;
  border: none;
  appearance: none;
  pointer-events: none;
}

.header__search-btn svg {
  fill: var(--color-text);
  opacity: .5;
  width: 1.8rem;
  margin-left: .8rem;
}

.header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  padding: .6rem 2rem .6rem 4rem;
  pointer-events: auto;
  white-space: nowrap;
}

.header__search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--color-foreground);
  border-radius: var(--border-radius-inner);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  z-index: 100;
}

.header__search-results--visible {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.12s;
}

.search-result:first-child {
  padding-top: 1rem;
}
.search-result:last-child {
  padding-bottom: 1rem;
}

.search-result:hover {
  background: var(--color-background);
}

.search-result__img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: calc(var(--border-radius-inner) / 2);
  flex-shrink: 0;
  background: var(--color-background);
  font-size: 0;
}

.search-result__info {
  flex: 1;
  min-width: 0;
}

.search-result__title {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__price {
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.search-result--empty {
  font-size: 0.9rem;
  cursor: default;
  pointer-events: none;
}

.header__search--loading .header__search-btn svg {
  opacity: 0;
}

.header__search--loading .header__search-btn::after {
  content: '';
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  top: .3rem;
  left: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: search-spin 0.6s linear infinite;
}

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

.cart-btn {
  width: auto;
  position: relative;
  padding: 0.5rem 0.75rem;
}

.cart-btn__icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
}

.cart-btn__icon svg {
  width: 100%;
  height: 100%;
}

.cart-btn__badge {
  position: absolute;
  top: -.4rem;
  right: -.3rem;
  min-width: 1rem;
  padding: .2rem .45rem;
  background: var(--color-text);
  color: var(--color-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
}

.cart-btn__total {
  font-weight: 700;
  vertical-align: super;
  display: inline-block;
  padding: 0 .5rem 0 .2rem;
  font-size: .9rem;
}

/* Mega menu start */
.header__mega {
  display: inline;
  top: calc(100% + 1rem);
  left: 2rem;
  right: 2rem;
  gap: 2rem;
  z-index: 10;
  transition: opacity 0.15s, visibility 0.15s;
}

.header__menu-item--mega:hover .header__mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.header__mega-nav {
  flex: 1;
  flex-direction: row;
  gap: 2rem;
  padding: 0 1rem;
}

.header__mega-title {
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0 0 1rem 0;

  display: block;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.header__mega-title:hover {
  font-weight: 700;
  background-color: var(--color-background);
}

.header__mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header__mega-links a {
  display: block;
  margin-left: 1rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.header__mega-links a:hover {
    font-weight: 700;
    background-color: var(--color-background);
}

.header__mega-image {
  display: none;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 20rem;
  flex: 1;
  text-decoration: none;
  color: var(--color-foreground);
  padding: 2rem 3rem;
  border-radius: var(--border-radius-inner);
}

.header__mega-image strong {
  position: relative;
  font-size: 1.75rem;
}

.header__mega-image span {
  display: block;
  margin-top: .5rem;
  max-width: 30rem;
  position: relative;
}

.header__mega-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
  filter: brightness(var(--mega-brightness, 1));
}

.header__mega-image:hover img {
  transform: scale(1.02);
}

.header__mega-image .btn {
  display: inline-flex;
  margin-top: 0;
  max-width: none;
  position: absolute;
  bottom: 2rem;
  right: 3rem;
}

.not-found {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0;
  text-align: center;
}

.not-found h1 {
  font-family: nomnom, serif;
  font-size: 2.5rem;
}

.product {
  padding-top: 0;
}

/* Mobile: image full width, stacked above details */
.product__image-side {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
  border-radius: var(--border-radius-outer);
}

.product__gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product__gallery-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product__image--placeholder {
  width: 100%;
  height: 100%;
}

.product__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: var(--color-foreground);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0.4rem;
}

.product__gallery-btn--prev {
  left: 1.5rem;
  transform: translateY(-50%) rotate(90deg);
}

.product__gallery-btn--next {
  right: 1.5rem;
  transform: translateY(-50%) rotate(-90deg);
}

.product__gallery-btn svg {
  width: 50%;
  height: 50%;
}

.product__gallery-btn svg path {
  stroke: currentcolor;
}

.product__image-side:hover .product__gallery-btn {
  opacity: 1;
}

@media (hover: none) {
  .product__gallery-btn {
    opacity: 1;
  }
}

.product__details {
  grid-column: 1 / -1;
  border-radius: var(--border-radius-outer);
  background-color: var(--color-foreground);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/* Desktop: side by side */
@media (min-width: 1024px) {
  .product {
    padding-top: 2rem;
  }

  .product__image-side {
    grid-column: span 3;
  }

  .product__details {
    grid-column: span 3;
    padding: 3rem;
  }
}

.product__details-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product__title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: nomnom, serif;
}

.product__price {
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.product__price--compare {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.5;
}

.product__description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

.product__description h3 {
  font-size: 1.2rem;
}

.product__facts {
  background-color: var(--color-background);
  border-radius: var(--border-radius-inner);
  overflow: hidden;
  margin-top: 2rem;
}

.product__facts-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

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

.product__facts-chevron {
  display: flex;
  align-items: center;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s;
}

.product__facts-chevron svg {
  width: 100%;
  height: 100%;
}

.product__facts-chevron svg path {
  stroke: currentcolor;
}

details[open] .product__facts-chevron {
  transform: rotate(180deg);
}

.product__facts-body {
  padding: 0 1rem 1rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

.product__variants {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.product__option-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text)
}

.product__option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product__option-btn {
  padding: 0.8rem 1rem;
  border: 2px solid var( --color-border);
  border-radius: var(--border-radius-outer);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.product__option-btn:hover:not(.product__option-btn--active) {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.product__option-btn--active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  font-weight: 700;
  cursor: default;
}

.product__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
}

.product__actions .qty-selector {
  gap: 1.5rem;
}

.product__actions .qty-selector__btn {
  height: 2.6rem;
  width: 2.6rem;
}

.product__add-to-cart {
  flex: 1;
}

.product__min-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: -1.5rem;
  padding-bottom: 2rem;
}

.rich-content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  box-shadow: var(--card-shadow);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .rich-content:not(.rich-content--full-width) {
    grid-column: 2 / 6;
  }
}

.rich-content--no-box {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.rich-content__heading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.rich-content__heading--large {
  font-family: nomnom, serif;
  font-size: 2.2rem;
}

.rich-content--center .rich-content__body,
.rich-content--center .rich-content__heading {
  text-align: center;
}

.rich-content--center .rich-content__body ul,
.rich-content--center .rich-content__body ol {
  list-style-position: inside;
  padding-left: 0;
}

.rich-content__body {
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rich-content__body a {
  color: var(--color-brand);
}

.rich-content__body ul,
.rich-content__body ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rich-content__body ul {
  list-style: disc;
}

.rich-content__body ol {
  list-style: decimal;
}

.rich-content__body img {
  border-radius: var(--border-radius-inner);
  max-width: 100%;
  height: auto;
}

.rich-content__body h1,
.rich-content__body h2,
.rich-content__body h3 {
  font-weight: 700;
  line-height: 1.2;
}

.rich-content__body h1 { font-size: 1.6rem; }
.rich-content__body h2 { font-size: 1.3rem; }
.rich-content__body h3 { font-size: 1.1rem; }

.search-page > * {
  grid-column: 1 / -1;
}

.search-page__form {
  display: block;
}

.search-page__bar {
  display: flex;
  align-items: center;
  height: 3rem;
  background: var(--color-foreground);
  border-radius: var(--border-radius-inner);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

.search-page__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-page__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.search-page__input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
}

.search-page__title {
  font-size: 2rem;
  font-weight: 700;
  font-family: nomnom, serif;
  line-height: 1.2;
}

/* No results */
.search-page__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 36rem;
}

.search-page__empty svg {
  width: 5rem;
  height: auto;
}

.search-page__empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: nomnom, serif;
}

.search-page__empty-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.75;
}

.search-page__empty-text a {
  color: var(--color-brand);
}

/* Product grid — identical to collection */
.collection__products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .collection__products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .collection__products {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.collection__card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.collection__card-image-link {
  display: block;
}

.collection__card-image-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-secondary);
  flex-shrink: 0;
  position: relative;
}

.collection__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.collection__card-image-link:hover .collection__card-image:not(.collection__card-image--hover) {
  transform: scale(1.04);
}

.collection__card-image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collection__card-image-link:hover .collection__card-image--hover {
  opacity: 1;
}

.collection__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  gap: 0;
}

.collection__card-body .btn {
  width: 100%;
  margin-top: auto;
}

.collection__card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex-grow: 1;
}

.collection__card-price {
  margin: 0.5rem 0 1rem;
  font-size: 1.1rem;
}

.collection__card-price span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Pagination */
.collection__pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.collection__pagination a,
.collection__pagination em {
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-inner);
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.collection__pagination a:hover {
  opacity: 0.7;
}

.collection__pagination em {
  font-style: normal;
  font-weight: 700;
}

.section > .tack {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 4rem 1rem;
}

@media (min-width: 1024px) {
  .section > .tack {
    grid-column: 3 / 5;
  }
}

.tack__spinner svg {
  width: 3rem;
  height: 3rem;
  animation: tack-spin 0.9s linear infinite;
  color: var(--color-brand);
}

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

.tack__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 36rem;
  text-align: center;
}

.tack__title {
  font-size: 2.6rem;
  font-weight: 700;
  font-family: nomnom, serif;
  line-height: 1.2;
}

.tack__body {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.tack__details {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.4rem 1.5rem;
  background-color: var(--color-foreground);
  border-radius: var(--border-radius-outer);
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin: 0;
}

.tack__details dt {
  font-size: 0.85rem;
  opacity: 0.6;
}

.tack__details dd {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  text-align: right;
}

