/* Svilis Pepper Farm - shared Tailwind theme styles (used by templates/header.php & templates/footer.php) */

/* assets/css/styles.css resets border-style to none on these elements, which cancels Tailwind's border-t/b/etc utilities */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, p,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video, a, button, input, textarea, select {
  border-style: solid;
}

/* .material-symbols-outlined icon base class lives in assets/css/fonts.css
   (loaded on both public pages and the admin panel). */

.custom-warm-shadow {
  box-shadow: 0 12px 32px -4px rgba(61, 35, 12, 0.08), 0 4px 12px -2px rgba(61, 35, 12, 0.04);
}

/* Smooth scrolling for hashtag/anchor links (e.g. hero CTA buttons like #veikals, #par-mums) */
html {
  scroll-behavior: smooth;
  /* Offset anchored sections so they are not hidden behind the sticky header (h-24) */
  scroll-padding-top: 6rem;
  /* Reserve scrollbar space permanently so toggling overflow:hidden (e.g. when
     a modal opens) does not cause page content to shift / flicker. */
  scrollbar-gutter: stable;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Custom mmdl breakpoint (960px) — between md (768px) and lg (1024px)
   Progressive header hiding: 1) search hides at lg, 2) nav+burger at mmdl, 3) lang+CTA at sm */
@media (min-width: 960px) {
  .mmdl-hide { display: none !important; }
  .mmdl-show { display: flex !important; }
  .mmdl-show-inline { display: inline-flex !important; }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.homepage-hero-image {
  aspect-ratio: 1 / 1;
}

@media (max-width: 1023px) {
  .about-origin-content.about-origin-content {
    display: contents;
  }

  .about-origin-heading {
    order: 1;
  }

  .about-origin-body {
    order: 2;
  }

  .about-origin-image {
    order: 3;
  }
}

@media (max-width: 639px) {
  #awards .awards-timeline {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding-left: 2rem;
    border-left-color: transparent;
  }

  #awards .awards-timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    border-left: 2px solid rgba(0, 65, 27, 0.4);
    content: "";
  }
}

.homepage-product-hidden-sm,
.homepage-product-hidden-md,
.homepage-product-hidden-xl {
  display: none !important;
}

@media (min-width: 640px) {
  .homepage-product-hidden-sm {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .homepage-product-hidden-md {
    display: flex !important;
  }
}

@media (min-width: 1280px) {
  .homepage-product-hidden-xl {
    display: flex !important;
  }
}

#cart-toast-modal {
  top: 7rem;
  bottom: auto;
}

.cart-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.cart-toast-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#cookie-popup button {
  height: 2.75rem;
  min-height: 2.75rem;
  flex-shrink: 0;
}

#checkout-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#checkout-form select {
  height: 3rem;
}

.product-card-grid.product-card-grid {
  grid-auto-rows: auto;
}

.product-card.product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.product-card__main.product-card__main,
.product-card__info.product-card__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.product-card__rating.product-card__rating {
  margin-top: auto;
  padding-top: 0.7rem;
  padding-bottom: 0rem;
}

@media (max-width: 767px) {
  .osm-map-embed {
    pointer-events: none;
  }
}

/* Mobile heading sizes — CMS public views (desktop unchanged) */
@media (max-width: 639px) {
    h1,
    h2,
    h3 {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    h1.text-display-hero,
    h1.text-display-hero-mobile,
    h1.text-headline-lg,
    h1.text-headline-lg-mobile,
    h2.text-headline-lg,
    h2.text-headline-lg-mobile,
    h1.text-3xl,
    h2.text-3xl {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;

    }
    h2.text-2xl,
    h1.text-2xl,
    h2.text-headline-md,
    h3.text-headline-lg {
        font-size: 1.125rem !important;
        line-height: 1.35 !important;
    }
    h3.text-headline-md,
    h3.text-headline-sm,
    h4.text-headline-md {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 639px) {
    .cms-cta-row .cms-btn {
        width: 100% !important;
    }

    .product-cart > div {
        flex: 0 0 8rem;
    }
}

@media (max-width: 1023px) {
  .product-gallery-column,
  .product-details-column {
    display: contents;
  }

  .product-gallery-column.space-y-6 > :not([hidden]) ~ :not([hidden]),
  .product-details-column.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
  }

  .product-category { order: 1; }
  .product-title { order: 2; }
  .product-heat { order: 3; }
  .product-image { order: 4; }
  .product-description { order: 5; }
  .product-summary { order: 6; }
  .product-rating { order: 7; }
  .product-foods { order: 8; }
  .product-pricing { order: 9; }
  .product-weight { order: 10; }
  .product-paired { order: 10; }
  .product-cart { order: 11; }
}


[type='checkbox']:focus, [type='radio']:focus {
    outline: 0px none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* Medal badges — clean, same-color text */
.medal-badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    color: #1c1b1b;
}

/* medal styles */
.medal-gold {
  background: radial-gradient(circle at 35% 30%, #fff4cc 0%, #ffd043 45%, #d18d00 85%, #8c5600 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.35), 0 4px 12px rgba(184, 134, 11, 0.25);
}
.medal-silver {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e1e7eb 40%, #a4b0b8 80%, #68747d 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.9), inset 0 -3px 6px rgba(0,0,0,0.25), 0 4px 12px rgba(100, 116, 139, 0.2);
}
.medal-bronze {
  background: radial-gradient(circle at 35% 30%, #ffeedd 0%, #e59866 45%, #b35926 85%, #6e2f0d 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -3px 6px rgba(0,0,0,0.3), 0 4px 12px rgba(179, 89, 38, 0.25);
}
.badge-ribbon-pattern {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,0.03) 4px, rgba(0,0,0,0.03) 8px);
}
.shadow-warm-ambient {
  box-shadow: 0 12px 32px -4px rgba(61, 35, 12, 0.08), 0 4px 12px -2px rgba(61, 35, 12, 0.04);
}
.shadow-warm-hover {
  box-shadow: 0 20px 40px -6px rgba(61, 35, 12, 0.12), 0 8px 16px -4px rgba(61, 35, 12, 0.06);
}

/* === Missing Tailwind utilities required by timeline/awards layout === */

/* Spacing utilities */
.ml-32 { margin-left: 8rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: 3rem;
  margin-bottom: 0;
}

/* Negative positioning */
.-left-\[35px\] { left: -35px; }
.-left-\[51px\] { left: -51px; }

/* Positioning utilities */
.top-1\.5 { top: 0.375rem; }

/* Modal sizing utilities (missing from purged Tailwind) */
.max-w-\[90vw\] { max-width: 90vw; }
.max-h-\[90vh\] { max-height: 90vh; }

/* Layout utilities */
.w-max { width: max-content; }
.pr-2 { padding-right: 0.5rem; }

/* Min-width utilities for eshop filter groups */
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[160px\] { min-width: 160px; }

/* Border utilities */
.border-l-2 { border-left-width: 2px; }
.border-outline-variant\/30 { border-color: rgba(191, 201, 189, 0.3); }
.border-outline-variant\/40 { border-color: rgba(191, 201, 189, 0.4); }
.border-secondary-container\/40 { border-color: rgba(219, 49, 58, 0.4); }

/* Background with opacity */
.bg-primary-container\/30 { background-color: rgba(7, 91, 42, 0.3); }
.bg-primary\/25 { background-color: rgba(0, 65, 27, 0.25); }
.bg-primary\/5 { background-color: rgba(0, 65, 27, 0.05); }
.bg-surface-container-lowest\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }

/* Hover border colors */
.hover\:border-primary-container:hover { border-color: #075b2a; }
.hover\:border-secondary:hover { border-color: #b71225; }
.hover\:border-tertiary:hover { border-color: #572c00; }
.hover\:shadow-warm-hover:hover { box-shadow: 0 20px 40px -6px rgba(61, 35, 12, 0.12), 0 8px 16px -4px rgba(61, 35, 12, 0.06); }
.hover\:rotate-3:hover { transform: rotate(3deg); }
.hover\:-rotate-2:hover { transform: rotate(-2deg); }
.hover\:text-secondary:hover { color: #b71225; }
.group:hover .group-hover\:scale-125 { --tw-scale-x: 1.25; --tw-scale-y: 1.25; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Text colors */
.text-on-primary-fixed { color: #00210b; }

/* Material symbols fill icon variant */
.fill-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Responsive variants (md = 768px) */
@media (min-width: 768px) {
  .md\:ml-32 { margin-left: 8rem; }
  .md\:pl-10 { padding-left: 2.5rem; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:-left-\[51px\] { left: -51px; }
  .md\:justify-between { justify-content: space-between; }
  .md\:ml-14 { margin-left: 3.5rem; }
  .md\:ml-12 { margin-left: 3rem; }
  .md\:space-y-10 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }
}
@media (min-width: 1024px) {
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg\:ml-32 { margin-left: 8rem; }
  .lg\:pl-10 { padding-left: 2.5rem; }
  .lg\:ml-14 { margin-left: 3.5rem; }
  .lg\:ml-12 { margin-left: 3rem; }
  .lg\:space-y-10 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }
}
@media (min-width: 640px) {
  .sm\:ml-14 { margin-left: 3.5rem; }
  .sm\:ml-12 { margin-left: 3rem; }
  .sm\:space-y-10 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }
}

/* Timeline vertical line and circle positioning */
.w-\[3px\] { width: 3px; }
.bottom-8 { bottom: 2rem; }
.-left-14 { left: -3.5rem; }
.-left-12 { left: -3rem; }
.-left-10 { left: -2.5rem; }
.-left-7 { left: -1.75rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: 2rem;
  margin-bottom: 0;
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: 2.5rem;
  margin-bottom: 0;
}


/* Responsive variants (sm = 640px) */
@media (min-width: 640px) {
  .sm\:-left-6 { left: -1.5rem; }
  .sm\:-left-10 { left: -2.5rem; }
  .sm\:-left-14 { left: -3.5rem; }
  .sm\:items-start { align-items: flex-start; }
  .sm\:self-auto { align-self: auto; }
}

/* Responsive variants (md = 768px) */
@media (min-width: 768px) {
  .md\:items-start { align-items: flex-start; }
}


a {

  transition-duration:0.3s !important;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}