/* ==========================================================================
   Expiring Coupon Card - Premium Style (Independent Namespace: exp-)
   ========================================================================== */

.exp-card {
    --exp-primary: #111827;
    --exp-accent: #ffffff;
    --exp-text-main: #1e293b;
    --exp-text-muted: #64748b;
    --exp-border: #e2e8f0;
    --exp-bg: #ffffff;
    
    border: 1px solid var(--exp-border);
    background: var(--exp-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exp-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--cp-primary);
}

.exp-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 400 / 267;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.exp-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-card:hover .exp-img-wrapper img {
    transform: scale(1.04);
}

.exp-urgency-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75); 

    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: #f8fafc;
    padding: 5px 12px;
    font-size: 0.9rem;
    border-radius: 20px; 
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.exp-icon-accent {
    color: var(--exp-accent);
    font-size: 0.85rem;
}

@keyframes exp-pulse-subtle {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

.exp-logo-container {
    position: relative;
    height: 0;
    z-index: 10;
}

.exp-logo-img {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    top: -24px;
    left: 16px;
    object-fit: contain;
    padding: 2px;
}

.exp-body {
    padding: 28px 16px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exp-title {
    font-size: 0.85rem;
    color: var(--exp-text-muted);
    margin-bottom: 5px;
    line-height: 1.4;
}

.exp-discount-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--exp-text-main);
    margin-bottom: 4px;
}

.exp-brand-info {
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.8rem;
    color: var(--exp-text-muted);
    margin-top: 6px;
}

.exp-brand-info a {
    color: var(--exp-text-main) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.exp-brand-info a:hover {
    color: var(--exp-text-muted) !important;
}

.exp-footer {
    padding: 0 16px 16px 16px;
    background: var(--exp-bg);
}

.exp-btn-urgent {
    background-color: #fff;
    font-size: 0.85rem;
    color: var(--exp-text-main);
    border: 1.5px solid var(--exp-text-main);
    padding: 8px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.exp-btn-urgent:hover {
    background: var(--exp-text-main);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}