.ec-catalog,
.ec-detail {
    padding:44px 0 96px;
}

.ec-breadcrumbs {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    color:#747474;
    font-size:13px;
}

.ec-breadcrumbs a:hover,
.ec-back-link:hover {
    color:#8d7100;
}

.ec-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;
    margin:34px 0 28px;
}

.ec-kicker {
    margin-bottom:8px;
    color:#777;
    font-size:12px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ec-heading h1,
.ec-section-heading h2,
.ec-summary h1,
.ec-description h2,
.ec-empty h2 {
    font-family:Tektur,sans-serif;
    font-weight:500;
    line-height:1.06;
}

.ec-heading h1 {
    font-size:clamp(38px,5vw,64px);
    text-transform:uppercase;
    overflow-wrap:anywhere;
}

.ec-result-count {
    color:#6d6d6d;
    white-space:nowrap;
}

.ec-section-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:36px;
    margin-top:44px;
}

.ec-section-heading h2 {
    font-size:clamp(30px,4vw,46px);
    text-transform:uppercase;
}

.ec-section-heading > p {
    max-width:520px;
    color:#666;
    line-height:1.55;
    text-wrap:pretty;
}

.ec-filters {
    display:grid;
    grid-template-columns:minmax(280px,2fr) repeat(3,minmax(150px,1fr));
    gap:12px;
    padding:18px;
    border:1px solid #dedede;
    border-radius:10px;
    background:#fff;
}

.ec-filters label {
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:0;
    color:#777;
    font-size:12px;
}

.ec-filters input,
.ec-filters select {
    width:100%;
    height:46px;
    padding:0 13px;
    border:1px solid #d6d6d6;
    border-radius:5px;
    background:#fafafa;
    color:#222;
    font:14px Inter,sans-serif;
}

.ec-filters input:focus,
.ec-filters select:focus {
    border-color:#a88900;
    outline:2px solid #ffd504;
    outline-offset:1px;
}

.ec-filter-actions {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:18px;
}

.ec-filter-actions button,
.ec-empty button,
.ec-primary-action {
    min-height:48px;
    padding:13px 26px;
    border-radius:5px;
    background:#ffd504;
    color:#242424;
    font-weight:600;
}

.ec-filter-actions a {
    color:#777;
    font-size:14px;
}

.ec-active-filter {
    display:flex;
    align-items:center;
    gap:9px;
    margin-top:18px;
    padding:12px 16px;
    border-radius:5px;
    background:#fff4b4;
    font-size:14px;
}

.ec-active-filter a {
    margin-left:auto;
    text-decoration:underline;
}

.ec-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:30px;
}

.ec-card {
    display:flex;
    min-width:0;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #dedede;
    border-radius:9px;
    background:#fff;
    transition:border-color .2s ease,transform .2s ease;
}

.ec-card:hover {
    border-color:#b99a00;
    transform:translateY(-2px);
}

.ec-card__photo {
    position:relative;
    display:block;
    aspect-ratio:4/3;
    overflow:hidden;
    background:#ececec;
}

.ec-card__photo img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.ec-status {
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:6px 13px;
    border-radius:100px;
    background:#ffd504;
    color:#242424;
    font-size:12px;
    font-weight:600;
}

.ec-card__photo .ec-status {
    position:absolute;
    top:14px;
    left:14px;
}

.ec-status.is-reserved {
    background:#efefef;
}

.ec-status.is-order {
    background:#fff;
    box-shadow:inset 0 0 0 1px #d7b300;
}

.ec-card__body {
    display:flex;
    flex:1;
    flex-direction:column;
    padding:22px;
}

.ec-card__eyebrow {
    color:#777;
    font-size:12px;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.ec-card h2 {
    margin-top:7px;
    font:500 25px/1.15 Tektur,sans-serif;
}

.ec-card h2 a:hover {
    color:#8d7100;
}

.ec-card__facts,
.ec-detail__facts {
    margin:22px 0 0;
}

.ec-card__facts div,
.ec-detail__facts div {
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:9px 0;
    border-bottom:1px solid #ebebeb;
}

.ec-card__facts dt,
.ec-detail__facts dt {
    color:#777;
}

.ec-card__facts dd,
.ec-detail__facts dd {
    margin:0;
    text-align:right;
}

.ec-price {
    margin-top:22px;
    font:500 18px Tektur,sans-serif;
}

.ec-card__actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:18px;
}

.ec-card__actions--single {
    grid-template-columns:1fr;
    margin-top:auto;
    padding-top:18px;
}

.ec-card__actions a,
.ec-card__actions button {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:45px;
    padding:10px 12px;
    border-radius:5px;
    font-size:13px;
    text-align:center;
}

.ec-card__actions a {
    border:1px solid #d3d3d3;
}

.ec-card__actions button {
    background:#ffd504;
}

.ec-pagination {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin:34px 0 0;
}

.ec-pagination a {
    padding:10px 16px;
    border:1px solid #d4d4d4;
    border-radius:5px;
    background:#fff;
}

.ec-empty {
    margin-top:30px;
    padding:58px;
    border-radius:9px;
    background:#eaeaea;
    text-align:center;
}

.ec-empty h2 {
    font-size:36px;
}

.ec-empty > p:not(.ec-kicker) {
    max-width:580px;
    margin:16px auto 24px;
    color:#555;
}

.ec-catalog > .pl-lead {
    margin-top:70px;
}

.ec-order {
    margin-top:82px;
    padding-top:4px;
    scroll-margin-top:24px;
}

.ec-order .ec-section-heading {
    margin-top:0;
}

.ec-order-card .ec-card__photo {
    background:#ededeb;
}

.ec-order-card .ec-card__photo.is-contained img {
    padding:18px;
    object-fit:contain;
}

.ec-order-card__note {
    margin-top:10px;
    color:#777;
    font-size:12px;
    line-height:1.5;
}

.ec-detail__grid {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(340px,.9fr);
    gap:34px;
    margin-top:34px;
}

.ec-gallery__main {
    aspect-ratio:4/3;
    overflow:hidden;
    border-radius:9px;
    background:#e8e8e8;
}

.ec-gallery__main img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.ec-gallery__thumbs {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px;
    margin-top:9px;
}

.ec-gallery__thumbs button {
    aspect-ratio:1;
    overflow:hidden;
    padding:0;
    border:2px solid transparent;
    border-radius:5px;
    background:#e8e8e8;
}

.ec-gallery__thumbs button.is-active {
    border-color:#ffd504;
}

.ec-gallery__thumbs img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.ec-summary {
    align-self:start;
    padding:30px;
    border:1px solid #dedede;
    border-radius:9px;
    background:#fff;
}

.ec-summary__top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:28px;
}

.ec-stock-id {
    color:#777;
    font:12px JetBrains Mono,monospace;
}

.ec-summary h1 {
    font-size:clamp(34px,4vw,52px);
    overflow-wrap:anywhere;
}

.ec-summary__price {
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:30px;
    padding-top:24px;
    border-top:1px solid #dedede;
}

.ec-summary__price span {
    color:#777;
    font-size:12px;
}

.ec-summary__price strong {
    font:500 22px Tektur,sans-serif;
}

.ec-primary-action {
    width:100%;
    margin-top:22px;
}

.ec-description {
    display:grid;
    grid-template-columns:minmax(220px,.7fr) minmax(0,1.5fr);
    gap:50px;
    margin-top:70px;
    padding-top:38px;
    border-top:1px solid #d8d8d8;
}

.ec-description h2 {
    font-size:36px;
}

.ec-description p {
    max-width:760px;
    white-space:pre-line;
}

.ec-description__note {
    margin-top:18px;
    color:#777;
    font-size:13px;
}

.ec-back-link {
    display:inline-block;
    margin-top:52px;
    font-weight:600;
}

@media(max-width:1100px) {
    .ec-filters {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .ec-search {
        grid-column:span 2;
    }
    .ec-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .ec-detail__grid {
        grid-template-columns:1fr;
    }
}

@media(max-width:700px) {
    .ec-catalog,
    .ec-detail {
        padding:28px 0 62px;
    }
    .ec-heading {
        align-items:flex-start;
        flex-direction:column;
        margin-top:25px;
    }
    .ec-heading > div {
        min-width:0;
        max-width:100%;
    }
    .ec-heading h1 {
        font-size:28px;
        line-height:1.12;
        hyphens:auto;
    }
    .ec-section-heading {
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
        margin-top:36px;
    }
    .ec-filters,
    .ec-grid,
    .ec-description {
        grid-template-columns:1fr;
    }
    .ec-search {
        grid-column:auto;
    }
    .ec-filter-actions {
        align-items:stretch;
        flex-direction:column;
    }
    .ec-active-filter {
        align-items:flex-start;
        flex-wrap:wrap;
    }
    .ec-active-filter a {
        width:100%;
        margin-left:0;
    }
    .ec-card__actions {
        grid-template-columns:1fr;
    }
    .ec-empty {
        padding:38px 22px;
    }
    .ec-empty h2,
    .ec-description h2 {
        font-size:29px;
    }
    .ec-gallery__thumbs {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    .ec-summary {
        padding:24px 20px;
    }
    .ec-description {
        gap:22px;
        margin-top:48px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .ec-card {
        transition:none;
    }
}
