/* Product Card Container - Enhanced 3D Design */
.product-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, box-shadow;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-12px) rotateX(2deg) rotateY(-1deg) scale(1.03);
    z-index: 10;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover::before {
    height: 3px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.8);
}
/* Reset any white backgrounds */
.product-card a.block,
.product-card .bg-white {
    background: transparent !important;
}

/* Card Media - Enhanced 3D */
.product-card .card-media {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    border-radius: 20px 20px 0 0;
}

.product-card .card-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .card-media::before {
    opacity: 1;
}

.product-card .card-media img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.product-card:hover .card-media img {
    transform: scale(1.15) translateZ(20px);
}

/* Card Content - 3D Depth */
.product-card .p-4 {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    transform: translateZ(0);
}

/* Service Badge - 3D Effect */
.product-card .service-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.product-card:hover .service-badge {
    transform: translateZ(15px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Card Title - 3D Text Effect */
.product-card .card-title {
    position: relative;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.product-card:hover .card-title {
    transform: translateZ(10px);
    color: #667eea;
}

/* View Button - Enhanced 3D */
.product-card .pc-action.pc-view {
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(5px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .pc-action.pc-view {
    transform: translateZ(15px) translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(59, 130, 246, 0.35),
        0 4px 12px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Card Animation on Load */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-2px) rotateX(0.5deg) rotateY(0.5deg);
    }
}

.product-card {
    animation: cardFloat 6s ease-in-out infinite;
}

.product-card:hover {
    animation: none;
}

/* Additional 3D Shadow Layers */
.product-card {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

/* Product Card Buttons - Circular price style */
.pc-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
    background: transparent !important;
}

/* Price button - circular style */
.pc-action.pc-price {
    width: 60px;
    height: 60px;
    flex: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6) !important;
    box-shadow: 0 8px 20px rgba(2,6,23,0.15);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0;
    gap: 4px;
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease;
}

/* Price button icon and label */
.pc-action.pc-price .pc-icon {
    font-size: 16px;
    color: #fff !important;
    margin-bottom: -2px;
    background: none !important;
    border: none;
}

.pc-action.pc-price .pc-icon i {
    font-size: 14px;
    color: #fff !important;
}

.pc-action.pc-price .pc-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1;
}

/* View button - pill style */
.pc-action.pc-view {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.18), 0 1.5px 6px 0 rgba(14,165,233,0.10);
    border: 1.5px solid #e0e7ef;
    width: auto;
    min-width: 90px;
    height: 38px;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.pc-action.pc-view .pc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,0.22) !important;
    border: none;
    margin-right: 4px;
    transition: background 0.18s;
}

.pc-action.pc-view .pc-icon i {
    font-size: 15px;
    color: #fff !important;
    transition: color 0.18s;
}

.pc-action.pc-view .pc-label {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.97em;
    letter-spacing: 0.01em;
    transition: color 0.18s;
}

.pc-action.pc-view:hover, .pc-action.pc-view:focus {
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%) !important;
    box-shadow: 0 8px 32px 0 rgba(59,130,246,0.22), 0 2px 8px 0 rgba(14,165,233,0.13);
    transform: translateY(-2px) scale(1.045);
}

.pc-action.pc-view:active {
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%) !important;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.12);
    transform: scale(0.98);
}

/* Icon container for view button */
.pc-action.pc-view .pc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.pc-action.pc-view .pc-icon i {
    font-size: 14px;
    color: #fff !important;
}

.pc-action.pc-view .pc-label {
    color: #fff !important;
    font-weight: 600;
}

/* Hide delivery time button */
.pc-action.pc-time {
    display: none !important;
}

/* Hover effects */
.pc-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(2,6,23,0.25);
}

/* Responsive styles */
@media (max-width: 640px) {
    .pc-actions {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .pc-action {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .pc-action .pc-icon {
        width: 20px;
        height: 20px;
    }
}