* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Times New Roman', serif;
    background-color: #e8f5e9;
    color: #2e7d32;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    position:fixed;
    top: 0;
    width: 100%;
    background-color: #2e7d32;
    color: white;
    padding: 20px;
    text-align: left;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: top 0.3s;
    z-index: 1000;
}

header a{
    text-decoration: none;
    color: white;
 }

main {
    flex: 1;
    padding-top: 30px;
    text-align: center;
}
main a{
    color:#1b5e20;
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    cursor: pointer;
}

.mainContent{
    padding-top: 39px;
}

h1 {
    font-size: 36px;
    color: #1b5e20;
    margin-bottom: 10px;
}

.intro {
    font-size: 18px;
    color: #388e3c;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #f1f8e9;
}

.carousel-slide h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1b5e20;
}

.carousel-slide ul {
    list-style: none;
    padding-left: 0;
}

.carousel-slide ul li {
    padding: 8px 0;
    font-size: 17px;
}

.btn {
    padding: 14px 28px;
    background-color: #66bb6a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #43a047;
}

hr{
    margin: 10px 0px;
    border-color:#66bb6a;
}
.popUpModal{
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.popUpContent{
    position: absolute;
    background: #fff;
    padding: 20px;
    width: 90%;
    color: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
/* gcash UI */
    .gcash-modal-overlay {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: white;
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }

  .gcash-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
  }

  .gcash-logo {
    width: 120px;
    margin-bottom: 20px;
  }

  .gcash-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .gcash-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 25px;
  }

  .gcash-amount {
    font-size: 30px;
    font-weight: bold;
    color: #0076f0;
    margin-bottom: 30px;
  }

  .gcash-pay-btn {
    background-color: #0076f0;
    color: white;
    border: none;
    padding: 14px 0;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
  }

  .gcash-pay-btn:hover {
    background-color: #005dc7;
  }

  .gcash-reference {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
  }
/* ****** */

 .login{
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    max-width: 400px;
 }
 .profile{
    top: 0px; /* adjust based on your header height */
    right: 0px;
    max-width: 250px;
    height: 100%;
    text-align: left;
    gap: 20px;
 }
 .nav{
    cursor: pointer;
    color:#2e7d32;
    text-align: left;
 }
.container {
    display: flex;
    flex-direction: row;
    bottom: 0;
}

#leftPopupContent{
    text-align: left;
    label{
        margin-left: 20px;
    }
}
#leftSideNav input[type='text'], #leftPopupContent input[type='text']{
    padding: 10px 14px;
    margin: 8px 0 20px;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    background-color: #f1f8e9;
    font-size: 16px;
    color: #2e7d32;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    width:100%;
}
.column {
    overflow-y: auto;
    height:80vh;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    border-left: 1px solid white;
    padding: 10px;
}

.column::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.mobile-buttons{
    display: none;
}

#leftSideNav, #rightSideNav {
    text-align: left;
    width: 15%;
}

#middleNav {
    width: 70%;
}

footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    height: 30px;
    bottom: 0;
    width: 100%;
    padding-top: 8px;
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.box {
    width: calc(30% - 10px); /* Always 5 boxes per row on desktop */
    height: 300px;
    background-color: transparent;
    color: green;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 5px;
    box-shadow: 0px 0px 5px white;
}
.box-content {
    display: flex;
    flex-direction: column; /* Stack top row and description vertically */
    width: 100%;
    padding: 5px;
    gap: 5px;
    text-align: left ;
}

.top-row {
    display: flex;
    width: 100%;
    gap: 5px;
}

.box-details {
    flex: 1;
    padding: 5px;
    height: 120px;
}

.box-image {
    width: 170px;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-content: center;
    text-align: center;
    border: 1px solid #66bb6a;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #43a047;
    background-color: #1b5e20;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This makes the image fill and crop */
        object-position: center;
        display: block;
    }
}

/* Basic Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 80px; /* Adjust based on your header height */
  right: 20px;
  z-index: 1000;

  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 250px;
}

/* Optional: Smooth fade-in animation */
.modal.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Optional: Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box-description {
    width: 100%;
    padding: 5px;
    height: 60px; /* or auto if content varies */
}

.quantity-selector {
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 5px;
}

.box-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
    gap: 10px;
}
.quantity-selector input {
    width: 40px;
    text-align: center;
}

.quantity-selector button {
    padding: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
}
/* Hide arrows in input[type=number] for Chrome, Safari, Edge */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrows in Firefox */
.quantity-selector input[type=number] {
    -moz-appearance: textfield;
}

.qty-input {
    user-select: none;
    pointer-events: none; /* Optional: fully disables interaction */
}

.buttons {
    display: flex;
    gap: 10px;
}

.buttons button {
        padding: 12px 18px;
        background-color: #66bb6a;
        border: none;
        border-radius: 6px;
        font-size: 12px;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
}

.buttons button:hover {
    background-color: #43a047;
}
.box:hover {
    background-color: white; /* green */
    transform: scale(1.05); /* slight zoom in */
}

.billingHeader{
    position: sticky;
    top: 0; 
    background-color: #e8f5e9; 
}

@media (min-width: 601px){
    .popup{
    display: none;
}
}
@media (max-width: 600px) {
    .container {
    flex-direction: column;
    height: auto;
    }

    #middleNav {
    width: 100%;
    height: 80vh;
    }

    #leftSideNav, #rightSideNav {
    display: none;
    }

    .mobile-buttons {
        display: flex;
        justify-content: space-between;
    }

    .mobile-buttons button {
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    background-color: #43a047;
    color: white;
    border-radius: 8px;
    }

    .popup {
    position: fixed;
    top: 10px;
    left: 2.5%;
    width: 95%;
    height: 95%;
    background: white;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 20px;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    }

    .popup h2 {
    margin-bottom: 10px;
    }

    .popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    }
    h1 {
    font-size: 28px;
    }

    .shopName{
        display: none;
    }

    .carousel-slide h2 {
    font-size: 20px;
    }

    .carousel-slide ul li {
    font-size: 15px;
    }

    .btn {
    font-size: 14px;
    padding: 10px 20px;
    }
    .box {
        width: calc(50% - 10px); /* Exactly 2 per row */
    }
    .billingHeader{
        background-color: white;
    }
}