@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard", Helvetica, sans-serif;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}

body {
    background: #f3f3f3;
    padding: 0;
    margin: 0;
}

.bullet-item {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.bullet-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #404040;
    font-size: 16px;
    font-weight: 500;
}

.quote-wrapper {
    max-width: 1280px;
    background: white;
    border-radius: 18px;
    padding: 20px 19px;
    background: #F5F5F7;
    margin: 128px auto 0;
    min-height: calc(100vh - 128px);
}

.quote-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FFF;
    border-bottom: 1px solid #C8C8C8;
    height: 128px;
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 19px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 20px;
    font-weight: 600;
}

.close {
    display: flex;
    width: 48px;
    height: 48px;
    cursor: pointer;
    align-items: center;
}

.header-right {
    text-align: right;
}

.total-price {
    text-align: right;
    font-size: 44px;
    font-style: normal;
    font-weight: 700;
    line-height: 52px;
    background: linear-gradient(90deg, #4c6fff, #b56fff);
    -webkit-background-clip: text;
    color: transparent;
}

.vat {
    color: #808080;
    text-align: right;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.quote-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 19px;
}

.product-price {
    color: #000;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
}

.product-price span {
    color: #808080;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-left: 12px;
}

.product-title {
    color: #808080;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.product-visual {
    margin-top: 40px;
    height: 520px;
    background: linear-gradient(180deg, #f4f4f4, #e9e9e9);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-visual img {
    border-radius: 24px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-panel {
    display: flex;
    flex-direction: column;
    gap: 19px;
    height: fit-content;
    max-height: calc(100vh - 128px - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    position: sticky;
    top: calc(128px + 20px);
}

.panel-card {
    width: 300px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid transparent;
}

.panel-card.addons {
    border-radius: 28px;
    background: #ECECEC;
}

.card-header {
    color: #808080;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    padding-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
}

.panel-card.main .card-header {
    padding: 0 0 12px 0;
}

.card-header span:first-child {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.card-price {
    color: #808080;
    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: #404040;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.card-list li {
    margin-bottom: 8px;
}

.counter {
    display: flex;
    align-items: center;
    width: 160px;
    height: 32px;
    overflow: hidden;
    color: #000;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.counter input.count {
    width: 55px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: rgba(116, 116, 128, 0.06);
}

.counter input.count:focus {
    outline: none;
}

.counter button {
    position: relative;
    width: 52px;
    height: 100%;
    border: none;
    background: rgba(116, 116, 128, 0.08);
    font-size: 22px;
    cursor: pointer;
    color: #808080;
}

.counter button:first-child {
    border-radius: 999px 0 0 999px;
}

.counter button:last-child {
    border-radius: 0 999px 999px 0;
}

.counter button:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: rgba(60, 60, 67, 0.30);
}

.counter button:last-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: rgba(60, 60, 67, 0.30);
}

.counter button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.counter .count {
    width: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    border-left: 1px solid #cfcfd6;
    border-right: 1px solid #cfcfd6;
}

.count {
    font-size: 20px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.addons .card-header {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.addon-item {
    background: #fafafa;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.highlight {
    border-color: #000;
    background: #FFF;
}


.addon-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.addon-header span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    word-break: keep-all;
}

.addon-header .price {
    flex-shrink: 0;
    white-space: nowrap;
    color: #808080;
    text-align: right;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.panel-summary {
    width: 300px;
    background: white;
    border-radius: 16px;
    padding: 24px;
}

.summaryTatalName {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    padding-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #404040;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    align-items: center;
}

.zero-price {
    color: #A0A0A0;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}

.summary-name {
    display: block;
    max-width: 140px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.3;
    font-weight: 500 !important;
}

.summary-price {
    text-align: right;
}

.summary-count {
    font-size: 16px;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 20px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    color: #000;
    text-align: right;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #C8C8C8;
}

.total {
    color: #404040;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

#summaryTotalValue {
    color: #000;
    text-align: right;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

/* 반응형 */
@media (max-width: 768px) {
    .quote-header {
        padding: 12px 16px;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .close svg {
        width: 36px;
        height: 36px;
    }

    .title {
        font-size: 18px;
        font-weight: 700;
    }

    .header-right {
        text-align: right;
    }

    .total-price {
        display: flex;
        font-size: 20px;
        font-weight: 700;
        align-items: center;
        justify-content: right;
    }

    .vat {
        display: flex;
        color: #808080;
        text-align: right;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
        align-items: center;
        justify-content: right;
    }

    .card-header span:first-child,
    .addon-header span:first-child {
        font-size: 18px;
    }

    .card-price,
    .addon-header .price {
        font-size: 16px;
    }

    .counter button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .panel-card.main,
    .panel-card.addons,
    .panel-summary {
        width: 100%;
    }

    .count {
        font-size: 18px;
    }
}

@media (max-width:1280px) {

    .quote-header {
        height: 88px;
    }

    .quote-wrapper {
        width: 100%;
    }

    .panel-card.main,
    .panel-card.addons,
    .panel-summary {
        width: 100%;
    }

    .quote-layout {
        grid-template-columns: 1fr;
    }

    .product-visual {
        height: auto;
    }

}