/* Fonts */
:root {
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
/*

/* Colors */

/* Alert overrides */
.alert-info {
  --bs-alert-color: #2f4630;
  --bs-alert-bg: #e6ede5;
  --bs-alert-border-color: #c5d4c3;
}

  /* Button overrides */
  .btn-primary {
    color: #fff !important;
    background-color: #90a989;
    border-color: #90a989;
  }

  .btn-primary:hover {
    background-color: #7a9273;
    border-color: #7a9273;
  }

  .btn-primary:active,
  .btn-primary.active,
  .btn-primary:focus {
    background-color: #6a8263;
    border-color: #6a8263;
    box-shadow: 0 0 0 0.25rem rgba(144, 169, 137, 0.25);
  }

  .btn-primary:disabled,
  .btn-primary.disabled {
    background-color: #90a989;
    border-color: #90a989;
    opacity: 0.65;
  }

  .btn-outline-primary {
    color: #90a989 !important;
    border-color: #90a989;
    border-width: 2px;
  }

  .btn-outline-primary:hover {
    background-color: #90a989;
    border-color: #90a989;
    color: #fff !important;
  }

  .btn-outline-primary:active,
  .btn-outline-primary.active,
  .btn-outline-primary:focus {
    background-color: #7a9273;
    border-color: #7a9273;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(144, 169, 137, 0.25);
  }

  .btn-outline-primary:disabled,
  .btn-outline-primary.disabled {
    color: #90a989 !important;
    border-color: #90a989;
    opacity: 0.65;
  }

  /* Badges */
  .bg-primary {
    background-color: #90a989 !important;
  }

  .badge.bg-primary {
    background-color: #90a989 !important;
    color: #fff;
  }


<a href="https://www.khfrugt.dk/index.php" style="font-size:38px;color:#000000;font-family: 'Raleway', sans-serif; !important;"> K.H. FRUGT OG GRØNT A/S  <br><br> </a>
*/

/* simple helper for content area to mimic future design spacing */
  .site-header { border-bottom: 1px solid #e9ecef; }
  .site-footer { border-top: 1px solid #e9ecef; padding: 1.5rem 0; font-size: .9rem; color: #6c757d; }

    /* Navbar active link treatment */
    .navbar .nav-link {
      position: relative !important;
      color: #3f3f3f;
    }

    .navbar .nav-link.is-active {
      color: #2f4630;
      font-weight: 600;
    }

    .navbar .nav-link::after {
      content: "" !important;
      position: absolute;
      left: 0.5rem;
      right: 0.5rem;
      bottom: 0.25rem;
      height: 2px;
      background-color: #90a989;
      border-bottom: none;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 250ms ease-out;
    }

    .navbar .nav-link.is-active::after,
    .navbar .nav-link:hover::after {
      transform: scaleX(1);
    }

    @media (max-width: 991.98px) {
      .navbar .nav-link::after {
        left: 0;
        right: auto;
        width: 2rem;
      }
    }

  /* hide Alpine-cloaked elements until Alpine initializes */
  [x-cloak] { display: none !important; }

  /* Custom transition classes for fade-in effect */
  .fade-enter-active {
    transition: opacity 300ms ease-out;
  }
  .fade-enter-from {
    opacity: 0;
  }
  .fade-enter-to {
    opacity: 1;
  }

  /* WOW.js local animation classes (no animate.css dependency) */
  .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  .fadeIn {
    animation-name: fadeIn;
  }

  .fadeInLeft {
    animation-name: fadeInLeft;
  }

  .fadeInUp {
    animation-name: fadeInUp;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translate3d(-24px, 0, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 24px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  /* Hero */

  .hero-image {
    width: 100%; height: auto;
    object-fit: cover;
    object-position: center;
    min-height: 300px;
    max-height: 500px;
  }

  .hero-overlay {
    width: 30rem; height: 15rem; top: 30%; left: 2rem;
    max-width: 95%;
  }

  @media (max-width: 991.98px) {
    .hero-overlay {
      top: 15%;
      left: 1rem;
      padding: 1rem !important;
    }
  }

  @media (max-width: 420px) {
    .hero-overlay .btn i,
    .btn[type="submit"] i,
    button[type="submit"] i {
      display: none !important;
    }
  }

  .hero-overlay h3 {
    font-size: 2.25rem;
    font-family: var(--font-condensed);
  }

  .hero-overlay p {
    font-size: 1rem; line-height: 1.5rem;
  }

  .hero-overlay .btn {
    max-width: 48%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-condensed);
    font-weight: 400;
    font-size: 0.90rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }


/* Full width pictures */

.block-image img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
}

/* OpenStreetMap StreamField block */
.osm-map-block-fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.osm-map-canvas {
  width: 100%;
}

  /* ---- Forms ---- */
  .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
  }

  .form-control,
  .form-select,
  textarea.form-control {
    border-width: 2px;
    border-color: #90a989;
    border-radius: 0.375rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    padding: 0.75rem 0.875rem;
  }

  .form-control:focus,
  .form-select:focus,
  textarea.form-control:focus {
    border-color: #90a989;
    box-shadow: 0 0 0 0.2rem rgba(144, 169, 137, 0.15);
    outline: none;
  }

  /* Fallback focus styling when widgets are rendered without Bootstrap classes */
  .content-page form input:focus,
  .content-page form select:focus,
  .content-page form textarea:focus,
  .content-page form input:focus-visible,
  .content-page form select:focus-visible,
  .content-page form textarea:focus-visible {
    border-color: #90a989 !important;
    box-shadow: 0 0 0 0.2rem rgba(144, 169, 137, 0.15) !important;
    outline: none !important;
  }

  .form-control::placeholder {
    color: #adb5bd;
    opacity: 0.8;
  }

  .form-control:disabled,
  .form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.65;
  }

  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }

  .form-check-input {
    border-width: 2px;
    border-color: #90a989;
    width: 1.25rem;
    height: 1.25rem;
  }

  .form-check-input:checked {
    background-color: #90a989;
    border-color: #90a989;
  }

  .form-check-input:focus {
    border-color: #90a989;
    box-shadow: 0 0 0 0.2rem rgba(144, 169, 137, 0.15);
  }

  .content-page form input[type="checkbox"]:focus,
  .content-page form input[type="radio"]:focus,
  .content-page form input[type="checkbox"]:focus-visible,
  .content-page form input[type="radio"]:focus-visible {
    border-color: #90a989 !important;
    box-shadow: 0 0 0 0.2rem rgba(144, 169, 137, 0.15) !important;
    outline: none !important;
  }

  /* Submit button styling */
  .btn[type="submit"] {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-width: 2px;
  }

  /* Form errors */
  .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }

  .is-invalid .form-control {
    border-color: #dc3545;
  }

  .is-invalid .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
  }


/* Offers (table for "ugens tilbud") */

  .ugens-tilbud {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
  }

  .ugens-tilbud tr > th:nth-child(2),
  .ugens-tilbud tr > td:nth-child(2) {
    text-align: right;
  }


/* Product list (shop) */

.products-table tr > th:nth-child(2),
.products-table tr > td:nth-child(2),
.products-table tr > th:nth-child(3),
.products-table tr > td:nth-child(3) {
  border-right: 1px solid #dee2e6;
}

/* Product list category heading rows */
.products-table tr.table-secondary {
  /* Override Bootstrap's striped CSS variable so rgba mixing doesn't win */
  --bs-table-bg: #f0f4f0;
  --bs-table-striped-bg: #f0f4f0;
  --bs-table-hover-bg: #f0f4f0;
  --bs-table-bg-type: 0;
  --bs-table-color-type: 0;
}

.products-table tr.table-secondary td {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 1.125rem !important;
  text-transform: uppercase;
  /*letter-spacing: 0.05em;*/
  color: #000000;
  background-color: #f0f4f0 !important;
  border-top: 2px solid #000000;
}


/* Footer */

  .footer-widgets {
    padding: 30px 0 20px 0;
  }

  .inner-space-top {
    padding-top: 15px !important;
  }

  .inner-space-bottom {
    padding-bottom: 15px !important;
  }

/* Cart drawer – fade + scale entrance effect */
/* Remove old translateX rules and replace with keyframe animation */
.cart-drawer,
.cart-sidebar,
.cart-panel,
.offcanvas-cart,
[id*="cart"][id*="drawer"],
[id*="cart"][id*="sidebar"],
[id*="cart"][id*="panel"],
[class*="cart-drawer"],
[class*="cart-sidebar"],
[class*="cart-panel"] {
  animation: cartFadeIn 300ms ease-out both;
  transform-origin: top right;
}

@keyframes cartFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Cart badge pop animation */
@keyframes cartBadgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.badge-pop {
  animation: cartBadgePop 350ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Product table – fill remaining viewport height */
.products-table .table-responsive {
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}
