/* Final home-page fixes loaded after app.css. */
.ash-home-page .ash-product-card {
  overflow: hidden;
}

.ash-home-page .ash-product-card > div {
  position: relative;
  z-index: 2;
}

.ash-home-page .ash-product-card:first-child {
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.ash-home-page .ash-product-card:first-child ul {
  gap: 8px;
  margin-bottom: 8px;
}

.ash-home-page .ash-product-card:first-child li,
.ash-home-page .ash-product-card:first-child li span {
  max-width: none;
}

.ash-home-page .ash-product-visual {
  align-self: center;
  grid-column: 2;
  height: 360px;
  justify-self: end;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  position: relative;
  width: 300px;
  z-index: 1;
}

.ash-home-page .ash-product-visual img {
  display: block;
  height: 350px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
}

.ash-home-page .ash-product-card:first-child .ash-product-visual {
  height: 344px;
  width: 230px;
}

.ash-home-page .ash-product-card:first-child .ash-product-visual img {
  height: 335px;
  right: 10px;
  top: 52%;
  width: 335px;
}

.ash-home-page .ash-product-card-alt .ash-product-visual {
  width: 300px;
}

.ash-home-page .ash-product-card-alt .ash-product-visual img {
  height: 330px;
  right: 0;
  width: 310px;
}

.ash-home-page .ash-recipe-grid {
  overflow-x: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
}

.ash-home-page .ash-recipe-card {
  scroll-snap-align: start;
}

.ash-home-page .ash-dealer-cta {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 620px;
  padding: 56px 54px;
}

.ash-home-page .ash-dealer-cta::before {
  height: 520px;
  right: 42px;
  top: 56px;
  width: 520px;
}

.ash-home-page .ash-dealer-cta > div,
.ash-home-page .ash-dealer-cta > img {
  position: relative;
  z-index: 1;
}

.ash-home-page .ash-dealer-cta img {
  background: #fff8eb;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  height: 360px;
  justify-self: end;
  max-height: none;
  object-fit: contain;
  object-position: center;
  width: 620px;
}

/* Mobile Navigation Drawer */
.ash-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.ash-mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #1a2e35;
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.ash-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ash-mobile-drawer.is-active,
.ash-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.ash-mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.ash-mobile-drawer.is-active .ash-mobile-drawer-inner,
.ash-mobile-drawer.is-open .ash-mobile-drawer-inner {
  transform: translateX(0);
}

.ash-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.ash-mobile-drawer-header img {
  height: 38px;
  width: auto;
}

.ash-mobile-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #1a2e35;
  cursor: pointer;
  padding: 4px;
}

.ash-mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ash-mobile-drawer-nav a {
  font-size: 17px;
  font-weight: 600;
  color: #1a2e35;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
  transition: color 0.2s;
}

.ash-mobile-drawer-nav a.active,
.ash-mobile-drawer-nav a:hover {
  color: #2f5d34;
}

.ash-mobile-drawer-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.ash-mobile-drawer-footer .ash-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #25d366;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ash-mobile-drawer-footer .ash-whatsapp img {
  filter: brightness(0) invert(1);
}

@media (max-width: 1180px) {
  .ash-mobile-toggle {
    display: flex;
  }
  
  .ash-exact-nav {
    display: none !important;
  }

  .ash-home-page .ash-product-card:first-child,
  .ash-home-page .ash-product-card-alt {
    grid-template-columns: 1fr;
  }

  .ash-home-page .ash-product-visual {
    grid-column: auto;
    justify-self: center;
  }

  .ash-home-page .ash-dealer-cta {
    grid-template-columns: 1fr;
    padding: 48px 32px;
  }

  .ash-home-page .ash-dealer-cta img {
    justify-self: center;
    max-width: 100%;
    width: min(620px, 100%);
  }
}
