/* Premium Product Cards Styling */
:root {
    --card-bg: #ffffff;
    --card-radius: 24px;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --premium-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--premium-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.product-card:hover::after {
    opacity: 0.15;
}

.card-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #ff6b6b;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Most Popular card specific styling */
.product-card:nth-child(2) {
    transform: scale(1.03);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.product-card:nth-child(2) .card-badge {
    background: var(--accent-gradient);
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
}

.card-header {
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(58, 123, 213, 0.05), transparent);
    padding: 2.5rem 1.5rem;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: zoom-in;
}

.card-header::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 210, 255, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.product-card:hover .card-header::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
}

.product-card:hover .card-img {
    transform: scale(1.1) rotate(2deg);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
}

.card-title-group {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.4rem;
    font-weight: 600;
    margin-right: 2px;
}

.amount {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.period {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 500;
    margin-left: 4px;
}

.deposit-note {
    font-size: 0.85rem;
    color: #3a7bd5;
    background: rgba(58, 123, 213, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid rgba(58, 123, 213, 0.2);
}

.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #eee, transparent);
    margin: 1.5rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #2d3436;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.spec-item i {
    color: #3498db;
    font-size: 0.9rem;
}

.features-list {
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.features-list li i {
    color: #10b981;
    font-size: 1rem;
}

.btn-card {
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    padding: 1.1rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.btn-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.3);
    filter: brightness(1.05);
}

.btn-card i {
    transition: transform 0.3s ease;
}

.btn-card:hover i {
    transform: translateX(4px);
}

/* Tablet & Mobile tweaks */
@media (max-width: 1024px) {
    .product-card:nth-child(2) {
        transform: none;
    }

    .product-grid {
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 1rem 10px;
    }

    .product-card {
        border-radius: 16px;
    }

    .card-header {
        height: 140px;
        padding: 1rem;
    }

    .card-badge {
        top: 10px;
        right: 10px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .card-body {
        padding: 0.8rem;
    }

    .card-title-group {
        margin-bottom: 0.8rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .amount {
        font-size: 1.6rem;
    }

    .currency {
        font-size: 0.9rem;
    }

    .period {
        font-size: 0.75rem;
    }

    .deposit-note {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .card-divider {
        margin: 0.8rem 0;
    }

    .specs-grid {
        gap: 6px;
        margin-bottom: 1rem;
    }

    .spec-item {
        padding: 6px;
        font-size: 0.65rem;
        gap: 4px;
        border-radius: 6px;
    }

    .spec-item i {
        font-size: 0.75rem;
    }

    .features-list {
        display: none;
        /* Hide feature list on mobile to save space */
    }

    .btn-card {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 10px;
        gap: 5px;
    }

    .btn-card i {
        font-size: 0.8rem;
    }
}