/* ==========================================================================
   Modern Clean Design - Holzhof Lübeck
   Fresh, minimal design with white background
   ========================================================================== */

:root {
  /* Modern Color Palette - Green Theme */
  --color-accent: #4d6f39;
  --color-accent-dark: #334a26;
  --color-accent-light: #4d6f39;

  /* Warning colour */
  --color-warning: #8d2424;

  /* Backgrounds */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #ececec;

  /* Text Colors */
  --color-text-primary: #000000;
  --color-text-secondary: #535353;
  --color-text-light: #ffffff;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 2px 4px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-primary: "Cambo", system-ui, -apple-system, sans-serif;
  --font-size-h1: 2.25rem;
  --font-size-h2: 1.8rem;
  --font-size-h3: 1.35rem;
  --font-size-body: 0.9rem;
  --font-size-small: 0.7875rem;

  /* Spacing */
  --spacing-xs: 0.45rem;
  --spacing-sm: 0.9rem;
  --spacing-md: 1.35rem;
  --spacing-lg: 1.8rem;
  --spacing-xl: 2.7rem;
  --spacing-xxl: 3.6rem;

  /* Layout */
  --container-max-width: 1080px;
  --border-radius: 7.2px;
  --border-radius-lg: 10.8px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure ALL elements use the primary font */
*,
*::before,
*::after {
  font-family: var(--font-primary) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-h1);
  color: var(--color-text-primary);
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--color-text-primary);
}

h3 {
  font-size: var(--font-size-h3);
  color: var(--color-text-secondary);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Header */
.header {
  background-color: var(--color-bg-primary);
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-xs) 0;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 64px; /* increased logo size */
  width: auto;
  transition: height 0.15s ease;
}

/* Slightly smaller logo on small screens */
@media (max-width: 600px) {
  .header__logo img {
    height: 56px;
  }
}

.header__nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.header__nav a {
  font-weight: 500;
  color: var(--color-text-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.header__nav a:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-accent);
}

.header__nav a.active {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.header__mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  margin: 2px 0;
  transition: 0.3s;
}

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
  /* remove top padding so hero starts directly under the sticky header */
  padding: 0 0 var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 25vh;
  color: var(--color-text-light);
  font-size: var(--font-size-h1);
  font-weight: 700;
  text-align: center;
  margin-top: 0; /* ensure no unexpected gap above hero */
}

.hero__content {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Replace old hero slideshow rules with a crossfade slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* slide duration (visible time per slide) and total slides */
  --slide-duration: 4s; /* shown per image */
  --slide-count: 5; /* set this to the actual number of images in your HTML */
  pointer-events: none;
  /* Default background to prevent white flash */
  background-color: #2c2c2c;
}

/* Images stacked on top of each other, each animates across the full cycle */
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation-name: fade;
  animation-duration: calc(var(--slide-count) * var(--slide-duration));
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  /* Improve performance */
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Stagger start times so each image gets its own 5s window.
   Supports up to 11 images — add more nth-child rules if needed. */
.hero-slideshow img:nth-child(1) {
  animation-delay: calc(0 * var(--slide-duration));
}
.hero-slideshow img:nth-child(2) {
  animation-delay: calc(1 * var(--slide-duration));
}
.hero-slideshow img:nth-child(3) {
  animation-delay: calc(2 * var(--slide-duration));
}
.hero-slideshow img:nth-child(4) {
  animation-delay: calc(3 * var(--slide-duration));
}
.hero-slideshow img:nth-child(5) {
  animation-delay: calc(4 * var(--slide-duration));
}
.hero-slideshow img:nth-child(6) {
  animation-delay: calc(5 * var(--slide-duration));
}
.hero-slideshow img:nth-child(7) {
  animation-delay: calc(6 * var(--slide-duration));
}
.hero-slideshow img:nth-child(8) {
  animation-delay: calc(7 * var(--slide-duration));
}
.hero-slideshow img:nth-child(9) {
  animation-delay: calc(8 * var(--slide-duration));
}
.hero-slideshow img:nth-child(10) {
  animation-delay: calc(9 * var(--slide-duration));
}
.hero-slideshow img:nth-child(11) {
  animation-delay: calc(10 * var(--slide-duration));
}

/* Crossfade keyframes: each image fades in, holds, then fades out in its slot of the full animation cycle */
@keyframes fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero__title-wrapper {
  text-align: center;
  margin-bottom: var(--spacing-md);
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}

.hero__title-line-with-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.hero__title-line {
  height: 3px;
  background-color: var(--color-text-light);
  margin: var(--spacing-sm) auto;
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__title-line-with-text .hero__title-line {
  flex: 1;
  max-width: 200px;
  margin: 0;
}

.hero__title-line--bottom {
  margin-top: var(--spacing-lg);
  max-width: 600px;
}

.hero__title-small {
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin: 0;
  font-weight: 400;
  white-space: nowrap;
}

.hero__title-main {
  font-size: 7rem;
  color: var(--color-text-light);
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 0.9;
}

.hero__title-sub {
  font-size: 3.5rem;
  color: var(--color-text-light);
  margin: 0;
  font-weight: 600;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .hero__title-line-with-text {
    gap: var(--spacing-sm);
  }

  .hero__title-small {
    font-size: 1rem;
  }

  .hero__title-main {
    font-size: 4.5rem;
    letter-spacing: 2px;
  }

  .hero__title-sub {
    font-size: 2.5rem;
  }

  .hero__title-line {
    max-width: 300px;
  }

  .hero__title-line-with-text .hero__title-line {
    max-width: 120px;
  }

  .hero__title-line--bottom {
    max-width: 400px;
  }
}

/* Large screens - scale up the hero title */
@media (min-width: 1200px) {
  .hero__title-small {
    font-size: 1.8rem;
  }

  .hero__title-main {
    font-size: 8.5rem;
    letter-spacing: 5px;
  }

  .hero__title-sub {
    font-size: 4.2rem;
    letter-spacing: 3px;
  }

  .hero__title-line-with-text {
    gap: var(--spacing-lg);
  }

  .hero__title-line-with-text .hero__title-line {
    max-width: 250px;
  }

  .hero__title-line--bottom {
    max-width: 700px;
  }
}

/* Extra large screens - even bigger scaling */
@media (min-width: 1600px) {
  .hero__title-small {
    font-size: 2.2rem;
  }

  .hero__title-main {
    font-size: 10rem;
    letter-spacing: 6px;
  }

  .hero__title-sub {
    font-size: 5rem;
    letter-spacing: 4px;
  }

  .hero__title-line-with-text {
    gap: var(--spacing-xl);
  }

  .hero__title-line-with-text .hero__title-line {
    max-width: 300px;
  }

  .hero__title-line--bottom {
    max-width: 800px;
  }
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 50vw;
  margin-left: auto;
  margin-right: auto;
}

/* Product Overview */
.product-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.offering-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.offering-link:hover h3 {
  color: var(--color-accent);
}

/* Header Section (for non-hero pages) */
.section--header {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.section--header h1 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.section--header .section__subtitle {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Ensure offering buttons have white text (high-contrast) */
.offering-content .btn,
.offering-content .btn--primary {
  color: var(--color-text-light) !important;
}

/* Centralized notification styles (used by modern-products.js) */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.2s ease;
  max-width: 320px;
}

.notification--success {
  background: var(--color-accent);
}

.notification--info {
  background: var(--color-text-primary);
}

.notification--error {
  background: #c0392b;
}

.notification--warning {
  background: #f39c12;
}

/* Cart counter / badge (consistent site-wide) */
.cart-counter {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-text-light);
  font-size: 0.75rem;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  margin-left: var(--spacing-xs);
  box-shadow: var(--shadow-button);
}

/* Ensure cart-counter inside header links aligns nicely */
.header__nav a .cart-counter {
  margin-left: 8px;
}

/* Location Contact Layout */
.location-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .location-contact {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.contact-info {
  margin-bottom: var(--spacing-lg);
}

.contact-info p {
  margin-bottom: var(--spacing-sm);
}

/* Footer */
.footer {
  margin-top: auto;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer__logo {
  height: 40px;
}

/* Offerings Section */
.offerings {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-lg) 0;
}

.offering-box {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offering-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--spacing-sm);
}

.offering-content h3 {
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.offering-content p {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
  font-weight: normal;
}

.offering-content .btn {
  margin-top: auto;
  align-self: center;
}

.offering-box a {
  text-decoration: none;
  color: var(--color-text-primary);
}

/* Modern offering card: full-image clickable cards with overlay */
.offering-card {
  display: block;
  position: relative;
  height: 360px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
}

.offering-card:focus,
.offering-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.offering-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 10%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  color: var(--color-text-light);
}

.offering-card__overlay h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--font-size-h3);
  font-weight: 700;
}

.offering-card__overlay p {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.9);
}

/* Strong outline effect: white text with a fading black outline to improve readability */
.offering-card__overlay h3,
.offering-card__overlay p {
  color: #ffffff;
  /* Subtle shadow to lift text off busy backgrounds */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .offering-card__overlay h3,
  .offering-card__overlay p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
}

.offering-card__overlay .btn {
  align-self: flex-start;
  background: var(--color-accent);
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .offering-card {
    height: 300px;
  }
  .offering-card__overlay {
    padding: var(--spacing-sm);
  }
}

/* Location Section */
.location-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.location-info h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
}

.hours {
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xl);
}

.hours:last-child {
  margin-bottom: 0;
}

.hours h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 1.5em;
}

.hours p {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

.hours p:last-child {
  margin-bottom: 0;
}

.map iframe {
  border: 0;
  width: 100%;
  height: 600px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* Contact Section */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-info {
  font-size: 1.125rem;
}

.contact-info p {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .location-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .map iframe {
    height: 400px;
  }

  .contact-info {
    font-size: var(--font-size-body);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-body);
  font-weight: 500;
  font-family: var(--font-primary) !important;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-button);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn--secondary {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-bg-secondary);
  transform: translateY(-1px);
}

/* Cards */
.card {
  background-color: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: var(--spacing-md);
}

.card__title {
  margin-bottom: var(--spacing-xs);
}

.card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
}

.section--gray {
  background-color: var(--color-bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section__title {
  margin-bottom: var(--spacing-sm);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form {
  max-width: 500px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--spacing-md);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 768px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form__label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius);
  font-size: var(--font-size-body);
  font-family: var(--font-primary) !important;
  transition: border-color 0.2s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__section-title {
  font-size: var(--font-size-h3);
  color: var(--color-text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-accent);
}

.form__disclaimer {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  border-left: 4px solid var(--color-accent);
}

.form__disclaimer p {
  margin: 0;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.form-actions .btn--primary {
  flex: 1;
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .form-actions .btn--primary {
    order: 1;
  }
}

/* Footer */
.footer {
  background-color: var(--color-text-primary);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer p {
  color: var(--color-text-light);
  opacity: 0.8;
}

.footer a {
  color: var(--color-text-light);
  text-decoration: none;
}

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

footer {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-md);
  text-align: center;
  color: var(--color-text-light);
}

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

/* Product Listings */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.product-card {
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  /* Use explicit transitions for transform and opacity to avoid animation flicker when images load */
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  /* Hint to the browser to optimize for opacity/transform transitions */
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  cursor: pointer;
  /* Neutral background while image is loading to avoid white/black flashes */
  background-color: var(--color-bg-primary);
}

/* Skeleton placeholder styles for immediate UI while products load */
.product-card.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary),
    #ececec,
    var(--color-bg-secondary)
  );
  animation: skeleton-pulse 1.2s linear infinite;
  color: transparent; /* hide any text in placeholder */
}

.product-card.skeleton .product-card__image {
  background: linear-gradient(90deg, #e9ecef, #f5f5f5, #e9ecef);
}

.product-card.skeleton .product-card__content {
  background: transparent;
}

@keyframes skeleton-pulse {
  0% {
    filter: brightness(0.98);
  }
  50% {
    filter: brightness(1.02);
  }
  100% {
    filter: brightness(0.98);
  }
}

/* New Gallery System */
.product-card__gallery {
  position: relative;
}

/* Image warning banner for balken products */
.image-warning-banner {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-warning);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  max-width: 120px;
  text-align: center;
  line-height: 1.2;
}

.gallery-container {
  position: relative;
}

.gallery-main {
  position: relative;
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-container:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav--prev {
  left: 10px;
}

.gallery-nav--next {
  right: 10px;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  z-index: 3;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--color-accent);
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Fullscreen Gallery */
.fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fullscreen-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.fullscreen-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-main img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.fullscreen-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.fullscreen-nav--prev {
  left: -70px;
}

.fullscreen-nav--next {
  right: -70px;
}

.fullscreen-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fullscreen-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.fullscreen-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fullscreen-dot.active {
  background: white;
}

.fullscreen-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for galleries */
@media (max-width: 768px) {
  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .gallery-nav--prev {
    left: 5px;
  }

  .gallery-nav--next {
    right: 5px;
  }

  .fullscreen-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .fullscreen-nav--prev {
    left: 10px;
  }

  .fullscreen-nav--next {
    right: 10px;
  }

  .fullscreen-main img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .fullscreen-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
  }
}

.product-card__content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.product-card__description-container {
  margin-bottom: var(--spacing-md);
}

.product-card__description {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
  transition: max-height 0.3s ease;
  display: block;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.description-toggle-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: var(--font-size-small);
  font-family: var(--font-primary) !important;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  display: block;
  margin-top: var(--spacing-xs);
  font-weight: 500;
  transition: color 0.2s ease;
}

.description-toggle-btn:hover {
  color: var(--color-accent-dark);
}

.product-card__offer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: var(--color-bg-primary);
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.product-card__prices {
  margin-bottom: var(--spacing-md);
}

/* New tiered pricing styles */
.product-card__pricing {
  margin-bottom: var(--spacing-md);
}

.pricing-tier {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-accent-light);
}

.pricing-tier:last-child {
  border-bottom: none;
}

.pricing-info {
  flex: 1;
  margin-right: var(--spacing-sm);
}

.pricing-label {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-small);
}

.pricing-display {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: 1.4;
}

.unit-tooltip {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  color: var(--color-accent);
}

.discount-text {
  color: var(--color-text-secondary);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.pricing-controls {
  display: flex;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-input {
  width: 60px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-primary) !important;
  background: var(--color-bg-primary);
  padding: 4px;
  /* Always show spinners */
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
  height: 30px;
}

/* Firefox */
.quantity-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.quantity-unit {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.product-card__highlight {
  background: var(--color-bg-secondary);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-accent-light);
}

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

.price-label {
  color: var(--color-text-secondary);
}

.price-value {
  font-weight: 600;
  color: var(--color-accent);
}

.product-card__flexible-space {
  flex: 1;
}

.product-card__actions {
  margin-top: auto;
  text-align: center;
  padding-top: var(--spacing-md);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-accent-light);
}

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

.price-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.price-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-left: var(--spacing-sm);
}

.price-quantity-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-quantity-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-accent);
  background: var(--color-bg-primary);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  font-family: var(--font-primary) !important;
}

.price-quantity-btn:hover {
  background: var(--color-bg-secondary);
}

.price-quantity {
  min-width: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.price-add-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-primary) !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.price-add-btn:hover {
  background: var(--color-accent-dark);
}

/* Cart */
.cart-item {
  background: var(--color-bg-primary);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  gap: var(--spacing-md);
}

.cart-item__image {
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  flex: 1;
}

.cart-item__title {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
  padding-right: 40px; /* Make space for X button */
}

.remove-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--color-accent);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  font-family: var(--font-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.remove-btn:hover {
  background: var(--color-accent-dark);
  transform: scale(1.1);
}

.cart-item__category {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
}

.cart-item__price {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.cart-item__tier {
  background: var(--color-bg-secondary);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-xs);
  border: 1px solid var(--color-accent-light);
  width: 100%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.cart-item__tier--selected {
  opacity: 1;
  border-color: var(--color-accent);
  background: var(--color-bg-primary);
}

.cart-tier-info {
  margin-bottom: var(--spacing-xs);
}

.cart-tier-label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
}

.cart-tier-quantity {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.cart-tier-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-tier-unit-price {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
}

.cart-tier-discount {
  color: var(--color-accent);
  font-size: var(--font-size-small);
  font-weight: 600;
}

.cart-tier-total {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.1rem;
  text-align: right;
}

.cart-tier-label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
}

.cart-tier-price {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  margin-bottom: var(--spacing-xs);
}

.cart-tier-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  justify-content: space-between;
}

.cart-quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-quantity-input {
  width: 60px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-primary) !important;
  background: var(--color-bg-primary);
  padding: 4px;
  /* Always show spinners */
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
  height: 30px;
}

/* Firefox */
.cart-quantity-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-quantity-input:focus {
  outline: none;
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.cart-quantity-unit {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.cart-unit-tooltip {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  color: var(--color-accent);
  margin-left: 4px;
}

.cart-summary {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-accent-light);
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 2px solid var(--color-accent);
}

.summary-note {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-md);
    z-index: 1000;
  }

  .header__nav.nav--open {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .header__nav a {
    display: block;
    text-align: center;
    padding: var(--spacing-sm);
  }
  .header__mobile-toggle {
    display: flex;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .grid--2-col,
  .grid--3-col {
    grid-template-columns: 1fr;
  }

  .price-controls {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch;
  }

  .price-quantity-controls {
    justify-content: center;
  }

  .pricing-tier {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch;
  }

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

  .quantity-selector {
    justify-content: center;
    gap: var(--spacing-xs);
  }

  .quantity-input {
    width: 80px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-item__image {
    width: 160px;
    height: 90px;
  }

  .cart-item__title {
    padding-right: 35px; /* Slightly less space on mobile */
  }

  .remove-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
  }

  .cart-tier-controls {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: stretch;
  }

  .cart-quantity-selector {
    justify-content: center;
  }

  .cart-quantity-input {
    width: 80px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.hidden {
  display: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--spacing-sm);
  background-color: var(--color-text-primary);
  color: var(--color-text-light);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--spacing-sm);
  top: var(--spacing-sm);
}

/* Animation */
/* Keep a simple fade-in class that aligns with the transition on .product-card.
   We intentionally avoid keyframe animations here so elements are visible immediately
   and adding the class only harmonizes with the existing transition. */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
