/* Flex container for header and cart button */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    flex-direction: column;    
}


.header-container h1 {
    display: flex;
    flex-direction: row; /* Default: Horizontal layout */
    margin: 0;
    font-size: 5rem;
    text-align: center;
    gap: 10px; /* Space between words */            
}

.product-info h2 {
    font-size: 3rem; /* Adjust the font size as desired */
}

/* View cart button */
.view-cart-button {
    position: absolute;
    top: 5px;
    right: 40px; /* Keep button at the right */
    padding: 2px 3px;
    background-color: #ffffff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s ease;
    
}

.view-cart-button:hover {
    background-color: #04f908;
    transform: scale(0.9);
}




/* Basic styles for layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

html {
    height: 100%; /* Ensure the page spans the entire height of the viewport */
    margin: 0;    /* Remove default margin */
    padding: 0;   /* Remove default padding */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex: 1; /* Allow container to grow */
}

.product {
display: flex;
flex-direction: column;
align-items: center;
width: 100%; /* Each product takes up about half the width of the container */
padding: 15px;
box-sizing: border-box;
border-radius: 10px;
}

.product-info {
    padding: 15px;
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
    
}

.product-description {
    border: 2px solid #49f427;
    padding: 15px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px; /* Reduce space between descriptions */
    border-radius: 10px; /* Rounded corners */
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(73, 244, 39, 0.5); /* Add shadow */
    line-height: 1.5;
}



.product-description h4 {
    font-size: 24px;
}

.button-container {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Space between buttons */
    gap: 10px;
    margin-top: 10px;
    width: 100%
}

.bulkprice-button {
    width: 50px; /* Adjust size as needed */
height: 50px; /* Keep the height and width equal for a square shape */
font-size: 20px;
border: 2px solid #333;
background-color: #4CAF50;
color: white;
border-radius: 5px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}

.bulkprice-button:hover {
background-color: #45a049;
}

/* Style for the popup */
.popup {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
justify-content: right;
align-items: center;
}

/* Popup content */
.popup-content {
background-color: white;
padding: 20px;
border-radius: 8px;
width: 300px;
text-align: center;
}

/* Close button */
.close-btn {
position: absolute;
top: 10px;
right: 10px;
font-size: 25px;
cursor: pointer;
}


.moreinfo-button {
    padding: 7px 10px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    flex: 1; /* Allow buttons to grow equally */
    margin: 5px; /* Add some margin for spacing */
    text-align: center; /* Center the text inside buttons */
}


.moreinfo-button:hover {
    background-color: #218838; /* Hover effect for buttons */
}




.addcart-button {
    /*
    padding: 5px 7px;
    background-color: #838383;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    flex: 1; /* Allow buttons to grow equally */
    margin: 5px; /* Add some margin for spacing */
    text-align: center; /* Center the text inside buttons */
    font-size: 18px;
    transform: translateX(-12px); /* Shift the button 20px to the left */
    transition: transform 0.2s ease;

}



.buynow-button {
    padding: 5px 7px;
    background-color: #1e44ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px; /* Add some margin for spacing */
    text-align: center; /* Center the text inside buttons */
    font-size: 18px;
    transition: transform 0.2s ease;
    height: 50px; /* Consistent height */
    margin: 0px; /* Margin for spacing */
    width: 330px;
    
}




.addcart-button:hover {
    background-color: #575757; /* Hover effect for buttons */
    transform: scale(0.98); 
    
}

.buynow-button:hover {
    background-color: #0226dc; /* Hover effect for buttons */
    transform: scale(0.98);
}



.product-image {
    max-width: 100%;
    height: auto;
}

.bulk-price1,
.bulk-price {
    margin: 10px 0;
    margin-top: 20px;
    font-size: 24px;
}

.qty-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    margin-top: 20px;
    font-size: 24px;
    width: fit-content;
    margin: 0 auto;
}


 

.min-qty-warning {
color: black; /* Default text color */
font-weight: normal; /* Default font weight */
font-size: 1rem; /* Adjust font size as needed */
margin-top: 10px; /* Add some space above the message */
text-align: center; /* Align the text to the left */
padding: 5px; /* Padding around the text for better readability */
animation: fadeIn 0.5s ease-in;
}

.spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
border-top: 4px solid #000;
border-radius: 50%;
width: 20px;
height: 20px;
animation: spin 1s linear infinite;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes spin {
to { transform: rotate(360deg); }
}

.min-qty-warning.error {
color: red; /* Red text color for visibility */
font-weight: bold; /* Make the text bold */
}

/*
.quantityinput-growlights { 
flex-grow: 1; 
max-width: 120px;
font-size: 20px; 
height: 50px;    
width: 100%;     
padding: 5px;    
margin-top: 10px;
margin: 0 auto; 
 } 
*/

 .quantityinput-pouches {
font-size: 20px; /* Makes the entered text bigger */
height: 40px;    /* Increases the height of the input box */
width: 100%;     /* Increases the width of the input box */
padding: 5px;    /* Adds some padding inside the input box for a better look */
height: 50px;    /* Increases the height of the input box */
margin-top: 10px;
 }



.paypal-button {
    margin: 5px;
    cursor: pointer;
}

img {
    height: auto;
    width: 100%;
}

* {
    box-sizing: border-box;
}








.social-buttons {
display: flex;
flex-wrap: wrap; 
justify-content: center;
align-items: center;
padding: 10px; /* Optional padding */
gap: 200px;
}

/* Individual button styling */
.social-button {
display: inline-block; /* Ensures proper sizing around the image */
width: 15%; 
width: 100%;
min-width: 65px;
max-width: 100px;
height: auto;
margin: 10px;
transition: transform 0.3s ease; /* Smooth transition */




}

.social-button img {
width: 100%;
height: auto;
border-radius: 5px;
}

/* Hover effect for each button */
.social-button:hover img {
transform: scale(1.1); /* Slightly scale the image on hover */

}


/* Added outline to the rows to match the image*/
.row {
    padding: 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    border-width: 1px;
    border-color: black;
    border-style: solid;
}

.row label {
    margin-right: 15px; /* Space between label and input */
    flex: 1; /* Allow labels to grow */
    width: 100%;
}

.row input[type="email"],
.row input[type="text"] {
    flex: 2; /* Allow inputs to take more space */
    margin-right: 50px; /* Space between inputs */
    padding: 10px; /* Increase padding inside inputs */
    font-size: 1em; /* Set input font size */
}
.row button {
    padding: 10px 15px; /* Larger padding for the button */
    font-size: 1em; /* Button font size */
    background-color: #ff0000; /* Button color */
    color: white; /* Button text color */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}
.row button:hover {
    background-color: #cf0303; /* Darker green on hover */
}

.shipping-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    
}

.shipping-container input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.shipping-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.shipping-container button:hover {
    background-color: #218838;
}


#email {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical; /* Allows vertical resizing */
    transition: all 0.3s ease; /* Smooth transition */
    overflow-y: auto; /* Adds scrollbar if content exceeds max-height */
    max-height: 40px;
    vertical-align: -15px;
    width: 20%;
}

#email:focus {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
    outline: none;
}

#question {
    width: 30%;
    min-height: 40px;  /* Minimum height */
    max-height: 100px; /* Maximum height */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical; /* Allows vertical resizing */
    transition: all 0.3s ease; /* Smooth transition */
    overflow-y: auto; /* Adds scrollbar if content exceeds max-height */
    vertical-align: -22px;
}

/* Focus styles */
#question:focus {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
    outline: none;
}




.colors-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping for smaller screens */
    align-items: center;
    justify-content: center; /* Center align items */
    gap: 15px; /* Reduce gaps for smaller screens */
    max-width: 90%; /* Constrain the container size */
    margin: 0 auto; /* Center the container */
}

.colors-container span {
    font-weight: bold;
    margin-right: 10px;
    font-size: 3rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    flex: 1; /* Allow options to grow evenly */
    max-width: 80px; /* Constrain individual option size */
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #000;
    cursor: pointer;
    margin: 10px auto;
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.3); /* Slight zoom on hover */
}


.color-circle.red { background-color: red; }
.color-circle.white { background-color: white; }
.color-circle.blue { background-color: blue; }
.color-circle.pink { background-color: rgb(255, 106, 131); }
.color-circle.black { background-color: black; }

.color-checkbox:checked + .color-circle {
transform: scale(1.5);
border: 3px solid #000000;
}

.qtyinput-colors {
width: 55px;
text-align: center;
border-radius: 6px;
height: 30px;
font-size: 1rem;
font-weight: bold;

}

.color-checkbox {
    position: absolute; /* Remove it from normal layout flow */
    opacity: 0; /* Make it invisible */
    width: 0; /* Remove its dimensions */
    height: 0;
}



#shipping-result img {
display: inline-block;
vertical-align: middle;
margin-right: 8px;
border-radius: 4px; /* Optional: rounded corners */
}

/* Footer */
footer {
background: #000000;
color: #fff;
text-align: center;
padding: 10px;
width: 100%;
box-sizing: border-box;
left: 0;
bottom: 0;
right: 0;
}

footer p {
font-size: 1rem;
}



.qtyinput-colors:focus {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
    outline: none;
}



[class*="col-"] {
    float: left;
    padding: 15px;
}

/* For desktop: */
.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Adds spacing between items */
    margin-bottom: 20px;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 5px; /* Adds spacing between label and input */
}

.form-row input,
.form-row textarea {
    width: 100%; /* Full-width input fields */
    padding: 8px;
    font-size: 1rem;
}

textarea {
    resize: none; 
    
}

@media only screen and (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 10px;
    }

    .header-container h1 {
        flex-direction: column;
        font-size: 3rem;
        gap: 5px
    }
    
    .container {
        flex-direction: column; /*stacks items vertically*/
        align-items: center; /*center align items*/
        padding: 0 10px; 

    }

    .product-info {
        width: 100%; /*full width on smaller screens*/
        margin-bottom: 20px; /*space between products*/
    }

    .quantity-input {
width: 100%; /* Full width for input fields */
max-width: 200px; /* Limit maximum width */
}

    .button-container {
        display: flex; /* Use flexbox for alignment */
        justify-content: center; /* Space between buttons */
        gap: 10px;
        margin-top: 10px;
        width: 100%
    }

    
    .colors-container {
        gap: 10px;
    }

    .colors-container span {
        font-size: 1.5rem;
    }

    .color-circle {
        width: 23px;
        height: 23px;
    }
    
    .qtyinput-colors {
        width: 45px; 
    }



/* Adjust font sizes for smaller screens */
.product-info h2,
.product-info h3 {
font-size: 2rem; /* Smaller heading sizes */
}

.shipping-container {
margin-top: 20px;
padding: 10px;
border-radius: 5px;
}

.shipping-container form {
display: flex;
flex-direction: column; /* Stack items vertically */
align-items: stretch; /* Ensure inputs take full width */
}

.shipping-container input[type="text"] {
width: 100%; /* Full width for inputs */
padding: 10px;
margin-right: 0; /* Remove margin-right for stacked layout */
border: 1px solid #ccc;
border-radius: 5px;
margin-top: 10px;
}

.shipping-container button {
padding: 10px 20px;
background-color: #28a745;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}

.shipping-container button:hover {
background-color: #218838;
}
.social-buttons {
gap: 10px; /* Reduce gap between buttons */
align-items: center;
}

.social-button {
width: 20%; /* Adjust button width for smaller screens */
max-width: 75px; 
align-items: center; 
}
}










    
    /* For mobile phones: */
    [class*="col-"] {
      width: 100%;
   }

   @media only screen and (max-width: 480px) {
    .header-container {
      flex-direction: column;
      align-items: center;
      padding: 5px;
    }
  
    .header-container h1 {
      font-size: 2.6rem; /* Smaller header font size */
      gap: 5px; /* Adjust spacing */
    }
  
    .container {
      flex-direction: column;
      align-items: center;
      gap: 10px; /* Reduce spacing between items */
    }
  
    .product-info {
      width: 100%; /* Full width on small screens */
      font-size: 1rem; /* Reduce font size */
    }
  
    .product-description {
      font-size: 16px; /* Smaller description text */
      padding: 10px; /* Reduce padding */
    }
  
    .button-container {
        display: flex; /* Use flexbox for alignment */
        justify-content: center; /* Space between buttons */
        gap: 10px;
        margin-top: 10px;
        width: 100%
    }
  
    
    .moreinfo-button {
      font-size: 0.9rem; /* Smaller button text */
      padding: 8px 10px; /* Adjust padding */
      width: 100%; /* Full-width buttons */
      margin: 5px 0; /* Add vertical spacing */
    }
  
    
    .buynow-button {
      height: auto; /* Let height adjust */
      padding: 5px 7px;
      background-color: #1e44ff;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      margin: 5px; /* Add some margin for spacing */
      text-align: center; /* Center the text inside buttons */
      font-size: 1rem;
      transition: transform 0.2s ease;
      height: 50px; /* Consistent height */
      margin: 0px; /* Margin for spacing */
      max-width: 260px;
    }

    
    
  
    .social-buttons {
      gap: 5px; /* Reduce spacing */
      justify-content: center; /* Center buttons */
    }
  
    .social-button {
      width: 20%; /* Smaller size for buttons */
      max-width: 50px; /* Ensure max size */
    }
  
    .colors-container {
        flex-direction: horizontal; /* Stack options vertically */
        gap: 5px;
    }

    .colors-container span {
        font-size: 1.1rem;
    }

    .color-option {
        max-width: 23px;
    }

    .color-circle {
        width: 22px;
        height: 22px;
    }

    .qtyinput-colors {
        width: 35px; 
    }
  
    .quantity-input,
    .quantityinput-growlights,
    .quantityinput-pouches {
      width: 100%; /* Full width inputs */
      max-width: 150px; /* Limit max size */
      font-size: 14px; /* Smaller font */
      height: auto; /* Allow natural height */
    }
  
    .shipping-container {
      padding: 8px;
    }
  
    .shipping-container input[type="text"] {
      width: 100%;
      padding: 8px;
      font-size: 0.9rem; /* Reduce font size */
    }
  
    .shipping-container button {
      width: 100%; /* Full width */
      font-size: 0.9rem; /* Reduce button text size */
    }
  
    .product-image {
      max-width: 100%;
      height: auto; /* Maintain aspect ratio */
    }
  
    .product-info h2,
    .product-info h3 {
      font-size: 1.8rem; /* Smaller heading sizes */
    }

    .error-message {
        display: none;
        color: red;
        font-weight: bold;
        font-size: 1rem;
        text-align: center;
        margin-top: 10px;
        animation: fadeIn 0.3s ease-in, fadeOut 0.3s ease-out 2.7s;
    }
    
    @keyframes fadeOut {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
        }
    }

    
    
  
    footer {
      font-size: 0.9rem; /* Smaller footer text */
      padding: 5px; /* Less padding */
    }
  }
  