.top-nav-bar {
    background-color: #ffffff;
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    z-index: 500;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-height: 80px;
    width: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;*/
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    padding-bottom: 50px;
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 200;
}

p {
    line-height: 1.6;
}

/* --- 1. HERO SECTION --- */
.hero-section {
    text-align: center;
    padding-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

img[src=""] {
    display: none;
}

.hero-video {
    height: 100%;
    width: auto;
}

/* Replace using this when using video instead of image

.hero-image-container {
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

For Video Instead of Image*/

.hero-image-container {
    height: 55vh;
    /* BACKGROUND IMAGE */
    background-image: url('');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-product-image {
    max-width: 50%;
    max-height: 80%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.hero-text-box {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.hero-text-box h1 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #111;
    font-weight: 600;
}

.hero-text-box p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #111;
}
/* --- 2. FEATURES SECTION (ALTERNATING) --- */
.features-section {
    padding: 20px 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 60px;
}

.feature-item .feature-image,
.feature-item .feature-text {
    flex: 1;
}

.feature-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

/* --- 3. REVIEWS SECTION (CAROUSEL) --- */
.reviews-section {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.star-rating {
    color: #fdd835;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card h3 {
    margin: 0 0 10px 0;
}

.review-content {
    font-style: italic;
    color: #555;
}

.review-author {
    font-weight: bold;
    margin-top: 20px;
}

.review-link {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.review-link:hover {
    text-decoration: underline;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* --- 4. STICKY "BUY NOW" FOOTER --- */
.sticky-buy-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.sticky-buy-footer.hidden {
    transform: translateY(100%);
}

.buy-button {
    background-color: #FF9900;
    color: #111;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center; 
}

.buy-button .button-logo {
    height: 24px;
    width: auto;
    margin-right: 20px;
    background-color: #ffffff;
    padding: 4px 8px;
    border-radius: 3px;
}

.buy-button:hover {
    background-color: #E68A00;
}

/* --- RESPONSIVE DESIGN FOR MOBILE --- */
@media (max-width: 768px) {
    .hero-text-box h1 {
        font-size: 1.5rem;
    }

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .feature-item .feature-image {
        max-width: 70%; 
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* ============================================= */
/* 5. PHOTO GALLERY SECTION
/* ============================================= */
.gallery-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;  /*HORIZONTAL ALIGNMENT*/
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- ROW TYPE 1: JUSTIFIED (stretches to fill width) --- */
.gallery-row {
    display: flex;
    width: 100%;              /* Ensures the row takes up full space to be filled */
    gap: 8px;
    height: 35vh;
}

.gallery-row .gallery-item {
    flex-grow: 1;             /* <-- Key: Allows items to grow to fill the width */
    flex-basis: 0;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-row .gallery-item img {
    width: 100%;
    height: 100%;             /* <-- Key: Image fills the fixed-height container */
    object-fit: cover;
    display: block;
}


/* --- ROW TYPE 2: NATURAL (maintains aspect ratio) --- */
.gallery-row-natural {
    display: flex;
    justify-content: center;
    width: 100%;             /* Takes up space, but items inside won't be forced to fill it */
    gap: 8px;
}

.gallery-row-natural .gallery-item {
    flex-grow: 0;
    flex-shrink: 1;
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;          /* Prevents a single large image from overflowing */
}

.gallery-row-natural .gallery-item img {
    width: auto;              /* <-- Key: Width is determined by image's aspect ratio */
    height: 25vh;             /* <-- Key: Set a height to normalize images, width adjusts automatically */
    max-width: 100%;          /* Ensures responsive shrinking */
    display: block;
}

/* ============================================= */
/* 5. AMAZON PRODUCT CARD SECTION */
/* ============================================= */
#amazon-product-card-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.amazon-card {
    max-width: 420px;
    margin: 0 auto;
    background-color: #fff8e7;
    border: 2px solid #5d83c1;
    border-radius: 16px;
    padding: 20px;
    padding-top: 0;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
}

.card-product-image-container {
    position: relative;
    margin: 0 -20px 15px -20px; /* Make image container span the full card width */
    text-align: center;
}

.bestseller-banner {
    position: absolute;
    top: 30px;
    left: -2px; /* Position banner to overlap the border */
    background-color: #e47911; /* Amazon orange */
    color: white;
    padding: 10px 35px 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    /* This creates the ribbon-end shape */
    clip-path: polygon(0% 0%, 100% 0%, 90% 50%, 100% 100%, 0% 100%);
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #f7a81b; /* Star color */
}

.rating-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.stars {
    font-size: 1.2rem;
}

.card-headline {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.card-description {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin: 0 auto 25px auto;
    max-width: 90%;
}

.amazon-cta-button {
    display: inline-flex;
    text-decoration: none;
    background-color: #f7a81b;
    border-radius: 8px;
    overflow: hidden;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amazon-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.amazon-logo-box {
    background-color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e7e7e7;
}

.amazon-button-logo {
    height: 25px;
    width: auto;
}

.amazon-cta-text {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px;
}

/* ============================================= */
/* 6. STATIC REVIEW QUOTE SECTION                */
/* ============================================= */
.static-review-section {
    background-color: #f7f7f7;
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 60px;
    border-radius: 16px;
}

.static-review-card {
    max-width: 800px;
    margin: 0 auto;
}

/* Targeting the star-rating specifically within our new section
   to make them larger without affecting other sections. */
.static-review-section .star-rating {
    font-size: 2.2rem;
    margin-bottom: 30px;
    /* This will inherit the yellow color from your existing .star-rating rule */
}

.review-quote-text {
    font-size: 1.6rem;
    font-weight: 700; /* Bold */
    color: #111;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.review-quote-author {
    font-size: 1.2rem;
    color: #333;
    font-weight: 400; /* Regular weight */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .static-review-section .star-rating {
        font-size: 1.8rem;
    }
    .review-quote-text {
        font-size: 1.25rem;
    }
    .review-quote-author {
        font-size: 1rem;
    }
}
