/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin-bottom: 10vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-left: 2vw;
}

.search-icon {
    font-size: 20px;
    color: black;
    margin-right: 4vw;
    cursor: pointer;
}

/* Categories */
.categories {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    background-color: #ffffff;
    margin-top: 10vh;
    overflow-x: auto;
    white-space: nowrap;
}

.category {
    border: 2px solid #FFA500;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: black;
    flex: 0 0 auto;
    margin: 0 5px;
    
}

/* Products Section */
.products-section {
    padding: 20px;
    background-color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: black;
    margin: 0;
}

.section-header a {
    color: black;
    text-decoration: none;
    font-size: 14px;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
}

.product-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid #FFA500;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(255, 165, 0, 0.5);
}

.product-icon {
    font-size: 24px;
    color: #FFA500;
}

.product-info p {
    margin: 5px 0;
    color: #555555;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #FFA500;
    padding: 10px 0;
    position:fixed;
    bottom: 0;
    width: 100%;
}

.footer-item {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.category:hover {
    background-color: #FFA500;
}

.product-card:hover {
    cursor: pointer;
}

div {
    user-select: none;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
  }
  
  .popup-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .popup-form h2 {
    margin-top: 0;
  }
  
  .popup-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  .popup-form button {
    width: 100%;
    padding: 10px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr;
    }
}

@media(min-width: 768px) {
    .product-info {
        position: absolute;
        bottom: 0;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        gap: 20vw;
    }

    img {
       height: 20vh;
       margin-right: 0;
       margin-left: 20vw;
    }
}