/* Shop page */

.shop-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 106, 61, .16), transparent 42%),
        linear-gradient(135deg, #FFF8F4 0%, #FFEFE8 100%);
    border-bottom: 1px solid rgba(11, 26, 45, .06);
    padding: 34px 0 28px
}

.shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #8A93A1;
    margin-bottom: 14px
}

.shop-breadcrumb a {
    color: var(--secondary);
    font-weight: 600
}

.shop-breadcrumb a:hover {
    color: var(--primary)
}

.shop-hero-copy .section-kicker {
    margin-bottom: 8px
}

.shop-hero-copy h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--secondary);
    margin: 0 0 8px
}

.shop-hero-copy p {
    max-width: 620px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6
}

/* Shop page uses brand tokens */
.shop-page .pod-flag {
    background: var(--primary);
}

.shop-page .pod-price-label {
    border-color: color-mix(in srgb, var(--primary) 35%, #fff);
    background: var(--soft);
    color: var(--secondary);
}

.shop-page .product-card.is-price-on-demand .add-cart {
    border-color: var(--primary);
    background: var(--primary);
}

.shop-page .product-card.is-price-on-demand .add-cart:hover {
    background: var(--primary-dark, #E85A2F);
}

.shop-page .rating {
    display: none !important;
}

.shop-page .product-tag {
    color: #FF6A3D;
    letter-spacing: .04em
}

.shop-page .price {
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: baseline
}

.shop-page .price strong {
    color: #111;
    font-size: 17px;
    font-weight: 800
}

.shop-page .product-unit-hint {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700
}

.shop-page .price del {
    width: 100%;
    margin: 0;
    color: #9ca3af;
    font-size: 12px
}

.shop-page .add-cart {
    border-color: #FF6A3D;
    color: #FF6A3D;
    border-radius: 999px
}

.shop-page .add-cart:hover {
    background: #FF6A3D;
    color: #fff
}

.shop-section {
    padding-top: 34px
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start
}

.shop-filter-card {
    background: #fff;
    border: 1px solid rgba(11, 26, 45, .08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(11, 26, 45, .06);
    position: sticky;
    top: 110px
}

.shop-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px
}

.shop-filter-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary)
}

.shop-clear-filters {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 0
}

.shop-filter-group {
    padding: 14px 0;
    border-top: 1px solid rgba(11, 26, 45, .08)
}

.shop-filter-group h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--secondary)
}

.shop-cat-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding-right: 4px
}

.shop-cat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: #f4f6f8;
    color: #1a2433;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    font-size: 14px
}

.shop-cat-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0
}

.shop-cat-radio {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid #b7c0cc;
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease
}

.shop-cat-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s ease
}

.shop-cat-name {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em
}

.shop-cat-count {
    flex: 0 0 auto;
    margin: 0;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #5f6b7a;
    background: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(11, 26, 45, .06)
}

.shop-cat-item:hover {
    background: #e9eef3;
    transform: translateY(-1px)
}

.shop-cat-item:hover .shop-cat-radio {
    border-color: #8a93a1
}

.shop-cat-item.is-active {
    background: #111;
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 17, 17, .18)
}

.shop-cat-item.is-active .shop-cat-radio {
    border-color: #FF6A3D;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(255, 106, 61, .18)
}

.shop-cat-item.is-active .shop-cat-radio::after {
    background: #FF6A3D
}

.shop-cat-item.is-active .shop-cat-count {
    color: #fff;
    background: #FF6A3D;
    box-shadow: none
}

.shop-cat-item.is-locked {
    cursor: default;
    pointer-events: none;
    transform: none
}

.shop-cat-item.is-locked:hover {
    transform: none
}

.shop-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--secondary);
    cursor: pointer
}

.shop-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary)
}

.shop-subcat-list {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px
}

.shop-subcat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid rgba(11, 26, 45, .08);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
    font-size: 13px;
    color: var(--secondary)
}

.shop-subcat-item:hover {
    border-color: rgba(255, 106, 61, .3);
    background: rgba(255, 106, 61, .05)
}

.shop-subcat-item.is-checked,
.shop-subcat-item:has(input:checked) {
    border-color: rgba(255, 106, 61, .45);
    background: rgba(255, 106, 61, .1)
}

.shop-subcat-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1
}

.shop-subcat-main input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer
}

.shop-subcat-name {
    line-height: 1.35;
    font-weight: 600;
    word-break: break-word
}

.shop-subcat-item em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #8A93A1;
    background: #F5F0E8;
    border-radius: 999px;
    padding: 3px 8px;
    line-height: 1.2
}

.shop-subcat-empty {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.shop-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px
}

.shop-price-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8A93A1;
    margin-bottom: 5px
}

.shop-price-row input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(11, 26, 45, .12);
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    background: #FFF8F4
}

.shop-apply-price {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

.shop-apply-price:hover {
    background: var(--primary)
}

.shop-apply-filters {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #E85A2F);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(255, 106, 61, .24)
}

.shop-apply-filters:hover {
    color: #fff;
    transform: translateY(-1px)
}

.shop-price-slider-wrap {
    margin-bottom: 12px
}

.shop-price-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px
}

.shop-price-slider-track {
    position: relative;
    height: 28px
}

.shop-price-slider-track input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none
}

.shop-price-slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(11, 26, 45, .2);
    pointer-events: auto;
    cursor: pointer
}

.shop-price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px
}

.shop-price-preset {
    border: 1px solid rgba(11, 26, 45, .12);
    background: #FFF8F4;
    color: var(--secondary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700
}

.shop-price-preset:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.shop-rating-filters {
    display: grid;
    gap: 6px
}

.shop-rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    color: var(--secondary);
    transition: .2s ease
}

.shop-rating-item input {
    display: none
}

.shop-rating-stars {
    color: #F0B429;
    font-size: 11px
}

.shop-rating-item:hover,
.shop-rating-item.is-active {
    background: rgba(255, 106, 61, .1);
    font-weight: 700
}

.shop-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px
}

.shop-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A93A1;
    font-size: 14px
}

.shop-search-wrap input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(11, 26, 45, .12);
    border-radius: 12px;
    padding: 0 40px 0 40px;
    font-size: 13px;
    background: #FFF8F4
}

.shop-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 26, 45, .08);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.shop-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(11, 26, 45, .08);
    border-radius: 12px
}

.shop-active-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8A93A1
}

.shop-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 106, 61, .12);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700
}

.shop-filter-chip:hover {
    background: rgba(255, 106, 61, .22)
}

.shop-filter-chip i {
    font-size: 10px;
    opacity: .7
}

.shop-filter-head h2 i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 14px
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(11, 26, 45, .08);
    border-radius: 14px
}

.shop-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary)
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    color: #8A93A1;
    font-weight: 600
}

.shop-sort select {
    height: 38px;
    border: 1px solid rgba(11, 26, 45, .12);
    border-radius: 10px;
    padding: 0 12px;
    background: #FFF8F4;
    color: var(--secondary);
    font-weight: 700;
    font-size: 12px
}

.shop-grid-wrap {
    position: relative;
    min-height: 220px
}

.shop-grid-wrap.is-loading #shopProductGrid {
    opacity: .45;
    pointer-events: none
}

.shop-loading {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .72);
    z-index: 5
}

.shop-loading.is-active {
    display: flex !important
}

.shop-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 106, 61, .2);
    border-top-color: var(--primary);
    animation: shopSpin .7s linear infinite
}

@keyframes shopSpin {
    to { transform: rotate(360deg) }
}

.shop-flag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 999px;
    background: #FF6A3D;
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 106, 61, .28)
}

.shop-flag-trending {
    top: 46px;
    background: #111;
    box-shadow: 0 8px 18px rgba(17, 17, 17, .18)
}

.product-card .discount-badge + .shop-flag-trending,
.product-card .discount-badge ~ .shop-flag-trending {
    top: 46px
}

.shop-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px
}

.shop-load-more {
    min-width: 220px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #E85A2F);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(255, 106, 61, .28);
    transition: .2s ease
}

.shop-load-more:hover {
    transform: translateY(-1px);
    color: #fff
}

.shop-load-more:disabled {
    opacity: .6;
    transform: none
}

.shop-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed rgba(11, 26, 45, .14);
    border-radius: 18px
}

.shop-empty i {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 12px
}

.shop-empty h3 {
    margin: 0 0 6px;
    color: var(--secondary)
}

.shop-empty p {
    color: var(--muted);
    margin-bottom: 16px
}

.btn-shop-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 13px
}

.btn-shop-reset:hover {
    background: var(--primary);
    color: #fff
}

@media (max-width: 991.98px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 18px
    }
    .shop-filter-card {
        position: static;
        top: auto;
        padding: 14px
    }
    .shop-filter-body {
        display: none
    }
    .shop-filter-card.is-open .shop-filter-body {
        display: block
    }
    .shop-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(11, 26, 45, .12);
        background: #FFF8F4;
        color: var(--secondary);
        border-radius: 999px;
        height: 38px;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 700
    }
    .shop-cat-list {
        max-height: 200px
    }
    .shop-hero {
        padding: 24px 0 20px
    }
    .shop-hero-copy h1 {
        font-size: 28px
    }
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch
    }
    .shop-toolbar-meta,
    .shop-toolbar-actions,
    .shop-sort {
        width: 100%
    }
    .shop-search-wrap {
        width: 100%;
        min-width: 0
    }
    .shop-sort select {
        flex: 1;
        width: 100%
    }
    .shop-load-more {
        min-width: 0;
        width: 100%;
        max-width: 320px
    }
}

@media (max-width: 575.98px) {
    .shop-section {
        padding-top: 22px
    }
    .shop-price-row {
        grid-template-columns: 1fr
    }
    .shop-product-item .product-body {
        padding: 12px
    }
    .shop-product-item .product-body h3 {
        font-size: 13px
    }
    .shop-product-item .add-cart {
        font-size: 11px;
        padding: 8px 10px
    }
    .shop-flag {
        font-size: 9px;
        padding: 4px 6px
    }
}

@media (min-width: 992px) {
    .shop-filter-toggle {
        display: none !important
    }
    .shop-filter-body {
        display: block !important
    }
}

/* Catalog without the filter sidebar */
.shop-no-filters .shop-layout {
    grid-template-columns: minmax(0, 1fr)
}

/* Horizontal filter bar variant */
.shop-filters-horizontal .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px
}

.shop-filters-horizontal .shop-sidebar {
    width: 100%;
    min-width: 0
}

.shop-filters-horizontal .shop-filter-card {
    position: static;
    top: auto;
    padding: 16px 20px 18px
}

.shop-filters-horizontal .shop-filter-head {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(11, 26, 45, .08)
}

.shop-filters-horizontal .shop-filter-body {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 28px
}

.shop-filters-horizontal .shop-filter-group {
    order: 0;
    flex: 1 1 250px;
    min-width: 0;
    padding: 14px 0 4px;
    border-top: 0
}

.shop-filters-horizontal .shop-subcategory-group {
    order: 1;
    flex: 1 1 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(11, 26, 45, .08)
}

.shop-filters-horizontal .shop-filter-group h3 {
    margin-bottom: 10px
}

.shop-filters-horizontal .shop-cat-list,
.shop-filters-horizontal .shop-subcat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0
}

.shop-filters-horizontal .shop-cat-item,
.shop-filters-horizontal .shop-subcat-item {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 14px;
    border-radius: 999px
}

.shop-filters-horizontal .shop-rating-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.shop-filters-horizontal .shop-check {
    display: inline-flex;
    margin: 0 18px 8px 0
}

.shop-filters-horizontal .shop-apply-filters {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    margin: 14px 0 0 auto;
    padding: 0 24px
}

@media (max-width: 991.98px) {
    .shop-filters-horizontal .shop-filter-card.is-open .shop-filter-body {
        display: flex !important
    }
    .shop-filters-horizontal .shop-filter-body {
        display: none !important
    }
    .shop-filters-horizontal .shop-apply-filters {
        width: 100%;
        margin-left: 0
    }
}
