/* Catalog in EZ Mall layout (easyship.ru/catalog), Goody colours: coral #f15f63, purple #4126BF, Jost */
.mall { --coral: #f15f63; --purple: #4126BF; --ink: #292B2A; --muted: #8a8f98; --line: #e9e9ee; --bg: #f6f7fb; }
.mall .catalog__head { padding: 10px 15px 0; }
.mall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.mall-head .catalog__title { margin: 0; }
.mall-search { display: flex; flex: 0 1 460px; min-width: 260px; }
.mall-search input { flex: 1; height: 44px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; padding: 0 14px; font-size: 15px; font-family: inherit; outline: none; }
.mall-search input:focus { border-color: var(--coral); }
.mall-search button { height: 44px; padding: 0 20px; border: 0; border-radius: 0 10px 10px 0; background: var(--coral); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mall-search button:hover { background: #e04d51; }

/* sidebar */
.mall-side { padding-top: 6px; }
.mall-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; margin-bottom: 12px; }
.mall-box > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 0; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.mall-box > summary::-webkit-details-marker { display: none; }
.mall-box > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.mall-box[open] > summary::after { transform: rotate(-135deg); }
.mall-cats { list-style: none; margin: 0; padding: 0; }
.mall-cats li a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none; }
.mall-cats li a i { font-style: normal; color: var(--muted); font-size: 12px; }
.mall-cats li a:hover { background: var(--bg); color: var(--coral); }
.mall-cats li.active > a { background: #fdeeef; color: var(--coral); font-weight: 600; }
.mall-cats li.is-open > a { font-weight: 600; color: var(--purple); }
.mall-cats li.mall-cats__sub a { padding-left: 22px; font-size: 13.5px; }
.mall-cats li.mall-cats__sub a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #d5d7de; margin-right: 8px; flex: 0 0 auto; }
.mall-cats li.mall-cats__sub.active a::before { background: var(--coral); }
.mall-cats li.mall-cats__sub a i { margin-left: auto; }
.mall-cats li.mall-cats__sub a span { flex: 1; }

.mall-checks { display: flex; flex-direction: column; gap: 2px; }
.mall-checks label, .mall-check1 { display: flex; align-items: center; gap: 8px; padding: 5px 4px; margin: 0; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; border-radius: 6px; }
.mall-checks label:hover, .mall-check1:hover { background: var(--bg); }
.mall-checks label span, .mall-check1 span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-checks label i, .mall-check1 i { font-style: normal; color: var(--muted); font-size: 12px; }
.mall-checks input, .mall-check1 input { width: 16px; height: 16px; accent-color: var(--coral); margin: 0; flex: 0 0 auto; }
.mall-checks label.is-extra { display: none; }
.mall-checks_more.is-expanded label.is-extra { display: flex; }
.mall-more { display: inline-block; margin: 6px 4px 2px; font-size: 13px; color: var(--purple); text-decoration: underline; }
.mall-price { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.mall-price input { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 14px; font-family: inherit; }
.mall-price input:focus { outline: none; border-color: var(--coral); }
.mall-price span { color: var(--muted); }
.mall-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.mall-apply { height: 40px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--coral); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mall-apply:hover { background: #e04d51; }
.mall-reset { font-size: 14px; color: var(--muted); text-decoration: underline; }
.mall-side .sheet__sort, .mall-side #sort { display: none; }

/* main column */
.mall-sorts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.mall-sort { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 20px; padding: 8px 16px; font-size: 14px; cursor: pointer; font-family: inherit; }
.mall-sort:hover { border-color: var(--coral); color: var(--coral); }
.mall-sort.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }
.mall .filter__menu, .mall .product__sorting { display: none; }
.mall-empty { color: var(--muted); padding: 30px 0; text-align: center; width: 100%; }

/* product cards */
.mall .catalog__col { position: relative; }
.catalog__disc { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--coral); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 12px; }
.slide__brand { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.slide__old { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }

@media (max-width: 767.98px) {
    .mall-head { gap: 8px; }
    .mall-search { flex-basis: 100%; }
    .mall-side .sheet__sort { display: block; }
    .mall-sorts { display: none; }
    .mall-box { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 8px; margin-bottom: 8px; }
    .mall-actions { display: none; }   /* the sheet has its own apply / reset buttons */
}

/* uniform cards: same image box for every product */
.mall .catalog__col img { width: 100%; height: 240px; object-fit: contain; padding: 12px; box-sizing: border-box; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.mall .catalog__item { margin-bottom: 18px; }
.mall .catalog__col .slide__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: auto; min-height: 36px; line-height: 18px; font-size: 14px; padding: 0 6px; }
.mall .catalog__col p { margin-bottom: 6px; }
.mall .catalog__col .slide__price { display: block; margin-top: 4px; }
@media (max-width: 767.98px) { .mall .catalog__col img { height: 190px; } }
