/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #D3D3D3;
    color: white;
    text-align: center;
    padding: 1rem;
}

h1 {
    margin: 0;
}

h2 {
    color: #d90429;
}

main {
    padding: 1rem;
}

/* Banner Styling */
.banner {
    width: 100%;
    overflow: hidden;
    text-align: center;
    /* Center the banner image */
    padding: 0;
}

.banner img {
    width: 100%;
    /* Make the image responsive to screen size */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Remove extra space below the image */
    border-bottom: 1px solid #D3D3D3;
    /* Optional: Add a clean border for separation */
}

/* Product List Styles */
.product-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    width: 300px;
    position: relative;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0 20px;
}

.product-card p {
    margin: 0.3rem 0;
}

.product-card p.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0077cc;
}

.product-card p.reason-for-selling {
    color: #e74c3c;
    /* Highlight "Reason for Selling" in red */
    font-weight: bold;
}

/* Overlay Styling */
.image-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    /* Ensures overlay stays inside the image bounds */
}

.image-container img {
    width: 100%;
    display: block;
    /* Prevents extra spacing below the image */
    border-radius: 8px;
    /* Matches product card design */
    margin-bottom: 20px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent black */
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
    border-radius: 0 0 8px 8px;
    /* Match image border radius */
}

/* Reason Box */
.reason-box {
    background-color: #f5f5f5;
    /* Light gray background for contrast */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle drop shadow */
    padding: 1rem;
    /* Add spacing inside the box */
    font-size: 0.95rem;
    /* Slightly larger text for emphasis */
    margin: 1rem 0;
    /* Space above and below */
    line-height: 1.5;
    /* Improve readability */
    color: #333;
    /* Neutral text color for readability */
    text-align: center;
    /* Center align text for better presentation */
}

/* Buttons */
.view-button,
.buy-button {
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s;
}

.view-button:hover,
.buy-button:hover {
    background-color: #005fa3;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
}

.back-button {
    background-color: #555;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 1rem;
}

.back-button:hover {
    background-color: #333;
}

/* Product Details Specific */
.product-detail-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.image-container-detail img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    text-align: left;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0077cc;
}

.product-info p {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #555;
}

.product-info p.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0077cc;
}

/* Product Details Specific */
.product-detail-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    /* Ensure proper alignment of content */
}

.image-container-detail {
    flex: 1;
    max-width: 50%;
    /* Limit the image container width */
}

.image-container-detail img {
    width: 100%;
    height: auto;
    /* Maintain the aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
    text-align: left;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0077cc;
}

.product-info p {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #555;
}

.product-info p.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0077cc;
}

/* Buttons Styling */
.buy-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.buy-button:hover {
    background-color: #218838;
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Alignment Fix for Buy Now Button */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Align content properly */
    height: 100%;
    /* Match content height */
}

.product-info .buy-button {
    align-self: flex-start;
    /* Align the button to the left */
}


 

.happy {
    position: relative;
}
.happy strong{
   font-size:36px;
}
.h-gif {
    position: absolute;
    width: 90px;
}

.h-gif1 {
    left: 0;
}

.h-gif2 {
    right: 0;
}

@media (max-width: 1200px) {
    .product-detail-container {
        max-width: 90%;
    }

}
@media (max-width: 992px) {
    .image-container-detail{
        max-width: 40%;
    }
}

/* General Mobile Styles */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 1rem;
    }

    .product-card-detail {
        flex-direction: column;
        /* Stack the image and details */
        align-items: center;
        /* Center align for mobile */
    }

    .image-container-detail {
        max-width: 100%;
        /* Use full width for the image on mobile */
        margin-bottom: 1rem;
        /* Add spacing below the image */
    }

    .product-info {
        text-align: center;
        /* Center align text for smaller screens */
        padding: 0 1rem;
        /* Add padding to avoid text touching the screen edge */
    }

    .product-info h1 {
        font-size: 1.5rem;
        /* Slightly smaller heading size */
    }

    .product-info p {
        font-size: 0.9rem;
        /* Smaller font for better spacing */
    }

    .product-info p.price {
        font-size: 1rem;
        /* Adjust price font size */
    }

    .buy-button {
        width: 100%;
        /* Full-width button for easy tapping */
        font-size: 1rem;
        padding: 0.8rem;
    }
    .happy strong{
     font-size:30px
    }
}

/* General Mobile Styles */
@media (max-width: 768px) {
    .product-list {
        flex-direction: column;
        /* Stack products vertically on mobile */
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
        width: 90%;
        /* Reduce the card width to fit smaller screens */
        margin: 0 auto;
        /* Center the card on the page */
    }

    .reason-box {
        margin-bottom: 2rem;
        /* Add more space below the reason box */
        font-size: 0.9rem;
        /* Adjust font size for smaller screens */
    }

    .view-button {
        position: unset;
        /* Remove absolute positioning for mobile */
        margin: 1rem 0 0 0;
        /* Add spacing above the button */
        transform: none;
        /* Remove centering transform */
        width: max-content;
        /* Full-width button for easy tapping */
        font-size: 1rem;
        /* Slightly smaller font size */
        padding: 0.8rem;
        /* Adjust padding for mobile */
        left: auto;
    }
}


/* Desktop Specific Styles */
@media (min-width: 769px) {
    .product-list {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        /* Center products horizontally */
        flex-wrap: wrap;
        /* Ensure wrapping if space is insufficient */
    }

    .product-card {
        padding: 1rem;
        width: 300px;
        /* Standardize card width on desktop */
        margin: 0;
        position: relative;
    }

    .reason-box {
        margin-bottom: 2rem;
        /* Add extra space below the reason box */
        font-size: 1rem;
        /* Keep font size legible on larger screens */
    }

    .view-button {
        position: unset;
        /* Ensure natural positioning within the flow */
        margin-top: 1rem;
        /* Add spacing above the button */
        transform: none;
        /* No centering transform needed */
        width: auto;
        /* Keep button size proportional */
        padding: 0.5rem 1rem;
        /* Standard button padding for desktop */
        font-size: 1rem;
        left: auto;
    }
}

/* Custom Styling for New Product Description */
.product-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

/* Highlight "Think", "Build", and "Connect" */
.product-info p strong {
    font-weight: bold;
}

.product-info p strong:nth-of-type(1),
.product-info p strong:nth-of-type(2) {
    color: #0077cc;
    /* Blue for Think and Build */
}

.product-info p strong:nth-of-type(3) {
    color: #28a745;
    /* Green for Connect */
}