/* Heart like button styles */
.heart-container {
    margin-top: 5px;
}

.heart-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.heart-icon {
    transition: color 0.3s ease;
}

.heart-button:hover .heart-icon {
    color: #ff6b81;
}

.heart-count {
    margin-left: 5px;
}

/* Thumbnail gallery styles */
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #232147;
}

/* Load more styles */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #232147;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #3a3675;
}

.hidden-item {
    display: none;
}

/* Product counter styles */
.product-counter {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #232147;
}

.product-counter p {
    margin-bottom: 0;
    color: #232147;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    background-color: #f9f9f9;
    color: #232147;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-answer {
    background-color: #ffffff;
    display: none;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
}

.faq-answer.open {
    display: block;
}

/* Button container fixes */
.buttons-container {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.buttons-container a {
    margin-bottom: 10px;
    width: 100%;
}

.buttons-container .appstore_chromstore {
    display: block;
}

.buttons-container .weboffbutton {
    width: 100%;
}

/* Screenshot container styles */
.main-screenshot-container {
    display: flex;
    flex-direction: column;
}

.main-screenshot-container .screenshot-image {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 991px) {

    /* Reverse the column order on mobile */
    #hero .row.d-flex.align-items-start {
        flex-direction: column-reverse;
    }

    /* Ensure the title appears first on mobile */
    #hero .col-lg-8 {
        order: 1;
        margin-top: 25px;
    }

    /* Move the screenshot section below */
    #hero .col-lg-4 {
        order: 2;
        margin-bottom: 15px;
    }

    /* Adjust spacing for better mobile view */
    .productlogoandtitle {
        margin-top: 15px;
    }

    /* Make heart container align properly */
    .heart-container {
        margin-top: 5px;
        margin-bottom: 10px;
    }

    /* Adjust the main title for mobile */
    .productlogoandtitle .title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    /* Make description text more readable on mobile */
    .prodcutdis {
        font-size: 0.95rem;
    }

    /* Improve thumbnails gallery on mobile */
    .thumbnail-gallery {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .thumbnail-gallery .thumbnail {
        flex: 0 0 auto;
        margin-right: 8px;
    }

    /* Better button layout for mobile */
    .buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }

    .buttons-container .weboffbutton {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Adjust appstore buttons layout */
    .appstore_chromstore {
        margin: 5px;
    }
}

/* Additional tweaks for extra small screens */
@media (max-width: 576px) {
    .productlogoandtitle .title {
        font-size: 1.3rem !important;
    }

    .imglogomo img {
        width: 60px !important;
        height: 64px !important;
    }
}

.hidden-glightbox {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 8px;
    margin-bottom: 8px;
}

.hidden-glightbox:hover .thumbnail {
    opacity: 1;
}

.thumbnail {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}

.thumbnail.active {
    border-color: #232147;
    opacity: 1;
}

.thumbnail:not(.active) {
    opacity: 0.7;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Hide the default GLightbox links but keep them in the DOM for the gallery functionality */
.hidden-glightbox {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-block;
}