:root {
    --omshop-green: #004f3f;
    --omshop-green-dark: #003d31;
    --omshop-gold: #c99f00;
    --omshop-gold-soft: #fff8dc;
    --omshop-text: #151515;
    --omshop-muted: #737373;
    --omshop-border: #deded9;
    --omshop-soft: #f7f7f4;
}

.post-type-archive-product #wrapper_full,
.tax-product_cat #wrapper_full,
.tax-product_tag #wrapper_full,
.one-mall-product-catalog #wrapper_full,
.post-type-archive-product #content,
.tax-product_cat #content,
.tax-product_tag #content,
.one-mall-product-catalog #content,
.post-type-archive-product #content.site-content,
.tax-product_cat #content.site-content,
.tax-product_tag #content.site-content,
.one-mall-product-catalog #content.site-content,
.post-type-archive-product #content > .container,
.tax-product_cat #content > .container,
.tax-product_tag #content > .container,
.one-mall-product-catalog #content > .container,
.post-type-archive-product #content > .no-container,
.tax-product_cat #content > .no-container,
.tax-product_tag #content > .no-container,
.one-mall-product-catalog #content > .no-container,
.post-type-archive-product #content > .container > .row,
.tax-product_cat #content > .container > .row,
.tax-product_tag #content > .container > .row,
.one-mall-product-catalog #content > .container > .row,
.post-type-archive-product #content > .no-container > .row,
.tax-product_cat #content > .no-container > .row,
.tax-product_tag #content > .no-container > .row,
.one-mall-product-catalog #content > .no-container > .row {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.post-type-archive-product #content > .container > .row,
.tax-product_cat #content > .container > .row,
.tax-product_tag #content > .container > .row,
.one-mall-product-catalog #content > .container > .row,
.post-type-archive-product #content > .no-container > .row,
.tax-product_cat #content > .no-container > .row,
.tax-product_tag #content > .no-container > .row,
.one-mall-product-catalog #content > .no-container > .row {
    display: block !important;
}

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

.one-mall-shop-page {
    width: 100%;
    min-height: 65vh;
    color: var(--omshop-text);
    background: #fff;
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.one-mall-shop-page[dir="rtl"] {
    font-family: "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

.omshop-page-shell {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 20px 34px 48px;
}

.omshop-breadcrumb {
    min-height: 27px;
    margin-bottom: 13px;
    color: var(--omshop-muted);
    font-size: 12px;
    font-weight: 600;
}

.omshop-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: inherit;
}

.omshop-breadcrumb a {
    color: var(--omshop-green) !important;
    text-decoration: none !important;
}

.omshop-breadcrumb a:hover {
    color: var(--omshop-gold) !important;
}

.omshop-breadcrumb-separator {
    width: 14px;
    height: 14px;
    display: inline-flex;
    color: #999;
}

.omshop-breadcrumb-separator .omh-icon {
    width: 14px;
    height: 14px;
}

.omshop-hero {
    position: relative;
    min-height: 132px;
    padding: 22px 28px;
    border: 1px solid #8b8b86;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(201, 159, 0, .13), transparent 23%),
        linear-gradient(135deg, #fff 0%, #fbfbf7 70%, #f4f8f5 100%);
}

.one-mall-shop-page[dir="rtl"] .omshop-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 159, 0, .13), transparent 23%),
        linear-gradient(225deg, #fff 0%, #fbfbf7 70%, #f4f8f5 100%);
}

.omshop-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -32px;
    bottom: -70px;
    width: 185px;
    height: 185px;
    border: 22px solid rgba(0, 79, 63, .06);
    border-radius: 50%;
    pointer-events: none;
}

.omshop-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.omshop-kicker {
    margin-bottom: 2px;
    display: block;
    color: var(--omshop-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .03em;
}

.omshop-hero h1 {
    margin: 0;
    color: #111;
    font-size: clamp(25px, 2.4vw, 38px);
    font-weight: 800;
    line-height: 1.25;
}

.one-mall-shop-page[dir="rtl"] .omshop-hero h1 {
    line-height: 1.5;
}

.omshop-description {
    max-width: 690px;
    margin: 5px 0 0;
    color: var(--omshop-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.75;
}

.omshop-description p {
    margin: 0;
}

.omshop-total-badge {
    position: relative;
    z-index: 1;
    min-width: 104px;
    min-height: 82px;
    padding: 11px 16px;
    border: 1px solid rgba(0, 79, 63, .25);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .05);
}

.omshop-total-badge strong {
    color: var(--omshop-green);
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.omshop-total-badge span {
    margin-top: 6px;
    color: var(--omshop-muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.omshop-category-section {
    padding: 18px 0 15px;
}

.omshop-section-label {
    margin-bottom: 8px;
    color: var(--omshop-green);
    font-size: 12px;
    font-weight: 800;
}

.omshop-category-chips {
    width: 100%;
    padding-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.omshop-category-chip {
    min-height: 37px;
    padding: 7px 13px;
    border: 1px solid var(--omshop-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #333 !important;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.omshop-category-chip small {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #f0f0ed;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.omshop-category-chip:hover,
.omshop-category-chip.is-active {
    border-color: var(--omshop-green);
    color: #fff !important;
    background: var(--omshop-green);
}

.omshop-category-chip:hover small,
.omshop-category-chip.is-active small {
    color: var(--omshop-green);
    background: #fff;
}

.omshop-toolbar {
    min-height: 59px;
    margin-bottom: 16px;
    padding: 9px 12px 9px 16px;
    border: 1px solid var(--omshop-border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--omshop-soft);
}

.one-mall-shop-page[dir="rtl"] .omshop-toolbar {
    padding: 9px 16px 9px 12px;
}

.omshop-result-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #414141;
    font-size: 12px;
}

.omshop-result-count strong {
    font-weight: 700;
}

.omshop-result-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--omshop-gold);
    box-shadow: 0 0 0 4px rgba(201, 159, 0, .12);
}

.omshop-ordering {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.omshop-ordering label {
    margin: 0;
    color: var(--omshop-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.omshop-select-wrap {
    position: relative;
    min-width: 220px;
}

.omshop-select-wrap select {
    width: 100%;
    height: 39px;
    margin: 0;
    padding: 0 38px 0 12px;
    border: 1px solid #bdbdb7;
    border-radius: 6px;
    appearance: none;
    color: #1c1c1c;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.one-mall-shop-page[dir="rtl"] .omshop-select-wrap select {
    padding: 0 12px 0 38px;
}

.omshop-select-wrap select:focus {
    border-color: var(--omshop-green);
    box-shadow: 0 0 0 2px rgba(0, 79, 63, .1);
}

.omshop-select-wrap .omh-icon {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    width: 15px;
    height: 15px;
    color: var(--omshop-green);
    pointer-events: none;
    transform: translateY(-50%);
}

.one-mall-shop-page ul.products.omshop-products-grid,
.one-mall-product-catalog .woocommerce ul.products {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 20px;
    clear: both;
    list-style: none !important;
}

.one-mall-shop-page ul.products.omshop-products-grid::before,
.one-mall-shop-page ul.products.omshop-products-grid::after,
.one-mall-product-catalog .woocommerce ul.products::before,
.one-mall-product-catalog .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.one-mall-shop-page ul.products.omshop-products-grid > li.product,
.one-mall-product-catalog .woocommerce ul.products > li.product {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

.one-mall-shop-page .ompg-card-body,
.one-mall-product-catalog .woocommerce .ompg-card-body {
    min-height: 101px;
}

.omshop-card .ompg-image-wrap {
    overflow: hidden;
}

.omshop-stock-badge {
    position: absolute;
    inset-inline-start: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 4px;
    color: #fff;
    background: rgba(34, 34, 34, .84);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.omshop-pagination-wrap {
    min-height: 54px;
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.omshop-pagination-wrap nav.woocommerce-pagination {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
}

.omshop-pagination-wrap nav.woocommerce-pagination ul {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    list-style: none;
}

.omshop-pagination-wrap nav.woocommerce-pagination ul li {
    margin: 0 !important;
    border: 0 !important;
    float: none !important;
}

.omshop-pagination-wrap nav.woocommerce-pagination ul li a,
.omshop-pagination-wrap nav.woocommerce-pagination ul li span {
    min-width: 38px;
    height: 38px;
    padding: 0 9px !important;
    border: 1px solid #cfcfc9;
    border-radius: 6px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #2d2d2d !important;
    background: #fff !important;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1 !important;
    text-decoration: none !important;
}

.omshop-pagination-wrap nav.woocommerce-pagination ul li a:hover,
.omshop-pagination-wrap nav.woocommerce-pagination ul li span.current {
    border-color: var(--omshop-green);
    color: #fff !important;
    background: var(--omshop-green) !important;
}

.omshop-empty-state {
    min-height: 330px;
    padding: 50px 20px;
    border: 1px dashed #c9c9c3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fbfbf9;
}

.omshop-empty-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--omshop-green);
    background: rgba(0, 79, 63, .08);
}

.omshop-empty-icon .omh-icon {
    width: 27px;
    height: 27px;
}

.omshop-empty-state h2 {
    margin: 0;
    color: #171717;
    font-size: 21px;
    font-weight: 800;
}

.omshop-empty-state p {
    margin: 7px 0 16px;
    color: var(--omshop-muted);
    font-size: 13px;
}

.omshop-empty-state a {
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--omshop-green);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.one-mall-product-catalog .woocommerce-notices-wrapper,
.one-mall-shop-page .woocommerce-notices-wrapper {
    margin-bottom: 12px;
}

.one-mall-product-catalog .woocommerce-message,
.one-mall-product-catalog .woocommerce-info,
.one-mall-product-catalog .woocommerce-error,
.one-mall-shop-page .woocommerce-message,
.one-mall-shop-page .woocommerce-info,
.one-mall-shop-page .woocommerce-error {
    border-radius: 7px;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .one-mall-shop-page ul.products.omshop-products-grid,
    .one-mall-product-catalog .woocommerce ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .omshop-page-shell {
        padding-inline: 22px;
    }

    .one-mall-shop-page ul.products.omshop-products-grid,
    .one-mall-product-catalog .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .omshop-page-shell {
        padding: 13px 12px 34px;
    }

    .omshop-breadcrumb {
        margin-bottom: 9px;
    }

    .omshop-hero {
        min-height: 110px;
        padding: 17px 16px;
        border-radius: 9px;
    }

    .omshop-hero h1 {
        font-size: 24px;
    }

    .omshop-description {
        font-size: 11px;
    }

    .omshop-total-badge {
        min-width: 78px;
        min-height: 68px;
        padding: 9px;
    }

    .omshop-total-badge strong {
        font-size: 21px;
    }

    .omshop-total-badge span {
        font-size: 8.5px;
    }

    .omshop-category-section {
        padding-block: 13px 11px;
    }

    .omshop-toolbar,
    .one-mall-shop-page[dir="rtl"] .omshop-toolbar {
        padding: 9px;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .omshop-result-count {
        min-height: 27px;
        padding-inline: 4px;
    }

    .omshop-ordering {
        width: 100%;
    }

    .omshop-ordering label {
        display: none;
    }

    .omshop-select-wrap {
        width: 100%;
        min-width: 0;
    }

    .one-mall-shop-page ul.products.omshop-products-grid,
    .one-mall-product-catalog .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 390px) {
    .omshop-total-badge {
        display: none;
    }

    .omshop-hero {
        min-height: 98px;
    }
}
