:root {
    --pdln-primary: #e42e2d;
    --pdln-primary-dark: #b91c1c;
    --pdln-accent: #fbbc34;
    --pdln-border: #e5e7eb;
    --pdln-border-strong: #cbd5e1;
    --pdln-soft: #f8fafc;
    --pdln-soft-red: #fff5f5;
    --pdln-text: #111827;
    --pdln-muted: #6b7280;
}

.pdln-shell,
.pdln-shell * {
    box-sizing: border-box;
}


.pdln-shell [x-cloak] {
    display: none !important;
}

.pdln-shell {
    width: 100%;
    max-width: 100%;
    color: var(--pdln-text);
    overflow: visible;
}

@media (min-width: 1024px) {
    .pdln-shell.pdln-is-sticky {
        position: sticky;
        top: 92px;
        align-self: flex-start;
        overflow: visible;
        max-height: none;
    }
}

.pdln-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.pdln-header strong {
    display: none;
}

.pdln-clear,
.pdln-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(228, 46, 45, 0.08);
    color: var(--pdln-primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.pdln-clear:hover,
.pdln-back:hover {
    background: rgba(228, 46, 45, 0.14);
    text-decoration: none;
}

/* Category navigation: same structure as the sample, but cleaner */
.pdln-category-card {
    margin-bottom: 16px;
    padding: 4px 0;
    background: #fff;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.pdln-cat-list {
    display: block;
}

.pdln-cat-row {
    position: relative;
    display: grid;
    grid-template-columns: 26px 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 6px 6px 6px 0;
    border-radius: 12px;
    color: var(--pdln-text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

button.pdln-cat-row {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

button.pdln-cat-row:focus-visible {
    outline: 2px solid rgba(228, 46, 45, .45);
    outline-offset: 2px;
}

.pdln-cat-row:hover {
    background: var(--pdln-soft);
    text-decoration: none;
}

.pdln-cat-row.is-current {
    background: var(--pdln-soft-red);
}

.pdln-cat-select {
    width: 19px;
    height: 19px;
    border: 2px solid #c7ccd3;
    border-radius: 999px;
    background: #fff;
    justify-self: center;
    position: relative;
}

.pdln-cat-row.is-current .pdln-cat-select {
    border-color: var(--pdln-primary);
    background: var(--pdln-primary);
}

.pdln-cat-row.is-current .pdln-cat-select::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pdln-cat-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
}

.pdln-cat-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.pdln-cat-thumb--fallback {
    border: 1px solid var(--pdln-border);
    background: #f8fafc;
    color: var(--pdln-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.pdln-cat-title {
    min-width: 0;
    color: var(--pdln-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.pdln-cat-row.is-current .pdln-cat-title,
.pdln-cat-row.is-in-path .pdln-cat-title {
    font-weight: 950;
}

.pdln-cat-arrow {
    width: 9px;
    height: 9px;
    justify-self: center;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}

.pdln-cat-row.is-current.has-children .pdln-cat-arrow,
.pdln-cat-row.is-in-path.has-children .pdln-cat-arrow,
.pdln-cat-row.has-children.is-open .pdln-cat-arrow {
    transform: rotate(45deg);
}

.pdln-cat-arrow--blank {
    opacity: 0;
}

.pdln-cat-children {
    position: relative;
    margin-left: 12px;
    padding-left: 14px;
}

.pdln-cat-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 6px;
    width: 1px;
    background: var(--pdln-border);
}

.pdln-cat-children .pdln-cat-row {
    grid-template-columns: 26px 42px minmax(0, 1fr) 18px;
    min-height: 46px;
}

.pdln-cat-level-1 .pdln-cat-title,
.pdln-cat-level-2 .pdln-cat-title,
.pdln-cat-level-3 .pdln-cat-title,
.pdln-cat-level-4 .pdln-cat-title {
    font-size: 13.5px;
}

.pdln-empty-note {
    padding: 11px;
    border-radius: 12px;
    background: var(--pdln-soft);
    color: var(--pdln-muted);
    font-size: 13px;
}

/* Attribute and price filters use the same simple row feeling */
.pdln-filter-stack {
    display: grid;
    gap: 10px;
}

.pdln-filter-card {
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--pdln-border);
}

.pdln-filter-title {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 4px;
    border: 0;
    background: #fff;
    color: var(--pdln-text);
    text-align: left;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.pdln-filter-title:hover {
    background: var(--pdln-soft);
}

.pdln-filter-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.pdln-filter-chevron.is-open {
    transform: rotate(225deg);
}

.pdln-filter-body {
    padding: 0 0 10px;
}

.pdln-option-search {
    display: block;
    margin-bottom: 8px;
}

.pdln-option-search input {
    width: 100%;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--pdln-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--pdln-text);
    font-size: 13px;
}

.pdln-option-search input:focus {
    border-color: rgba(228, 46, 45, 0.45);
    box-shadow: 0 0 0 3px rgba(228, 46, 45, 0.1);
}

.pdln-option-list {
    display: block;
}

.pdln-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 6px 7px 0;
    border-radius: 12px;
    background: #fff;
    color: var(--pdln-text);
    text-decoration: none;
    font-weight: 800;
    transition: background .15s ease;
}

.pdln-option:hover {
    background: var(--pdln-soft);
    text-decoration: none;
}

.pdln-option.is-active {
    background: var(--pdln-soft-red);
}

.pdln-option-box {
    width: 19px;
    height: 19px;
    border: 2px solid #c7ccd3;
    border-radius: 999px;
    background: #fff;
    justify-self: center;
    position: relative;
}

.pdln-option.is-active .pdln-option-box {
    border-color: var(--pdln-primary);
    background: var(--pdln-primary);
}

.pdln-option.is-active .pdln-option-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pdln-option-label {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: 13.5px;
}

.pdln-show-more {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(228, 46, 45, 0.22);
    border-radius: 10px;
    background: rgba(228, 46, 45, 0.05);
    color: var(--pdln-primary-dark);
    font-weight: 900;
    cursor: pointer;
}

.pdln-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .pdln-shell {
        position: relative;
        width: 100%;
        overflow: visible;
    }

    .pdln-cat-row {
        grid-template-columns: 25px 38px minmax(0, 1fr) 18px;
        min-height: 46px;
    }

    .pdln-cat-thumb {
        width: 36px;
        height: 36px;
    }

    .pdln-cat-title {
        font-size: 13.5px;
    }
}
