:root {
    --ompg-green: #004f3f;
    --ompg-gold: #c99f00;
    --ompg-text: #141414;
    --ompg-muted: #777;
    --ompg-border: #7b7b7b;
}

.home #wrapper_full,
.home #content,
.home #content.site-content,
.home #content > .container,
.home #content > .no-container,
.home #content > .container > .row,
.home #content > .no-container > .row,
.home #content > .container > .no-row,
.home #content > .no-container > .no-row {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.home #content > .container > .row,
.home #content > .no-container > .row {
    display: block !important;
}

.home .footer_area,
.home footer.footer,
.home .footer_default,
.home .before_plugin_installation_footer {
    display: none !important;
}

.one-mall-products-page,
.one-mall-products-page * {
    box-sizing: border-box;
}

.one-mall-products-page {
    width: 100%;
    background: #fff;
    color: var(--ompg-text);
    direction: rtl;
    font-family: "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

.ompg-products-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 22px 40px 26px;
}

.ompg-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 20px;
    align-items: stretch;
}

.ompg-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ompg-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ompg-card:hover {
    border-color: var(--ompg-green);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .09);
    transform: translateY(-2px);
}

.ompg-card-link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
}

.ompg-card-link:hover,
.ompg-card-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.ompg-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.ompg-product-image,
.ompg-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    transition: transform .25s ease;
}

.ompg-card:hover .ompg-product-image,
.ompg-card:hover .ompg-image-wrap img {
    transform: scale(1.025);
}

.ompg-card-body {
    min-height: 96px;
    padding: 6px 9px 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
}

.ompg-product-title {
    width: 100%;
    height: 23px;
    margin: 0;
    overflow: hidden;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 23px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ompg-price-row {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    direction: ltr;
    white-space: nowrap;
}

.ompg-discount {
    min-width: 35px;
    height: 17px;
    padding: 0 3px;
    border: 1px solid var(--ompg-gold);
    border-radius: 3px;
    color: var(--ompg-gold);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.ompg-regular-price {
    color: #777;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
}

.ompg-current-price {
    color: var(--ompg-gold);
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.ompg-currency {
    font-size: 12px;
    font-weight: 800;
}

.ompg-rating-row {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: ltr;
    color: #111;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.ompg-review-count {
    color: var(--ompg-muted);
    font-size: 10px;
    font-weight: 600;
}

.ompg-stars {
    position: relative;
    width: 58px;
    height: 13px;
    display: inline-block;
    overflow: hidden;
    color: #111;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 13px;
    text-align: left;
    direction: ltr;
}

.ompg-stars::before,
.ompg-stars-fill::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    white-space: nowrap;
}

.ompg-stars::before {
    color: #c7c7c7;
}

.ompg-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #111;
}

.ompg-sold-count {
    min-height: 15px;
    margin-top: -1px;
    color: #777;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 15px;
    direction: rtl;
}

.ompg-empty {
    width: 100%;
    min-height: 250px;
    padding: 55px 20px;
    display: grid;
    place-items: center;
    text-align: center;
}

.ompg-empty-inner {
    max-width: 560px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.ompg-empty h2 {
    margin: 0 0 8px;
    color: var(--ompg-green);
    font-size: 21px;
}

.ompg-empty p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .ompg-products-shell {
        padding-inline: 28px;
    }

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

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

@media (max-width: 650px) {
    .ompg-products-shell {
        padding: 14px 12px 22px;
    }

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

    .ompg-card-body {
        min-height: 92px;
        padding-inline: 5px;
    }

    .ompg-product-title {
        font-size: 11.5px;
    }

    .ompg-price-row {
        gap: 3px;
    }

    .ompg-current-price {
        font-size: 14px;
    }

    .ompg-currency,
    .ompg-regular-price {
        font-size: 10px;
    }

    .ompg-discount {
        min-width: 30px;
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .ompg-products-shell {
        padding-inline: 8px;
    }

    .ompg-products-grid {
        gap: 7px;
    }
}

/* English / Arabic product-card typography and direction. */
.one-mall-products-page[dir="rtl"] {
    direction: rtl;
    font-family: "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

.one-mall-products-page[dir="ltr"] {
    direction: ltr;
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.one-mall-products-page .ompg-sold-count {
    direction: inherit;
}

.one-mall-products-page[dir="ltr"] .ompg-sold-count,
.one-mall-products-page[dir="ltr"] .ompg-empty {
    text-align: center;
}
