/* Swift Deals — deal cards, badges, popup */

.sd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.sd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
    color: #1a1a1a;
}

.sd-card-img {
    display: block;
    background: linear-gradient(180deg, #f6f7f9 0%, #eceef1 100%);
    text-align: center;
    padding: 14px 10px 0;
    min-height: 170px;
}

.sd-card-img img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.sd-card-body {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    flex: 1;
}

.sd-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.sd-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.sd-price {
    font-size: 34px;
    font-weight: 800;
    color: #F05D0E;
    margin-top: 12px;
    line-height: 1;
}

.sd-price small {
    font-size: 16px;
    font-weight: 600;
    color: #888;
}

.sd-terms {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
}

.sd-cta {
    margin-top: 14px;
    align-self: flex-start;
    background: #F05D0E;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background .15s ease;
}

.sd-card:hover .sd-cta {
    background: #d24c05;
}

/* ---- Badge ---- */

.sd-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #e62e2e, #ff6a00);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(230, 46, 46, .45);
    white-space: nowrap;
}

@keyframes sd-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

@keyframes sd-shake {
    0%, 100% { transform: rotate(0deg); }
    20%      { transform: rotate(-6deg); }
    40%      { transform: rotate(6deg); }
    60%      { transform: rotate(-4deg); }
    80%      { transform: rotate(4deg); }
}

@keyframes sd-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 106, 0, .6); }
    50%      { box-shadow: 0 0 22px rgba(255, 106, 0, .95); }
}

@keyframes sd-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes sd-flash {
    0%, 49%  { opacity: 1; }
    50%, 100%{ opacity: .25; }
}

.sd-anim-pulse  { animation: sd-pulse 1.4s ease-in-out infinite; }
.sd-anim-shake  { animation: sd-shake 1.1s ease-in-out infinite; }
.sd-anim-glow   { animation: sd-glow 1.6s ease-in-out infinite; }
.sd-anim-bounce { animation: sd-bounce 1.2s ease-in-out infinite; }
.sd-anim-flash  { animation: sd-flash 1.2s steps(1) infinite; }

/* ---- Popup ---- */

.sd-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .65);
    padding: 20px;
}

.sd-popup.sd-show {
    display: flex;
}

.sd-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 34px 30px 30px;
    text-align: center;
    animation: sd-popup-in .45s cubic-bezier(.2, 1.4, .4, 1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

@keyframes sd-popup-in {
    from { transform: scale(.6) translateY(40px); opacity: 0; }
    to   { transform: scale(1) translateY(0);     opacity: 1; }
}

.sd-popup-inner .sd-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    margin-left: -70px;
    font-size: 13px;
}

.sd-popup-inner img {
    max-width: 100%;
    height: auto;
    margin: 10px 0 4px;
}

.sd-popup-inner .sd-title {
    display: block;
    font-size: 22px;
}

.sd-popup-inner .sd-subtitle {
    display: block;
}

.sd-popup-inner .sd-price {
    font-size: 42px;
    margin-top: 10px;
}

.sd-popup-inner .sd-terms {
    margin-top: 6px;
}

.sd-popup-cta {
    display: inline-block;
    margin-top: 18px;
    background: #F05D0E;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none !important;
}

.sd-popup-cta:hover {
    background: #d24c05;
}

.sd-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.sd-popup-close:hover {
    color: #333;
}
