/* Product Section Enhancement Styles */

/* Product Card Styling */
.product-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Product Image Styling */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.product-image:hover img {
    transform: scale(1.1);
}

/* Fix thumbnail conflicts - Override home-coffee.css styling */
.product-card .thumbnail::after {
    display: none !important;
}

.product-card .thumbnail::before {
    display: none !important;
}

/* Fix Magnific Popup styling issues */
.mfp-arrow:after {
    display: none !important;
}

/* Ensure proper positioning for Font Awesome icons in arrows */
.mfp-arrow:before {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Fix close button positioning and styling */
.mfp-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 127, 0, 0.8) !important;
    border: none !important;
    border-radius: 50% !important;
    color: transparent !important;
    font-size: 0 !important;
    font-family: 'FontAwesome', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', Arial, sans-serif !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    text-indent: -9999px !important;
}

.mfp-close:before {
    content: '\f00d' !important;
    font-family: 'FontAwesome', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', Arial, sans-serif !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 20px !important;
    text-indent: 0 !important;
}

/* Hide any after pseudo-element to prevent double icons */
.mfp-close:after {
    display: none !important;
}

.mfp-close:hover {
    background: rgba(255, 127, 0, 1) !important;
    transform: scale(1.1) !important;
}

/* Fix arrow icons to ensure they display properly */
.mfp-arrow-left:before {
    content: '\f104' !important;
    font-family: 'FontAwesome', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', Arial, sans-serif !important;
    font-weight: 900 !important;
}

.mfp-arrow-right:before {
    content: '\f105' !important;
    font-family: 'FontAwesome', 'Font Awesome 5 Pro', 'Font Awesome 5 Free', Arial, sans-serif !important;
    font-weight: 900 !important;
}

/* Hide any after pseudo-elements to prevent double icons */
.mfp-arrow-left:after,
.mfp-arrow-right:after {
    display: none !important;
}

/* Ensure arrows have proper styling */
.mfp-arrow {
    background: rgba(255, 127, 0, 0.8) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
}

.mfp-arrow:hover {
    background: rgba(255, 127, 0, 1) !important;
    transform: scale(1.1) !important;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 12px;
}

.product-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 20px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.product-image:hover .image-overlay i {
    transform: scale(1);
}

/* Product Title Styling */
.product-title {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.product-title:hover {
    color: #f8c146;
    text-decoration: none;
}

/* Product Description */
.product-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Product Badge */
.product-badge {
    display: inline-block;
    background: linear-gradient(45deg, #f8c146, #ff6b35);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Title Enhancement */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #f8c146, #ff6b35);
    border-radius: 2px;
}

/* Category Title Styling */
.title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-left: 40px;
}

.title i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #f8c146;
    font-size: 1.3rem;
}

/* Bistly Menu Item Layout */
.bistly-menu-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.bistly-menu-item .content {
    flex: 1;
    padding-left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-image {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .title {
        font-size: 1.3rem;
        padding-left: 35px;
    }
    
    .title i {
        font-size: 1.1rem;
    }
}

/* Animation for product cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover effect for entire card */
.product-card:hover .product-title {
    color: #f8c146;
}

.product-card:hover .product-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Loading animation for images */
.product-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Glassmorphism effect enhancement */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}