.text {
    font-family: sans-serif;
}

.horizontal-flex-vertical-mobile {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Prominent notice style for supplemental messages */
.notice-banner {
  display: inline-block;
  padding: 8px 12px;
  background: #fff7ed; /* soft amber */
  color: #92400e; /* dark amber text for contrast */
  border: 1px solid #f59e0b; /* accent border */
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.3;
  font-size: clamp(16px, 2.2vw, 20px);
  margin-left: 10px;
}

/* --- Global foundations --- */
html, body {
  height: 100%;
}

body {
  margin: 0;
  color: #111827; /* gray-900 */
  background: #f8fafc; /* slate-50 */
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Make media elements fluid by default */
img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

/* Constrain page content while allowing header/footer full-width */
.page-container {
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Categories bar (beneath header) --- */
.categories-bar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.categories-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px; /* inner padding matches page-container gutter */
  overflow-x: auto; /* allow horizontal scroll on small screens */
  -webkit-overflow-scrolling: touch;
}

.categories-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280; /* gray-500 */
  flex: 0 0 auto;
}

.categories-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px; /* pill */
  background: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.category-link:hover {
  background: #e5e7eb; /* gray-200 */
  border-color: #d1d5db; /* gray-300 */
}

.category-link:active {
  transform: translateY(1px);
}

.category-link:focus-visible {
  outline: 2px solid #2563eb; /* blue-600 */
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .categories-inner { padding: 8px 12px; }
  .categories-title { display: none; } /* save space on very small screens */
  .category-link { padding: 6px 10px; font-size: 14px; }

}


.vertical-flex-horizontal-mobile {
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.table-entry-label {
    display: none;
}

.bold-text {
    font-family: sans-serif;
    font-weight: bold;
}

.two-col-grid {
    grid-template-columns: 1fr 1fr;
    display: grid;
    width: 100%;
    gap: 10px;
}


.table-text-entry {
    display: flex;
    flex-flow: row;
    justify-content: space-between;

}

.seven-column-table-row {
    padding: 10px;
    grid-template-columns: 25% 25% 10% 10% 10% 10% 10%;
    border: 1px solid gray;
    display: grid;
    border-radius: 10px;
}

.five-column-table-row {
    padding: 10px;
    grid-template-columns: 30% 30% 10% 20% 10%;
    border: 1px solid gray;
    display: grid;
    border-radius: 10px;
}

.seven-column-table-header {
    padding: 10px;
    grid-template-columns: 25% 25% 10% 10% 10% 10% 10%;
    border: 1px solid gray;
    display: grid;
    border-radius: 10px;
}

.five-column-table-header {
    padding: 10px;
    grid-template-columns: 30% 30% 10% 20% 10%;
    border: 1px solid gray;
    display: grid;
    border-radius: 10px;
}


.center-vertical-div {
    display: flex;
    flex-flow: column;
    align-items: center;
    border: 1px solid gray;
    border-radius: 10px;
}

.small-image-div {
    width: 200px;
    height: 200px;
    justify-content: center; /* Horizontally centers items */
    align-items: center;
}

.small-image {
    max-width: 100%:
    max-height: 100%;
    border-radius: 10px;

}

.header-anchor {
    text-decoration: none;
    color: black;
    font-size: 150%;
    font-family: sans-serif;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.header-anchor:hover {
    color: #FF1C00;
}

.header-anchor:active {
    transform: translateY(1px);
}

.header-anchor:focus-visible {
    outline: none;
    background-color: rgba(255, 28, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 28, 0, 0.2);
}


.underline_anchor {
    color: black;
}

.anchor {
    text-decoration: none;
    color: black;
    font-family: sans-serif;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.anchor:hover {
    background-color: rgba(255, 28, 0, 0.06);
}

.anchor:active {
    transform: translateY(1px);
}

.anchor:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 28, 0, 0.2);
}

.top-flash-message {
    position: fixed;
    top: 12px;        /* keep away from header */
    right: 12px;      /* pin to top-right */
    padding: 10px;
    border-radius: 10px;
    background-color: red;
    z-index: 300;      /* below header but above page content */
}

.bottom-border {
    width: 100px;
    border-bottom: 1px solid gray;
    padding-bottom: 10px;
}

.bottom-border-full-width {
    width: 100%;
    border-bottom: 1px solid gray;
    padding-bottom: 10px;
}

.absolute-pos-dropdown{
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px;
    top: 36px;
    position: absolute;
    display: flex;
    gap: 6px;
    flex-flow: column;
    /* Center under trigger by default */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    min-width: 160px;
    /* Prevent viewport overflow */
    max-width: min(90vw, 360px);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.06);
    z-index: 200; /* ensure menus overlay other UI */
}

/* Ensure dropdown children never overflow the viewport or container */
.absolute-pos-dropdown > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Wrap long words/strings inside items so they don't cause horizontal overflow */
.absolute-pos-dropdown a.anchor,
.absolute-pos-dropdown .text,
.absolute-pos-dropdown div {
  white-space: normal;
  overflow-wrap: anywhere; /* allow breaking long tokens */
  word-break: break-word;  /* extra safety for legacy browsers */
}

/* Keep dropdowns inside viewport on smaller screens */
@media (max-width: 700px) {
  .absolute-pos-dropdown {
    right: 0;
    left: auto;
    transform: none; /* avoid off-screen when near edges */
    max-width: min(95vw, 360px);
  }
}

.anchor {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
}


.horizontal-div{
    display: flex;
    flex-flow: row;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.horizontal-div > div {
    position: relative; /* anchor for absolute dropdowns */
}

/* --- Dropdown menus (header) --- */
.nav-group {
  position: relative; /* safety in case structure changes */
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb; /* gray-200 */
  background: #ffffff;
  color: #111827; /* gray-900 */
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.nav-button::after {
  content: "▾";
  font-size: 0.85em;
  line-height: 1;
  color: #6b7280; /* gray-500 */
}

.nav-button:hover {
  background: #f9fafb; /* gray-50 */
}

.nav-button:focus {
  outline: 2px solid #6366f1; /* indigo-500 */
  outline-offset: 2px;
}

.nav-button[aria-expanded="true"] {
  border-color: #c7cdd8;
  background: #f8fafc; /* slate-50 */
}

.nav-button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.dropdown-menu-right {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none; /* JS toggles to flex */
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08), 0 4px 8px rgba(16, 24, 40, 0.06);
  z-index: 200; /* above header */
  transform-origin: top right;
  transform: scale(0.98);
  opacity: 0;
  transition: transform .12s ease, opacity .12s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none; /* JS toggles to flex */
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08), 0 4px 8px rgba(16, 24, 40, 0.06);
  z-index: 200; /* above header */
  transform-origin: top right;
  transform: scale(0.98);
  opacity: 0;
  transition: transform .12s ease, opacity .12s ease;
}

/* When JS opens the menu it sets display:flex; show final state transitions */
.dropdown-menu[hidden="false"],
.dropdown-menu[aria-hidden="false"],
.nav-group .dropdown-menu:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}

.dropdown-menu-right[hidden="false"],
.dropdown-menu-right[aria-hidden="false"],
.nav-group .dropdown-menu-right:not([hidden]) {
  opacity: 1;
  transform: scale(1);
}

.dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #f3f4f6; /* gray-100 */
  outline: none;
}

.dropdown-item:active {
  background: #e5e7eb; /* gray-200 */
}

/* Keep dropdowns inside viewport on smaller screens */
@media (max-width: 991px) {
  .horizontal-flex-vertical-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

  .dropdown-menu {
    right: auto;
    left: 0;
    max-width: min(95vw, 360px);
    /* Prevent vertical overflow on small screens */
    max-height: calc(100vh - 96px); /* header + breathing room */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
    overscroll-behavior: contain; /* avoid body scroll chaining */
    margin-right: 8px; /* keep a little gap from the edge */
  }

    .dropdown-menu-right {
        right: 0;
        left: auto;
        max-width: min(95vw, 360px);
        /* Prevent vertical overflow on small screens */
        max-height: calc(100vh - 96px); /* header + breathing room */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
        overscroll-behavior: contain; /* avoid body scroll chaining */
        margin-right: 8px; /* keep a little gap from the edge */
    }

  /* Allow long labels to wrap instead of forcing horizontal overflow */
  .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu {
    transition: none;
  }
  .dropdown-menu-right {
    transition: none;
  }
  .nav-button {
    transition: none;
  }
}

.center-horizontal-div {
    display: flex;
    flex-flow: row;
    gap: 20px;
    justify-content: center;
}

.vertical-div {
    display: flex;
    flex-flow: column;
    padding: 10px;
    gap: 10px;
}

.vertical-div-box {
    height: auto;
    display: flex;
    flex-flow: column;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 16px;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
}

.text-input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #d0d5dd; /* gray-300 */
    background: #fff;
    color: #111827;
}

.text-input:focus {
    outline: 2px solid #6366f1; /* indigo-500 */
    outline-offset: 1px;
}

.long-text-input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.medium-text-input {
    width: 50%;
    height: 40px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.short-text-input {
    width: 50px;
    height: 40px;
    border-radius: 10px;
    padding: 0 8px;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.form {
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
  gap: 10px;
}


.nav-div-block {
  justify-content: space-between;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
  position: relative; /* establish stacking context for dropdowns */
  z-index: 100;       /* keep header clickable above page overlays */

}

.heading {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 400;
}


.div-block-2 {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  margin-top: 10px;
  display: grid;
}

.div-block-3 {
  flex-flow: column;
  width: auto;
  height: 100%;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  justify-content: space-between;
}

.image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;

}

.div-block-4 {
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
  inset: 0%;
}

.heading-2 {
  margin-bottom: 10px;
  font-weight: 400;
}

.div-block-5 {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  display: flex;
}

.text-button:hover {
    background-color: #fc442d;
    box-shadow: 0 2px 6px rgba(255, 28, 0, 0.25);
}

.text-button {
    border: none;
    outline: none;
    height: 40px;
    min-width: 60px;
    background-color: #FF1C00;
    color: #ffffff;
    font-family: sans-serif;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.text-button:active {
    transform: translateY(1px);
}

.form-2 {
    display: flex;
    width: 50%;
  align-items: center;
  gap: 0; /* joined input+button */
}

/* --- Mobile input sizing: make tap targets larger on small screens --- */
@media (max-width: 700px) {
  /* Exclude compact header search input by using :not(.search-input) */
  .text-input:not(.search-input),
  .long-text-input,
  .medium-text-input,
  .short-text-input,
  .select-field {
    height: 52px;                /* larger touch target */
    font-size: 16px;             /* avoid iOS zoom-on-focus */
    line-height: 1.2;
    padding: 0 14px;
    border-radius: 12px;
  }

  /* For date inputs that may not carry classes */
  input[type="date"]:not(.search-input) {
    height: 52px;
    font-size: 16px;
    line-height: 1.2;
    padding: 0 12px;
    border-radius: 12px;
  }
}

/* Header search bar refinements */
.search-input {
  flex: 1 1 auto;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.search-button {
  height: 40px;
  max-width: 60px;
  padding: 0 14px;
  border-radius: 0 10px 10px 0;
}

/* Responsive header adjustments */
@media (max-width: 900px) {

    .center-horizontal-div {
        display: flex;
        flex-flow: column;
        gap: 20px;
        justify-content: center;
    }

  .nav-div-block {
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-left: 5px;
    margin-right: 5px;
  }
  .form-2 {
    width: 100%;
    order: 3;
  }
  .horizontal-div {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }
}

@media (max-width: 600px) {
  .search-input {
    padding: 0 10px;
  }
  .text-button,
  .search-button {
    min-width: 54px;
    max-width: 60px;
  }
}

.div-block-6 {
  margin-top: 10px;
  grid-column-gap: 10px;
  grid-row-gap: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.div-block-7 {
  width: auto;
  height: auto;
  min-height: auto;
}

.image-2 {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 100%;
}

.div-block-8 {
  grid-column-gap: 10px;
  grid-row-gap: 20px;
  flex-flow: column;
  align-self: flex-start;
  display: flex;
  border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 16px;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
    width: auto;

}

.image-paginate-left {
  height: 40px;
  position: static;
  bottom: 220px;
}

.image-paginate-right {
  width: 40px;
  height: 40px;
  position: static;
  bottom: 220px;
  left: 320px;
}

.div-block-9 {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: static;
}

.div-block-10 {
  justify-content: center;
  align-items: center;
  width: min(400px, 100%);
  /* keep square ratio while allowing responsive width */
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
}

.select-field {
  height: 40px;
}

.text-block {
  margin-bottom: 0;
}

.div-block-11 {
  display: flex;
  flex-flow: row;
}

.div-block-12 {
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  flex: 0 auto;
  justify-content: space-around;
  display: flex;
}

@media screen and (max-width: 991px) {

    .div-block-11 {
      display: flex;
      flex-flow: col;
    }

    .vertical-flex-horizontal-mobile {
        display: flex;
        flex-flow: row;
        gap: 10px;
    }

    .table-text-entry {
        display: flex;
        flex-flow: row;
        justify-content: space-between;
        border-bottom: 1px solid gray;
    }

    .table-entry-label {
        display: block;
        margin-right: 0px;
        font-family: sans-serif;
    }

    .seven-column-table-row {
        padding: 10px;
        grid-template-columns: 25% 25% 10% 10% 10% 10% 10%;
        border: 1px solid gray;
        display: flex;
        flex-flow: column;
        gap: 10px;
        border-radius: 10px;
    }

    .five-column-table-row {
        padding: 10px;
        grid-template-columns: 30% 30% 10% 20% 10%;
        border: 1px solid gray;
        display: flex;
        flex-flow: column;
        gap: 10px;
        border-radius: 10px;
    }

   .seven-column-table-header {
        display: none;
    }

   .five-column-table-header {
        display: none;
   }

  .div-block-6 {
    margin-top: 10px;
    flex-flow: column;
  }

  .two-col-grid {
    display: flex;
    flex-flow: column;
    width: 100%;
    gap: 10px;
  }
}

@media screen and (max-width: 479px) {
  .div-block-7 {
    width: 100%;
    height: auto;
  }

  .image-paginate-right {
    bottom: 50%;
    left: 100%;
  }
}

/* --- Responsive grid for product gallery --- */
@media (max-width: 1200px) {
  .div-block-2 {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 10px;
    row-gap: 16px;
  }
}
@media (max-width: 900px) {
  .div-block-2 {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 16px;
  }
}
@media (max-width: 700px) {
  .div-block-2 {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 16px;
  }
}


/* --- Forms & inputs responsive adjustments --- */
@media (max-width: 700px) {
  .form,
  form {
    width: 100%;
  }
  .medium-text-input,
  .short-text-input,
  .text-input,
  .select-field,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    width: 100% !important;
    box-sizing: border-box;
  }
  .text-button,
  button[type="submit"],
  .w-button {
    width: 100%;
  }
}

/* Improve tap targets on very small screens */
@media (max-width: 420px) {
  .text-button,
  .search-button,
  .image-paginate-left,
  .image-paginate-right {
    min-height: 44px;
    min-width: 44px;
    max-width: 60px;
  }
}

/* ------------------------
   Footer styles
   ------------------------ */
.site-footer {
  background: #0f172a; /* slate-900 */
  color: #e5e7eb;      /* gray-200 */
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid #e5e7eb22; /* subtle top border */
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  text-decoration: none;
  color: #e5e7eb; /* gray-200 */
  font-family: sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.footer-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-link:focus {
  outline: 2px solid #6366f1; /* indigo-500 */
  outline-offset: 2px;
}

.footer-copy {
  font-size: 14px;
  color: #cbd5e1; /* slate-300 */
}

/* Footer responsive layout */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-nav {
    justify-content: center;
  }
}
