/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
}
/* Policy pages styling */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #28a745;
    margin-bottom: 10px;
}

ul {
    margin: 10px 0;
    padding-left: 20px;
}

ul li {
    margin-bottom: 5px;
}

a {
    color: #28a745;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

main {
    flex: 1; /* Allow main content to grow and fill remaining space */
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%; /* Ensure it takes full width */
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative; /* Change from fixed to relative */
    width: 100%;
}

/* Grid container for products */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Product card styling */
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 150px; /* Scaled-down images */
    object-fit: contain; /* Maintain aspect ratio */
}

.product-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.product-card p {
    margin: 0;
    font-size: 16px;
    color: #28a745;
}

/* Product details container */
#product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between elements */
    padding: 20px; /* Add padding to prevent overflow */
}

/* Title and price container */
.title-price-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between title and price */
    justify-content: center; /* Center the title and price */
}

/* Product title */
#product-title {
    font-size: 24px;
    margin: 0;
}

/* Product price */
#product-price {
    font-size: 20px;
    color: #28a745;
    margin: 0;
}

/* Product description */
#product-description {
    font-size: 16px;
    margin: 0;
    text-align: center; /* Center-align the description */
    max-width: 600px; /* Limit description width */
}

/* Buy Now button */
.buy-now {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-top: 20px; /* Space above the button */
    z-index: 10; /* Ensure it's above other elements */
}

.buy-now:hover {
    background-color: #218838;
}

/* Slideshow container (unchanged) */
.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    text-align: center;
    width: 100%; /* Ensure it takes full width */
    max-height: 400px; /* Limit height to prevent overflow */
}

.slide {
    display: none;
    text-align: center;
}

.slide img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 400px; /* Limit image height */
    object-fit: contain; /* Maintain aspect ratio */
}

/* Slideshow navigation buttons (unchanged) */
.slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10; /* Ensure buttons are above images */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slideshow-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-button.prev {
    left: 20px; /* Distance from the left edge */
}

.slideshow-button.next {
    right: 20px; /* Distance from the right edge */
}
/* Founder section */
.founder {
    text-align: center;
    margin-top: 20px;
}

/* Circular profile picture */
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fills the circle */
    border: 3px solid #28a745; /* Optional: Add a border */
}

.founder h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.founder p {
    margin: 0;
    font-size: 14px;
    color: #555;
}
/* Contact form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

form button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #218838;
}