/* Global */
body {
  font-family: Inter;
}

/* Navbar and header */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header-icon {
  background-color: white;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  margin-right: 0 !important;
  font-size: 16px !important;
}

.button.header-icon {
  background-color: white !important;
  color: black !important; /* optional: make text/icons visible */
}

.navbar-end {
  margin-right: 0px !important;
  padding-right: 0px !important;
}

.header-title {
  font-size: 28px;
  line-height: 1.1;
  --mobile-base-font-size: 16;
  --mobile-font-size-scale: 1.177;
  font-family: Inter;
  font-weight: 800;
  color: rgb(0, 0, 0);
  --inline-link-color: var(--primary-color);
  text-align: inherit;
}
@media screen and (max-width: 768px) {
  .header-title {
    font-size: 20px; /* scale down further on small screens */
  }
}

.navbar-middle {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: flex-end; /* vertical align to bottom */
  height: 100%;
}

.navbar-middle .navbar-item {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* ensures the text inside also aligns bottom */
}

.navbar-item {
  font-size: 20px;
}

.header-title:hover {
  cursor: pointer;
  text-decoration: none;
}

/* Default: hide mobile header title, show desktop title */
.mobile-header-title {
  display: none;
}

.desktop-header-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

/* Mobile: show mobile title, hide desktop middle */
/* Mobile: show mobile title, center vertically or flex-end */
.desktop-header-title {
  display: flex; /* visible by default */
}

@media screen and (max-width: 1087px) {
  .desktop-header-title {
    display: none; /* hide on mobile */
  }
}

/* main navbar hover effect */
#main-navbar a:not(.dropdown-start)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  border-radius: 5px;
  height: 0.05em;
  top: 75%;
  left: 0;
  background: var(--primary-lighter);
  transform-origin: bottom right;
  transition: transform 0.45s ease-out;
}

#main-navbar a:not(.dropdown-start):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar-end-mobile {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.navbar-desktop-only {
  display: flex;
}
.navbar-mobile-only {
  display: none;
}

@media screen and (max-width: 1087px) {
  .navbar-desktop-only {
    display: none;
  }
  .navbar-mobile-only {
    display: flex;
    flex-direction: column;
  }
  .navbar-burger {
    display: flex;
    cursor: pointer;
  }
}

/* Default size for desktop */
.my-account-dropdown-link svg {
  width: 24px;
  height: 24px;
}

/* Smaller SVG on mobile */
@media screen and (max-width: 1087px) {
  .my-account-dropdown-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Footer */
footer {
  background-color: white;
  color: black;
  padding: 0 !important;
}

.footer-top {
  display: flex;
  justify-content: space-between; /* push left and right apart */
  align-items: center;
  width: 100%; /* ensure full width */
  padding: 20px 20px;
  margin-top: 30px;
  box-sizing: border-box; /* include padding in width */
}

.footer-top .header-title {
  font-size: 20px;
}

.footer-top a,
.footer-top a:hover,
.footer-top a:focus {
  text-decoration: none;
  color: inherit;
}

.footer-left {
  flex-shrink: 0; /* prevents shrinking */
}

.footer-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px; /* reduced spacing between icons */
}

.divider {
  border: none; /* Remove default border */
  height: 1px; /* Set thickness */
  background-color: #d1d1d1; /* Color of the line */
  margin: 20px 0; /* Space above and below */
  width: 100%; /* Make it full width of its container */
}

.columns .footer-bottom {
  justify-content: flex-start !important;
  display: flex;
  width: 300px;
}

.newsLetterSmallWrapper__section {
  padding: 20px 0px;
}

.footer-copyright {
  margin-top: 30px;
}

/* Banner Section */
.banner-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.full-description-wrapper {
  font-size: 16px;
}

.homeFeaturedProductsWrapper {
  background-color: #f9f9f9; /* same as Shop Products section */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.homeFeaturedProductsWrapper .homepage-large-products {
  display: flex;
  flex-direction: column; /* single column layout */
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.homeFeaturedProductsWrapper .listItem {
  width: 220px; /* same width as Shop Products cards */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homeFeaturedProductsWrapper .listItem img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.homeFeaturedProductsWrapper .listItem h2.product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

@media screen and (max-width: 768px) {
  .homeFeaturedProductsWrapper .homepage-large-products {
    flex-direction: column;
    gap: 1rem;
  }
  .homeFeaturedProductsWrapper .listItem {
    width: 80%;
  }
}

.homeFeaturedProductsWrapper,
.homeFeaturedProductsWrapper .homepage-large-products,
.homeFeaturedProductsWrapper .listWrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto; /* center container */
  padding: 0; /* remove extra padding */
  box-sizing: border-box; /* include padding in width */
  overflow: hidden; /* prevent horizontal scroll */
}

/* Remove negative margins on grid items */
.homeFeaturedProductsWrapper .listItem {
  margin: 0 auto; /* center each item */
  float: none; /* cancel floats if any */
}

.homeFeaturedProductsWrapper {
  overflow-x: hidden;
}

/* banner */
.banner-container {
  position: relative;
  width: 100%;
  height: 80vh; /* desktop height */
  max-height: 1000px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center the content */
  z-index: 1;
  text-align: center;
  width: 90%;
}

.banner-button {
  display: inline-block;
  background-color: rgb(238, 49, 35);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  .banner-container {
    height: 60vh; /* taller on mobile */
  }
  .banner-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }
}
