html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

div.registration-form,
div.signin-form,
div.account-buttons {
  width: 90%;
  max-width: 2000px;
  margin: 2rem auto;
}

@media (max-width: 56.25em) {
  div.page_info h1 {
    font-size: 32px;
  }

  div.registration-form {
    overflow: scroll;
  }
}

/* Remove extra padding and margin from table cells */
td {
  padding: 0;
  margin: 0;
}

/* Adjust input field spacing */
input {
  margin: 5px 0;
}

/* Align text in labels and fields properly */
label {
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

input {
  vertical-align: middle;
}

/* Reduce unnecessary width of table */
table {
  width: auto;
  margin: auto;
}

/* Optional: You can also try reducing padding specifically for first and last name fields */
.addr_name_val {
  padding: 0 5px;
}

/*Sidenav section  */

.page-sidenav {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.side-nav {
  display: flex;
  position: sticky;
  top: 0;
  left: 0;
  height: auto;
/*   min-height: 0;
  max-height: 100dvh; 
  overflow-y: auto;
  overscroll-behavior: contain; */
  width: 16rem;
  background-color: #fff;
  transition: transform 0.3s ease;
  z-index: 900;
}

.side-nav-toggle {
  display: none;
  background: #0056b3;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}
/*Featured Product Section  */
.sidenav {
  width: 16rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Always stretch to at least full page height */
  padding: 1rem;
  border-right: 1px solid #ccc;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  z-index: 900;
}

.sidenav h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 1.5rem;
}

.sidenav ul {
  list-style: none;
  padding: 0;
}

.sidenav ul li {
  margin: 8px 0;
}

.sidenav ul li a {
  text-decoration: none;
  color: #333;
}

.sidenav img {
  width: 100%;
  max-width: 100%;

  border-radius: 50%;
  height: auto;
  margin-bottom: 0px;
  box-shadow: 0 3px 8px 1px rgba(60, 64, 67, 0.4),
    0 4px 10px 2px rgba(60, 64, 67, 0.2);
  display: block;
}

/* Mobile view */
@media (max-width: 768px) {
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    height: 100%;
    z-index: 1000;
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .side-nav-toggle {
    display: inline-block;
    margin: 1rem;
  }
}

/* The illustrious toggle button  */
.collapse-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #33333373;
  position: absolute;
  top: -1rem;
  right: 0.15rem; /* Adjust as needed to "poke out" from sidenav */
  background-color: transparent;
  z-index: 1001;
}

.side-nav.collapsed {
  transform: translateX(-16rem);
}

.side-nav.collapsed .collapse-button {
  right: -2.5rem; /* When sidebar is collapsed → poke out more */
}

/* Page stuffs view */
.page-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100vh;
  margin-bottom: 0rem; 
  
}



/* MOBILE: always flush left, regardless of .collapsed */
@media (max-width: 767px) {
  .page-main,
  .page-main.collapsed {
    margin-left: 0 !important;
  }
}

.page-main {
  flex: 1;
  padding-top: 1rem;
  padding-right: 1rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  margin-left: 0rem;
  transition: margin-left 0.3s ease;
}

.page-main.collapsed {
    margin-left: -16rem; /* collapsed state on desktop */
  }

.page-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: white;
  opacity: 0.15;
  z-index: 0;
}

.page-main > * {
  position: relative;
  z-index: 1;
}

section#hero img.airplane {
  width: 100%;
  height: auto;
  max-height: 100vh; /* prevent overflow beyond screen */
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
  margin-top: 0rem;
}

  height: 100%;
}

/* Category section, copied whole thing in to just edit the box shadows lmao */
section#categories {
  text-align: center;
  padding-bottom: 2rem;
}
section#categories h2 {
  text-align: left;
}
section#categories h2#search {
  margin-top: 2rem;
  text-align: center;
}
section#categories .product-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 2rem;
  margin-top: 2rem;
}
section#categories .product-categories .category-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem;
}
section#categories .product-categories .category-wrapper .category {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 250px;
  text-align: center;
  text-decoration: none;
  color: #000;
  border-radius: 0.5rem;
  box-shadow: 0 3px 8px 1px rgba(60, 64, 67, 0.4),
    0 4px 10px 2px rgba(60, 64, 67, 0.2) !important;
  transition: all 0.1s ease-in-out;

  flex: 1 1 18%; /* 100 / 5.5 ≈ 18% leaves room for gaps */
  max-width: 18%;
  min-width: 160px; /* fallback for small screens */
  box-sizing: border-box;
}
section#categories
  .product-categories
  .category-wrapper
  .category
  .productImage {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}
section#categories .product-categories .category-wrapper .category:hover {
  box-shadow: 0 3px 4px 0 rgba(60, 64, 67, 0.3),
    0 2px 4px 2px rgba(60, 64, 67, 0.15);
  color: #0056b3;
}
@media (max-width: 75em) {
  section#categories .product-categories {
    justify-content: center;
    margin: auto;
    padding: 0;
    flex-wrap: wrap;
  }
  section#categories .product-categories .category-wrapper {
    justify-content: space-around;
  }
  section#categories .product-categories .category-wrapper .category {
    min-height: 0;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  section#categories
    .product-categories
    .category-wrapper
    .category
    .productImage {
    width: 100px;
  }
}
@media (max-width: 37.5em) {
  section#categories .product-categories .category-wrapper {
    flex-direction: row;
    align-items: center;
  }
}
section#categories .product-search {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
section#categories .product-search form {
  width: 80%;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 500px;
}
section#categories .product-search input {
  padding: 0.5rem;
  width: 80%;
}
section#categories .product-search .submit-btn {
  min-width: 3rem;
  max-width: 5rem;
  width: 10%;
}

/* Info Section */
section#info {
  display: flex;
  justify-content: center;
  background-image: url("https://shark.serverhost.net/astonics/media/three-column-background.webp");
  background-position: center;
  background-size: cover;
  margin-bottom: 0;
}
@media only screen and (max-width: 75em) {
  section#info {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
  }
}
section#info .info-box {
  width: 33.3333%;
  text-align: center;
  padding: 1.5rem 3rem;
  background-color: rgba(29, 29, 29, 0.3137254902);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 10rem;
  max-width: 650px;
}
section#info .info-box:nth-child(2) {
  background-color: rgba(29, 29, 29, 0.6);
}
section#info .info-box hr {
  border: 0.1rem solid #fff;
  width: 50%;
}
section#info .info-box h3 {
  font-size: 24px;
  color: #fff;
}
section#info .info-box p {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  padding: 1rem 0;
}
section#info .info-box a.btn-custom {
  font-size: 16px;
  width: fit-content;
}
@media (max-width: 75em) {
  section#info .info-box {
    padding: 1rem;
    width: 90%;
  }
  section#info .info-box h3 {
    font-size: 24px;
  }
  section#info .info-box hr {
    margin: 0;
  }
  section#info .info-box p {
    font-size: 16px;
  }
}

footer {
  background-color: #d3d3d3;
  border-top: 2px solid black;
  font-size: 1rem;
  color: black;
  text-align: center;
  padding: 1rem 0;
  margin-top: 0rem;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
}

/* Featured Product Section CSS  */
.featured-hero {
  background: #f9f9f9;
  padding: 4rem 2rem 2rem 2rem;
}
.hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
}
.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}
.hero-text {
  flex: 1;
  min-width: 280px;
}
.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.hero-text h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #555;
  font-weight: normal;
}

.hero-text .lead {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background: #004c9b;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}
.btn:hover {
  background: #002f61;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14pt; 
  overflow: visible;
}
/* no column borders */
.info-table th,
.info-table td {
  border: none;
  padding: 8px;
}

/* header styling + underline */
.info-table__header {
  background: #f2f2f2;
  text-align: left;
  border-bottom: 1px solid #ccc;
  font-size: 16pt; 
}

/* row separators only (between body rows) */
.info-table tbody tr + tr {
  border-top: 1px solid #ccc;
}

header.universal-header {
  z-index: 1000;
}


h1.pb-2.pt-5 {
  padding-top: 0 !important;
}

.container {
  width: 80%;
  margin: auto;
  padding: 10px 0;
}

/*side nav menu styling for submenu*/

.menu {
  list-style: none;
  padding: 0;
  position: relative;
}

.menu > li {
  margin: 0.5em 0;
}

.submenu {
  display: none; /* hidden by default */
  margin-left: 1.2em;
  position: relative;
  border-left: 1px solid #ccc; /* vertical line */
  padding-left: 1em;
}

.menu li.open > .submenu {
  display: block; /* show when parent has .open */
}

li.open > .submenu {
  display: block; /* this shows it when the li is "open" */
}

/* Draw horizontal connector line for each list item */
.submenu li {
  position: relative;
  padding-left: 0.5em;
}

.submenu li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: -1em;
  width: 1em;
  height: 1px;
  background: #ccc; /* horizontal line */
}

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  color: #666;
  padding: 2px 6px;
}

.expand-btn::before {
   content: "▶";
  display: inline-block;
  margin-right: 4px;
  color: #666;
  transition: transform 0.2s;
}

li.open > .expand-btn::before {
  transform: rotate(90deg); /* rotate arrow when open */
}

@media (max-width: 37.5em) {
  section#hero .hero-content {
    top: 7rem;
    left: 1rem;
  }
  section#hero .hero-content .btn-custom {
    margin: 0 auto;
  }
  section#categories .product-categories .category-wrapper .category {
    flex-direction: column;
  }
}
@media (max-width: 26em) {
  section#hero .hero-content {
    top: 15rem;
  }
  section#categories {
    margin-top: 12rem;
  }
}
