.fast-products-grid,
.fast-skeleton-wrapper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.fast-video-wrapper{

    position:relative;

    width:100%;

    padding-top:56.25%;
    margin-top:10px;

    margin-bottom:15px;

    border-radius:10px;

    overflow:hidden;

}
    @media (max-width: 500px) {
        .fast-cart-text {
            display: none !important;
        }
    }

.fast-video-wrapper iframe{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

}

.fast-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,.20);
    transition: .25s;
    contain: layout paint;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.fast-product-card:hover {
    transform: translateY(-4px);
}

.fast-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.fast-product-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.fast-quick-view {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    opacity: 0;
    transition: .25s;
    cursor: pointer;
}

.fast-skeleton-wrapper{
    display:none;
}

.fast-product-title {
    display: -webkit-box;

    overflow: hidden;

    min-height: 38px;

    margin-top: 10px;

    font-size: 14px;
    line-height: 1.4;

    font-weight: 500;

    color: #222;

    text-decoration: none;
}

.fast-product-price {
    margin-top: 6px;

    color: red;

    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
}

.fast-product-price del {
    color: #999;
    font-size: 14px;
    margin-right: 6px;
}

.fast-product-price ins {
    text-decoration: none;
}

.fast-product-save {
    color: #16a34a;
    font-size: 13px;
    margin-top: 4px;
}

.fast-product-sold {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.fast-load-more {
    border: none;

    background: #383838;
    color: #fff;

    height: 38px;

    padding: 0 18px;

    border-radius: 999px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition: .2s;

    flex-shrink: 0;
}

.fast-load-more:hover {
    opacity: .9;
}

.fast-skeleton-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #eee;
    border-radius: 12px;
    animation: pulse .9s infinite;
}

.fast-skeleton-line {
    height: 12px;
    background: #eee;
    margin-top: 10px;
    border-radius: 999px;
    animation: pulse .9s infinite;
}

.fast-skeleton-card {
    contain: content;
}

.fast-skeleton-line.short {
    width: 60%;
}

@keyframes pulse {
    0% { opacity: .5; }
    50% { opacity: 1; }
    100% { opacity: .5; }
}

.fast-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.fast-modal.active {
    display: flex;
}



@media(max-width:1024px){

    .fast-products-grid,
    .fast-skeleton-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media(max-width:768px){

    .fast-products-grid,
    .fast-skeleton-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

}

@media(max-width:500px){

    .fast-products-grid,
    .fast-skeleton-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

}

.fast-product-footer {
    margin-top: auto;
    padding-top: 10px;

    display: flex;
    justify-content: space-between;

    gap: 5px;
}

.fast-product-save {
    color: #e53935;

    font-size: 13px;
    font-weight: 500;
}

.fast-product-cart a {
    width: auto !important;
    height: 38px;
    padding: 4px !important;

    border-radius: 4px !important;

    background: none;
    border: 1px solid #30bbe5;
    color: #30bbe5;

    display: flex !important;
    align-items: center;
    justify-content: center;

    font-size: 14px !important;
    font-weight: 600 !important;

    transition: .2s;
}

.fast-product-cart a:hover {
    background: #111 !important;
    color: #fff !important;
}
@media(max-width:768px){

    .fast-product-card {
        padding: 10px;
    }

    .fast-product-price {
        font-size: 16px;
    }


}

.fast-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;
}

.fast-products-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

@media(max-width:768px){

    .fast-products-header {
        margin-bottom: 14px;
    }

    .fast-products-heading {
        font-size: 20px;
        line-height: 1.2;
    }

    .fast-load-more {
        height: 34px;
        padding: 0 14px;

        font-size: 12px;
    }

}

.fast-modal-content {
    width: 92%;
    max-width: 420px;

    background: #fff;

    border-radius: 24px;

    padding: 18px;

    position: relative;

    max-height: 90vh;

    overflow-y: auto;
}

.fast-modal-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: none;

    background: #b90000;

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    z-index: 10;
}

#fastModalImage {
    width: 100%;

    border-radius: 18px;

    aspect-ratio: 1/1;

    object-fit: cover;
}

.fast-modal-gallery {
    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 8px;

    margin-top: 12px;
}

.fast-gallery-thumb {
    width: 100%;

    aspect-ratio: 1/1;

    border-radius: 10px;

    object-fit: cover;

    cursor: pointer;

    border: 2px solid transparent;
}

.fast-gallery-thumb:hover {
    border-color: #111;
}

#fastModalTitle {
    font-size: 22px;

    line-height: 1.35;

    margin-top: 16px;

    margin-bottom: 12px;
}

#fastModalPrice {
    color: #111;

    font-size: 26px;

    font-weight: 700;
}

#fastModalPrice del {
    color: #999;

    font-size: 16px;

    margin-right: 8px;
}

#fastModalSave {
    margin-top: 8px;

    color: #e53935;

    font-size: 14px;
}

#fastModalDescription {
    margin-top: 14px;

    color: #555;

    font-size: 14px;

    line-height: 1.7;
}

.fast-modal-buttons {
    display: flex;

    gap: 10px;

    margin-top: 20px;
    margin-bottom:50px;
}

.fast-modal-btn {
    flex: 1;

    height: 46px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-weight: 600;
}

.fast-modal-btn.primary {
    background: #F85606;

    color: #fff;
}

.fast-modal-btn.secondary {
    border: 1.5px solid #111;

    color: #111;
}
.fast-product-cart .added_to_cart {
    display: none !important;
}
.fast-product-footer .added_to_cart,.fast-product-card>a.added_to_cart{display:none!important}



.fast-hot-badge{
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:44px;

    background:#ff2600;
    opacity:0.85;

    color:#fff;
    font-size:13px;
    font-weight:500;

    display:flex;
    justify-content:flex-end;
    align-items:flex-start;

    padding-top:2px;
    padding-right:2px;

    z-index:20;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 8%
    );
}
.fast-discount-badge{
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:44px;

    background:#fedb06;
    opacity:0.85;

    color:#111;
    font-size:13px;
    font-weight:500;

    display:flex;
    justify-content:flex-end;
    align-items:flex-start;

    padding-top:2px;
    padding-right:2px;

    z-index:20;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 8%
    );
}
.fast-hot-badge{
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:44px;

    background:#ff2600;
    opacity:0.85;

    color:#fff;
    font-size:13px;
    font-weight:500;

    display:flex;
    justify-content:flex-end;
    align-items:flex-start;

    padding-top:2px;
    padding-right:2px;

    z-index:20;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 8%
    );
}

/* Compact reference-style badge and split card actions. Kept last to override legacy rules. */
.fast-hot-badge,.fast-discount-badge{top:0!important;left:0!important;width:auto!important;height:24px!important;padding:0 11px 0 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:0 0 8px 0!important;clip-path:polygon(0 0,100% 0,calc(100% - 7px) 100%,0 100%)!important;font-size:11px!important;font-weight:700!important;line-height:24px!important;opacity:.94!important}
.fast-hot-badge,.fast-discount-badge{color:#fff!important;opacity:1!important}
.fast-discount-badge{background:rgba(22,163,74,.9)!important;box-shadow:0 3px 9px rgba(21,128,61,.18)!important}
.fast-hot-badge{background:rgba(220,38,38,.82)!important;box-shadow:0 3px 9px rgba(185,28,28,.16)!important}
.fast-product-image-link{display:block;color:inherit;text-decoration:none}
.fast-product-title{min-height:0!important;margin-top:9px!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.38}
.fast-product-price{margin-top:5px!important}
.fast-products-grid{gap:12px}.fast-product-card{padding:8px}.fast-product-title{margin-top:7px!important}.fast-product-footer{padding-top:7px}
.fast-product-card>.fast-product-image{margin:-8px -8px 0;width:calc(100% + 16px);border-radius:8px 8px 10px 10px}
.fast-product-image .fast-product-img.is-logo-fallback{padding:18%;object-fit:contain!important;background:#f8fafc;opacity:.3;filter:grayscale(.15)}
.fast-product-title{font-size:13px!important;line-height:1.32!important;margin-top:6px!important}
.fast-product-price{font-size:16px!important;line-height:1.2}.fast-product-price del{font-size:11px!important;margin-right:4px}
.fast-product-footer{gap:6px!important;padding-top:6px!important}.fast-cart-icon{width:35px!important;min-width:35px!important;height:35px!important;padding:7px!important}.fast-cart-icon svg{width:18px;height:18px}.fast-buy-now{min-height:35px!important;padding:6px 9px!important;font-size:12px!important}

/* Per-shortcode responsive columns: desktop, tablet and mobile attributes. */
.fast-products-wrapper .fast-products-grid,
.fast-products-wrapper .fast-skeleton-wrapper{grid-template-columns:repeat(var(--fast-cols-desktop,5),minmax(0,1fr))}
@media(max-width:1024px){.fast-products-wrapper .fast-products-grid,.fast-products-wrapper .fast-skeleton-wrapper{grid-template-columns:repeat(var(--fast-cols-tablet,4),minmax(0,1fr));gap:10px}}
@media(max-width:600px){.fast-products-wrapper .fast-products-grid,.fast-products-wrapper .fast-skeleton-wrapper{grid-template-columns:repeat(var(--fast-cols-mobile,2),minmax(0,1fr));gap:8px}.fast-product-card{padding:7px}}
.fast-product-sold{display:none!important}
.fast-product-footer{align-items:center;gap:6px}
.fast-cart-icon{width:34px!important;min-width:34px!important;height:34px!important;padding:7px!important;border:1px solid #d1d5db!important;background:#f3f4f6!important;color:#6b7280!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.fast-cart-icon:hover{background:#e5e7eb!important;color:#4b5563!important}
.fast-cart-icon svg{width:17px;height:17px;fill:currentColor}
.fast-buy-now{flex:1;min-height:34px;padding:6px 9px;border-radius:8px;background:#f97316;color:#fff!important;text-decoration:none!important;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;text-align:center}
.fast-buy-now:hover{background:#ea580c;color:#fff!important}
@media(max-width:600px){.fast-cart-icon{width:32px!important;min-width:32px!important;height:32px!important;padding:6px!important}.fast-cart-icon svg{width:16px;height:16px}.fast-buy-now{min-height:32px!important;padding:5px 7px!important;font-size:11px!important}}
.fast-buy-now.is-loading{pointer-events:none;opacity:.88;gap:7px}.fast-buy-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:fastBuySpin .65s linear infinite}@keyframes fastBuySpin{to{transform:rotate(360deg)}}
.fast-cart-icon{position:relative;overflow:hidden}.fast-cart-icon.is-adding{pointer-events:none;color:transparent!important}.fast-cart-icon.is-adding:after{content:'';position:absolute;width:17px;height:17px;border:2px solid #cbd5e1;border-top-color:#6b7280;border-radius:50%;animation:fastBuySpin .6s linear infinite}.fast-cart-icon.is-added{background:#ecfdf5!important;border-color:#86efac!important;color:transparent!important}.fast-cart-icon.is-added:after{content:'✓';position:absolute;color:#15803d;font-size:20px;font-weight:900}

/* Consistent link and button alignment, including Elementor hover rules. */
.fast-products-wrapper .fast-products-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fast-products-wrapper .fast-products-heading{margin:0;min-width:0}
.fast-products-wrapper .fast-load-more{display:inline-flex;align-items:center!important;justify-content:center!important;box-sizing:border-box;flex-shrink:0;min-height:38px;height:auto;padding:10px 18px!important;line-height:1.2!important;margin:0;text-align:center;text-decoration:none!important;background:#383838!important;color:#fff!important;border:1px solid #383838;border-radius:999px;font-size:13px;font-weight:600}
.fast-products-wrapper .fast-load-more:is(:hover,:focus,:active,:visited){color:#fff!important;background:#252525!important;text-decoration:none!important}
.fast-products-wrapper .fast-load-more:focus-visible{outline:2px solid #64748b;outline-offset:3px}
.fast-products-wrapper .fast-load-more:disabled{opacity:.65;cursor:wait}

/* Shared product card layout for product shortcodes and archives. */
.fast-products-grid .fast-product-card{display:flex;flex-direction:column;min-width:0;height:100%;padding:8px;background:#fff;overflow:hidden}
.fast-products-grid .fast-product-image{position:relative;overflow:hidden;width:calc(100% + 16px);margin:-8px -8px 0}
.fast-products-grid .fast-product-image img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.fast-products-grid .fast-product-footer{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:6px}
.fast-products-grid .fast-cart-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;border-radius:8px!important}
.fast-products-grid .fast-cart-icon svg{display:block;width:17px;height:17px}
.fast-products-grid .fast-buy-now{display:flex;align-items:center;justify-content:center;flex:1;min-height:34px;padding:6px 9px;border-radius:8px;font-size:12px;line-height:1.2}
