/* --- Basic Resets & Body Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    background-color: #f1f1f1;
    color: #333;
}

/* --- Top & Promo Bars --- */
.top-bar {
    background-color: black;
    color: #cecece;
    text-align: center;
}

p {
    margin: 0;
    font-size: 1rem;
    margin-top: 1.5rem;
    font-weight: 300;
}

h1 {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 300;
}

h2 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.fine-print {
    font-size: 0.7rem;
    margin: 0;
    font-weight: 300;
    font-style: italic;
}

.promo-bar {
    background-color: #C12872;
    color: white;
    text-align: center;
}

.promo-bar2 {
    background-color: #00B373;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    border-radius: 4px;
}

.promo-bar2 p {
    margin-top: 0;
    /* Override default paragraph margin for better balance */
}

/* --- Banner Styles --- */
.banner {
    position: relative;
    /* Needed to position the logo inside */
    /* The banner image for the website */
    background-image: url('Assets/banner-website.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    /* Maintain a 1920:425 aspect ratio to match the image */
    aspect-ratio: 1920 / 344;
}

.banner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 144px;
    /* Prevents it from getting too large on big screens */
    aspect-ratio: 144 / 97;
    object-fit: contain;
    /* Ensures the image fits within the aspect ratio without distortion */
    /* Prevents it from getting too large on big screens */
}

/* --- Main Content & Product Grid --- */
main {
    padding: 1rem 1rem;
    max-width: 1200px;
    /* Constrains the width of the grid on very large screens */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #333;
}

.product-grid {
    display: grid;
    /* On desktops, create 4 equal-width columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    /* Space between grid items */
}

/* --- Product Card Styles --- */
.product-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.50);
}


.product-card-content {
    padding: 0 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Allows content to fill available space */
}



.product-card .product-description {
    flex-grow: 1;
    /* Pushes price and button to the bottom */
    margin-bottom: 1rem;
    color: #000000;
    font-size: 0.8rem;
}

.product-card a {
    /* Ensures the link wrapper behaves like a block and contains the image correctly */
    display: block;
    line-height: 0;
    /* Removes extra space below the image caused by line-height */
}

.product-image {
    width: 100%;
    /* Makes the image fill the width of its container */
    height: auto;
    /* Maintains the image's aspect ratio */
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    display: block;
    /* Removes any extra space below the image */
}

.product-card .product-price {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 1rem;
}

.product-card button {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 100;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #C42672;
}

/* --- Featured Showcase Styles --- */
.featured-showcase {
    margin-top: 1rem;
}

.featured-grid {
    display: grid;
    /* Two wider columns on desktop */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: black;
    color: #ccc;
    padding: 2rem 1rem;
    font-size: 0.75rem;
    /* 12px equivalent */
    /* Adds space above the footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright-text {
    color: #b6b6b6;
    /* A dimmer grey to make it less prominent */
    text-align: center;
    font-size: 0.7rem;
    margin-top: 1rem;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    /* Remove default ul padding */
}

.social-links a {
    text-decoration: none;
}

.social-links img {
    vertical-align: middle;
    /* Ensures proper alignment */
    transition: opacity 0.3s ease;
}

.social-links a:hover img {
    opacity: 0.8;
    /* A subtle visual feedback on hover */
}

/* --- Responsive Design - Media Queries --- */

/* For tablets (screens less than 992px wide) */
@media (max-width: 992px) {
    .product-grid {
        /* Change to 3 columns for a more compact tablet view */
        grid-template-columns: repeat(3, 1fr);
    }

}

/* For mobile phones (screens less than 768px wide) */
@media (max-width: 768px) {

    main {
        padding: 2rem 0.5rem;
        /* Reduce side padding for a wider look on mobile */
    }

    .product-grid {
        grid-template-columns: 1fr;
        /* Still a single column */
        justify-items: center;
        /* Center the cards within the column */
    }

    .product-card {
        /* Limit the card's width on mobile to prevent it from sizing up too much */
        max-width: 300px;
        width: 100%;
        /* Ensure it takes full width up to max-width */
    }

    .featured-grid {
        /* A single, wide column on mobile */
        grid-template-columns: 1fr;
    }

    /* Allow featured cards to be full-width on mobile */
    .featured-grid .product-card {
        max-width: none;
    }

    .social-links {
        /* Arrange social icons in a 2x2 grid on small screens */
        display: grid;
        grid-template-columns: repeat(2, auto);
    }

    .banner-logo {
        /* Reduce logo size on mobile for better proportions */
        max-width: 80px;
    }

}