.product-layout-magchange {
    --magchange-accent: #ffb900;
    --magchange-ink: #10110d;
    --magchange-muted: #64645c;
    --magchange-border: #e3e3dc;
    background: #f7f7f2;
    padding-bottom: 112px;
}

.product-layout-magchange .page-main {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.product-layout-magchange .magchange-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 32px;
    background: #10110d;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.product-layout-magchange .magchange-hero-image {
    min-width: 0;
    text-align: center;
}

.product-layout-magchange .magchange-hero-image .product-image-container {
    display: block;
    max-width: 320px;
    margin: 0 auto;
}

.product-layout-magchange .magchange-hero-content h2 {
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.product-layout-magchange .magchange-hero-content p {
    color: #d0d0c7;
    font-size: 14px;
    line-height: 1.6;
}

.product-layout-magchange .magchange-device-fields {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.product-layout-magchange .magchange-device-fields label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.product-layout-magchange .magchange-device-fields select {
    width: 100%;
    height: 48px;
    padding-left: 12px;
    border: 1px solid var(--magchange-border);
    border-radius: 8px;
    background-color: #f7f8f4;
}

.product-layout-magchange .magchange-device-fields select:focus-visible {
    outline: 2px solid var(--magchange-ink);
    outline-offset: 2px;
}

.product-layout-magchange .magchange-case-price {
    margin-top: 24px;
}

.product-layout-magchange .magchange-case-price .price {
    font-size: 26px;
    font-weight: 700;
}

.product-layout-magchange .magchange-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    min-height: 310px;
    padding: 24px 12px;
    background: var(--magchange-accent);
    border-radius: 14px;
    color: var(--magchange-ink);
}

.product-layout-magchange .magchange-selection-prompt {
    color: var(--magchange-muted);
    font-size: 14px;
}

.product-layout-magchange .magchange-selection-prompt {
    margin: 32px 0;
    text-align: center;
}

.product-layout-magchange .page-title {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -.025em;
    color: var(--magchange-ink);
}

.product-layout-magchange .magchange-plates-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 24px;
    text-align: left;
}

.product-layout-magchange .magchange-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--magchange-muted);
}

.product-layout-magchange .magchange-plates-title {
    margin: 6px 0 10px;
    text-align: left;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--magchange-ink);
    letter-spacing: -.03em;
}

.product-layout-magchange .magchange-plates-heading p {
    margin: 0;
    color: var(--magchange-muted);
    font-size: 14px;
}

.product-layout-magchange .magchange-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-layout-magchange .magchange-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 2px solid var(--magchange-border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgb(34 37 31 / 4%);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.product-layout-magchange .magchange-card.is-selected {
    border-color: var(--magchange-accent);
    box-shadow: 0 0 0 1px var(--magchange-accent);
}

.product-layout-magchange .magchange-card-image {
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.product-layout-magchange .magchange-card-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.product-layout-magchange .magchange-card-name {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.product-layout-magchange .magchange-card-name a {
    color: var(--magchange-ink);
}

.product-layout-magchange .magchange-card-price {
    margin-top: auto;
    margin-bottom: 10px;
}

.product-layout-magchange .magchange-card-price .price-box {
    margin: 0;
}

.product-layout-magchange .magchange-card-price .price {
    font-size: 16px;
    font-weight: 600;
}

.product-layout-magchange .magchange-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.product-layout-magchange .magchange-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.product-layout-magchange .magchange-choice-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid var(--magchange-border);
    border-radius: 8px;
    color: var(--magchange-ink);
    font-weight: 600;
    font-size: 13px;
    transition: background-color .18s ease, border-color .18s ease;
}

.product-layout-magchange .magchange-choice-icon::before {
    content: '+';
    font-size: 20px;
    line-height: 1;
}

.product-layout-magchange .magchange-checkbox:checked + .magchange-choice-face {
    background: var(--magchange-accent);
    border-color: var(--magchange-accent);
}

.product-layout-magchange .magchange-checkbox:checked + .magchange-choice-face .magchange-choice-icon::before {
    content: '\2713';
    font-size: 16px;
}

.product-layout-magchange .magchange-checkbox:focus-visible + .magchange-choice-face,
.product-layout-magchange .magchange-submit:focus-visible,
.product-layout-magchange .magchange-load-more:focus-visible {
    outline: 2px solid var(--magchange-ink);
    outline-offset: 3px;
}

.product-layout-magchange .magchange-choice:hover .magchange-choice-face {
    border-color: var(--magchange-ink);
}

.product-layout-magchange .magchange-choice.is-unavailable {
    opacity: .5;
    cursor: not-allowed;
}

.product-layout-magchange .magchange-choice.is-unavailable .magchange-choice-icon {
    display: none;
}

.product-layout-magchange .magchange-cartbar {
    position: fixed;
    z-index: 90;
    inset: auto 0 0;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 3px solid var(--magchange-accent);
    box-shadow: 0 -4px 24px rgb(34 37 31 / 8%);
}

.product-layout-magchange .magchange-cartbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1152px;
    margin: 0 auto;
}

.product-layout-magchange .magchange-cartbar-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--magchange-ink);
    font-size: 15px;
}

.product-layout-magchange .magchange-cartbar-summary > span {
    color: var(--magchange-muted);
    font-size: 13px;
}

.product-layout-magchange .magchange-cartbar .magchange-submit,
.product-layout-magchange .magchange-load-more {
    min-height: 52px;
    padding: 12px 28px;
    background: var(--magchange-accent);
    color: var(--magchange-ink);
    border: 1px solid var(--magchange-accent);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
}

.product-layout-magchange .magchange-cartbar .magchange-submit:hover,
.product-layout-magchange .magchange-load-more:hover {
    background: #f2bf00;
    border-color: #f2bf00;
}

.product-layout-magchange .magchange-cartbar .magchange-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 1023px) {
    .product-layout-magchange .magchange-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product-layout-magchange .magchange-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 20px;
    }

    .product-layout-magchange .magchange-preview {
        min-height: 160px;
    }

    .product-layout-magchange {
        padding-bottom: 160px;
    }

    .product-layout-magchange .page-main {
        padding: 16px 12px 32px;
    }

    .product-layout-magchange .magchange-plates-title {
        font-size: 26px;
        margin: 10px 0;
    }

    .product-layout-magchange .magchange-plates-heading {
        gap: 12px;
        margin: 0 0 20px;
    }

    .product-layout-magchange .magchange-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-layout-magchange .magchange-card {
        padding: 10px;
    }

    .product-layout-magchange .magchange-card-image img {
        height: 140px;
    }

    .product-layout-magchange .magchange-card-name {
        font-size: 13px;
    }

    .product-layout-magchange .magchange-cartbar {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .product-layout-magchange .magchange-cartbar-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-layout-magchange .magchange-cartbar-summary {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .product-layout-magchange .magchange-cartbar-summary strong {
        font-size: 12px;
    }

    .product-layout-magchange .magchange-cartbar-summary > span {
        font-size: 11px;
    }

    .product-layout-magchange .magchange-cartbar .magchange-submit,
.product-layout-magchange .magchange-load-more {
        width: 100%;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-layout-magchange .magchange-card,
    .product-layout-magchange .magchange-choice-face {
        transition: none;
    }
}

.product-layout-magchange .magchange-hero-content h2 strong,
.product-layout-magchange .magchange-hero-content .magchange-eyebrow {
    color: var(--magchange-accent);
}

.product-layout-magchange .magchange-device-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-layout-magchange .magchange-device-fields select {
    color: var(--magchange-ink);
    background-color: #fff;
}

.product-layout-magchange .magchange-device-fields select:disabled {
    background-color: #d5d5ce;
    color: #57574f;
    opacity: 1;
}

.product-layout-magchange .magchange-device-fields select:focus-visible {
    outline-color: var(--magchange-accent);
}

.product-layout-magchange .magchange-preview-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
}

.product-layout-magchange .magchange-preview small {
    max-width: 240px;
    color: #333329;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.product-layout-magchange .magchange-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 10px 0;
}

.product-layout-magchange .magchange-diagram-case,
.product-layout-magchange .magchange-diagram-plate {
    position: relative;
    display: block;
    width: 88px;
    height: 155px;
    border: 6px solid #252621;
    border-radius: 22px;
    box-sizing: border-box;
    transform: rotate(-9deg);
    box-shadow: 7px 10px 0 rgb(0 0 0 / 10%);
}

.product-layout-magchange .magchange-diagram-case::before,
.product-layout-magchange .magchange-diagram-plate::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 7px;
    width: 29px;
    height: 30px;
    border: 3px solid #252621;
    border-radius: 8px;
    background: var(--magchange-accent);
}

.product-layout-magchange .magchange-diagram-plate {
    border: 2px solid #252621;
    border-radius: 18px;
    background: repeating-linear-gradient(135deg, #e75a4a 0 18px, #ffdac1 18px 36px, #983e41 36px 54px);
    transform: rotate(9deg);
}

.product-layout-magchange .magchange-diagram-plus {
    font-size: 27px;
    font-weight: 400;
}

.product-layout-magchange .magchange-diagram-caption {
    display: flex;
    justify-content: space-between;
    width: 260px;
    font-size: 12px;
    font-weight: 600;
}

.product-layout-magchange .magchange-journey {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 24px 0 40px;
    list-style: none;
}

.product-layout-magchange .magchange-journey li {
    margin: 0;
}

.product-layout-magchange .magchange-journey a {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--magchange-border);
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    color: var(--magchange-ink);
    text-decoration: none;
}

.product-layout-magchange .magchange-step-number {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--magchange-accent);
    color: var(--magchange-ink);
    font-size: 21px;
    font-weight: 700;
}

.product-layout-magchange .magchange-journey strong,
.product-layout-magchange .magchange-journey small {
    display: block;
}

.product-layout-magchange .magchange-journey strong {
    font-size: 16px;
}

.product-layout-magchange .magchange-journey small {
    margin-top: 5px;
    color: var(--magchange-muted);
    font-size: 12px;
    line-height: 1.5;
}

.product-layout-magchange .magchange-journey-arrow {
    margin-left: auto;
    font-size: 22px;
}

.product-layout-magchange .magchange-journey a:hover,
.product-layout-magchange .magchange-journey .is-complete a {
    border-color: #9c7500;
}

.product-layout-magchange .magchange-journey a:focus-visible,
.product-layout-magchange .magchange-back-link:focus-visible {
    outline: 3px solid #795a00;
    outline-offset: 3px;
}

.product-layout-magchange .magchange-step-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 2px solid var(--magchange-ink);
    scroll-margin-top: 95px;
}

.product-layout-magchange .magchange-plates {
    padding-top: 36px;
    margin-top: 56px;
    border-top: 5px solid var(--magchange-accent);
}

.product-layout-magchange #magchange-device {
    scroll-margin-top: 95px;
}

.product-layout-magchange .magchange-explain {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.product-layout-magchange .magchange-explain > button,
.product-layout-magchange .magchange-plate-note {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--magchange-border);
    border-radius: 12px;
    background: #fff;
}

.product-layout-magchange .magchange-case-filter-copy,
.product-layout-magchange .magchange-plate-note p {
    margin: 0;
    color: var(--magchange-muted);
    font-size: 13px;
    line-height: 1.6;
}

.product-layout-magchange .magchange-explain strong,
.product-layout-magchange .magchange-plate-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--magchange-ink);
    font-size: 14px;
}

.product-layout-magchange .magchange-explain > button {
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-weight: 400;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
}

.product-layout-magchange .magchange-explain > button[aria-pressed="true"] {
    border-color: #916b00;
    background: #fff5d6;
    box-shadow: inset 0 0 0 1px #916b00;
}

.product-layout-magchange .magchange-explain > button:hover:not(:disabled) {
    border-color: #916b00;
}

.product-layout-magchange .magchange-explain > button:focus-visible {
    outline: 3px solid #795a00;
    outline-offset: 3px;
}

.product-layout-magchange .magchange-explain > button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.product-layout-magchange .magchange-card[hidden] {
    display: none;
}

.product-layout-magchange .magchange-mini-case,
.product-layout-magchange .magchange-mini-plate {
    position: relative;
    display: block;
    flex: 0 0 35px;
    width: 35px;
    height: 60px;
    box-sizing: border-box;
    border: 4px solid #252621;
    border-radius: 9px;
}

.product-layout-magchange .magchange-mini-case::before,
.product-layout-magchange .magchange-mini-plate::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 11px;
    border: 2px solid #252621;
    border-radius: 3px;
    background: #fff;
}

.product-layout-magchange .magchange-mini-case--design,
.product-layout-magchange .magchange-mini-plate {
    background: repeating-linear-gradient(135deg, #ffb900 0 7px, #f6df98 7px 14px);
}

.product-layout-magchange .magchange-mini-plate {
    border-width: 1px;
    transform: rotate(8deg);
}

.product-layout-magchange .magchange-plate-note {
    max-width: 720px;
    border-left: 4px solid var(--magchange-accent);
}

.product-layout-magchange .magchange-back-link {
    display: inline-block;
    padding: 16px 0;
    color: #725500;
    font-size: 13px;
    font-weight: 600;
}

.product-layout-magchange .magchange-card.is-selected .magchange-choice-face {
    background: var(--magchange-accent);
    border-color: var(--magchange-accent);
}

.product-layout-magchange .magchange-card.is-selected .magchange-choice-icon::before {
    content: '\2713';
    font-size: 16px;
}

.product-layout-magchange .magchange-loading[hidden] {
    display: none;
}

.product-layout-magchange .magchange-loading {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgb(16 17 13 / 88%);
    color: #fff;
}

.product-layout-magchange .magchange-loading-panel {
    width: min(100%, 380px);
    text-align: center;
}

.product-layout-magchange .magchange-loading-panel strong {
    display: block;
    margin-top: 30px;
    color: var(--magchange-accent);
    font-size: 25px;
}

.product-layout-magchange .magchange-loading-panel p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.product-layout-magchange .magchange-loading-art {
    position: relative;
    width: 100px;
    height: 140px;
    margin: 0 auto;
}

.product-layout-magchange .magchange-loading-art span {
    position: absolute;
    inset: 0 12px;
    border: 4px solid #fff;
    border-radius: 19px;
}

.product-layout-magchange .magchange-loading-art span + span {
    inset: 7px 19px;
    border: 0;
    border-radius: 12px;
    background: var(--magchange-accent);
    animation: magchange-plate-fit 1.3s ease-in-out infinite;
}

@keyframes magchange-plate-fit {
    0%, 100% { transform: translate(32px, -12px) rotate(12deg); opacity: .55; }
    45%, 65% { transform: translate(0, 0) rotate(0); opacity: 1; }
}

.product-layout-magchange:has(.magchange-cartbar) #whatsapp-chat-btn {
    bottom: 115px !important;
}

@media (max-width: 767px) {
    .product-layout-magchange .magchange-device-fields,
    .product-layout-magchange .magchange-explain {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-layout-magchange .magchange-journey {
        gap: 10px;
        margin-bottom: 28px;
    }

    .product-layout-magchange .magchange-journey a {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .product-layout-magchange .magchange-journey strong {
        font-size: 14px;
    }

    .product-layout-magchange .magchange-journey small {
        font-size: 11px;
    }

    .product-layout-magchange .magchange-journey-arrow {
        display: none;
    }

    .product-layout-magchange .magchange-step-number {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 17px;
    }

    .product-layout-magchange .magchange-preview {
        min-height: 240px;
        padding: 18px 10px;
    }

    .product-layout-magchange .magchange-diagram {
        gap: 20px;
    }

    .product-layout-magchange .magchange-diagram-case,
    .product-layout-magchange .magchange-diagram-plate {
        width: 70px;
        height: 120px;
        border-radius: 17px;
    }

    .product-layout-magchange .magchange-diagram-caption {
        width: 218px;
    }

    .product-layout-magchange .magchange-cartbar-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .product-layout-magchange:has(.magchange-cartbar) #whatsapp-chat-btn {
        bottom: 155px !important;
        right: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-layout-magchange .magchange-loading-art span + span {
        animation: none;
    }
}

.product-layout-magchange .magchange-load-more {
    display: block;
    margin: 24px auto 0;
}

.product-layout-magchange .magchange-load-more[hidden] {
    display: none;
}
