.homepage-header-text {
  margin-left: -214px;
}

.homepage-header-text p {
  font-size: 17px;
  text-align: center;
}

@media (max-width: 768px) {
  .menu-nav {
    justify-content: center !important;
    flex-direction: column;
  }

  .homepage-header-text {
    margin-left: 0;
    margin-top: 10px;
    flex: none !important;
  }

  .homepage-header-text p {
    font-size: 13px;
  }

  #sticky-header {
    padding: 0.7rem;
  }

  .warning-note {
    padding-bottom: 4rem !important;
  }
}

/*  */
.home-hero-container {
  background-color: var(--primary-clr);
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-hero-container .home-hero {
  padding: 40px 100px;
  border-radius: 20px;
}

.home-hero h1 {
  font-weight: 700;
  font-size: 60px;
  color: black;
  gap: 10px;
}

.home-hero .form-control,
#search-nearby-stores-form .form-control {
  padding: 25px 0.75rem;
  border: 1px solid #ccc;
}

.home-hero .btn,
#search-nearby-stores-form .search-box-btn {
  padding: 13px 0.75rem;
  background-color: black;
}

.home-hero .btn:hover,
.home-hero .btn:focus {
  background-color: #5d5d5d;
  border-color: #5d5d5d;
}

.home-hero .form-control:focus {
  box-shadow: none;
  border: 1px solid #ccc;
}

.heading-with-borders {
  display: flex;
  align-items: center;
}

.heading-with-borders .line-thin-border {
  flex: 1;
  border-top: 0.5px solid black;
}

.heading-with-borders .line-heading {
  margin: 0 100px;
  color: black;
}

.work-counter {
  min-height: 60px;
  max-height: 60px;
  min-width: 60px;
  max-width: 60px;
  border-radius: 60px;
  background-color: var(--primary-clr);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: 20px;
  font-size: 18px;
}

.work-description h3 {
  font-size: 14px;
  margin-bottom: 3px;
}

.work-description p {
  margin-bottom: 0px;
  line-height: 19px;
}

.fs-125rem {
  font-size: 1.25rem;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc3545 !important;
}

@media (max-width: 992px) {
  .work-center {
    border: none !important;
  }

  .heading-with-borders .line-heading {
    margin: 0 50px;
  }

  .home-hero-container .home-hero {
    padding: 40px 90px;
  }
}

@media (max-width: 768px) {
  .heading-with-borders .line-heading {
    margin: 0 12px;
  }

  .home-hero-container .home-hero {
    padding: 40px;
  }

  .home-hero h1 {
    font-size: 50px;
  }

  .works-flow {
    margin-top: 25px !important;
  }
}

@media (max-width: 576px) {
  .home-hero-container .home-hero {
    padding: 20px;
  }

  .home-hero-container {
    padding: 10px;
  }

  .home-hero h1 {
    font-size: 40px;
  }

  .search-form {
    margin: 0px;
  }

  h3 {
    font-size: 1.5rem;
  }

  .fs-125rem {
    font-size: 1.2rem;
    font-weight: normal;
  }
}

/*  */
.text-bold-400 {
  font-weight: 400 !important;
}

.text-bold {
  font-weight: 500 !important;
}

.text-bolder {
  font-weight: 700 !important;
}

.bg-theme {
  background-color: var(--primary-clr) !important;
  border-color: var(--primary-clr) !important;
}

.text-underline {
  text-decoration: underline;
}

/*  */
.footer-new {
  background-color: #d7dde0 !important;
}

.footer-font-color,
.fw-link a {
  color: #39423f !important;
}

.fw-title {
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 500;
}

.fw-link a {
  font-size: 14px !important;
  margin-bottom: 15px;
  font-weight: 400;
}

.item-variant {
  font-size: 13px;
}

.store-cart-count {
  background-color: var(--primary-clr);
  color: white;
  width: 15px;
  height: 15px;
  border-radius: 15px;
  font-size: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 8px;
  top: -3px;
}

.store-category-card {
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.store-category-card:hover {
  transform: scale(1.02);
}

#search_bar {
  height: 100px;
  background-color: white;
  position: absolute;
  z-index: 2;
  width: 100%;
  transition: 1s;
}

#close_search_bar {
  cursor: pointer;
}

.text-grey {
  color: grey;
}

.store-navbar-toggle-icon {
  height: 1.2em;
  width: 1.2em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.625rem;
  padding: 1rem 0;
}

/* Mobile optimization - 3 columns on small screens */
@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
  }
}

/* Tablets - 4 columns */
@media (min-width: 577px) and (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Small laptops - 5 columns */
@media (min-width: 769px) and (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large screens - 6 columns */
@media (min-width: 993px) and (max-width: 1400px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Extra large screens - 8 columns */
@media (min-width: 1401px) {
  .category-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #1f2937;
  position: relative;
  overflow: hidden;
  min-height: 75px;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-clr);
  box-shadow: 0 4px 12px rgba(103, 0, 153, 0.15);
  background: #faf5ff;
}

.category-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: #1f2937;
}

.category-count {
  font-size: 0.6875rem;
  color: var(--primary-clr);
  font-weight: 600;
}

/* Mobile font adjustments */
@media (max-width: 576px) {
  .category-card {
    padding: 0.625rem 0.375rem;
    min-height: 68px;
    border-radius: 0.5rem;
  }

  .category-name {
    font-size: 0.75rem;
    margin-bottom: 0.1875rem;
  }

  .category-count {
    font-size: 0.625rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}