/**
 * Hi-Operator — Shop / Products Page (PC) Styles
 */

/* ----- Shop / Products Page ----- */

/* Breadcrumbs Banner */
.ho-shop-breadcrumbs {
    background: linear-gradient(135deg, #FAF6F3 0%, #F3EDE8 100%);
    border-bottom: 1px solid #E8E0D9;
    padding: 120px 20px 50px;
    text-align: center;
}

.ho-shop-page-title {
    color: #1A1A2E;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: .5px;
}

.ho-shop-breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.ho-shop-breadcrumbs-list li {
    display: inline-block;
    margin: 0 5px;
    color: var(--ho-secondary);
}

.ho-shop-breadcrumbs-list li a {
    color: #6B7280;
    text-decoration: none;
    transition: color .3s;
}

.ho-shop-breadcrumbs-list li a::after {
    content: '\f101';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    font-size: 12px;
    vertical-align: middle;
    color: #1a1a2e;
}

.ho-shop-breadcrumbs-list li a:hover {
    color: var(--ho-accent);
}

.ho-shop-breadcrumbs--detail {
    padding: 100px 20px 30px;
}

/* Shop Layout */
.ho-shop-wrapper {
    padding: 50px 0 60px;
    background: #f8f9fb;
}

.ho-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1200px) {
    .ho-shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .ho-shop-layout {
        grid-template-columns: 1fr;
    }
    .ho-shop-sidebar {
        position: static !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Sidebar */
.ho-shop-sidebar {
    position: sticky;
    top: 100px;
}

.ho-shop-widget {
    border: 1px solid #ededed;
    border-radius: 0px;
    padding: 0;
    margin-bottom: 24px;
    background: #fff;
    overflow: hidden;
}

.ho-shop-widget-title {
    background: var(--ho-secondary);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 18px;
    margin: 0;
}

.ho-shop-cat-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.ho-shop-cat-list li {
    border-bottom: 1px solid #f5f5f5;
}

.ho-shop-cat-list li:last-child {
    border-bottom: none;
}

.ho-shop-cat-list li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s;
    gap: 6px;
}

.ho-shop-cat-list li a i {
    font-size: 10px;
    transition: transform .3s;
    color: #bbb;
}

.ho-shop-cat-list li a:hover,
.ho-shop-cat-list li.is-active a {
    color: var(--ho-secondary);
    background: rgba(229,62,62,.04);
}

.ho-shop-cat-list li a:hover i,
.ho-shop-cat-list li.is-active a i {
    color: var(--ho-secondary);
    transform: translateX(3px);
}

.ho-shop-cat-count {
    margin-left: auto;
    background: #f0f4f8;
    color: #888;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Parent category row */
.ho-shop-cat-parent {
    border-bottom: 1px solid #f5f5f5;
}

.ho-shop-cat-parent:last-child {
    border-bottom: none;
}

.ho-shop-cat-row {
    display: flex;
    align-items: center;
}

.ho-shop-cat-row > a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s;
    gap: 6px;
}

.ho-shop-cat-row > a i {
    font-size: 10px;
    transition: transform .3s;
    color: #bbb;
}

.ho-shop-cat-row > a:hover,
.ho-shop-cat-parent.is-active > .ho-shop-cat-row > a {
    color: var(--ho-secondary);
    background: rgba(229,62,62,.04);
}

.ho-shop-cat-row > a:hover i,
.ho-shop-cat-parent.is-active > .ho-shop-cat-row > a i {
    color: var(--ho-secondary);
    transform: translateX(3px);
}

/* Toggle button */
.ho-shop-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    transition: all .3s;
    flex-shrink: 0;
    margin-right: 6px;
}

.ho-shop-cat-toggle:hover {
    color: var(--ho-secondary);
}

.ho-shop-cat-parent.is-open .ho-shop-cat-toggle i {
    transform: rotate(180deg);
}

/* Sub-category list */
.ho-shop-cat-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #fafbfc;
}

.ho-shop-cat-parent.is-open > .ho-shop-cat-sub {
    max-height: 500px;
}

.ho-shop-cat-sub li {
    border-top: 1px solid #f0f0f0;
}

.ho-shop-cat-sub li a {
    display: flex;
    align-items: center;
    padding: 9px 18px 9px 40px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s;
    gap: 6px;
}

.ho-shop-cat-sub li a:hover,
.ho-shop-cat-sub li.is-active a {
    color: var(--ho-secondary);
    background: rgba(229,62,62,.06);
}

/* Sidebar CTA Widget */
.ho-shop-widget-cta {
    border: none;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    text-align: center;
    padding: 28px 20px;
}

.ho-shop-widget-cta-inner i {
    font-size: 36px;
    color: #fff;
    margin-bottom: 14px;
    display: block;
}

.ho-shop-widget-cta-inner h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ho-shop-widget-cta-inner p {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin-bottom: 16px;
}

.ho-shop-widget-cta .ho-btn {
    background: #fff;
    color: #E53E3E;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.ho-shop-widget-cta .ho-btn:hover {
    background: #f5f5f5;
    color: #C53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Product Grid */
.ho-shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Shop page now uses unified .ho-pcard card — legacy selectors kept for safety */
.ho-shop-item-hover,
.ho-shop-item-desc,
.ho-shop-item-detail-btn { display: none; }

/* Legacy classes kept for backward compatibility */
.ho-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ho-filter-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ho-radius-full);
    border: 1px solid var(--ho-border);
    background: var(--ho-bg-white);
    color: var(--ho-text-light);
    transition: var(--ho-transition-fast);
}

.ho-filter-tab:hover {
    border-color: var(--ho-secondary);
    color: var(--ho-secondary);
}

.ho-filter-tab.active {
    background: var(--ho-secondary);
    border-color: var(--ho-secondary);
    color: #fff;
}

.ho-products-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ho-product-page-card .ho-card-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ho-bg);
}

.ho-product-page-card .ho-card-img svg {
    width: 100%;
    height: auto;
}

.ho-product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,41,55,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ho-transition);
}

.ho-product-page-card:hover .ho-product-overlay {
    opacity: 1;
}

.ho-product-page-card .ho-card-body {
    padding: 20px;
}

.ho-product-page-card .ho-badge {
    margin-bottom: 10px;
}

.ho-product-page-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.ho-product-page-card p {
    font-size: 14px;
    color: var(--ho-text-light);
}

/* Hide filtered items */
.ho-product-page-card.ho-hidden {
    display: none;
}

/* ===== Price Filter Widget ===== */
.ho-price-filter {
    padding: 18px;
}

.ho-price-slider-wrap {
    position: relative;
    height: 36px;
    margin-bottom: 6px;
}

.ho-price-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}

.ho-price-range {
    position: absolute;
    height: 100%;
    background: var(--ho-secondary);
    border-radius: 3px;
}

.ho-price-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.ho-price-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--ho-secondary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
}

.ho-price-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(229,62,62,.3);
}

.ho-price-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--ho-secondary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.ho-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.ho-price-btns {
    display: flex;
    gap: 8px;
}

.ho-price-apply-btn,
.ho-price-reset-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all .25s;
}

.ho-price-apply-btn {
    color: #fff;
    background: var(--ho-secondary);
    border: 1px solid var(--ho-secondary);
}

.ho-price-apply-btn:hover {
    opacity: .85;
}

.ho-price-reset-btn {
    color: #888;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.ho-price-reset-btn:hover {
    color: var(--ho-secondary);
    border-color: var(--ho-secondary);
    background: rgba(229,62,62,.04);
}

/* ===== Active Filter Tags ===== */
.ho-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.ho-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
}

.ho-filter-tag:hover {
    background: rgba(229,62,62,.08);
    color: var(--ho-secondary);
}

.ho-filter-remove {
    font-size: 10px;
    opacity: .6;
}

.ho-filter-tag:hover .ho-filter-remove {
    opacity: 1;
}

.ho-filter-clear {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.ho-filter-clear:hover {
    color: var(--ho-secondary);
}

/* ===== Empty State ===== */
.ho-shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.ho-shop-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
    display: block;
}

.ho-shop-empty p {
    color: #888;
    font-size: 15px;
    margin-bottom: 16px;
}

/* ===== Pagination ===== */
.ho-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.ho-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
}

.ho-page-btn:hover:not(.is-disabled) {
    color: var(--ho-secondary);
    border-color: var(--ho-secondary);
}

.ho-page-btn.is-disabled {
    color: #ccc;
    background: #f9f9f9;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

.ho-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all .2s;
}

.ho-page-num:hover {
    color: var(--ho-secondary);
    border-color: var(--ho-secondary);
}

.ho-page-num.is-active {
    background: var(--ho-secondary);
    border-color: var(--ho-secondary);
    color: #fff;
}

.ho-page-dots {
    padding: 0 4px;
    color: #aaa;
    font-size: 14px;
}

/* ===== Attribute Filter Widget ===== */
.ho-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
}

.ho-attr-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.ho-attr-option:hover {
    border-color: var(--ho-secondary);
    color: var(--ho-secondary);
    background: rgba(229,62,62,.04);
}

.ho-attr-option.is-active {
    background: var(--ho-secondary);
    border-color: var(--ho-secondary);
    color: #fff;
}

.ho-attr-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.1);
    flex-shrink: 0;
    margin-right: 4px;
    vertical-align: middle;
}

.ho-attr-option.is-active .ho-attr-color-dot {
    border-color: rgba(255,255,255,.4);
}
