/* Share button styling */
.share-product-btn {
    background-color: #fff;
    color: #2b4174;
    border: 1px solid #e0e0e0;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-product-btn:hover {
    background-color: #2b4174;
    color: #fff;
    border-color: #2b4174;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-product-btn:active {
    transform: scale(0.95);
}

.share-product-btn i {
    font-size: 20px;
}

/* Social Sharing Styles */
.social-sharing {
    margin-left: 15px;
}

.social-share-buttons {
    gap: 8px;
}

.social-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* Style the django-social-share generated elements */
.social-share-buttons .facebook-this a,
.social-share-buttons .tweet-this a,
.social-share-buttons .mail-this a,
.social-share-buttons .whatsapp-this a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-indent: -9999px;
    position: relative;
}

/* Add Font Awesome icons using ::before pseudo-element */
.social-share-buttons .facebook-this a::before {
    content: "\f09a";
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

.social-share-buttons .tweet-this a::before {
    content: "\e61b";
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

.social-share-buttons .mail-this a::before {
    content: "\f0e0";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

.social-share-buttons .whatsapp-this a::before {
    content: "\f232";
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
}

/* Background colors for each social platform */
.social-share-buttons .facebook-this a {
    background-color: #1877f2;
}

.social-share-buttons .facebook-this a:hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-share-buttons .tweet-this a {
    background-color: #000000;
}

.social-share-buttons .tweet-this a:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-share-buttons .mail-this a {
    background-color: #6c757d;
}

.social-share-buttons .mail-this a:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-share-buttons .whatsapp-this a {
    background-color: #25d366;
}

.social-share-buttons .whatsapp-this a:hover {
    background-color: #1eb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .social-sharing {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }

    .product_pro_button {
        flex-wrap: wrap;
    }

    /* Mobile product card actions - always visible on mobile */
    .product-card .product-actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        z-index: 15 !important;
    }

    .product-card .product-actions .btn {
        font-size: 10px !important;
        padding: 2px 4px !important;
        margin-bottom: 2px !important;
    }

    .product-card {
        overflow: visible !important;
    }
}
