﻿
    .cn-pd {
        max-width: 1200px;
        margin: 0 auto;
        padding: 18px;
    }

    .cn-pd__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .cn-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        border: 1px solid rgba(0,0,0,.10);
        border-radius: 12px;
        height: 40px;
        padding: 0 12px;
        font-weight: 900;
        color: #951f1f;
        background: #fff;
    }

        .cn-back:hover {
            background: rgba(149,31,31,.06);
            border-color: rgba(149,31,31,.22);
        }

    .cn-pd__grid {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 18px;
        align-items: start;
    }

    .cn-pd__media {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        background: #fff;
        padding: 12px;
    }

    .cn-pd__img {
        width: 100%;
        height: 420px;
        object-fit: contain;
        display: block;
        border-radius: 12px;
        background: #fff;
    }

    .cn-pd__panel {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        background: #fff;
        padding: 16px;
    }

    .cn-pd__title {
        margin: 0;
        font-size: 28px;
        font-weight: 900;
        color: #951f1f;
    }

    .cn-pd__meta {
        margin-top: 6px;
        opacity: .75;
        font-weight: 800;
    }

    .cn-pd__priceRow {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .cn-pd__price {
        font-size: 22px;
        font-weight: 900;
        color: #951f1f;
    }

    .cn-pd__old {
        opacity: .55;
        text-decoration: line-through;
        font-weight: 900;
    }

    .cn-actions {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 14px;
    }

    .cn-btn2 {
        border: 0;
        border-radius: 12px;
        height: 44px;
        padding: 0 16px;
        font-weight: 900;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .cn-btn2--primary {
        background: #951f1f;
        color: #fff;
    }

        .cn-btn2--primary:hover {
            filter: brightness(.95);
        }

    .cn-btn2--ghost {
        background: transparent;
        color: #951f1f;
        border: 1px solid rgba(149,31,31,.35);
    }

        .cn-btn2--ghost:hover {
            background: rgba(149,31,31,.06);
        }

    .cn-wish {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid rgba(0,0,0,.12);
        background: #fff;
        cursor: pointer;
        font-size: 20px;
        display: grid;
        place-items: center;
    }

        .cn-wish:hover {
            background: rgba(0,0,0,.03);
        }

    .cn-qty {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .cn-qty input {
            width: 84px;
            height: 44px;
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,.12);
            padding: 0 10px;
            font-weight: 900;
            outline: none;
        }

            .cn-qty input:focus {
                border-color: rgba(149,31,31,.45);
                box-shadow: 0 0 0 4px rgba(149,31,31,.10);
            }

    .cn-pd__desc {
        margin-top: 12px;
        line-height: 1.6;
        font-weight: 800;
        opacity: .9;
    }

    .cn-infoBox {
        margin-top: 16px;
        border-radius: 16px;
        border: 1px solid rgba(149,31,31,.12);
        background: rgba(149,31,31,.04);
        overflow: hidden;
    }

    .cn-tabs {
        display: flex;
        gap: 8px;
        padding: 10px;
        border-bottom: 1px solid rgba(149,31,31,.10);
        background: rgba(255,255,255,.65);
    }

    .cn-tab {
        height: 38px;
        border-radius: 12px;
        padding: 0 12px;
        border: 1px solid rgba(149,31,31,.22);
        background: transparent;
        color: #951f1f;
        font-weight: 900;
        cursor: pointer;
    }

        .cn-tab.is-active {
            background: #951f1f;
            color: #fff;
            border-color: #951f1f;
        }

    .cn-panels {
        padding: 12px 14px;
    }

    .cn-panel {
        display: none;
    }

        .cn-panel.is-active {
            display: block;
        }

    .cn-nfHead {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .cn-nfTitle {
        margin: 0;
        font-weight: 900;
        color: #951f1f;
    }

    .cn-nfServing {
        opacity: .75;
        font-weight: 800;
    }

    .cn-nfTable {
        width: 100%;
        border-collapse: collapse;
    }

        .cn-nfTable tr {
            border-top: 1px solid rgba(0,0,0,.08);
        }

            .cn-nfTable tr:first-child {
                border-top: 0;
            }

        .cn-nfTable td {
            padding: 10px 0;
            font-weight: 900;
        }

            .cn-nfTable td:last-child {
                text-align: right;
                color: #951f1f;
            }

    .cn-plain {
        white-space: pre-wrap;
        margin: 0;
        font-weight: 800;
        opacity: .9;
    }
.cn-weight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 10px;
}

.cn-weight__label {
    font-weight: 900;
    font-size: 12px;
    color: #444;
}

.cn-weight__options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cn-weight__btn {
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .06s ease, background .15s ease, color .15s ease;
}

    .cn-weight__btn:hover {
        transform: translateY(-1px);
    }

    .cn-weight__btn.is-active {
        background: #111;
        color: #fff;
    }

@media (max-width: 1100px) {
    .cn-pd {
        padding: 16px;
    }

    .cn-pd__grid {
        grid-template-columns: 360px 1fr;
        gap: 16px;
    }

    .cn-pd__img {
        height: 360px;
    }

    .cn-pd__title {
        font-size: 24px;
    }
}

@media (max-width: 980px) {
    .cn-pd__grid {
        grid-template-columns: 1fr;
    }

    .cn-pd__media,
    .cn-pd__panel {
        width: 100%;
    }

    .cn-pd__img {
        height: 340px;
    }

    .cn-actions {
        align-items: stretch;
    }

    .cn-qty {
        flex-wrap: wrap;
    }

        .cn-qty input {
            width: 100%;
            max-width: 120px;
        }
}

@media (max-width: 768px) {
    .cn-pd {
        padding: 14px;
    }

    .cn-pd__top {
        margin-bottom: 12px;
    }

    .cn-back {
        width: 100%;
        justify-content: center;
    }

    .cn-pd__panel {
        padding: 14px;
    }

    .cn-pd__title {
        font-size: 22px;
        line-height: 1.25;
    }

    .cn-pd__meta {
        font-size: 14px;
    }

    .cn-pd__price {
        font-size: 20px;
    }

    .cn-pd__img {
        height: 300px;
    }

    .cn-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cn-wish {
        width: 100%;
        border-radius: 12px;
    }

    .cn-qty {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

        .cn-qty input {
            width: 100%;
            max-width: none;
        }

    .cn-btn2,
    .cn-btn2--primary,
    .cn-btn2--ghost {
        width: 100%;
    }

    .cn-weight {
        width: 100%;
        margin-right: 0;
    }

    .cn-weight__options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cn-weight__btn {
        width: 100%;
        padding: 10px 8px;
        text-align: center;
    }

    .cn-tabs {
        flex-wrap: wrap;
    }

    .cn-tab {
        flex: 1 1 100%;
    }

    .cn-nfHead {
        flex-direction: column;
        align-items: flex-start;
    }

    .cn-panels {
        padding: 12px;
    }
}

@media (max-width: 560px) {
    .cn-pd {
        padding: 12px;
    }

    .cn-pd__media {
        padding: 10px;
        border-radius: 14px;
    }

    .cn-pd__panel {
        padding: 12px;
        border-radius: 14px;
    }

    .cn-pd__title {
        font-size: 20px;
    }

    .cn-pd__priceRow {
        gap: 6px;
    }

    .cn-pd__price {
        font-size: 18px;
    }

    .cn-pd__old {
        font-size: 14px;
    }

    .cn-pd__img {
        height: 240px;
    }

    .cn-back {
        height: auto;
        min-height: 40px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .cn-btn2 {
        height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }

    .cn-wish {
        height: 42px;
        font-size: 18px;
    }

    .cn-tab {
        height: auto;
        min-height: 38px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .cn-nfTable td {
        padding: 8px 0;
        font-size: 14px;
    }

    .cn-plain,
    .cn-pd__desc,
    .cn-nfServing {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .cn-pd__img {
        height: 200px;
    }

    .cn-weight__options {
        grid-template-columns: 1fr;
    }

    .cn-pd__title {
        font-size: 18px;
    }

    .cn-pd__price {
        font-size: 17px;
    }
}
.cn-btn2--disabled,
.cn-btn2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.cn-stockMsg {
    margin-top: 10px;
    font-weight: 800;
    color: #8a1f1f;
}