.product-categories {
    display: grid; 
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 20px;
}

.product_cat_btn {
    font-family: 'Drawing Doodle',Helvetica,Arial,Lucida,sans-serif;
    font-size: 20px;
    background-color: #00009c;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    transition: color 0.3s ease, background-color 0.3s ease;
    cursor:pointer;
    border: none;
}

.product_cat_btn:hover {
    color: #ffcafd;
}

.active{
    color: #ff589e;
}

.active:hover {
    color: #ff589e !important;
}

.container-product-page {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.populair-card {
    margin-bottom: 70px;
    position: relative;
}

.populair-card img {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.populair-card h2 {
    font-family: 'Funky Smile',Helvetica,Arial,Lucida,sans-serif;
    font-size: 24px!important;
    color: #00009c;
    text-align: center;
    margin-top: 10px;
}
.populair-card .editable-ribbon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00009c;
    color: #f5c6cb;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 50px;
    font-family: 'Funky Smile', sans-serif;
    text-align: center;
    text-transform: uppercase;
    z-index: 10;
    text-wrap: nowrap;
}

.container-text {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #00009c;
}

.container-text:hover ~ .container-product-page img {
    opacity: 0.8; 
}

.container-img img{
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* .container-img:hover img {
    opacity: 0.8;
} */

/* Wishlist Button Styles */
.popup-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.wishlist-btn {
    background: none;
    border: 2px solid #00009c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;

    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.wishlist-btn:hover {
    background-color: #ffcafd;
    border-color: #ff589e;
}

.wishlist-btn.in-wishlist {
    background-color: #ff589e;
    border-color: #ff589e;
}

.wishlist-btn.in-wishlist:hover {
    background-color: #ff6bb3;
    border-color: #ff6bb3;
}

.wishlist-heart {
    font-size: 20px;
    color: #00009c;
    transition: color 0.3s ease;
}

.wishlist-btn:hover .wishlist-heart {
    color: #ff589e;
}

.wishlist-btn.in-wishlist .wishlist-heart {
    color: white;
}

.wishlist-btn.loading-wishlist {
    cursor: wait;
    opacity: 0.7;
}

.wishlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Wishlist Message Styles */
.wishlist-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.wishlist-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wishlist-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* lock the heart's box so changing ♡ → ♥ doesn't change layout */
.wishlist-heart {
    display: inline-block;
    width: 20px;           /* match font-size below */
    height: 20px;
    line-height: 20px;     /* centers the glyph neatly */
    font-size: 20px;
    color: #00009c;
    pointer-events: none;  /* clicks go to the button, not the glyph */
    transition: color .3s ease;
}

/* keep color change without extra scaling when toggled */
.wishlist-btn.in-wishlist .wishlist-heart { color: #fff; }

.wishlist-btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,156,.25); }

/* lock the heart’s box so changing ♡ → ♥ doesn’t change layout */
.wishlist-heart {
    display: inline-block;
    width: 20px;           /* match font-size below */
    height: 20px;
    line-height: 20px;     /* centers the glyph neatly */
    font-size: 20px;
    color: #00009c;
    pointer-events: none;  /* clicks go to the button, not the glyph */
    transition: color .3s ease, transform .2s ease;
}

/* keep color change without extra scaling when toggled */
.wishlist-btn.in-wishlist .wishlist-heart { color: #fff; }


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media only screen and (max-width: 600px) { 
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .product_cat_btn {
        font-size: 21px;
        padding: 10% 6%;    
    }

    .container-product-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-img img {
        height: 80%;
    }

    /* Mobile wishlist adjustments */
    .popup-header-actions {
        align-items: center;
        gap: 10px;
    }

    .popup-header-actions h2 {
        font-size: 20px;
        line-height: 1.2;
        margin: 0;
    }

    .wishlist-btn {
        width: 40px;
        height: 40px;
    }

    .wishlist-heart {
        font-size: 16px;
    }

    .wishlist-message {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Gallery navigation and thumbnails - only show when multiple images */
.popup-gallery-wrapper.single-image .popup-nav {
    display: none !important;
}

.popup-gallery-wrapper.single-image .popup-gallery-thumbnails {
    display: none !important;
}
