/* Product Listing Styles */
.ff-product{
	margin-bottom: 50px;
}
.ff-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 0;
}

.ff-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Product Image Container */
.ff-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.ff-product-gallery {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.ff-product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    transition: transform 0.3s ease;
}

.ff-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    cursor: pointer;
    text-decoration: none;
    pointer-events: none; /* Prevents the icon from receiving hover events */
}

.ff-product-gallery:hover .ff-zoom-icon {
    opacity: 1;
}

.ff-zoom-icon i {
    color: #333;
    font-size: 18px;
    pointer-events: none; /* Prevents the icon from receiving hover events */
}

.ff-product-gallery:hover .ff-product-img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Fancybox Navigation Customization */
.fancybox-navigation .fancybox-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.fancybox-navigation .fancybox-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.fancybox-navigation .fancybox-button--arrow_left {
    left: 20px;
}

.fancybox-navigation .fancybox-button--arrow_right {
    right: 20px;
}

.fancybox-navigation .fancybox-button svg path {
    fill: #333;
}

/* Fancybox Customization */
.fancybox-container {
    z-index: 999999 !important;
}

.fancybox-caption {
    text-align: center;
    font-size: 16px;
    padding: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}

.fancybox-navigation .fancybox-button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    margin: 0 10px;
}

.fancybox-navigation .fancybox-button:hover {
    background: rgba(255, 255, 255, 1);
}

.fancybox-button--arrow_left {
    left: 10px !important;
}

.fancybox-button--arrow_right {
    right: 10px !important;
}

/* Discount Badge */
.ff-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.2);
}

/* Product Content */
.ff-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
}

.ff-product-title {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.4;
}

.ff-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.ff-product-title a:hover {
    color: #ff4757;
}

/* Price Section */
.ff-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ff-price-current {
    font-size: 18px;
    font-weight: 700;
    color: #2ecc71;
}

.ff-price-original {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

.ff-savings {
    font-size: 13px;
    color: #666;
}

.ff-amount-saved {
    color: #e74c3c;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
	.ff-product{
		padding-bottom: 40px;
	}
    .ff-product-title {
        font-size: 16px;
    }
    
    .ff-price-current {
        font-size: 18px;
    }
    
    .ff-discount-badge {
        font-size: 12px;
        padding: 6px 10px;
    }
    .fancybox-navigation .fancybox-button {
        width: 40px;
        height: 40px;
    }

    .fancybox-navigation .fancybox-button--arrow_left {
        left: 10px;
    }

    .fancybox-navigation .fancybox-button--arrow_right {
        right: 10px;
    }
    .ff-nav-prev,
    .ff-nav-next {
        width: 35px;
        height: 35px;
    }
    
    .ff-zoom-icon {
        width: 40px;
        height: 40px;
    }
}

/* Animation for new products */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ff-product-card {
    animation: fadeInUp 0.6s ease backwards;
}

.ff-product-card:nth-child(2n) {
    animation-delay: 0.2s;
}

.ff-product-card:nth-child(3n) {
    animation-delay: 0.4s;
}

/* No Products Message Styling */
.no-products-found {
    width: 100%;
    padding: 40px 20px;
}

.no-products-found .alert {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.no-products-found i {
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

.no-products-found h3 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-products-found p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .no-products-found {
        padding: 20px 10px;
    }
    
    .no-products-found h3 {
        font-size: 18px;
    }
    
    .no-products-found p {
        font-size: 14px;
    }
}