/******************** Design tokens ********************/
/*
  Every colour, size and radius used by the theme lives here. Change a value in
  this block and it updates everywhere; do not write hex colours in the other files.
*/
:root {
  /* Colour */
  --color-brand: #603813;
  --color-accent: #ffce00;
  --color-background: #fff;
  --color-on-brand: #fff;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-surface: #f9fafb;
  --color-muted: #6b7280;
  --color-icon-muted: #4b5563;
  --color-sold-out: #5eb0b9;
  --color-badge: #1a1a1a;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Type */
  --font-family-rubik: "Rubik", sans-serif;
  --font-size-extra-small: 0.875rem;
  --font-size-small: 1rem;
  --font-size-small-mobile: 0.875rem;
  --font-size-text: 1.25rem;
  --font-size-text-mobile: 1rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;
  --font-size-h2-mobile: 2rem;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 2rem;

  /* Carousel arrows */
  --arrow-button-wrapper: 2.5rem;
  --arrow-button-size: 1.5rem;
}

@media (max-width: 767px) {
  :root {
    --arrow-button-wrapper: 2rem;
    --arrow-button-size: 1rem;
  }
}
/******************** End of Design tokens ********************/

/******************** Base Styles ********************/
/* Hello renders pages inside <main id="content" class="site-main">; let it span the full width. */
#content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: var(--color-background);
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Screen reader only - visible to search engines and screen readers, hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/******************** Fonts ********************/
.h2-sts {
  font-family: var(--font-family-bona-nova-sc);
  font-size: var(--font-size-h2);
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.75rem;
  color: var(--color-brand);
  margin: 0.75rem 0;
}

.h3-sts {
  font-family: var(--font-family-alef);
  font-size: var(--font-size-h3);
  font-weight: 400;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.h3-sts ins {
  text-decoration: none;
}

.text-sts {
  color: var(--color-brand);
  font-family: var(--font-family-text-sts, var(--font-family-bona-nova-sc));
  font-size: var(--font-size-text);
}

.small-text-sts {
  color: var(--color-brand);
  font-family: var(--font-family-text-sts, var(--font-family-bona-nova-sc));
  font-size: var(--font-size-small);
}

.lapa-price-per-100g {
  display: block;
  margin-top: 0.25rem;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .h2-sts {
    font-size: var(--font-size-h2-mobile);
    padding-bottom: 0.25rem;
  }

  .h3-sts {
    font-size: var(--font-size-text);
  }

  .text-sts {
    font-size: var(--font-size-small);
  }
}

@media (max-width: 500px) {
  .h3-sts {
    font-size: var(--font-size-small);
  }
}
/******************** End of Fonts ********************/

/******************** Utilities ********************/
.w-full {
  width: 100%;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.z-2 {
  z-index: 2;
}

.fit-content {
  width: fit-content;
}

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
/******************** End of Utilities ********************/

/******************** Buttons ********************/
/* .btn, .btn-primary and .btn-secondary live in style.css, next to the product card they style. */

/*
  Hello gives every <button> a coloured background and white text on hover and focus.
  Icon-only buttons keep a clear background and their own icon colour instead.
*/
.icon-button:hover,
.icon-button:focus,
.dropdown-arrow-toggle:hover,
.dropdown-arrow-toggle:focus,
.mobile-nav-close:hover,
.mobile-nav-close:focus {
  background: transparent;
  color: var(--color-brand);
}

.arrow-button:hover,
.arrow-button:focus {
  background: transparent;
  color: var(--color-icon-muted);
}
/******************** End of Buttons ********************/

/******************** Category Menu Styles ********************/
.category_menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category_menu ul li {
  padding: 7px;
  flex: 0 0 calc(100% / 10);
  max-width: calc(100% / 10);
  height: auto;
}

@media (max-width: 767px) {
  .category_menu ul li {
    padding: 5px;
    flex: auto;
    max-width: none;
  }
}
/******************** End Category Menu Styles ********************/

/******************** Sale Badges ********************/
/*
  Badges are output by woocommerce/loop/sale-flash.php.
  .sale-badge        — base styles shared by all badges
  .sale-badge--{slug} — per-type modifier (slug = product tag slug)

  Badges sit in the corner of .product-card-image-wrapper (position: relative).
*/
.sale-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px; /* respects RTL */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  background-color: var(--badge-bg, var(--color-badge));
  color: var(--badge-color, var(--color-on-brand));
  pointer-events: none;
}

/* Stack multiple badges vertically if a product has more than one */
.sale-badge + .sale-badge {
  top: calc(12px + 32px + 6px);
}

/* Per-type overrides: set --badge-bg / --badge-color on .sale-badge--{slug} */
/******************** End Sale Badges ********************/
