@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff6f4e; /* Orange from image */
    --secondary-color: #4CAF50; /* Green from image */
    --text-color: #333;
    --light-text-color: #666;
    --border-color: #ddd;
    --background-color: #f8f8f8;
    --card-background: #fff;
    --shadow: 0 4px 8px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--card-background);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Needed for absolute positioning of elements inside */
}

.logo {
    font-weight: 700;
    font-size: 1.8em;
    color: var(--primary-color);
}

.trust-pilot-badge {
    margin-left: auto; /* Push to the right */
    display: flex;
    align-items: center;
}

.trust-pilot-badge img {
    height: 42px; /* Default height */
    width: auto;
    display: block;
}

.proof-image-container {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px; /* Add padding for smaller screens */
}

.proof-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0px auto -20px auto;
    border: 4px solid #00b67a;
    border-radius: 15px;
}

.product-page {
    padding: 20px 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-images {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fdfaf7; /* Light background from image */
}

.main-image-wrapper {
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-images img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 111, 78, 0.5);
}

.product-details {
    flex: 1;
    min-width: 350px;
    padding: 30px;
}

.product-rating-section {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars-display {
    color: #FFC107; /* Star color */
    font-size: 0.9em;
    margin-right: 5px;
}

.stars-display .fas {
    color: #e0e0e0; /* Default star color */
}

.stars-display .fas.filled {
    color: #FFC107; /* Filled star color */
}

.reviews-count {
    font-size: 0.9em;
    color: var(--light-text-color);
}

.product-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px; /* Adjusted margin */
    color: var(--text-color);
}

.promo-badge {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.product-price-section {
    margin-bottom: 20px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.product-price .current-price {
    font-size: 2.5em; /* Larger font size */
    font-weight: 800; /* Bolder */
    color: var(--primary-color); /* Primary color */
    line-height: 1; /* Adjust line height for better alignment */
}

.product-price .old-price {
    font-size: 1.2em; /* Larger than previous, but smaller than current */
    color: var(--light-text-color); /* Lighter grey for old price */
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 10px; /* Add some space */
}

.shipping-info {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: 500;
}

.countdown-timer {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed to center */
    gap: 10px;
    margin-bottom: 20px;
}

.countdown-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px; /* Added margin */
}

.timer-boxes {
    display: flex;
    gap: 10px;
    width: 100%; /* Make full width */
    justify-content: space-around; /* Distribute items */
}

.timer-box {
    background-color: var(--card-background);
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    flex-grow: 1; /* Allow boxes to grow */
    min-width: 60px;
}

.timer-box span:last-child {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    color: var(--light-text-color);
}

.product-description-wrapper {
    margin-bottom: 25px;
}

.product-description {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 15px; /* Adjusted margin */
}

.product-description.hidden {
    display: none;
}

.show-more-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.show-more-button:hover {
    color: #e65a3d;
}

.product-features h2,
.product-variants h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-features ul {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li .fas {
    color: var(--secondary-color);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.variant-button {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
}

.variant-button:hover,
.variant-button.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.buy-now-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 300px; /* Default max-width */
    margin-bottom: 30px;
    transition: background-color 0.2s ease-in-out;
}

.buy-now-button.full-width {
    max-width: 100%; /* Make it full width when this class is applied */
}

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

.guarantees {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.guarantees div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85em;
    color: var(--light-text-color);
    text-align: center;
}

.guarantees div .fas {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-images,
    .product-details {
        min-width: unset;
        width: 100%;
    }

    .product-details {
        padding: 20px;
    }

    /* Hide desktop header elements on mobile */
    .product-header-desktop {
        display: none;
    }

    /* Show mobile header elements on mobile */
    .product-header-mobile {
        display: block; /* Or flex, depending on desired layout */
        padding: 20px; /* Add some spacing */
        margin-bottom: -25px;
    }

    .product-title {
        font-size: 1.8em;
    }

    .product-price .current-price {
        font-size: 2em; /* Adjusted for mobile */
    }

    .product-price .old-price {
        font-size: 1em; /* Adjusted for mobile */
    }

    .buy-now-button {
        max-width: 100%;
    }

    .proof-image {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0px auto -20px auto;
        border: 2px solid #00b67a;
        border-radius: 15px;
    }   
}

/* Specific styles for desktop to hide mobile header and show desktop header */
@media (min-width: 769px) {
    .product-header-mobile {
        display: none;
    }

    .product-header-desktop {
        display: block; /* Or flex */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .trust-pilot-badge img {
        height: 18px; /* Further adjust height for smaller mobile */
    }
    .logo {
        font-size: 1.5em;
    }

    .trust-pilot-badge img {
        height: 20px; /* Adjust height for mobile */
    }

    .product-title {
        font-size: 1.5em;
    }

    .product-price .current-price {
        font-size: 1.8em; /* Further adjusted for smaller mobile */
    }

    .product-price .old-price {
        font-size: 0.9em; /* Further adjusted for smaller mobile */
    }

    .guarantees {
        flex-direction: column;
        align-items: center;
    }
}
