body:has(.page-content-cmp) {
    background: #000;
}

.page-content.page-content-cmp {
    width: 100%;
    max-width: none;
    margin: calc(var(--header-height, 86px) * -1) 0 0;
    padding: 0;
    background: #000;
    overflow-x: clip;
}

.cmp-hero {
    position: relative;
    min-height: var(--app-height, 100vh);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #000;
}

.cmp-hero-inner {
    position: relative;
    min-height: var(--app-height, 100vh);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--header-height, 86px) + 1rem) clamp(1.5rem, 4vw, 4rem) 4rem;
}

.cmp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: var(--cmp-hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.08);
    transition: none;
    will-change: transform, opacity;
    z-index: 0;
}

.cmp-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.cmp-hero.is-revealed .cmp-hero-bg {
    animation: cmpHeroBgIn 1.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cmpHeroBgIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cmpHeroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.cmp-hero-title {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.15rem, 0.9vw, 0.55rem);
    margin: 0;
    padding-top: 0.12em;
    padding-bottom: clamp(0.18rem, 0.8vw, 0.65rem);
    overflow: visible;
    max-width: 100%;
}

.cmp-hero-line {
    display: block;
    max-width: 100%;
    font-family: "area-variable", "Montserrat", sans-serif;
    text-transform: uppercase;
    color: var(--text-strong);
    white-space: nowrap;
}

.cmp-hero-line-top {
    font-size: clamp(1.15rem, 4.1vw, 2.9rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.22em;
}

.cmp-hero-line-bottom {
    font-size: clamp(1.9rem, 9vw, 8.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    padding-bottom: 0.08em;
}

.cmp-hero-title .cmp-hero-char {
    display: inline-block;
}

.cmp-hero-rule {
    position: relative;
    z-index: 1;
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 10%,
        rgba(255, 255, 255, 0.58) 50%,
        rgba(255, 255, 255, 0.22) 90%,
        rgba(255, 255, 255, 0) 100%
    );
    margin: 1.2rem 0 0;
    transform-origin: left center;
}

.cmp-hero-sub {
    position: relative;
    z-index: 1;
    font-family: "Cardo", serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.35rem);
    color: var(--muted);
    margin: 1.15rem 0 0;
    letter-spacing: 0.01em;
}

.cmp-selector {
    position: relative;
    background: #000;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
}

.cmp-selector-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.cmp-selector-head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cmp-selector-title {
    font-family: "area-variable", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.cmp-selector-desc {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-weight: 400;
}

.cmp-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

.cmp-slot {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #18181f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(340px, 45vw, 480px);
    cursor: pointer;
    transition: border-color 0.35s ease, background-color 0.35s ease;
    overflow: hidden;
}

.cmp-slot:hover {
    border-color: rgba(215, 25, 25, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.cmp-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.cmp-slot-plus {
    position: relative;
    width: 48px;
    height: 48px;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cmp-slot:hover .cmp-slot-plus {
    opacity: 0.7;
    transform: scale(1.1);
}

.cmp-slot-plus::before,
.cmp-slot-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
}

.cmp-slot-plus::before {
    width: 1px;
    height: 100%;
    transform: translate(-50%, -50%);
}

.cmp-slot-plus::after {
    width: 100%;
    height: 1px;
    transform: translate(-50%, -50%);
}

.cmp-slot-plus-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.cmp-slot.is-filled {
    cursor: default;
    justify-content: flex-start;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
}

.cmp-slot.is-filled:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.cmp-slot-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background-color 0.2s ease;
    padding: 0;
}

.cmp-slot-remove:hover {
    background: rgba(215, 25, 25, 0.3);
}

.cmp-slot-remove svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.cmp-slot-image-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin-bottom: 1rem;
}

.cmp-slot-image {
    max-width: 100%;
    max-height: clamp(180px, 28vw, 300px);
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    animation: cmpSlotImageIn 0.5s 0.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cmpSlotImageIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cmp-slot-info {
    width: 100%;
    text-align: center;
}

.cmp-slot-name {
    font-family: "area-variable", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #fff;
    margin: 0 0 0.7rem;
    letter-spacing: -0.01em;
}

.cmp-slot-color-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}


.cmp-slot-swatches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cmp-slot-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cmp-slot-swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cmp-slot-swatch.is-active {
    border-color: #fff;
}

.cmp-slot-swatch:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.cmp-slot-swatch.is-active:hover {
    border-color: #fff;
}

.cmp-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cmp-dropdown-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cmp-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 2001;
    width: min(92vw, 720px);
    max-height: 80vh;
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.cmp-dropdown.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.cmp-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.cmp-dropdown-title {
    font-family: "area-variable", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.cmp-dropdown-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.cmp-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cmp-dropdown-close svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.cmp-dropdown-list {
    overflow-y: auto;
    flex: 1;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.cmp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.cmp-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.cmp-dropdown-item.is-disabled {
    opacity: 0.25;
    pointer-events: none;
}

.cmp-dropdown-item-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0.9);
}

.cmp-dropdown-item-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.cmp-compare {
    background: #0a0a0c;
    min-height: 0;
    position: relative;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmp-compare.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cmp-compare-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem);
}

.cmp-head-grid {
    display: grid;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    align-items: end;
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.cmp-head-grid[data-cols="2"] {
    grid-template-columns: minmax(90px, 0.7fr) repeat(2, minmax(0, 1fr));
}

.cmp-head-grid[data-cols="3"] {
    grid-template-columns: minmax(90px, 0.7fr) repeat(3, minmax(0, 1fr));
}

.cmp-head-col {
    text-align: center;
    min-width: 0;
}

.cmp-head-img {
    max-width: 100%;
    max-height: clamp(80px, 14vw, 180px);
    object-fit: contain;
    margin-bottom: 0.6rem;
}

.cmp-head-name {
    font-family: "area-variable", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.3vw, 1.15rem);
    color: #fff;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmp-section-title {
    font-family: "area-variable", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 0.8rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cmp-row {
    display: grid;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: clamp(0.7rem, 1.2vw, 1rem) 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cmp-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cmp-row[data-cols="2"] {
    grid-template-columns: minmax(140px, 0.7fr) repeat(2, minmax(0, 1fr));
}

.cmp-row[data-cols="3"] {
    grid-template-columns: minmax(140px, 0.7fr) repeat(3, minmax(0, 1fr));
}

.cmp-row-label {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.cmp-row-val {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.cmp-row-label {
    position: relative;
}

.cmp-row.is-diff .cmp-row-label,
.cmp-row.has-dot .cmp-row-label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    padding-left: 0;
}

.cmp-row.is-diff .cmp-row-val,
.cmp-row.has-dot .cmp-row-val {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.cmp-row.is-diff .cmp-row-label::before,
.cmp-row.has-dot .cmp-row-label::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d71919;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(215, 25, 25, 0.15);
}

.cmp-row.is-same .cmp-row-val {
    color: #fff;
}

.cmp-palet-group {
    padding: clamp(0.5rem, 1vw, 0.8rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cmp-palet-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cmp-palet-row {
    display: grid;
    align-items: baseline;
    padding: 0.25rem 0;
}

.cmp-palet-row[data-cols="2"] {
    grid-template-columns: minmax(140px, 0.7fr) repeat(2, minmax(0, 1fr));
}

.cmp-palet-row[data-cols="3"] {
    grid-template-columns: minmax(140px, 0.7fr) repeat(3, minmax(0, 1fr));
}

.cmp-palet-label {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.cmp-palet-val {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    font-weight: 500;
    color: #fff;
    text-align: center;
}

@media (max-width: 1024px) {
    .cmp-dropdown-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .cmp-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.5rem, 2vw, 1rem);
        max-width: 100%;
        margin: 0 auto;
    }

    .cmp-slots > .cmp-slot:nth-child(3) {
        display: none;
    }

    .cmp-slot {
        min-height: clamp(240px, 40vw, 340px);
    }

    .cmp-slot.is-filled {
        padding: clamp(1rem, 3vw, 1.5rem) clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem);
    }

    .cmp-slot-image {
        max-height: clamp(100px, 22vw, 180px);
    }

    .cmp-slot-name {
        font-size: clamp(0.85rem, 2.6vw, 1rem);
    }

    .cmp-slot-swatches {
        gap: 6px;
    }

    .cmp-slot-swatch {
        width: 24px;
        height: 24px;
    }

    .cmp-compare-inner {
        padding-left: clamp(0.75rem, 3vw, 1.5rem);
        padding-right: clamp(0.75rem, 3vw, 1.5rem);
    }

    .cmp-head-grid[data-cols="2"],
    .cmp-head-grid[data-cols="3"],
    .cmp-row[data-cols="2"],
    .cmp-row[data-cols="3"],
    .cmp-palet-row[data-cols="2"],
    .cmp-palet-row[data-cols="3"] {
        grid-template-columns: minmax(70px, 0.9fr) repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .cmp-head-img {
        max-height: clamp(60px, 18vw, 120px);
    }

    .cmp-head-name {
        font-size: clamp(0.7rem, 2.6vw, 0.9rem);
    }

    .cmp-row-label,
    .cmp-palet-label {
        font-size: clamp(0.65rem, 2.4vw, 0.8rem);
        word-break: break-word;
    }

    .cmp-row-val,
    .cmp-palet-val {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
        word-break: break-word;
    }

    .cmp-palet-title {
        font-size: clamp(0.65rem, 2.3vw, 0.8rem);
    }

    .cmp-section-title {
        font-size: clamp(0.75rem, 2.4vw, 0.9rem);
    }

    .cmp-row.is-diff .cmp-row-label::before,
    .cmp-row.has-dot .cmp-row-label::before {
        left: -10px;
        width: 4px;
        height: 4px;
        box-shadow: 0 0 0 2px rgba(215, 25, 25, 0.15);
    }
}

@media (max-width: 768px) {
    .cmp-hero-inner {
        padding-top: calc(var(--header-height, 86px) + 0.8rem);
        padding-bottom: 3.25rem;
    }

    .cmp-hero-line-top {
        font-size: clamp(0.95rem, 4.4vw, 1.65rem);
        letter-spacing: 0.17em;
    }

    .cmp-hero-line-bottom {
        font-size: clamp(1.7rem, 10.6vw, 4.8rem);
    }

    .cmp-dropdown {
        width: 96vw;
        max-height: 85vh;
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        border-bottom: none;
    }

    .cmp-dropdown.is-open {
        transform: translateX(-50%) translateY(0);
    }

    .cmp-dropdown-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cmp-hero-inner {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: calc(var(--header-height, 86px) + 0.65rem);
        padding-bottom: 2.8rem;
    }

    .cmp-hero-line-top {
        font-size: clamp(0.88rem, 4.8vw, 1.15rem);
        letter-spacing: 0.12em;
    }

    .cmp-hero-line-bottom {
        font-size: clamp(1.55rem, 10.8vw, 3.5rem);
    }

    .cmp-slot {
        min-height: clamp(220px, 52vw, 280px);
    }

    .cmp-dropdown-item {
        padding: 0.6rem 0.8rem;
    }

    .cmp-dropdown-item-img {
        width: 44px;
        height: 44px;
    }

    .cmp-head-grid[data-cols="2"],
    .cmp-head-grid[data-cols="3"],
    .cmp-row[data-cols="2"],
    .cmp-row[data-cols="3"],
    .cmp-palet-row[data-cols="2"],
    .cmp-palet-row[data-cols="3"] {
        grid-template-columns: minmax(64px, 0.8fr) repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .cmp-row-label,
    .cmp-palet-label {
        font-size: 0.65rem;
    }

    .cmp-row-val,
    .cmp-palet-val {
        font-size: 0.7rem;
    }
}
