/* Modern Product Card Design - Matching Image Pattern */

.product-card-modern {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.05);
}

/* Discount Badge - Circular Pink Style */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF2B7A 0%, #E91E63 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.4);
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.discount-percent {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    display: block;
}

.discount-label {
    font-size: 11px;
    line-height: 1;
    margin-top: 2px;
    font-weight: 600;
    opacity: 0.95;
}

/* Product Info Section */
.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name:hover {
    color: #EC8951;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.sale-price {
    font-size: 18px;
    color: #EC8951;
    font-weight: 700;
}

/* Bengali Order Button */
.btn-order-bengali {
    background-color: #EC8951;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 2px 6px rgba(236, 137, 81, 0.3);
}

.btn-order-bengali:hover {
    background-color: #d97438;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 137, 81, 0.4);
}

.btn-order-bengali:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discount-badge {
        width: 50px;
        height: 50px;
        top: 8px;
        right: 8px;
    }
    
    .discount-percent {
        font-size: 14px;
    }
    
    .discount-label {
        font-size: 9px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
        min-height: 38px;
    }
    
    .sale-price {
        font-size: 16px;
    }
    
    .btn-order-bengali {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .discount-badge {
        width: 45px;
        height: 45px;
        top: 6px;
        right: 6px;
    }
    
    .discount-percent {
        font-size: 12px;
    }
    
    .discount-label {
        font-size: 8px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 36px;
    }
    
    .original-price {
        font-size: 12px;
    }
    
    .sale-price {
        font-size: 15px;
    }
    
    .btn-order-bengali {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* View More Button */
.view-more-section {
    text-align: center;
    padding: 30px 0;
}

.btn-view-more {
    background-color: #EC8951;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(236, 137, 81, 0.3);
}

.btn-view-more:hover {
    background-color: #d97438;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 137, 81, 0.4);
    color: #fff;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 40px 0 20px 0;
}

.category-section:nth-child(even) {
    background: #f9f9f9;
}

.category-header {
    margin-bottom: 30px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #EC8951 0%, #FF6B35 100%);
    border-radius: 2px;
}

.category-view-more {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.btn-category-more {
    display: inline-block;
    background: linear-gradient(135deg, #EC8951 0%, #FF6B35 100%);
    color: #fff;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(236, 137, 81, 0.3);
    white-space: nowrap;
}

.btn-category-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(236, 137, 81, 0.4);
    color: #fff;
}
