body {
  font-family: "Inter", sans-serif;
  padding: 16px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding-right: 12rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 35%;
  height: auto;
  object-fit: cover;
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(34, 197, 94, 0.3);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon,
.user-icon {
  position: relative;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cart-icon:hover,
.user-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cart-icon.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media only screen and (min-width: 1024px) {
  #main-container {
    height: calc(100vh - 32px);
    width: calc(100vw - 32px);
    margin: 0;
    position: relative;
    background-image: url("./images/hero bg1.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4-6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #list-view {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    position: relative;
  }
  #product-columns-container {
    display: flex;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
  }
  .product-column {
    flex: 0 0 25vw;
    transition: all 1.5s ease-in-out;
    overflow: hidden;
    border-right: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  .green:hover,
  .green.stay-hover {
    background-color: #421f3f !important;
  }
  .berry:hover,
  .berry.stay-hover {
    background-color: #26583f !important;
  }
  .orange:hover,
  .orange.stay-hover {
    background-color: #dc891f !important;
  }
  .strawberry:hover,
  .strawberry.stay-hover {
    background-color: #cf571a !important;
  }
  .mango:hover,
  .mango.stay-hover {
    background-color: #c21b22 !important;
  }
  .banana:hover,
  .banana.stay-hover {
    background-color: #1b5434 !important;
  }
  .watermelon:hover,
  .watermelon.stay-hover {
    background-color: #31254b !important;
  }
  .chocolate:hover,
  .chocolate.stay-hover {
    background-color: #1e92b7 !important;
  }
  .product-column-image {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: 0.7s;
    height: 70%;
    object-fit: contain;
    z-index: 2;
  }
  .product-column:not(.no-hover):hover .product-column-image,
  .product-column.stay-hover .product-column-image {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .product-text-group {
    position: relative;
    transition: transform 1s ease-in-out;
    width: 100%;
    text-align: start;
    z-index: 3;
  }
  .product-column:not(.no-hover):hover .product-text-group,
  .product-column.stay-hover .product-text-group {
    transform: translateY(120%);
  }
  .product-column.expanded .product-text-group {
    transform: translateY(-0%);
  }
  .product-column-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    transition: color 0.7s;
    padding-left: 2rem;
  }
  .product-column:not(.no-hover):hover .product-column-name,
  .product-column.stay-hover .product-column-name {
    color: white;
  }
  .product-column-description {
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
    transition: color 0.7s;
    padding-left: 2rem;
  }
  .product-column:not(.no-hover):hover .product-column-description,
  .product-column.stay-hover .product-column-description {
    color: white;
  }
  .detailed-description {
    font-size: 1.125rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding-left: 3rem;
    padding-top: 1rem;
    color: white;
    max-width: 30%;
    white-space: normal;
    overflow: hidden;
    list-style: disc;
  }
  .detailed-description.show {
    opacity: 1;
    transform: translateY(0);
  }
  .view-more-small-button-column {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s, box-shadow 0.2s ease-in-out;
    margin-top: 1rem;
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #333;
    border-radius: 9999px;
    z-index: 4;
    position: relative;
    width: max-content;
    max-width: 80%;
    white-space: nowrap;
  }
  .product-column:not(.no-hover):hover .view-more-small-button-column,
  .product-column.stay-hover .view-more-small-button-column {
    opacity: 1;
    transform: translateY(0);
  }
  .view-more-small-button-column:hover {
    animation: electrify 1s infinite alternate;
  }
  @keyframes electrify {
    0% {
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
      box-shadow: 0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.6);
    }
    100% {
      box-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.5);
    }
  }

  .shrink-button {
    display: none;
    position: absolute;
    top: 11rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 500;
    border-radius: 9999px;
    z-index: 30;
    cursor: pointer;
  }
  .product-column.expanded .shrink-button {
    display: inline-block;
  }
  .product-column.expanded {
    flex-basis: 100vw !important;
    z-index: 10;
  }
  .product-column.shrunk {
    flex-basis: 0 !important;
    opacity: 0;
    transition: all 0.7s ease-in-out;
    overflow: hidden;
    width: 0;
    margin-right: 0;
    border-right: none;
    pointer-events: none;
    visibility: hidden;
  }
  .quantity-buttons {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .quantity-buttons button {
    background: black;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    opacity: 0.3;
    cursor: pointer;
  }
  .quantity-buttons button.active {
    background: white;
    color: black;
    opacity: 1;
  }
  .price-display {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 600;
    color: white;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .add-to-cart-btn {
    margin-top: 1rem;
    margin-left: 2rem;
    padding: 1.5rem 3rem;
    font-size: 1rem;
    font-weight: bold;
    background: white;
    color: #333;
    border-radius: 9999px;
    z-index: 5;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    cursor: pointer;
  }
  .add-to-cart-btn.show-btn {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  nav.expanded-nav {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 1rem;
    background: none;
  }
  nav.expanded-nav a {
    color: whitesmoke;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: transparent;
    color: var(-- neon-red);
    border: 2px solid var(-- neon-red);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
  }
  nav.expanded-nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  nav.expanded-nav a.active {
    color: white;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    transition: var(-- transition);
    box-shadow: 0 0 25px white;
  }

  .advantages-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: absolute;
    top: 60%;
    right: 4%;
    width: 25%;
    color: white;
    font-size: 1.1rem;
    z-index: 6;
    pointer-events: none;
    visibility: hidden;
  }
  .advantages-container.show-benefits {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  }
  .composition-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: absolute;
    top: 55%;
    right: 4%;
    transform: translateY(-50%);
    width: 25%;
    color: white;
    font-size: 1.1rem;
    z-index: 6;
    pointer-events: none;
    visibility: hidden;
  }

  .composition-container.show-benefits {
    opacity: 1;
    transform: translateY(-155%);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  }

  .dosages-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: absolute;
    top: 55%;
    right: 4%;
    transform: translateY(-50%);
    width: 25%;
    color: white;
    font-size: 1.1rem;
    z-index: 6;
    pointer-events: none;
    visibility: hidden;
  }
  .dosages-container.show-benefits {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  }
  .advantages-list li,
  .dosage-list li {
    font-size: 1rem;
  }
  .advantages-list,
  .dosage-list {
    list-style: disc inside;
    padding-left: 1em;
  }
  .advantages-list li,
  .dosage-list li {
    margin-bottom: 0.5em;
    white-space: normal;
  }
  .hidden-with-animation {
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* Removed !important */
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .visible-with-animation {
    opacity: 1;
    pointer-events: auto;
    visibility: visible; /* Removed !important */
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  @keyframes rotate {
    0% {
      transform: translate(-50%, -50%) scale(1) rotateZ(0deg);
    }
    100% {
      transform: translate(-50%, -50%) scale(1) rotateZ(360deg);
    }
  }
  .product-column.expanded .product-column-image {
    top: 50%;
    left: 50%;
    animation: rotate 1s linear 1;
    z-index: 2;
  }
  .product-column-bg-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9vw;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: auto;
    transition: opacity 1.5s ease-in-out;
  }
  .product-column.expanded .product-column-bg-name {
    opacity: 1.5;
  }

  .navigation-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    display: flex;
    gap: 15px;
  }

  .navigation-buttons button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .navigation-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.9);
  }

  .navigation-buttons button:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
  }

  .background-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
  }

  .product-column.expanded .background-icons {
    display: block;
  }

  .bg-icon-bottom-left {
    position: absolute;
    bottom: -25%;
    left: -4%;
    opacity: 0.2;
    z-index: 0;
  }
  .bg-icon-top-right {
    position: absolute;
    top: -20%;
    right: 10%;
    opacity: 0.2;
    z-index: 0;
  }
  .bg-icon-center-left {
    position: absolute;
    top: 30%;
    left: 15%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: 0;
  }
  .bg-icon-center-right {
    position: absolute;
    top: 80%;
    right: 25%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: 0;
  }

  .hidden-completely {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  header {
    z-index: 50;
  }

  #top-right-links {
    z-index: 51;
  }
  .message-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
  }
  .message-box.success {
    background: #22c55e;
  }
  .message-box.error {
    background: #dc2626;
  }

  /* Add to the end of your styles.css file */

  .flying-product {
    pointer-events: none;
    border-radius: 50%;
  }

  .cart-icon.bounce {
    animation: cart-bounce 0.4s ease;
  }

  @keyframes cart-bounce {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.3);
    }
    50% {
      transform: scale(0.9);
    }
    100% {
      transform: scale(1);
    }
  }

  .cart-icon.bounce {
    animation: bounce-animation 0.5s ease-in-out;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; /* Adjust this value to sit below your navbar */
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    color: #1a1a1a;
  }

  .nav-links a {
    padding: 15px;
    text-align: center;
    width: 100%;
  }

  /* This class will be added by JavaScript to show the menu */
  .nav-links.show-menu {
    display: flex;
    background: black;
  }
  #list-view {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #22c55e, #14b8a6, #3b82f6);
  }
  .product-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem auto;
  }

  .product-content {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .product-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-info p {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.3rem;
    align-self: flex-start;
  }

  .duration-selector,
  .quantity-selector {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .duration-btn {
    flex: 1 1 calc(33.33% - 0.5rem);
    min-width: 70px;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: 8px;
    text-align: center;
  }

  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quantity-display {
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
  }

  .add-to-cart-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .duration-btn {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  .add-to-cart-btn {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}
