/* Category storefront experience — scoped so search/manufacturer pages stay unchanged. */
#product-category {
    --cat-ink: #11100e;
    --cat-muted: #72706b;
    --cat-gold: #d49a15;
    --cat-gold-soft: #fff8e7;
    --cat-line: #ebe7df;
    --cat-soft: #faf9f7;
    --cat-radius: 18px;
    padding: 10px 0 72px;
    background: linear-gradient(180deg, #fff 0, #fff 220px, #fcfbf9 100%);
}

#product-category .ot-cat-breadcrumb {
    margin: 4px 0 14px;
}

#product-category .ot-category-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 152px;
    gap: 24px;
    margin-bottom: 16px;
    padding: 24px 28px;
    overflow: hidden;
    border: 1px solid var(--cat-line);
    border-radius: 24px;
    background: #11100e;
    color: #fff;
}

#product-category .ot-category-hero::after {
    content: '';
    position: absolute;
    inset-inline-end: -70px;
    top: -120px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(212, 154, 21, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(212, 154, 21, .04), 0 0 0 88px rgba(212, 154, 21, .025);
    pointer-events: none;
}

#product-category .ot-category-hero__media {
    position: relative;
    z-index: 1;
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: #fff;
}

#product-category .ot-category-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#product-category .ot-category-hero__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

#product-category .ot-category-hero__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #e8b944;
    font-size: 12px;
    font-weight: 800;
}

#product-category .ot-category-hero__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

#product-category .ot-category-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 800;
    line-height: 1.25;
}

#product-category .ot-category-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #e9e6df;
    font-size: 12px;
}

#product-category .ot-category-hero__count strong {
    color: #e8b944;
    font-size: 14px;
}

#product-category .ot-category-hero__description {
    display: -webkit-box;
    max-width: 720px;
    margin-top: 8px;
    overflow: hidden;
    color: #c9c5bc;
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#product-category .ot-category-hero__description > * {
    margin: 0;
}

#product-category .ot-category-subcategories {
    display: flex;
    gap: 9px;
    margin: 0 0 15px;
    padding: 1px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

#product-category .ot-category-subcategories::-webkit-scrollbar { display: none; }

#product-category .ot-category-subcategory {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 6px 13px;
    border: 1px solid var(--cat-line);
    border-radius: 999px;
    background: #fff;
    color: var(--cat-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s, color .2s, transform .2s;
}

#product-category .ot-category-subcategory:hover {
    border-color: var(--cat-gold);
    color: #a87506;
    transform: translateY(-1px);
}

#product-category .ot-category-subcategory img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

#product-category .ot-cat-toolbar {
    position: sticky;
    top: 8px;
    z-index: 100;
    margin-bottom: 12px;
    padding: 9px 12px;
    border-color: var(--cat-line);
    border-radius: 14px;
    box-shadow: 0 9px 30px rgba(17, 16, 14, .045);
}

#product-category .ot-cat-toolbar-info,
#product-category .ot-cat-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#product-category .ot-cat-toolbar-count {
    color: var(--cat-muted);
    font-size: 13px;
    font-weight: 600;
}

#product-category .ot-cat-toolbar-count strong {
    color: var(--cat-ink);
    font-size: 15px;
    font-weight: 800;
}

#product-category .ot-cat-toolbar-select {
    gap: 8px;
}

#product-category .ot-cat-toolbar-label {
    white-space: nowrap;
    color: var(--cat-muted);
    font-weight: 600;
}

#product-category .ot-cat-select {
    min-width: 165px;
    height: 40px;
    border-color: var(--cat-line);
    border-radius: 11px;
    font-weight: 700;
}

#product-category .ot-cat-mobile-filter {
    display: none;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    background: var(--cat-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

#product-category .ot-cat-filter-count {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--cat-gold);
    color: #111;
    font-size: 10px;
}

#product-category .ot-cat-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #efe1bb;
    border-radius: 13px;
    background: var(--cat-gold-soft);
}

#product-category .ot-cat-active-filters[hidden] { display: none; }

#product-category .ot-cat-active-filters__title {
    color: #78601f;
    font-size: 12px;
    font-weight: 800;
}

#product-category .ot-cat-active-filters__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#product-category .ot-cat-filter-chip,
#product-category .ot-cat-clear-filters {
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

#product-category .ot-cat-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    background: #fff;
    color: var(--cat-ink);
    box-shadow: inset 0 0 0 1px #e8d7aa;
}

#product-category .ot-cat-filter-chip i { color: #a87506; }

#product-category .ot-cat-clear-filters {
    margin-inline-start: auto;
    padding: 6px 10px;
    background: transparent;
    color: #9b6900;
    text-decoration: underline;
}

#product-category .ot-cat-layout {
    gap: 20px;
}

#product-category .ot-cat-layout.has-left {
    grid-template-columns: 276px minmax(0, 1fr);
}

#product-category .ot-cat-layout.has-right {
    grid-template-columns: minmax(0, 1fr) 276px;
}

#product-category .ot-cat-sidebar {
    position: static;
    top: auto;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#product-category .ot-cat-sidebar__head {
    display: none;
}

#product-category .ot-cat-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Neutralise the shared sidebar rule that was pushing the whole column down. */
#product-category .ot-cat-sidebar > .ot-cat-sidebar__content {
    margin-top: 0 !important;
}

#product-category .ot-cat-sidebar__content > aside,
#product-category .ot-cat-sidebar__content > #column-left,
#product-category .ot-cat-sidebar__content > #column-right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Column modules are wrapped by #column-left/#column-right, so their visual
   separation must be applied inside that wrapper rather than on the drawer. */
#product-category .ot-cat-sidebar__content > aside > * + *,
#product-category .ot-cat-sidebar__content > #column-left > * + *,
#product-category .ot-cat-sidebar__content > #column-right > * + * {
    margin-top: 14px !important;
}

#product-category .ot-cat-sidebar__content > aside > script,
#product-category .ot-cat-sidebar__content > #column-left > script,
#product-category .ot-cat-sidebar__content > #column-right > script {
    margin-top: 0 !important;
}

#product-category .oc-cat-nav,
#product-category [data-oc-filter-module] {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--cat-line);
    border-radius: var(--cat-radius);
    background: #fff;
    box-shadow: 0 9px 30px rgba(17, 16, 14, .035);
}

#product-category .oc-cat-nav__title,
#product-category [data-oc-filter-module] .card-header {
    padding: 17px 17px 11px;
    border: 0;
    background: #fff;
    color: var(--cat-ink);
    font-size: 15px;
    font-weight: 800;
}

#product-category .oc-cat-nav__list {
    gap: 4px;
    padding: 5px 10px 12px;
}

#product-category .oc-cat-nav__item {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #4e4b45;
}

#product-category .oc-cat-nav__item:hover {
    background: var(--cat-soft);
    color: var(--cat-ink);
}

#product-category .oc-cat-nav__item.is-active {
    background: var(--cat-ink);
    color: #fff;
}

#product-category .oc-cat-nav__count {
    min-width: 28px;
    padding: 3px 8px;
    background: #f2f0eb;
    color: #66625b;
}

#product-category .oc-cat-nav__item.is-active .oc-cat-nav__count {
    background: var(--cat-gold);
    color: #111;
}

#product-category [data-oc-filter-module] .list-group {
    gap: 0;
    padding: 0 12px 12px;
}

#product-category [data-oc-filter-module] a.list-group-item {
    margin: 3px 0 2px;
    padding: 12px 4px 7px;
    border-top: 1px solid var(--cat-line);
    color: var(--cat-ink);
    font-size: 13px;
    font-weight: 800;
}

#product-category [data-oc-filter-module] a.list-group-item:first-child {
    border-top: 0;
}

#product-category [data-oc-filter-module] .list-group-item {
    padding: 0;
}

#product-category [data-oc-filter-module] .form-check {
    min-height: 38px;
    padding: 7px 7px;
}

#product-category [data-oc-filter-module] .form-check:hover {
    background: var(--cat-soft);
}

#product-category [data-oc-filter-module] .form-check-input:checked {
    border-color: var(--cat-gold);
    background-color: var(--cat-gold);
}

#product-category .ot-cat-meta-bar {
    margin: 0;
    height: 0;
    overflow: hidden;
}

#product-category .ot-cat-grid {
    gap: 16px;
}

#product-category .card-product {
    overflow: hidden;
    border-color: var(--cat-line);
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(17, 16, 14, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#product-category .card-product:hover {
    transform: translateY(-3px);
    border-color: #ddd3c0;
    box-shadow: 0 16px 36px rgba(17, 16, 14, .09);
}

#product-category .card-product_wrapper.square {
    aspect-ratio: 4 / 5;
}

#product-category .card-product_wrapper.square .product-img,
#product-category .card-product_wrapper.square .product-img img {
    width: 100%;
    height: 100%;
}

#product-category .card-product_wrapper.square .product-img img {
    object-fit: cover;
}

#product-category .card-product_info {
    padding: 14px 14px 16px;
}

#product-category .name-product {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--cat-ink);
    font-size: 14px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#product-category .price-wrap {
    margin-top: 7px;
}

#product-category .price-new {
    color: #bb8208 !important;
    font-size: 16px;
    font-weight: 800 !important;
}

#product-category .ot-cat-list.ot-is-loading {
    min-height: 360px;
    opacity: .48;
    pointer-events: none;
}

#product-category .ot-cat-list.ot-is-loading::after {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border-width: 4px;
    border-top-color: var(--cat-gold);
    box-shadow: 0 0 0 10px rgba(255,255,255,.92);
}

#product-category .ot-cat-ajax-error {
    margin: 0 0 12px;
    border: 1px solid #f2c5c5;
    border-radius: 12px;
    background: #fff5f5;
    color: #9b1c1c;
    font-size: 13px;
}

#product-category .ot-cat-drawer-backdrop { display: none; }

@media (max-width: 1199px) {
    #product-category .ot-cat-layout.has-left { grid-template-columns: 248px minmax(0, 1fr); }
    #product-category .ot-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    body.ot-cat-drawer-open { overflow: hidden; }

    #product-category .ot-category-hero {
        min-height: 132px;
        padding: 20px;
    }

    #product-category .ot-category-hero__media {
        flex-basis: 86px;
        width: 86px;
        height: 86px;
    }

    #product-category .ot-cat-toolbar {
        top: 5px;
        flex-wrap: nowrap;
    }

    #product-category .ot-cat-toolbar-info { width: auto; }
    #product-category .ot-cat-toolbar-controls { width: auto; margin-inline-start: auto; }
    #product-category .ot-cat-mobile-filter { display: inline-flex; }
    #product-category .ot-cat-toolbar-count { display: none; }
    #product-category .ot-cat-toolbar-select .ot-cat-toolbar-label { display: none; }
    #product-category .ot-cat-toolbar-select:last-child { display: none; }
    #product-category .ot-cat-select { min-width: 150px; }

    #product-category .ot-cat-layout,
    #product-category .ot-cat-layout.has-left,
    #product-category .ot-cat-layout.has-right,
    #product-category .ot-cat-layout.has-both {
        display: block;
    }

    #product-category .ot-cat-sidebar {
        position: fixed;
        z-index: 1002;
        top: 0;
        inset-inline-start: 0;
        width: min(390px, 90vw);
        height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        overflow: hidden;
        border-inline-end: 1px solid var(--cat-line);
        background: #fff;
        box-shadow: 18px 0 60px rgba(0,0,0,.17);
        transform: translateX(calc(-100% - 20px));
        transition: transform .25s ease;
    }

    [dir="rtl"] #product-category .ot-cat-sidebar {
        transform: translateX(calc(100% + 20px));
        box-shadow: -18px 0 60px rgba(0,0,0,.17);
    }

    #product-category .ot-cat-sidebar.is-open { transform: translateX(0); }

    #product-category .ot-cat-sidebar__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        padding: 0 18px;
        border-bottom: 1px solid var(--cat-line);
    }

    #product-category .ot-cat-sidebar__head strong {
        color: var(--cat-ink);
        font-size: 17px;
        font-weight: 800;
    }

    #product-category .ot-cat-sidebar__head button {
        display: inline-grid;
        width: 38px;
        height: 38px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: var(--cat-soft);
        color: var(--cat-ink);
    }

    #product-category .ot-cat-sidebar__content {
        height: calc(100dvh - 64px);
        padding: 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #product-category .ot-cat-drawer-backdrop {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(17,16,14,.52);
        backdrop-filter: blur(2px);
    }

    #product-category .ot-cat-drawer-backdrop[hidden] { display: none; }
}

@media (max-width: 575px) {
    #product-category {
        padding-top: 3px;
        padding-bottom: 48px;
    }

    #product-category .ot-cat-breadcrumb {
        margin-bottom: 9px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #product-category .ot-cat-breadcrumb-list {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    #product-category .ot-category-hero {
        min-height: 112px;
        gap: 13px;
        padding: 16px;
        border-radius: 18px;
    }

    #product-category .ot-category-hero__media {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        border-radius: 13px;
    }

    #product-category .ot-category-hero__eyebrow { font-size: 10px; }
    #product-category .ot-category-hero h1 { font-size: 23px; }
    #product-category .ot-category-hero__description,
    #product-category .ot-category-hero__count { display: none; }

    #product-category .ot-cat-toolbar {
        gap: 8px;
        padding: 8px;
    }

    #product-category .ot-cat-toolbar-controls { flex: 1 1 auto; min-width: 0; }
    #product-category .ot-cat-toolbar-select,
    #product-category .ot-cat-filter-wrap { width: 100%; }
    #product-category .ot-cat-select { width: 100%; min-width: 0; }
    #product-category .ot-cat-mobile-filter { padding: 0 12px; }
    #product-category .ot-cat-mobile-filter > span { display: none; }

    #product-category .ot-cat-active-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }

    #product-category .ot-cat-active-filters__title { display: none; }
    #product-category .ot-cat-active-filters__chips { flex-wrap: nowrap; }
    #product-category .ot-cat-filter-chip { white-space: nowrap; }
    #product-category .ot-cat-clear-filters { flex: 0 0 auto; }

    #product-category .ot-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #product-category .card-product { border-radius: 11px; }
    #product-category .card-product_info { padding: 10px 9px 12px; }
    #product-category .name-product { min-height: 42px; font-size: 12px; line-height: 1.65; }
    #product-category .price-new { font-size: 14px; }
    #product-category .product-action_bot .tf-btn { min-height: 35px; padding-inline: 6px; font-size: 11px; }
}
