/* Home product cards should link to product details, not show cart checkout actions. */
.sf-home .featured-products .product-actions form:not(.sf-wishlist-form),
.sf-home #czcategorytabs .sf-category-product-section .product-actions form:not(.sf-wishlist-form),
.sf-sale-detail .sf-sale-products .product-actions form:not(.sf-wishlist-form) {
    display: none !important;
}

.sf-sale-detail {
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 0 54px !important;
    background: #f6f7fb !important;
}

.sf-sale-detail .sf-sale-detail-hero {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 34px !important;
    border-radius: 0 !important;
    min-height: 520px !important;
    background: #101010 !important;
    box-shadow: none !important;
    position: relative !important;
}

.sf-sale-detail .sf-sale-detail-hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg, rgba(255, 82, 82, .16), transparent 34%),
        linear-gradient(180deg, rgba(255, 202, 58, .14), transparent 42%) !important;
}

.sf-sale-detail .sf-sale-detail-hero img {
    min-height: 520px !important;
    object-fit: cover !important;
}

.sf-sale-detail .sf-sale-detail-copy {
    position: relative !important;
    z-index: 1 !important;
    max-width: 760px !important;
    padding: 70px 7vw !important;
}

.sf-sale-detail .sf-sale-detail-copy span {
    min-width: 74px !important;
    min-height: 74px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 34px rgba(255, 82, 82, .28) !important;
}

.sf-sale-detail .sf-sale-detail-copy h1 {
    font-size: clamp(44px, 6vw, 92px) !important;
    letter-spacing: 0 !important;
}

.sf-sale-detail .sf-sale-detail-copy strong {
    color: #ffca3a !important;
    font-size: clamp(24px, 2.3vw, 38px) !important;
}

.sf-sale-detail .sf-sale-detail-copy p {
    max-width: 680px !important;
    font-size: 20px !important;
}

.sf-sale-detail .sf-sale-products {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 clamp(18px, 4vw, 72px) 54px !important;
    background: #f6f7fb !important;
}

.sf-sale-detail .sf-sale-products .products-section-title {
    margin: 0 0 22px !important;
    color: #111827 !important;
    font-size: clamp(28px, 3vw, 44px) !important;
    font-weight: 900 !important;
    text-transform: none !important;
}

.sf-sale-detail .sf-sale-products .product_list.grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin: 0 !important;
}

.sf-sale-detail .sf-sale-products .product_list.grid > li {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sf-sale-detail .sf-sale-products .product-miniature,
.sf-sale-detail .sf-sale-products .thumbnail-container {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    border: 1px solid #e4e7ef !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .08) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.sf-sale-detail .sf-sale-products .thumbnail-container:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .12) !important;
}

.sf-sale-detail .sf-sale-products .product-thumbnail {
    height: 300px !important;
    min-height: 300px !important;
    padding: 22px !important;
    background: linear-gradient(180deg, #fff, #f8fafc) !important;
}

.sf-sale-detail .sf-sale-products .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.sf-sale-detail .sf-sale-products .product-description {
    padding: 18px 20px 10px !important;
    text-align: left !important;
}

.sf-sale-detail .sf-sale-products .product-title,
.sf-sale-detail .sf-sale-products .product-price-and-shipping,
.sf-sale-detail .sf-sale-products .sf-product-meta {
    text-align: left !important;
}

.sf-sale-detail .sf-sale-products .product-title a {
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.sf-sale-detail .sf-sale-products .product-price-and-shipping .price {
    color: #b12704 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.sf-sale-detail .sf-sale-products .product-actions {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 20px 20px !important;
    border: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    background: transparent !important;
}

.sf-sale-detail .sf-sale-products .product-actions::before,
.sf-sale-detail .sf-sale-products .product-actions::after {
    display: none !important;
}

.sf-sale-detail .sf-sale-products .product-actions form.sf-wishlist-form {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
}

.sf-sale-detail .sf-sale-products .product-actions .sf-wishlist-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

@media (max-width: 1199px) {
    .sf-sale-detail .sf-sale-products .product_list.grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .sf-sale-detail {
        padding-bottom: 26px !important;
    }

    .sf-sale-detail .sf-sale-detail-hero {
        min-height: 0 !important;
        margin-bottom: 18px !important;
    }

    .sf-sale-detail .sf-sale-detail-hero img {
        min-height: 240px !important;
        height: 240px !important;
    }

    .sf-sale-detail .sf-sale-detail-copy {
        padding: 24px 18px 28px !important;
    }

    .sf-sale-detail .sf-sale-detail-copy span {
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 11px !important;
    }

    .sf-sale-detail .sf-sale-detail-copy h1 {
        font-size: 34px !important;
    }

    .sf-sale-detail .sf-sale-detail-copy strong {
        font-size: 21px !important;
    }

    .sf-sale-detail .sf-sale-detail-copy p {
        font-size: 14px !important;
    }

    .sf-sale-detail .sf-sale-products {
        padding: 0 12px 34px !important;
    }

    .sf-sale-detail .sf-sale-products .products-section-title {
        font-size: 24px !important;
        margin-bottom: 14px !important;
    }

    .sf-sale-marquee {
        background: #111 !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 24px rgba(0,0,0,.14) !important;
        left: auto !important;
        margin: 14px 10px 18px !important;
        max-width: none !important;
        overflow: hidden !important;
        transform: none !important;
        width: auto !important;
    }

    .sf-sale-marquee-head {
        align-items: flex-start !important;
        display: grid !important;
        gap: 12px !important;
        max-width: none !important;
        padding: 18px 14px 14px !important;
        text-align: left !important;
    }

    .sf-sale-marquee-head > div {
        align-items: flex-start !important;
        display: grid !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .sf-sale-live {
        box-shadow: 0 0 0 6px rgba(255,82,82,.18) !important;
        font-size: 11px !important;
        padding: 7px 11px !important;
    }

    .sf-sale-marquee-head strong {
        display: block !important;
        font-size: 26px !important;
        line-height: 1.05 !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .sf-sale-marquee-head a {
        align-items: center !important;
        display: flex !important;
        font-size: 13px !important;
        justify-content: center !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        width: 100% !important;
    }

    .sf-sale-image-rail,
    .sf-sale-marquee-rail {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .sf-sale-image-rail::-webkit-scrollbar,
    .sf-sale-marquee-rail::-webkit-scrollbar {
        display: none !important;
    }

    .sf-sale-image-track,
    .sf-sale-marquee-track {
        animation: none !important;
        display: flex !important;
        gap: 10px !important;
        width: max-content !important;
    }

    .sf-sale-image-card {
        border-radius: 7px !important;
        grid-template-columns: 70px 120px !important;
        height: 78px !important;
        min-width: 190px !important;
    }

    .sf-sale-image-card img {
        height: 78px !important;
        width: 70px !important;
    }

    .sf-sale-image-card span {
        font-size: 13px !important;
        line-height: 1.2 !important;
        padding: 0 10px !important;
        white-space: normal !important;
    }

    .sf-sale-marquee-track a {
        font-size: 12px !important;
        min-height: 32px !important;
        padding: 0 13px !important;
    }
}

@media (max-width: 767px) {
    .sf-home .featured-products .product_list.grid,
    .sf-home #czcategorytabs .sf-category-product-section .product_list.grid,
    .sf-sale-detail .sf-sale-products .product_list.grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    .sf-home .featured-products .product_list.grid > li,
    .sf-home #czcategorytabs .sf-category-product-section .product_list.grid > li,
    .sf-sale-detail .sf-sale-products .product_list.grid > li {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sf-home .featured-products .product-miniature,
    .sf-home .featured-products .thumbnail-container,
    .sf-home #czcategorytabs .sf-category-product-section .product-miniature,
    .sf-home #czcategorytabs .sf-category-product-section .thumbnail-container,
    .sf-sale-detail .sf-sale-products .product-miniature,
    .sf-sale-detail .sf-sale-products .thumbnail-container {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        border-radius: 10px !important;
    }

    .sf-home .featured-products .product-thumbnail,
    .sf-home #czcategorytabs .sf-category-product-section .product-thumbnail,
    .sf-sale-detail .sf-sale-products .product-thumbnail {
        height: 138px !important;
        min-height: 138px !important;
        padding: 8px !important;
    }

    .sf-home .featured-products .product-thumbnail img,
    .sf-home #czcategorytabs .sf-category-product-section .product-thumbnail img,
    .sf-sale-detail .sf-sale-products .product-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .sf-home .featured-products .product-description,
    .sf-home #czcategorytabs .sf-category-product-section .product-description,
    .sf-sale-detail .sf-sale-products .product-description {
        padding: 9px 8px 10px !important;
    }

    .sf-home .featured-products .product-title,
    .sf-home #czcategorytabs .sf-category-product-section .product-title,
    .sf-sale-detail .sf-sale-products .product-title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        min-height: 34px !important;
        margin-bottom: 6px !important;
    }

    .sf-home .featured-products .product-price-and-shipping .price,
    .sf-home #czcategorytabs .sf-category-product-section .product-price-and-shipping .price,
    .sf-sale-detail .sf-sale-products .product-price-and-shipping .price {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .sf-home .featured-products .sf-product-meta,
    .sf-home #czcategorytabs .sf-category-product-section .sf-product-meta,
    .sf-home .featured-products .product-actions,
    .sf-home #czcategorytabs .sf-category-product-section .product-actions,
    .sf-sale-detail .sf-sale-products .sf-product-meta,
    .sf-sale-detail .sf-sale-products .product-actions {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .sf-sale-image-rail,
    .sf-sale-marquee-rail {
        overflow: hidden !important;
    }

    .sf-sale-image-track,
    .sf-sale-marquee-track {
        min-width: max-content !important;
        transform: translateZ(0);
        will-change: transform;
    }

    .sf-sale-image-track {
        animation: sfSaleImages 22s linear infinite !important;
    }

    .sf-sale-marquee-track {
        animation: sfSaleMarquee 18s linear infinite !important;
    }
}

@media (max-width: 767px) {
    .sf-home #czcategorytabs .sf-category-product-section,
    .sf-home .sf-category-product-section {
        padding: 6px 4px !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product_list.grid,
    .sf-home .sf-category-product-section .product_list.grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product_list.grid > li,
    .sf-home .sf-category-product-section .product_list.grid > li {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-thumbnail,
    .sf-home .sf-category-product-section .product-thumbnail {
        height: 178px !important;
        min-height: 178px !important;
        padding: 4px !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-thumbnail img,
    .sf-home .sf-category-product-section .product-thumbnail img {
        width: 112% !important;
        height: 112% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        transform: scale(1.12) !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-description,
    .sf-home .sf-category-product-section .product-description {
        padding: 11px 10px 13px !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-title,
    .sf-home .sf-category-product-section .product-title {
        min-height: 42px !important;
        margin-bottom: 7px !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-title a,
    .sf-home .sf-category-product-section .product-title a {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    .sf-home #czcategorytabs .sf-category-product-section .product-price-and-shipping .price,
    .sf-home .sf-category-product-section .product-price-and-shipping .price {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 767px) {
    .sf-card-quick-actions {
        gap: 6px !important;
        right: 10px !important;
        top: 10px !important;
    }

    .sf-card-action-btn {
        height: 34px !important;
        min-width: 34px !important;
        width: 34px !important;
        font-size: 15px !important;
    }

    .sf-sale-marquee {
        margin: 14px 10px 20px !important;
        border-radius: 12px !important;
        background: linear-gradient(160deg, #111 0%, #1d1010 52%, #142314 100%) !important;
        box-shadow: 0 16px 34px rgba(0,0,0,.18) !important;
        overflow: hidden !important;
    }

    .sf-sale-marquee-head {
        padding: 20px 16px 16px !important;
        gap: 14px !important;
    }

    .sf-sale-marquee-head strong {
        font-size: 24px !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
    }

    .sf-sale-marquee-head a {
        min-height: 46px !important;
        border-radius: 8px !important;
    }

    .sf-sale-mobile-slider {
        position: relative !important;
        padding: 0 0 10px !important;
    }

    .sf-sale-image-rail {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
        touch-action: pan-x !important;
    }

    .sf-sale-image-rail {
        padding: 0 48px 12px !important;
    }

    .sf-sale-marquee-rail {
        overflow: hidden !important;
        padding: 14px 14px 16px !important;
    }

    .sf-sale-image-rail::-webkit-scrollbar,
    .sf-sale-marquee-rail::-webkit-scrollbar {
        display: none !important;
    }

    .sf-sale-image-track {
        animation: none !important;
        display: flex !important;
        gap: 12px !important;
        min-width: max-content !important;
        width: max-content !important;
        transform: none !important;
        will-change: auto !important;
    }

    .sf-sale-marquee-track {
        animation: sfSaleMarquee 22s linear infinite !important;
        display: flex !important;
        gap: 12px !important;
        min-width: max-content !important;
        width: max-content !important;
        will-change: transform !important;
    }

    .sf-sale-marquee-rail:hover .sf-sale-marquee-track,
    .sf-sale-marquee-rail:active .sf-sale-marquee-track {
        animation-play-state: paused !important;
    }

    .sf-sale-image-card {
        scroll-snap-align: start !important;
    }

    .sf-sale-image-card {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        height: 112px !important;
        min-width: calc(100vw - 116px) !important;
        max-width: calc(100vw - 116px) !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.12) !important;
        border-color: rgba(255,255,255,.24) !important;
    }

    .sf-sale-image-card img {
        width: 96px !important;
        height: 112px !important;
    }

    .sf-sale-image-card span {
        font-size: 18px !important;
        line-height: 1.25 !important;
        padding: 0 16px !important;
        white-space: normal !important;
    }

    .sf-sale-nav {
        align-items: center !important;
        background: rgba(255,82,82,.94) !important;
        border: 2px solid rgba(255,255,255,.82) !important;
        border-radius: 50% !important;
        box-shadow: 0 10px 22px rgba(255,82,82,.28), 0 4px 14px rgba(0,0,0,.18) !important;
        color: #fff !important;
        display: flex !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        height: 38px !important;
        justify-content: center !important;
        position: absolute !important;
        top: 36px !important;
        width: 38px !important;
        z-index: 2 !important;
    }

    .sf-sale-nav i {
        color: #fff !important;
        line-height: 1 !important;
        pointer-events: none !important;
    }

    .sf-sale-nav:active {
        transform: scale(.94) !important;
    }

    .sf-sale-nav-prev {
        left: 12px !important;
    }

    .sf-sale-nav-next {
        right: 12px !important;
    }

    .sf-sale-dots {
        align-items: center !important;
        display: flex !important;
        gap: 7px !important;
        justify-content: center !important;
        padding: 2px 14px 0 !important;
    }

    .sf-sale-dots button {
        background: rgba(255,255,255,.38) !important;
        border: 0 !important;
        border-radius: 999px !important;
        height: 7px !important;
        padding: 0 !important;
        width: 7px !important;
    }

    .sf-sale-dots button.is-active {
        background: #ff5252 !important;
        width: 24px !important;
    }

    .sf-sale-marquee-track a {
        min-height: 38px !important;
        padding: 0 16px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
    }
}
