.logo img {
  max-width: 200px;
  width: 100%;
}

.custom-header-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 120px;
}

.custom-header-layout .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: -10px;
}

.header-right-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-right-vertical .cart-nav {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.navigation {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation li {
  position: relative;
  list-style: none;
}

.navigation li a {
  font-family: "Lato", sans-serif;
  display: block;
  font-size: 1.08rem;
  color: #232323;
  text-decoration: none;
  padding: 0.4em 0.8em;
  border-radius: 22px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navigation li a:hover,
.navigation li.current-menu-item a {
  box-shadow: 0 2px 8px rgba(44, 95, 74, 0.07);
}

.navigation li.menu-item-has-children > a:after {
  content: "\25BC";
  font-size: 0.7em;
  margin-left: 0.4em;
  vertical-align: middle;
}

.navigation ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 95, 74, 0.1);
  border-radius: 8px;
  min-width: 180px;
  z-index: 100;
  padding: 0.5em 0;
}

.navigation li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}

.navigation ul.sub-menu li a {
  padding: 0.5em 1.2em;
  font-size: 1rem;
  color: #232323;
  border-radius: 6px;
}

.navigation ul.sub-menu li a:hover {
  background: #f5f5f5 !important;
  color: rgb(47, 79, 79) !important;
}

.btn {
  min-height: 56px;
  max-width: 148px;
  width: 100%;
  border-radius: 0 !important;
}

.btn-primary {
  background-color: rgb(47, 79, 79) !important;
  border: 2px solid rgb(47, 79, 79) !important;
}

.btn-primary:hover {
  background-color: rgb(64, 104, 104) !important;
}

/* Sticky header styles */
.header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header.scrolled .mobile-hamburger {
  top: 1rem;
}

.header.scrolled .custom-header-layout {
  margin: 0;
  padding: 5px 50px;
  min-height: 60px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.header.scrolled .logo {
  margin: 0;
  transform: scale(0.9);
  transform-origin: center;
  max-width: 10.125rem;
  z-index: 1099;
  cursor: pointer;
}

.header.scrolled .header-right-vertical {
  position: static;
  transform: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.header.scrolled .menu-nav {
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1001;
}

.header.scrolled .navigation {
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.header.scrolled .navigation li a {
  position: relative;
  z-index: 1001;
}

.header.scrolled .cart-nav {
  gap: 1.2rem;
  position: relative;
  z-index: 1001;
}

.header.scrolled .header-search-form {
  top: 38px;
  right: 70px;
  margin-left: 0.7rem;
  z-index: 1001;
}

/* Product Showcase styles */

.categorylist h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.categorylist ul li {
  list-style-type: none;
  margin-bottom: 1rem;
  cursor: pointer;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.product-head h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

.product-sort,
.orderby {
  max-width: 100%;
  border: none !important;
}

.product-sort:focus,
.orderby:focus {
  box-shadow: none !important;
}

@media (max-width: 1300px) {
  .container {
    padding: 0 15px;
  }
  .custom-header-layout {
    flex-direction: column;
    min-height: 100px;
    padding: 10px 20px;
  }
  .header-right-vertical {
    position: static;
    transform: none;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
  }
  .header.scrolled .header-right-vertical {
    margin-top: 0.5rem;
  }
  .header-right-vertical .cart-nav {
    margin-top: 0;
  }
  .menu-nav {
    justify-content: center;
    width: 100%;
    padding: 10px 0;
  }
  .navigation {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .navigation li a {
    font-size: 0.95rem;
    padding: 0.3em 0.6em;
  }

  /* Mobile sticky header styles */
  .header.scrolled .custom-header-layout {
    flex-direction: column;
    min-height: auto;
    padding: 5px 20px;
  }
  .header.scrolled .menu-nav {
    position: static;
    transform: none;
    width: 100%;
    z-index: 1001;
  }
  .header.scrolled .cart-nav {
    gap: 0.7rem;
  }
  .header.scrolled .header-search-form {
    top: 38px;
    margin-left: 0.4rem;
  }
}

@media (max-width: 576px) {
  .custom-header-layout {
    min-height: 90px;
  }
  .logo img {
    max-width: 120px;
  }
  .navigation {
    gap: 0.5rem;
  }
  .navigation li a {
    font-size: 0.9rem;
    padding: 0.25em 0.5em;
  }
  .header.scrolled .banner-container {
    min-height: 50px;
  }
}

@media (max-width: 400px) {
  .custom-header-layout {
    min-height: 80px;
  }
  .logo img {
    max-width: 130px;
  }
  .navigation {
    gap: 0.3rem;
  }
  .navigation li a {
    font-size: 0.85rem;
    padding: 0.2em 0.4em;
  }
}

/* Hidden Nav Block Styles */
[data-ux="hidden-nav-Block"] {
  position: relative;
}

[data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 5px;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add styles for sticky header state */
.header.scrolled [data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] {
  margin-top: 15px;
}

[data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] li {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] li a {
  display: block;
  padding: 8px 10px;
  color: #333333;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

[data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] li a:hover {
  background-color: #f8f8f8;
  color: #2c5f4a;
  border-left: 3px solid #2c5f4a;
}

/* Add a small arrow at the top of the dropdown */
[data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"]::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.onsale {
  padding: 0px !important;
}

.woocommerce-loop-product__title,
.price,
.added_to_cart {
  color: #333 !important;
}

.added_to_cart {
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

/* Responsive styles for hidden nav */
@media (max-width: 768px) {
  [data-ux="hidden-nav-Block"] ul[data-ux="Dropdown"] {
    right: -10px;
    min-width: 200px;
  }
  .logo img {
    max-width: 150px;
  }
  .btn {
    min-height: 44px;
    max-width: 120px;
    font-size: 14px !important;
  }
}

/* Header Search Styles */
.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(44, 95, 74, 0.07);
  padding: 0.3rem 0.5rem;
  position: absolute;
  right: 0;
  top: 60px;
  z-index: 1;
  min-width: 220px;
  max-width: 90vw;
  transition: all 0.2s;
}
.header-search-input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
  flex: 1;
  background: #f5f5f5;
}
.header-search-btn {
  background: rgb(47, 79, 79);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.header-search-btn:hover {
  background: rgb(64, 104, 104);
}
@media (max-width: 600px) {
  .header-search-form {
    top: 48px;
    min-width: 140px;
    padding: 0.2rem 0.4rem;
  }
  .header-search-input {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }
  .header-search-btn {
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
  }
}
