/* Doudoudis Part Finder v2 explorer */
.dou-sdf-catalog,
.dou-sdf-catalog * {
    box-sizing: border-box;
}

.dou-sdf-catalog {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(22px, 3vw, 40px);
    border: 1px solid #dce4ee;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 18px 50px rgba(20, 33, 66, 0.07);
    color: #142142;
}

.dou-sdf-catalog::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #f7b733 34%, #142142 100%);
    content: "";
}

.dou-sdf-catalog button,
.dou-sdf-catalog input,
.dou-sdf-catalog select {
    font: inherit;
}

.dou-sdf-catalog__header {
    max-width: 900px;
    margin-bottom: 24px;
}

.dou-sdf-catalog__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    border: 1px solid #f4d38f;
    border-radius: 999px;
    background: #fff8e9;
    color: #9a5700;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.dou-sdf-catalog__header h2 {
    margin: 0;
    color: #142142;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.dou-sdf-catalog__header p {
    max-width: 820px;
    margin: 11px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.dou-sdf-catalog__notice {
    padding: 16px 18px;
    border: 1px solid #f4d38f;
    border-radius: 14px;
    background: #fff8e9;
    color: #754307;
}

.dou-sdf-catalog__language {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
}

.dou-sdf-catalog__language-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.dou-sdf-catalog__language-buttons {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #fff;
}

.dou-sdf-catalog__language-button {
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #e4e9f0;
    background: #fff;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dou-sdf-catalog__language-button:last-child {
    border-right: 0;
}

.dou-sdf-catalog__language-button:hover,
.dou-sdf-catalog__language-button:focus-visible {
    background: #fff8e9;
    color: #142142;
    outline: none;
}

.dou-sdf-catalog__language-button.is-active {
    background: #142142;
    color: #fff;
}

.dou-sdf-catalog__filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f7f9fc;
}

.dou-sdf-catalog__field {
    min-width: 0;
}

.dou-sdf-catalog__field > span {
    display: block;
    text-align: center;
    margin-bottom: 7px;
    color: #536078;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dou-sdf-catalog__field select,
.dou-sdf-catalog__parts-heading input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #cfd8e6;
    border-radius: 12px;
    background: #fff;
    color: #142142;
    padding: 9px 12px;
    font-weight: 700;
    outline: none;
}

.dou-sdf-catalog__field select:focus,
.dou-sdf-catalog__parts-heading input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.dou-sdf-catalog__field select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.dou-sdf-catalog__context {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 12px 0 0;
    padding: 11px 14px;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    background: #fff;
}

.dou-sdf-catalog__context[hidden] {
    display: none;
}

.dou-sdf-catalog__context-label {
    flex: 0 0 auto;
    padding-top: 5px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.dou-sdf-catalog__crumbs {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.dou-sdf-catalog__crumb {
    display: inline-flex;
    max-width: 280px;
    min-width: 0;
    flex-direction: column;
}

.dou-sdf-catalog__crumb small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
}

.dou-sdf-catalog__crumb strong {
    overflow: hidden;
    color: #142142;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dou-sdf-catalog__crumb-separator {
    color: #c3cad5;
    font-size: 18px;
    line-height: 1;
}

.dou-sdf-catalog__status {
    min-height: 22px;
    margin: 10px 2px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dou-sdf-catalog__status.is-error {
    color: #b42318;
}

.dou-sdf-catalog__status.is-loading::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 7px;
    border: 2px solid #f3d49a;
    border-top-color: #f59e0b;
    border-radius: 50%;
    content: "";
    animation: dou-sdf-spin 0.7s linear infinite;
}

@keyframes dou-sdf-spin {
    to { transform: rotate(360deg); }
}

.dou-sdf-catalog__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.dou-sdf-catalog__drawing-panel,
.dou-sdf-catalog__parts-panel {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 33, 66, 0.05);
}

.dou-sdf-catalog__drawing-heading,
.dou-sdf-catalog__parts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfe;
}

.dou-sdf-catalog__drawing-heading > div:first-child > span,
.dou-sdf-catalog__parts-heading > div > span {
    color: #8993a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.dou-sdf-catalog__drawing-heading h3,
.dou-sdf-catalog__parts-heading h3 {
    margin: 2px 0 0;
    color: #142142;
    font-size: 17px;
    line-height: 1.25;
}

.dou-sdf-catalog__drawing-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    align-items: center;
}

.dou-sdf-catalog__drawing-count {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #536078;
    font-size: 11px;
    font-weight: 800;
}

.dou-sdf-catalog__zoom {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d5dce7;
    border-radius: 10px;
    background: #fff;
}

.dou-sdf-catalog__zoom button {
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid #e5eaf0;
    background: #fff;
    color: #142142;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.dou-sdf-catalog__zoom button:last-child {
    border-right: 0;
}

.dou-sdf-catalog__zoom button:hover,
.dou-sdf-catalog__zoom button:focus-visible {
    background: #fff7e8;
    outline: none;
}

.dou-sdf-catalog__drawing-stage {
    position: relative;
    display: flex;
    overflow: auto;
    align-items: center;
    justify-content: center;
    min-height: 540px;
    padding: 18px;
    background:
        linear-gradient(45deg, #fafbfd 25%, transparent 25%),
        linear-gradient(-45deg, #fafbfd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fafbfd 75%),
        linear-gradient(-45deg, transparent 75%, #fafbfd 75%);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dou-sdf-catalog__drawing-stage > img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 760px;
    flex: 0 0 auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.dou-sdf-catalog__hotspot-layer {
    position: absolute;
    inset: 18px;
    pointer-events: none;
}

.dou-sdf-hotspot {
    position: absolute;
    min-width: 14px;
    min-height: 14px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(245, 158, 11, 0.95);
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.17);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: background 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.dou-sdf-hotspot:hover,
.dou-sdf-hotspot:focus-visible,
.dou-sdf-hotspot.is-active {
    z-index: 4;
    background: rgba(245, 158, 11, 0.52);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.17);
    outline: none;
    transform: scale(1.08);
}

.dou-sdf-hotspot.is-active {
    border-color: #142142;
    box-shadow: 0 0 0 4px rgba(20, 33, 66, 0.15);
}

.dou-sdf-catalog__image-fallback {
    display: grid;
    gap: 7px;
    place-items: center;
    max-width: 430px;
    padding: 30px;
    text-align: center;
    color: #64748b;
}

.dou-sdf-catalog__image-fallback strong {
    color: #142142;
}

.dou-sdf-catalog__drawing-help {
    display: flex;
    gap: 6px;
    padding: 11px 16px;
    border-top: 1px solid #edf1f5;
    background: #fbfcfe;
    color: #667085;
    font-size: 12px;
}

.dou-sdf-catalog__drawing-help strong {
    color: #142142;
}

.dou-sdf-catalog__parts-panel {
    position: sticky;
    top: 16px;
}

.dou-sdf-selected {
    border-bottom: 1px solid #e8edf3;
    background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}

.dou-sdf-selected__empty {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px;
}

.dou-sdf-selected__marker,
.dou-sdf-selected__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #142142;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.dou-sdf-selected__empty strong {
    display: block;
    color: #142142;
    font-size: 14px;
}

.dou-sdf-selected__empty p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.dou-sdf-selected__content {
    padding: 16px;
}

.dou-sdf-selected__hero {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dou-sdf-selected__identity {
    min-width: 0;
}

.dou-sdf-selected__overline {
    display: block;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.dou-sdf-selected__code {
    display: block;
    margin-top: 2px;
    color: #142142;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.dou-sdf-selected__description {
    margin: 4px 0 0;
    color: #5e6a7f;
    font-size: 13px;
    line-height: 1.45;
}

.dou-sdf-selected__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
}

.dou-sdf-selected__facts > span {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    background: #f8fafc;
}

.dou-sdf-selected__facts small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.dou-sdf-selected__facts strong {
    color: #142142;
    font-size: 12px;
}

.dou-sdf-selected__copy {
    grid-column: 1 / -1;
    min-height: 38px;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    background: #fff;
    color: #142142;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dou-sdf-selected__copy:hover,
.dou-sdf-selected__copy:focus-visible {
    border-color: #f2b84a;
    background: #fffaf0;
    outline: none;
}

.dou-sdf-selected__commerce {
    margin-top: 13px;
    padding: 12px;
    border-radius: 12px;
}

.dou-sdf-selected__commerce.is-available {
    border: 1px solid #b7e4c7;
    background: #f4fff7;
}

.dou-sdf-selected__commerce.is-unavailable {
    border: 1px solid #f1d79b;
    background: #fffaf0;
}

.dou-sdf-selected__availability {
    display: block;
    color: #027a48;
    font-size: 12px;
    font-weight: 900;
}

.dou-sdf-selected__commerce.is-unavailable .dou-sdf-selected__availability {
    color: #9a5700;
}

.dou-sdf-selected__commerce > p {
    margin: 5px 0 0;
    color: #6c614e;
    font-size: 11px;
    line-height: 1.5;
}

.dou-sdf-selected__products {
    display: grid;
    gap: 9px;
    margin-top: 9px;
}

.dou-sdf-selected-product {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #d9eadf;
    border-radius: 10px;
    background: #fff;
}

.dou-sdf-selected-product img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.dou-sdf-selected-product__body {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.dou-sdf-selected-product__title {
    color: #142142;
    font-size: 12px;
    line-height: 1.35;
}

.dou-sdf-selected-product__sku {
    color: #667085;
    font-size: 10px;
}

.dou-sdf-selected-product__stock {
    width: fit-content;
    margin-top: 2px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 9px;
    font-weight: 900;
}

.dou-sdf-selected-product__stock.is-outofstock {
    background: #fef3f2;
    color: #b42318;
}

.dou-sdf-selected-product__stock.is-onbackorder {
    background: #fff8e9;
    color: #9a5700;
}

.dou-sdf-selected-product__price {
    margin-top: 2px;
    color: #142142;
    font-size: 13px;
    font-weight: 900;
}

.dou-sdf-selected-product__cta {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    background: #142142;
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
}

.dou-sdf-selected-product__cta:hover,
.dou-sdf-selected-product__cta:focus-visible {
    background: #22345f;
    outline: none;
}

.dou-sdf-catalog__parts-heading {
    align-items: flex-end;
}

.dou-sdf-catalog__parts-heading input {
    max-width: 215px;
    min-height: 40px;
    font-size: 12px;
}

.dou-sdf-catalog__parts-list {
    max-height: 610px;
    overflow: auto;
    padding: 10px;
}

.dou-sdf-part {
    margin: 0 0 8px;
    padding: 11px;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.dou-sdf-part:hover,
.dou-sdf-part:focus-visible,
.dou-sdf-part.is-active {
    border-color: #f2b84a;
    box-shadow: 0 7px 20px rgba(20, 33, 66, 0.08);
    transform: translateY(-1px);
}

.dou-sdf-part.is-active {
    border-left: 4px solid #f59e0b;
    background: #fffaf0;
}

.dou-sdf-part__top {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
}

.dou-sdf-part__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #142142;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.dou-sdf-part__identity {
    min-width: 0;
}

.dou-sdf-part__code {
    display: block;
    color: #142142;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.dou-sdf-part__description {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.dou-sdf-part__quantity {
    padding: 5px 7px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #536078;
    font-size: 10px;
    font-weight: 900;
}

.dou-sdf-part__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 0 43px;
}

.dou-sdf-part__hotspot-badge,
.dou-sdf-part__product-badge,
.dou-sdf-part__missing-badge {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.dou-sdf-part__hotspot-badge {
    background: #eef2f7;
    color: #536078;
}

.dou-sdf-part__product-badge {
    background: #ecfdf3;
    color: #027a48;
}

.dou-sdf-part__missing-badge {
    background: #fff8e9;
    color: #9a5700;
}

.dou-sdf-catalog__empty {
    margin: 0;
    padding: 18px;
    color: #667085;
    text-align: center;
}

@media (max-width: 1180px) {
    .dou-sdf-catalog__filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dou-sdf-catalog__workspace {
        grid-template-columns: 1fr;
    }

    .dou-sdf-catalog__parts-panel {
        position: static;
    }

    .dou-sdf-catalog__parts-list {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .dou-sdf-catalog {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .dou-sdf-catalog__header {
        margin-bottom: 18px;
    }

    .dou-sdf-catalog__header h2 {
        font-size: 29px;
    }

    .dou-sdf-catalog__header p {
        font-size: 14px;
    }

    .dou-sdf-catalog__filters {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px;
        border-radius: 15px;
    }

    .dou-sdf-catalog__field select {
        min-height: 50px;
        font-size: 14px;
    }

    .dou-sdf-catalog__context {
        padding: 10px 12px;
    }

    .dou-sdf-catalog__context-label {
        display: none;
    }

    .dou-sdf-catalog__crumb {
        max-width: 190px;
    }

    .dou-sdf-catalog__drawing-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dou-sdf-catalog__drawing-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dou-sdf-catalog__zoom button {
        min-width: 40px;
        height: 40px;
    }

    .dou-sdf-catalog__drawing-stage {
        min-height: 360px;
        padding: 10px;
        justify-content: flex-start;
    }

    .dou-sdf-catalog__hotspot-layer {
        inset: 10px;
    }

    .dou-sdf-hotspot {
        min-width: 20px;
        min-height: 20px;
    }

    .dou-sdf-catalog__drawing-help {
        flex-direction: column;
    }

    .dou-sdf-catalog__parts-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dou-sdf-catalog__parts-heading input {
        max-width: none;
        min-height: 46px;
    }

    .dou-sdf-selected__content {
        padding: 14px;
    }

    .dou-sdf-selected__code {
        font-size: 18px;
    }

    .dou-sdf-selected-product__cta {
        min-height: 46px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .dou-sdf-catalog__header h2 {
        font-size: 26px;
    }

    .dou-sdf-catalog__crumb-separator {
        display: none;
    }

    .dou-sdf-catalog__crumbs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .dou-sdf-catalog__crumb {
        max-width: none;
        padding: 6px 8px;
        border-radius: 8px;
        background: #f7f9fc;
    }

    .dou-sdf-selected__facts {
        grid-template-columns: 1fr 1fr;
    }
}

/* === DPF V2 UI POLISH V1: LANGUAGE SWITCHER + PRODUCT CARDS === */
.dou-sdf-catalog__language {
    gap: 12px;
    margin-bottom: 14px;
}

.dou-sdf-catalog__language-label {
    color: #667085;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dou-sdf-catalog__language-buttons {
    gap: 6px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button {
    display: inline-flex;
    min-width: 54px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 33, 66, .04);
    color: #667085;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button:hover,
.dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button:focus-visible {
    border-color: #f2b84a;
    background: #fffaf0;
    box-shadow: 0 5px 14px rgba(20, 33, 66, .08);
    color: #142142;
    outline: none;
    transform: translateY(-1px);
}

.dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button.is-active {
    border-color: #142142;
    background: #142142;
    box-shadow: 0 6px 16px rgba(20, 33, 66, .18);
    color: #fff;
}

.dou-sdf-catalog__language-flag {
    font-size: 18px;
    line-height: 1;
}

.dou-sdf-catalog__language-code {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
}

.dou-sdf-selected-product {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
}

.dou-sdf-selected-product.is-no-image {
    grid-template-columns: minmax(0, 1fr);
}

.dou-sdf-selected-product.is-no-image .dou-sdf-selected-product__body {
    grid-column: 1 / -1;
}

.dou-sdf-selected-product img {
    width: 64px;
    height: 64px;
}

.dou-sdf-selected-product__title {
    font-size: 13px;
    font-weight: 850;
}

.dou-sdf-selected-product__sku {
    font-size: 10px;
}

.dou-sdf-selected-product__price {
    font-size: 14px;
}

@media (max-width: 760px) {
    .dou-sdf-catalog__language {
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button {
        min-width: 52px;
        min-height: 44px;
        padding: 0 9px;
    }

    .dou-sdf-selected-product img {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 430px) {
    .dou-sdf-catalog__language-label {
        display: none;
    }

    .dou-sdf-catalog__language {
        justify-content: flex-end;
    }
}

/* === DPF UI V1.1 REAL SVG FLAGS === */
.dou-sdf-catalog__language-flag {
    display: inline-flex;
    overflow: hidden;
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    border: 1px solid rgba(20, 33, 66, .12);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 33, 66, .08);
    font-size: 0;
    line-height: 0;
}

.dou-sdf-catalog__language-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dou-sdf-catalog__language-buttons .dou-sdf-catalog__language-button.is-active .dou-sdf-catalog__language-flag {
    border-color: rgba(255, 255, 255, .35);
}

.dou-sdf-search-result:only-child {
    grid-column: 1 / -1;
}

/* === DPF 0.4.4 HYBRID V1 FALLBACK === */
.dou-sdf-catalog__legacy[hidden] {
    display: none !important;
}

.dou-sdf-catalog__legacy {
    margin: 18px 0 0;
    padding: 22px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #fff;
}

.dou-sdf-catalog__legacy-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dou-sdf-catalog__legacy-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.dou-sdf-catalog__legacy-text {
    margin: 0 0 14px;
    max-width: 900px;
    line-height: 1.6;
}

.dou-sdf-catalog__legacy-count {
    display: block;
    margin: 0 0 12px;
}

.dou-sdf-catalog__legacy-empty {
    margin: 12px 0 0;
}

/* === DPF 0.4.4 HYBRID COMPACT LEGACY GRID === */
.dou-sdf-catalog__legacy .dou-sdf-selected__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dou-sdf-catalog__legacy .dou-sdf-selected-product {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: minmax(68px, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
}

.dou-sdf-catalog__legacy .dou-sdf-selected-product img {
    width: 68px;
    height: 68px;
}

.dou-sdf-catalog__legacy .dou-sdf-selected-product__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 11px;
    line-height: 1.3;
}

.dou-sdf-catalog__legacy .dou-sdf-selected-product__price {
    font-size: 12px;
}

.dou-sdf-catalog__legacy .dou-sdf-selected-product__cta {
    grid-column: 1 / -1;
    min-height: 32px;
    border-radius: 8px;
    font-size: 10px;
}

@media (max-width: 1200px) {
    .dou-sdf-catalog__legacy .dou-sdf-selected__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dou-sdf-catalog__legacy .dou-sdf-selected__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .dou-sdf-catalog__legacy {
        padding: 15px;
    }

    .dou-sdf-catalog__legacy .dou-sdf-selected__products {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dou-sdf-catalog__legacy .dou-sdf-selected-product {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-template-rows: auto;
        gap: 8px;
        min-height: 0;
        padding: 8px;
    }

    .dou-sdf-catalog__legacy .dou-sdf-selected-product img {
        width: 58px;
        height: 58px;
    }

    .dou-sdf-catalog__legacy .dou-sdf-selected-product__cta {
        grid-column: auto;
        min-width: 84px;
        padding: 0 10px;
    }
}

/* === DPF 0.4.4 PERSISTENT CLEAR ACTION === */
.dou-sdf-catalog__clear-bar {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 10px;
}

.dou-sdf-catalog__clear-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    margin-right: auto;
    padding: 0 14px;
    border: 1px solid #d6dde8;
    border-radius: 9px;
    background: #fff;
    color: #142142;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.dou-sdf-catalog__clear-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dou-sdf-catalog__clear-all:hover,
.dou-sdf-catalog__clear-all:focus-visible {
    border-color: #f2b84a;
    background: #fffaf0;
    outline: none;
}
