.dspc-section {
    --dspc-section-bg: #fff;
    --dspc-section-accent: #4f8fd9;
    --dspc-border: rgba(223, 230, 239, 0.9);
    --dspc-text: #172033;
    --dspc-muted: #5d6b7f;
    --dspc-shadow-hover: 0 14px 28px rgba(16, 31, 54, 0.12);
    position: relative;
    overflow: hidden;
    margin: 38px 0;
    padding: 26px 20px 24px;
    border-top: 1px solid var(--dspc-border);
    border-bottom: 1px solid var(--dspc-border);
    background:
        linear-gradient(180deg, var(--dspc-section-bg) 0%, #fff 100%);
}

.dspc-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dspc-section-accent);
    opacity: 0.72;
}

.dspc-section-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
}

.dspc-section-copy {
    min-width: 0;
}

.dspc-section h2 {
    margin: 0 0 10px;
    color: var(--dspc-section-accent);
    font-size: clamp(23px, 4vw, 32px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.dspc-section-intro {
    max-width: 920px;
    margin: 0;
    padding: 12px 14px;
    border-left: 4px solid var(--dspc-section-accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--dspc-muted);
    font-size: 16px;
    line-height: 1.55;
    box-shadow: 0 8px 18px rgba(16, 31, 54, 0.05);
}

.dspc-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 0;
}

.dspc-nav-button {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 32%, white);
    border-radius: 50%;
    background: #fff;
    color: var(--dspc-section-accent);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 31, 54, 0.08);
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dspc-nav-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.dspc-prev:before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.dspc-next:before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.dspc-nav-button:hover,
.dspc-nav-button:focus {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--dspc-section-accent) 46%, white);
    background: color-mix(in srgb, var(--dspc-section-accent) 12%, white);
    color: var(--dspc-section-accent);
    box-shadow: var(--dspc-shadow-hover);
    outline: none;
}

.dspc-nav-button.is-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dspc-admin-button,
.dspc-admin-toggle {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent, #4f8fd9) 34%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--dspc-section-accent, #4f8fd9) 12%, white);
    color: color-mix(in srgb, var(--dspc-section-accent, #4f8fd9) 74%, #111827);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 31, 54, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dspc-admin-button:hover,
.dspc-admin-button:focus,
.dspc-admin-toggle:hover,
.dspc-admin-toggle:focus {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--dspc-section-accent, #4f8fd9) 18%, white);
    box-shadow: 0 10px 22px rgba(16, 31, 54, 0.1);
    outline: none;
}

.dspc-admin-toggle[aria-expanded="true"] {
    background: var(--dspc-section-accent);
    color: #fff;
    border-color: var(--dspc-section-accent);
}

.dspc-admin-panel {
    position: relative;
    z-index: 1;
    margin: 18px 10px 0;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 22%, white);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 24px rgba(16, 31, 54, 0.07);
}

.dspc-admin-panel[hidden] {
    display: none;
}

.dspc-admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.dspc-admin-panel-header strong {
    color: color-mix(in srgb, var(--dspc-section-accent) 74%, #111827);
    font-size: 15px;
    line-height: 1.3;
}

.dspc-admin-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 26%, white);
    border-radius: 10px;
    background: #fff;
    color: color-mix(in srgb, var(--dspc-section-accent) 72%, #111827);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(16, 31, 54, 0.08);
}

.dspc-admin-notice[hidden] {
    display: none;
}

.dspc-admin-notice.is-success {
    border-color: rgba(36, 148, 92, 0.3);
    color: #16653c;
    background: #f0fff6;
}

.dspc-admin-notice.is-error {
    border-color: rgba(201, 37, 53, 0.3);
    color: #9f1f2d;
    background: #fff5f5;
}

.dspc-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.dspc-carousel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 10px;
    padding: 8px 4px 22px;
    scroll-snap-type: x mandatory;
    scroll-padding: 4px;
    scrollbar-width: thin;
}

.dspc-carousel > * {
    scroll-snap-align: start;
}

.dspc-admin-carousel {
    margin: 0;
}

.dspc-admin-carousel .dspc-slide {
    cursor: grab;
}

.dspc-section.is-loading .dspc-admin-carousel .dspc-slide {
    cursor: wait;
}

.dspc-store-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    color: var(--dspc-section-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dspc-store-link:hover,
.dspc-store-link:focus {
    color: var(--dspc-section-accent);
    text-decoration-thickness: 2px;
}

.dspc-store-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    fill: currentColor;
}

.dspc-slide {
    position: relative;
}

.dspc-exclude {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    border: 1px solid rgba(201, 37, 53, 0.34);
    border-radius: 999px;
    box-sizing: border-box;
    background: #fff;
    color: #c92535;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(16, 31, 54, 0.12);
}

.dspc-exclude:hover,
.dspc-exclude:focus {
    transform: scale(1.06);
    outline: none;
}

.dspc-slide.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.dspc-slide.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(0.98);
}

.dspc-ghost {
    opacity: 0.45;
    background: color-mix(in srgb, var(--dspc-section-accent) 10%, white);
    border-style: dashed;
}

.dspc-section.is-dragging-products .dspc-carousel {
    scroll-snap-type: none;
}

.dspc-section.is-dragging-products .dspc-slide,
.dspc-section.is-dragging-products .dspc-slide:hover,
.dspc-section.is-dragging-products .dspc-slide:focus-within {
    transition: none;
}

.dspc-section.is-dragging-products .dspc-slide:not(.is-dragging):hover,
.dspc-section.is-dragging-products .dspc-slide:not(.is-dragging):focus-within {
    transform: none;
}

.dspc-choice-panel {
    position: absolute;
    inset: 8px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 28%, white);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(16, 31, 54, 0.2);
    backdrop-filter: blur(8px);
    cursor: auto;
}

.dspc-choice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: color-mix(in srgb, var(--dspc-section-accent) 78%, #111827);
    font-size: 13px;
    line-height: 1.2;
}

.dspc-choice-close {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 1px solid rgba(201, 37, 53, 0.24);
    border-radius: 999px;
    box-sizing: border-box;
    background: #fff;
    color: #c92535;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.dspc-choice-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.dspc-choice-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 7px;
    border: 1px solid rgba(223, 230, 239, 0.95);
    border-radius: 9px;
    background: color-mix(in srgb, var(--dspc-section-bg) 48%, white);
    color: #172033;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dspc-choice-item.is-image-checking {
    display: none;
}

.dspc-choice-item:hover,
.dspc-choice-item:focus {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--dspc-section-accent) 38%, white);
    background: #fff;
    outline: none;
}

.dspc-choice-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 132px;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
}

.dspc-choice-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dspc-choice-discount {
    position: absolute;
    top: 7px;
    left: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--dspc-section-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 31, 54, 0.18);
}

.dspc-choice-copy {
    display: block;
    min-width: 0;
}

.dspc-choice-copy strong,
.dspc-choice-copy span,
.dspc-choice-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dspc-choice-copy strong {
    color: #172033;
    font-size: 12px;
    line-height: 1.25;
}

.dspc-choice-copy span {
    color: var(--dspc-section-accent);
    font-size: 11px;
    font-weight: 800;
}

.dspc-choice-copy em {
    color: #5d6b7f;
    font-size: 11px;
    font-style: normal;
}

.dspc-choice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.dspc-choice-auto,
.dspc-choice-remove {
    min-height: 32px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 34%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--dspc-section-accent) 12%, white);
    color: color-mix(in srgb, var(--dspc-section-accent) 74%, #111827);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.dspc-choice-remove {
    border-color: rgba(201, 37, 53, 0.28);
    background: #fff5f5;
    color: #9f1f2d;
}

.dspc-choice-loading,
.dspc-choice-empty {
    display: block;
    padding: 10px 4px;
    color: #5d6b7f;
    font-size: 12px;
    line-height: 1.35;
}

.dcb-slide,
.ndc-slide,
.poc-slide {
    flex: 0 0 auto;
    width: 200px;
    border: 1px solid color-mix(in srgb, var(--dspc-section-accent) 24%, white);
    border-radius: 10px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16, 31, 54, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dcb-slide:hover,
.ndc-slide:hover,
.poc-slide:hover,
.dcb-slide:focus-within,
.ndc-slide:focus-within,
.poc-slide:focus-within {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--dspc-section-accent) 50%, white);
    box-shadow: 0 16px 28px rgba(16, 31, 54, 0.14);
}

.dspc-slide.is-dragging,
.dspc-slide.is-dragging:hover {
    transform: scale(0.98);
}

.dcb-product,
.ndc-product,
.poc-product {
    display: block;
    text-decoration: none;
    color: #333;
}

.dcb-img-wrap,
.ndc-img-wrap,
.poc-img-wrap {
    position: relative;
}

.dcb-img-wrap img,
.ndc-img-wrap img,
.poc-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.dcb-discount,
.ndc-discount,
.poc-discount {
    position: absolute;
    top: 5px;
    left: 5px;
    background: red;
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #fff;
}

.dcb-title-text,
.ndc-title-text,
.poc-title-text {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.dcb-price,
.ndc-price,
.poc-price {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
}

.dcb-sale,
.ndc-sale,
.poc-sale {
    color: #e53935;
    font-weight: bold;
}

.dcb-regular,
.ndc-regular,
.poc-regular {
    color: #888;
    text-decoration: line-through;
}

.dcb-meta,
.ndc-meta,
.poc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

.dcb-store,
.ndc-store,
.poc-store {
    max-width: 104px;
}

.ndc-store {
    max-width: 122px;
}

.dcb-store span,
.ndc-store span,
.poc-store span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dcb-views,
.ndc-views,
.poc-views {
    flex: 0 0 auto;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.ndc-views {
    font-size: 11px;
}

.dcb-badge-saved,
.ndc-badge-saved,
.poc-badge-saved {
    border: 1px solid #fff;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #fab4a8 0%, #cc0000 100%);
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
}

.dcb-panel-inner,
.ndc-panel-inner,
.poc-panel-inner {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.dcb-panel-item,
.ndc-panel-item,
.poc-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    transition: transform 0.2s ease;
    background: #fff;
}

.dcb-panel-item:hover,
.ndc-panel-item:hover,
.poc-panel-item:hover {
    transform: scale(1.05);
    border-color: #aaa;
}

.dcb-panel-item img,
.ndc-panel-item img,
.poc-panel-item img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 6px;
}

.dcb-badges,
.ndc-badges,
.poc-badges {
    text-align: center;
}

.dcb-badge-discount,
.ndc-badge-discount,
.poc-badge-discount {
    display: block;
    font-weight: bold;
    color: #e53935;
}

.dcb-saved,
.ndc-saved,
.poc-saved {
    font-size: 12px;
    color: green;
}

.dcb-ghost,
.ndc-ghost,
.poc-ghost {
    opacity: 0.6;
    background: #eee;
    border: 1px dashed #278086;
}

@media (max-width: 780px) {
    .dspc-section {
        margin: 28px 0;
        padding: 22px 12px 20px;
    }

    .dspc-section-header {
        display: block;
    }

    .dspc-carousel-controls {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .dspc-section-intro {
        font-size: 15px;
    }

    .dspc-admin-panel {
        margin: 16px 0 0;
        padding: 12px;
    }

    .dspc-admin-panel-header {
        display: block;
    }

    .dspc-admin-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}
