/* Ozair Woo Product Slider & Grid - stable mobile-safe CSS */
.custom-product-grid.cg-products,
.custom-product-grid.cg-products * {
    box-sizing: border-box;
}

.custom-product-grid.cg-products {
    --cg-gap: 20px;
    --cg-current-cols: var(--cg-col-desktop, 4);
    --cg-arrow-size: 44px;
    --cg-arrow-gutter: 56px;
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 20px 0;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: visible;
    isolation: isolate;
}

.custom-product-grid.cg-products .cg-slider-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #edf6e7;
    color: #548805;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.custom-product-grid.cg-products .cg-label-arrow {
    font-size: 15px;
    line-height: 1;
}

.custom-product-grid.cg-products .cg-slider-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden !important;
}

.custom-product-grid.cg-is-slider .cg-slider-shell {
    padding-inline: var(--cg-arrow-gutter);
}

.custom-product-grid.cg-products .cg-products-track {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: var(--cg-gap);
}

.custom-product-grid.cg-is-grid .cg-products-track {
    display: grid;
    grid-template-columns: repeat(var(--cg-col-desktop, 4), minmax(0, 1fr));
}

.custom-product-grid.cg-is-slider .cg-products-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 14px;
    margin: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-y pan-x;
}

.custom-product-grid.cg-is-slider .cg-products-track::-webkit-scrollbar {
    display: none;
}

.custom-product-grid.cg-is-slider.cg-autoplay-running .cg-products-track {
    scroll-behavior: auto;
}

.custom-product-grid.cg-products .product-card,
.custom-product-grid.cg-products .cg-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e4e7df;
    border-radius: 14px;
    padding: 16px 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.055);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.custom-product-grid.cg-is-slider .product-card,
.custom-product-grid.cg-is-slider .cg-product-card {
    flex: 0 0 calc((100% - (var(--cg-gap) * (var(--cg-current-cols) - 1))) / var(--cg-current-cols));
}

.custom-product-grid.cg-products .product-card:hover,
.custom-product-grid.cg-products .cg-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 136, 5, 0.30);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.10);
}

.custom-product-grid.cg-products .product-image-wrapper,
.custom-product-grid.cg-products .cg-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--cg-img-height, 220px);
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f6f8f3 100%);
    text-decoration: none;
}

.custom-product-grid.cg-products .product-image-wrapper img,
.custom-product-grid.cg-products .cg-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.custom-product-grid.cg-products .product-title,
.custom-product-grid.cg-products .cg-product-title {
    margin: 0 0 10px;
    line-height: 1.30;
    text-align: left !important;
    font-size: var(--cg-title-size, 18px) !important;
    font-weight: var(--cg-title-weight, 700) !important;
}

.custom-product-grid.cg-products .product-title a,
.custom-product-grid.cg-products .cg-product-title a {
    color: #111827;
    text-decoration: none;
}

.custom-product-grid.cg-products .product-title a:hover,
.custom-product-grid.cg-products .product-title a:focus,
.custom-product-grid.cg-products .cg-product-title a:hover,
.custom-product-grid.cg-products .cg-product-title a:focus {
    color: #548805;
}

.custom-product-grid.cg-products .product-excerpt,
.custom-product-grid.cg-products .cg-product-excerpt {
    margin: 0 0 10px;
    color: #5d6470;
    font-size: 14px;
    line-height: 1.45;
}

.custom-product-grid.cg-products .product-price,
.custom-product-grid.cg-products .cg-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 14px;
    color: #202124;
    font-size: 16px;
    font-weight: 700;
}

.custom-product-grid.cg-products .product-price del,
.custom-product-grid.cg-products .cg-product-price del {
    opacity: 0.55;
    font-size: 0.9em;
    font-weight: 500;
}

.custom-product-grid.cg-products .product-price ins,
.custom-product-grid.cg-products .cg-product-price ins {
    color: #c62828;
    font-size: 1.06em;
    font-weight: 800;
    text-decoration: none;
}

.custom-product-grid.cg-products .add-to-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 14px;
    border: 0 !important;
    border-radius: 8px;
    background: var(--cg-btn-bg, #548805) !important;
    color: var(--cg-btn-color, #ffffff) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.custom-product-grid.cg-products .add-to-cart-btn:hover,
.custom-product-grid.cg-products .add-to-cart-btn:focus {
    color: var(--cg-btn-color, #ffffff) !important;
    filter: brightness(1.08);
    box-shadow: 0 7px 16px rgba(84, 136, 5, 0.20);
}

.custom-product-grid.cg-products .add-to-cart-btn:active {
    transform: scale(0.98);
}

.custom-product-grid.cg-products .cg-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cg-arrow-size);
    height: var(--cg-arrow-size);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #548805;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(84, 136, 5, 0.28);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.custom-product-grid.cg-products .cg-prev {
    left: 4px;
}

.custom-product-grid.cg-products .cg-next {
    right: 4px;
}

.custom-product-grid.cg-products .cg-slider-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.custom-product-grid.cg-products .cg-prev span {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.custom-product-grid.cg-products .cg-next span {
    transform: rotate(45deg);
    margin-right: 5px;
}

.custom-product-grid.cg-products .cg-slider-arrow:hover,
.custom-product-grid.cg-products .cg-slider-arrow:focus {
    background: #466f05;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 28px rgba(84, 136, 5, 0.36);
}

.custom-product-grid.cg-products .cg-slider-arrow:disabled {
    opacity: 0.50;
    cursor: not-allowed;
}

.custom-product-grid.cg-products .cg-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 18px;
    margin: 8px 0 0;
}

.custom-product-grid.cg-products .cg-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c7d8b1;
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

.custom-product-grid.cg-products .cg-dot.is-active {
    width: 24px;
    background: #548805;
}

.cg-products-notice {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff8e1;
    color: #6d4c00;
    text-align: center;
}

@media (max-width: 1024px) {
    .custom-product-grid.cg-products {
        --cg-current-cols: var(--cg-col-tablet, 3);
        --cg-gap: 16px;
        --cg-arrow-size: 42px;
        --cg-arrow-gutter: 50px;
    }

    .custom-product-grid.cg-is-grid .cg-products-track {
        grid-template-columns: repeat(var(--cg-col-tablet, 3), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .custom-product-grid.cg-products {
        --cg-current-cols: var(--cg-col-mobile, 2);
        --cg-gap: 12px;
        --cg-arrow-size: 36px;
        --cg-arrow-gutter: 42px;
        margin: 18px 0;
    }

    .custom-product-grid.cg-is-grid .cg-products-track {
        grid-template-columns: repeat(var(--cg-col-mobile, 2), minmax(0, 1fr));
    }

    .custom-product-grid.cg-products .product-card,
    .custom-product-grid.cg-products .cg-product-card {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .custom-product-grid.cg-products .product-image-wrapper,
    .custom-product-grid.cg-products .cg-product-image {
        height: min(var(--cg-img-height, 220px), 170px);
        border-radius: 9px;
    }

    .custom-product-grid.cg-products .product-title,
    .custom-product-grid.cg-products .cg-product-title {
        font-size: clamp(13px, 3.5vw, 15px) !important;
    }

    .custom-product-grid.cg-products .product-price,
    .custom-product-grid.cg-products .cg-product-price {
        font-size: 14px;
    }

    .custom-product-grid.cg-products .add-to-cart-btn {
        min-height: 38px;
        padding: 9px 10px;
        font-size: 13px;
        border-radius: 8px;
    }

    .custom-product-grid.cg-products .cg-prev {
        left: 2px;
    }

    .custom-product-grid.cg-products .cg-next {
        right: 2px;
    }

    .custom-product-grid.cg-products .cg-slider-arrow span {
        width: 10px;
        height: 10px;
        border-top-width: 2.5px;
        border-right-width: 2.5px;
    }

    .custom-product-grid.cg-products .cg-slider-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 420px) {
    .custom-product-grid.cg-products {
        --cg-arrow-gutter: 0px;
    }

    .custom-product-grid.cg-is-slider .cg-slider-shell {
        padding-inline: 0;
        padding-bottom: 42px;
    }

    .custom-product-grid.cg-products .cg-slider-arrow {
        top: auto;
        bottom: 0;
        transform: none;
    }

    .custom-product-grid.cg-products .cg-slider-arrow:hover,
    .custom-product-grid.cg-products .cg-slider-arrow:focus {
        transform: scale(1.04);
    }

    .custom-product-grid.cg-products .cg-prev {
        left: 8px;
    }

    .custom-product-grid.cg-products .cg-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-product-grid.cg-products .product-card,
    .custom-product-grid.cg-products .cg-product-card,
    .custom-product-grid.cg-products .cg-slider-arrow,
    .custom-product-grid.cg-products .cg-dot,
    .custom-product-grid.cg-products .add-to-cart-btn {
        transition: none;
    }

    .custom-product-grid.cg-is-slider .cg-products-track {
        scroll-behavior: auto;
    }
}
