/* Supplied catalog styles; cart-icon rules scoped to catalog boxes. */
/* ============================================================
   Container
   ============================================================ */

.etheme-product-grid-item
.etheme-product-grid-content
.dcod-cat-box {

    width: 100%;

    margin-top: 10px;

    text-align: center;
}


/* ============================================================
   اسم Attribute
   ============================================================ */

.dcod-cat-swatch-label {

    display: block;

    margin-bottom: 7px;

    font-size: 11px;

    line-height: 1.3;

    font-weight: 600;

    color: #2e3440;
}


.dcod-cat-ar {

    margin-inline-start: 3px;

    font-size: 9px;

    font-weight: 500;

    color: #777;
}


/* ============================================================
   SWATCHES
   ============================================================ */

/* مجموعة صور الألوان */

.dcod-cat-swatches {

    display: flex !important;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    list-style: none !important;

    padding: 0 !important;

    margin: 7px 0 12px !important;
}


.dcod-cat-swatches li {

    margin: 0 !important;

    list-style: none !important;
}


/* ============================================================
   دائرة كل متغير
   ============================================================ */

.dcod-cat-image-swatch,
.dcod-cat-swatch {

    width: 54px !important;

    height: 54px !important;

    flex: 0 0 54px;

    display: flex !important;

    align-items: center;

    justify-content: center;

    padding: 3px !important;

    margin: 0 !important;

    box-sizing: border-box;

    background: #fff;

    border: 2px solid #e4e4e4 !important;

    border-radius: 50% !important;

    overflow: hidden;

    cursor: pointer;

    position: relative;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        opacity .2s ease;
}


/* ============================================================
   صورة المنتج
   ============================================================ */

.dcod-cat-swatch img,
.dcod-cat-image-swatch img {

    width: 100% !important;

    height: 100% !important;

    display: block;

    object-fit: contain !important;

    border-radius: 50% !important;

    background: #fff;
}


/* ============================================================
   Hover
   ============================================================ */

.dcod-cat-swatch:hover,
.dcod-cat-image-swatch:hover {

    border-color: #f05a00 !important;

    transform: translateY(-1px);
}


/* ============================================================
   اللون المختار
   ============================================================ */

.dcod-cat-swatch.is-selected {

    border-color: #f05a00 !important;

    box-shadow:
        0 0 0 2px rgba(240, 90, 0, .12);
}


/* ============================================================
   المتغير غير المتاح
   ============================================================ */

.dcod-cat-swatch.is-disabled {

    opacity: 1;

    pointer-events: none;

    cursor: not-allowed;
}


/* إبقاء صورة المتغير المنتهي ظاهرة مع تمييزه كغير متوفر */

.dcod-cat-swatch.is-disabled img {

    opacity: .48 !important;
}


/* خط مائل أحمر للمتغير غير المتاح */

.dcod-cat-swatch.is-disabled::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 4px;

    right: 4px;

    height: 2px;

    background: #e53935;

    transform: rotate(-45deg);

    transform-origin: center;

    z-index: 5;

    pointer-events: none;
}


/* إخفاء أي نص داخل الدائرة */

.dcod-cat-swatch > span {

    display: none !important;
}


/* ============================================================
   إخفاء Quantity في بطاقات الكاتالوج
   ============================================================ */

.etheme-product-grid-item .quantity,
.etheme-product-grid-item .qty,
.dcod-cat-box .quantity {

    display: none !important;
}


/* ============================================================
   Attribute نصي مثل Size
   ============================================================ */

.dcod-cat-text-swatch {

    min-width: 38px;

    min-height: 34px;

    padding: 5px 9px;

    box-sizing: border-box;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #fff;

    border: 1px solid #dedede;

    border-radius: 8px;

    cursor: pointer;

    font-size: 11px;

    line-height: 1.1;

    transition: .18s ease;
}


.dcod-cat-text-swatch:hover {

    border-color: #f05a00;
}


/* ============================================================
   ADD TO CART BUTTON
   ============================================================ */

.etheme-product-grid-item
.dcod-cat-add {

    min-height: 42px;

    padding: 9px 15px !important;

    margin: 0 auto !important;

    box-sizing: border-box;

    display: inline-flex !important;

    justify-content: center;

    align-items: center;

    gap: 7px;

    background: #fff !important;

    color: #ef5b00 !important;

    border: 2px solid #ef5b00 !important;

    border-radius: 12px !important;

    font-size: 13px !important;

    line-height: 1.2 !important;

    font-weight: 700 !important;

    text-decoration: none !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease,
        opacity .18s ease;
}


/* Hover */

.etheme-product-grid-item
.dcod-cat-add:hover {

    background: #ef5b00 !important;

    color: #fff !important;

    transform: translateY(-1px);
}


/* Disabled */

.etheme-product-grid-item
.dcod-cat-add:disabled {

    opacity: .45;

    cursor: not-allowed;

    transform: none !important;

    background: #fff !important;

    color: #ef5b00 !important;
}


/* ============================================================
   CART ICON
   ============================================================ */

.dcod-cat-box .dcod-cart-icon {

    width: 18px;

    height: 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}


.dcod-cat-box .dcod-cart-icon svg {

    width: 18px;

    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {


    .dcod-cat-swatch-label {

        font-size: 9px;

        margin-bottom: 5px;
    }


    .dcod-cat-ar {

        display: none;
    }


    /* Swatches Mobile */

    .dcod-cat-image-swatch,
    .dcod-cat-swatch {

        width: 43px !important;

        height: 43px !important;

        flex-basis: 43px;
    }


    .dcod-cat-swatches {

        gap: 5px;

        margin-bottom: 9px !important;
    }


    /* Attribute نصي */

    .dcod-cat-text-swatch {

        min-width: 31px;

        min-height: 30px;

        padding: 4px 6px;

        font-size: 9px;
    }


    /* Add To Cart */

    .etheme-product-grid-item
    .dcod-cat-add {

        width: 100%;

        min-height: 38px;

        padding: 7px 6px !important;

        border-radius: 9px !important;

        font-size: 10px !important;

        gap: 4px;
    }


    /* Cart Icon */

    .dcod-cat-box .dcod-cart-icon,
    .dcod-cat-box .dcod-cart-icon svg {

        width: 15px;

        height: 15px;
    }

}
	
/* ============================================================
   PRODUCT SLIDER ARROWS
   أسهم داخل إطار الصورة يمين / يسار
   ============================================================ */

.etheme-product-grid-image {

    position: relative !important;
}


/* السهمان */

.etheme-product-grid-image .hover-arrow {

    position: absolute !important;

    top: 50% !important;

    width: 30px !important;
    height: 44px !important;

    display: flex !important;

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

    background: transparent !important;

    border: none !important;

    color: #222 !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    cursor: pointer !important;

    z-index: 20 !important;

    transform: translateY(-50%) !important;

    transition:
        color .18s ease,
        opacity .18s ease !important;
}


/* السهم الأيسر */

.etheme-product-grid-image .hover-arrow-left {

    left: 10px !important;

    right: auto !important;
}


/* السهم الأيمن */

.etheme-product-grid-image .hover-arrow-right {

    right: 10px !important;

    left: auto !important;
}


/* شكل SVG */

.etheme-product-grid-image .hover-arrow svg {

    width: 16px !important;

    height: 16px !important;

    fill: currentColor !important;
}


/* Hover */

.etheme-product-grid-image .hover-arrow:hover {

    color: #ef5b00 !important;
}


/* رابط الصورة يبقى تحت الأسهم */

.etheme-product-grid-image > a {

    position: relative;

    z-index: 1;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .etheme-product-grid-image .hover-arrow {

        width: 26px !important;

        height: 40px !important;

        opacity: 1 !important;

        visibility: visible !important;
    }


    .etheme-product-grid-image .hover-arrow-left {

        left: 7px !important;
    }


    .etheme-product-grid-image .hover-arrow-right {

        right: 7px !important;
    }


    .etheme-product-grid-image .hover-arrow svg {

        width: 14px !important;

        height: 14px !important;
    }

}
