.sfpm-events-page {
    margin-bottom: 40px;
}

.sfpm-events-page h1 {
    margin-bottom: 24px;
}

.sfpm-campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sfpm-campaign-tile {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sfpm-campaign-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.sfpm-campaign-tile img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 500 / 150;
}

.sfpm-campaign-tile span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.sfpm-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #ff5400;
    font-weight: 700;
}

.sfpm-event-detail {
    margin-bottom: 26px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sfpm-event-detail-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 500 / 150;
}

.sfpm-event-detail-content {
    padding: 24px;
}

.sfpm-event-detail-content h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sfpm-event-dates {
    margin-bottom: 14px;
    color: #777777;
    font-size: 14px;
}

.sfpm-event-description {
    margin-top: 14px;
}

.sfpm-voucher-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff3d8;
    color: #9a5b00;
    border: 1px solid #ffd78a;
    font-size: 16px;
}

.sfpm-voucher-box strong {
    font-size: 20px;
    letter-spacing: .03em;
}

.sfpm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.sfpm-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sfpm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.sfpm-product-image {
    position: relative;
    display: block;
    padding: 18px;
    background: #fafafa;
    text-align: center;
}

.sfpm-product-image img {
    max-width: 100%;
    height: 170px;
    object-fit: contain;
}

.sfpm-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    background: #ff5400;
    color: #ffffff;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.sfpm-product-info {
    padding: 14px;
}

.sfpm-product-brand {
    margin-bottom: 5px;
    color: #777777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sfpm-product-name {
    display: block;
    min-height: 42px;
    margin-bottom: 10px;
    color: #222222;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.sfpm-product-name:hover {
    color: #ff5400;
    text-decoration: none;
}

.sfpm-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.sfpm-old-price {
    color: #999999;
    text-decoration: line-through;
    font-size: 14px;
}

.sfpm-current-price {
    color: #ff5400;
    font-size: 18px;
    font-weight: 800;
}

.sfpm-product-button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    background: #ff5400;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

.sfpm-product-button:hover {
    background: #e64b00;
    color: #ffffff;
    text-decoration: none;
}

.sfpm-no-products {
    padding: 14px;
    background: #f7f7f7;
    border-radius: 12px;
    color: #777777;
}

@media (max-width: 1199px) {
    .sfpm-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sfpm-campaign-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sfpm-campaign-tile {
        border-radius: 12px;
    }

    .sfpm-event-detail-content {
        padding: 16px;
    }

    .sfpm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sfpm-product-image {
        padding: 12px;
    }

    .sfpm-product-image img {
        height: 130px;
    }

    .sfpm-product-info {
        padding: 12px;
    }

    .sfpm-product-name {
        min-height: 54px;
        font-size: 13px;
    }

    .sfpm-current-price {
        font-size: 16px;
    }
}
.sfpm-home-events {
    margin: 0 auto;
}

.sfpm-home-events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.sfpm-home-events-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.sfpm-home-events-all {
    color: #ff5400;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sfpm-home-events-all:hover {
    color: #e64b00;
    text-decoration: none;
}

.sfpm-home-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 40px 0;
}

.sfpm-home-scroll::-webkit-scrollbar {
    height: 8px;
}

.sfpm-home-scroll::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 10px;
}

.sfpm-home-scroll::-webkit-scrollbar-thumb {
    background: #ff5400;
    border-radius: 10px;
}

.sfpm-home-tile {
    flex: 0 0 calc((100% - 36px) / 3);
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f7f7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sfpm-home-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.sfpm-home-tile img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 500 / 150;
}

.sfpm-home-tile span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    color: #222222;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    .sfpm-home-events {
        margin: 28px 0;
    }

    .sfpm-home-events-head h2 {
        font-size: 22px;
    }

    .sfpm-home-tile {
        flex: 0 0 72%;
        border-radius: 5px;
    }

    .sfpm-home-scroll {
        gap: 12px;
    }
}