/* PAGE SECTIONS */
/* Header */
header {
    text-align: center;
    padding-left: 65px;
    padding-right: 65px;
    padding-top: 20px;
    padding-bottom: 0px;
    position: static;
    width: 100%;
    top: 0;
    box-sizing: border-box;
}

body {
    padding-top: 0px;
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: white;
}

/* Footer */
footer {
    background-color: #f7f7f7;
    text-align: left;
    margin-top: 10px;
    padding-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

footer a:hover {
    text-decoration: underline;
}

footer p2 {
    display: block;
    margin-bottom: 10px;
}

/* COMMON BODY SECTION CONTAINER STYLES */

/* Section General Layout */
section {
}

/* Spacer */
.spacer {
    padding-top: 45px;
}

/* Wide image container*/
.image-container-wide {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 70px;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Big top image*/
.image-container-wide img {
    width: 100%;
    height: auto;
}

/* Image caption*/
.image-caption {
    font-size: 13px;
    font-family: Arial, sans-serif;
    text-align: left;
    margin-top: 5px;
}

/* Flexbox container */
.flexcontainer {
    display: flex;
    padding-top: 10px;
    padding-bottom: 70px;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
}

.flexleft {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 2.5;
    padding-right: 30px;
}

/* Square aspect ratio images (default behavior) */
.flexleft img.square-aspect {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Original aspect ratio images (override) */
.flexleft img.original-aspect {
    width: 100%;
    height: auto;
}

.flexright {
    flex: 1;
    align-self: flex-start; /* Aligns text to the top */
}

/* HOMEPAGE SPECIFIC STYLES */

/* Homepage main container */
.homepage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 70px;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0 auto;
}

/* Product grid container for homepage */
.product-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

/* Individual product item */
.product-item {
    width: 100%;
    margin-bottom: 60px;
}

/* Product image wrapper for square aspect ratio */
.product-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates square aspect ratio */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Footer text*/
.footer-text {
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: 50px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}

h3 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 9px;
}

p {
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 4px;
}

p2 {
    font-size: 13px;
}

.p-loose {
    margin-bottom: 20px;
}

.cart-btn {
    display: inline-block;
    padding: 5px 10px; /* Increased padding for better size */
    font-size: 11px; /* Slightly larger font for better readability */
    font-weight: bold; /* Emphasizing the button text */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    border-radius: 8px; /* Rounded corners */
    background-color: #f7f7f7; /* White background */
    transition: all 0.3s ease; /* Smooth transition for hover and active states */
}

.cart-btn:hover {
    background-color: #f7f7f7; /* Green background on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
    transform: translateY(-2px); /* Lift effect when hovered */
}

.cart-btn:active {
    transform: translateY(2px); /* Button presses down on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Shadow lightens on click */
}

/* Hide empty image slots */
.flexleft img[src=""] {
    display: none;
}

/* MOBILE CSS STYLES */
@media screen and (max-width: 800px) {

    .p-loose {
        margin-bottom: 10px;
    }

    footer {
        margin-top: 0px;
        padding-top: 20px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 20px;
    }

    /* Spacer */
    .spacer {
        padding-top: 20px;
    }

    /* Wide image container*/
    .image-container-wide {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 30px;
    }

    .flexcontainer {
        flex-direction: column;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 30px;
    }

    .flexleft {
        padding-right: 0px;
    }

    .flexright {
        order: -1; /* Moves the right column to the top */
        margin-bottom: 30px;
    }

    h1 {
        font-size: 30px;
        font-weight: bold;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    /* Homepage mobile styles */
    .homepage-container {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 30px;
    }

    .product-item {
        margin-bottom: 40px; /* Less spacing on mobile */
    }
}
