@charset "UTF-8";

/* Panels */
.product-board-panel,
.product-form-panel,
.product-view-panel,
.product-write-panel {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-board-panel { padding: 24px 24px 28px; }
.product-detail-panel { padding: 28px; }

/* Form controls */
.product-search-input,
.product-input,
.product-select,
.product-file {
    width: 100%;
    max-width: 320px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.product-textarea {
    width: 100%;
    min-height: 220px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

.product-form-table td .product-input,
.product-form-table td .product-select,
.product-form-table td .product-file,
.product-form-table td .product-textarea,
.product-form-table td .full {
    width: 100%;
    max-width: 100%;
}

/* Buttons */
.product-btn-primary,
.product-btn-line,
.product-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.product-btn-primary {
    background: #3478e5;
    color: #fff;
}
.product-btn-primary:hover { background: #2367d5; }

.product-btn-line {
    border-color: #3478e5;
    background: #fff;
    color: #3478e5;
}

.product-btn-danger {
    background: #e25555;
    color: #fff;
}

.product-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #2d79ea;
    border-radius: 6px;
    background: #fff;
    color: #2d79ea;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.product-small-btn.danger {
    border-color: #e25555;
    color: #e25555;
}

/* Top bar */
.product-top-bar,
.product-search-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-top-left {
    flex: 1;
    min-width: 0;
}

.product-top-right,
.product-search-right {
    flex: 0 0 auto;
}

.product-search-left,
.product-search-form,
.product-inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-search-input {
    max-width: 320px;
    border-color: #cfd6df;
    padding: 0 14px;
}

/* List table */
.product-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #d9dee7;
}

.product-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}

.product-table th,
.product-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8edf3;
    text-align: center;
    vertical-align: middle;
    word-break: keep-all;
}

.product-table thead th {
    background: #f7f9fc;
    color: #222;
    font-size: 15px;
    font-weight: 700;
}

.product-table tbody td {
    color: #333;
    font-size: 15px;
}

.product-title-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #222;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.5;
}

.product-title-link:hover { color: #2d79ea; }

.product-table-thumb {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.product-table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 32px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
}

.product-status.sale { background: #e9f7ef; color: #1f8b4c; }
.product-status.stop { background: #fdeeee; color: #d93025; }

.product-empty {
    padding: 50px 0 !important;
    text-align: center !important;
    color: #777;
}

/* Pagination */
.product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.product-pagination a,
.product-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.product-pagination a:hover {
    border-color: #3478e5;
    background: #f4f8ff;
    color: #3478e5;
}

.product-pagination .active {
    border-color: #3478e5;
    background: #3478e5;
    color: #fff;
}

.product-pagination .disabled {
    border-color: #e2e8f0;
    background: #f3f4f6;
    color: #a0a7b3;
    cursor: default;
    pointer-events: none;
}

/* Form layout */
.product-form-table {
    width: 100%;
    border-collapse: collapse;
}

.product-form-table th,
.product-form-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
    vertical-align: middle;
}

.product-form-table th {
    width: 180px;
    background: #f8fafc;
    font-weight: 700;
}

.product-form-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.product-form-btns.left { justify-content: flex-start; }

.product-section-title {
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.product-section-title:first-child { margin-top: 0; }

.product-sub-guide,
.file-guide {
    margin-top: 6px;
    color: #666;
    line-height: 1.6;
    font-size: 13px;
}

.option-row-box,
.img-row-box,
.info-row-box {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

.option-row-head,
.info-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.image-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 600px;
}

.option-row-title,
.info-row-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.option-row-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 10px;
}

.info-row-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr;
    gap: 10px;
}

.product-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.product-check-group label {
    font-size: 14px;
    color: #333;
}

.note-editor.note-frame {
    border-color: #d9d9d9;
    border-radius: 8px;
}

/* Detail */
.detail-layout {
    display: grid;
    grid-template-columns: 620px 1fr;
    gap: 34px;
    align-items: flex-start;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-item {
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 1px solid #d7dce3;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.thumb-item.active { border: 2px solid #2d79ea; }

.thumb-item img,
.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-image-box {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.detail-info-box { min-width: 0; }

.detail-product-title {
    margin-bottom: 10px;
    color: #111;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
}

.detail-origin {
    margin-bottom: 8px;
    color: #666;
    font-size: 15px;
}

.detail-review-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.star-score {
    color: #ff9900;
    font-size: 16px;
    letter-spacing: 1px;
}

.review-link { color: #2d79ea; font-size: 14px; }

.detail-price-box {
    margin-bottom: 24px;
    padding: 18px 0 22px;
    border-top: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

.discount-row { margin-bottom: 6px; }
.discount-rate {
    margin-right: 6px;
    color: #111;
    font-size: 18px;
    font-weight: 700;
}
.before-price {
    color: #9ca3af;
    font-size: 19px;
    text-decoration: line-through;
}
.sale-price-row {
    color: #111;
    font-size: 18px;
}
.sale-price-row strong {
    margin-right: 2px;
    color: #d93025;
    font-size: 40px;
    font-weight: 800;
}
.unit-price-text {
    margin-left: 6px;
    color: #d93025;
    font-size: 16px;
}

.option-title {
    margin-bottom: 14px;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}
.option-list {
    border-top: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}
.option-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
    border-bottom: 1px solid #eceff3;
    cursor: pointer;
}
.option-item:last-child { border-bottom: none; }
.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-radio {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 5px;
    border: 2px solid #b8c0cc;
    border-radius: 50%;
}
.option-item.selected .option-radio { border-color: #2d79ea; }
.option-item.selected .option-radio::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d79ea;
}
.option-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.option-name { color: #333; font-size: 16px; }
.option-name.active { color: #2d79ea; font-weight: 700; }
.option-price {
    color: #111;
    font-size: 18px;
    font-weight: 700;
}
.option-sub { color: #555; font-size: 14px; }
.option-warning { color: #d93025; font-style: normal; }
.option-more-wrap { margin-top: 18px; }
.option-more-btn {
    width: 100%;
    height: 42px;
    border: 1px solid #9bb8ff;
    background: #fff;
    color: #2d79ea;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.delivery-info-box,
.seller-info-box {
    padding: 18px 0;
    border-bottom: 1px solid #eceff3;
}

.info-row {
    color: #222;
    font-size: 15px;
    line-height: 1.7;
}

.seller-link { color: #2d79ea; }

.selected-option-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #dde3ea;
    background: #f8fafc;
}

.selected-option-name {
    margin-bottom: 14px;
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.selected-option-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #cfd6df;
    background: #fff;
}

.qty-box button {
    width: 38px;
    height: 38px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.qty-box input {
    width: 54px;
    height: 38px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    text-align: center;
    font-size: 15px;
}

.total-price-box {
    color: #222;
    font-size: 17px;
}
.total-price-box strong {
    margin-left: 10px;
    color: #111;
    font-size: 28px;
    font-weight: 800;
}

.detail-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}
.detail-action-buttons_admin {
    margin-top: 18px;
    text-align: center;
    gap: 12px;
}

.btn {
    height: 54px;
    padding: 0 20px;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cart {
    border: 1px solid #b8c4d6;
    background: #fff;
    color: #2563eb;
}

.detail-desc-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eceff3;
}

.detail-desc-title {
    margin-bottom: 18px;
    color: #222;
    font-size: 24px;
    font-weight: 700;
}

.detail-desc-content {
    background: #fff;
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    word-break: keep-all;
}

/* Bottom tabs */
.detail-bottom-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.detail-tab-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
    border-top: 1px solid #d7dce3;
    border-left: 1px solid #d7dce3;
}

.detail-tab-btn {
    height: 54px;
    border-right: 1px solid #d7dce3;
    border-bottom: 1px solid #d7dce3;
    background: #fafafa;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.detail-tab-btn.active {
    background: #fff;
    color: #111;
}
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* Info table */
.detail-notice-title {
    margin-bottom: 14px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

.detail-info-table,
.delivery-info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.detail-info-table { margin-bottom: 12px; }

.detail-info-table th,
.detail-info-table td,
.delivery-info-table th,
.delivery-info-table td {
    padding: 16px 12px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    color: #444;
    font-size: 13px;
    line-height: 1.7;
    word-break: keep-all;
}

.delivery-info-table th,
.delivery-info-table td {
    border: 1px solid #e3e3e3;
    font-size: 15px;
    color: #222;
}

.detail-info-table th {
    width: 16%;
    background: #fafafa;
    color: #222;
    font-weight: 700;
}
.detail-info-table td { width: 34%; }

.delivery-info-table th {
    width: 12%;
    background: #fafafa;
    font-weight: 700;
}

.detail-more-info-wrap {
    margin-bottom: 22px;
    text-align: center;
}
.detail-more-info-btn {
    background: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.detail-warning-box {
    margin-bottom: 40px;
    padding: 18px 20px;
    border-radius: 6px;
    background: #fdeeee;
    color: #d93025;
    font-size: 14px;
}

.detail-desc-image-wrap { text-align: center; }
.detail-desc-main-img {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px;
}

.detail-desc-text-block {
    margin: 24px 0 30px;
    text-align: center;
}

.point-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 22px;
    background: #ff5a4f;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.detail-desc-text-block h4 {
    margin-bottom: 14px;
    color: #111;
    font-size: 34px;
    font-weight: 700;
}
.detail-desc-text-block h3 {
    margin-bottom: 12px;
    color: #111;
    font-size: 60px;
    font-weight: 800;
    line-height: 1.2;
}
.detail-desc-text-block p {
    color: #222;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
}

.detail-desc-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: 0 auto 36px;
}
.detail-desc-image-grid.full {
    grid-template-columns: 1fr;
    max-width: 760px;
}
.detail-desc-image-grid img {
    width: 100%;
    display: block;
}

.detail-more-product-wrap {
    margin-top: 20px;
    text-align: center;
}
.detail-more-product-btn {
    min-width: 220px;
    height: 44px;
    border: 1px solid #9bb8ff;
    background: #fff;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.detail-empty-box {
    padding: 60px 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.delivery-guide-box {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.delivery-guide-box h4 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #111;
    font-size: 18px;
    font-weight: 700;
}
.delivery-guide-box h4:first-child { margin-top: 0; }

.delivery-guide-box p,
.delivery-sub-text {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* QnA */
.qna-section-box {
    padding: 28px 30px 24px;
    border: 1px solid #d8d8d8;
    background: #fff;
}

.qna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.qna-title {
    color: #111;
    font-size: 30px;
    font-weight: 800;
}

.qna-write-btn {
    min-width: 118px;
    height: 44px;
    border: 1px solid #3b82f6;
    background: #fff;
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.qna-guide-list {
    margin: 0 0 22px;
    padding-left: 18px;
}
.qna-guide-list li {
    margin-bottom: 7px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.qna-search-wrap {
    margin-bottom: 42px;
    padding: 14px 12px;
    background: #555;
}
.qna-search-box {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid #d8d8d8;
    background: #fff;
}
.qna-search-input {
    flex: 1;
    height: 100%;
    padding: 0 16px;
    color: #444;
    font-size: 15px;
    outline: none;
    border: none;
}
.qna-search-btn {
    width: 58px;
    height: 100%;
    background: #fff;
    color: #2563eb;
    font-size: 20px;
    cursor: pointer;
}

.qna-empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ededed;
    color: #333;
    font-size: 20px;
}

.qna-report-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 12px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}
.qna-report-box p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}
.qna-report-btn {
    min-width: 90px;
    height: 34px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.delivery-section-box { margin-top: 28px; }
.delivery-title {
    margin-bottom: 14px;
    color: #111;
    font-size: 24px;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1200px) {
    .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .product-top-bar { flex-direction: column; align-items: stretch; }
    .product-top-right,
    .product-top-right .product-btn-primary { width: 100%; }
    .option-row-grid,
    .info-row-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .product-board-panel,
    .product-form-panel,
    .product-view-panel,
    .product-write-panel,
    .product-detail-panel { padding: 16px; }

    .product-search-wrap,
    .product-search-form { flex-direction: column; align-items: stretch; }

    .product-search-left,
    .product-search-right,
    .product-search-input,
    .product-btn-primary,
    .product-btn-line,
    .product-search-form .product-btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .product-form-table,
    .product-form-table tbody,
    .product-form-table tr,
    .product-form-table th,
    .product-form-table td,
    .detail-info-table,
    .detail-info-table tbody,
    .detail-info-table tr,
    .detail-info-table th,
    .detail-info-table td {
        display: block;
        width: 100%;
    }

    .product-form-table th,
    .detail-info-table th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    .product-form-table td,
    .detail-info-table td { padding-top: 0; }

    .product-table-thumb {
        width: 110px;
        height: 110px;
    }

    .product-table th,
    .product-table td { font-size: 14px; }

    .product-pagination {
        gap: 5px;
        margin-top: 22px;
    }
    .product-pagination a,
    .product-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    .detail-gallery { grid-template-columns: 1fr; }
    .thumb-list {
        flex-direction: row;
        overflow-x: auto;
    }
    .thumb-item {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .detail-product-title { font-size: 24px; }
    .sale-price-row strong { font-size: 32px; }

    .selected-option-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-action-buttons { grid-template-columns: 1fr; }
    .detail-tab-menu { grid-template-columns: 1fr; }
    .detail-tab-btn { height: 48px; font-size: 14px; }

    .detail-desc-text-block h4 { font-size: 22px; }
    .detail-desc-text-block h3 { font-size: 34px; }
    .detail-desc-text-block p { font-size: 17px; }
    .point-badge {
        padding: 6px 16px;
        font-size: 15px;
    }
    .detail-desc-image-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .detail-desc-text-block h4 { font-size: 28px; }
    .detail-desc-text-block h3 { font-size: 46px; }
    .detail-desc-text-block p { font-size: 20px; }
}

/* =========================================================
   PRODUCT PAGE RESPONSIVE FIX - same layout width as main
   ========================================================= */
.product-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 20px 70px;
}

.product-page .page-inner {
    width: 100%;
    padding: 0;
}

.product-page .home-section {
    margin-top: 34px;
}

.product-page .section-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.product-page .section-title {
    margin: 0;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.8px;
}

.product-page .section-more {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f57c8;
}

.product-page .product-board-panel,
.product-page .product-form-panel,
.product-page .product-view-panel,
.product-page .product-write-panel,
.product-page .product-detail-panel {
    width: 100%;
}

/* PC table width */
.product-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-table {
    width: 100%;
}

.product-table-thumb img {
    display: block;
}

@media (max-width: 1024px) {
    .product-page {
        padding: 18px 16px 60px;
    }
}

/* Mobile: table -> card layout */
@media (max-width: 768px) {
    .product-page {
        padding: 14px 14px 50px;
    }

    .product-page .home-section {
        margin-top: 24px;
    }

    .product-page .section-title-wrap {
        align-items: center;
        margin-bottom: 12px;
    }

    .product-page .section-title {
        font-size: 22px;
    }

    .product-board-panel,
    .product-form-panel,
    .product-view-panel,
    .product-write-panel,
    .product-detail-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .product-top-bar,
    .product-search-wrap {
        align-items: stretch;
    }

    .product-search-form {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-search-input,
    .product-search-form .product-btn-primary,
    .product-top-right,
    .product-top-right .product-btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .product-table-wrap {
        overflow: visible;
        border-top: 0;
    }

    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .product-table {
        table-layout: auto;
        border-collapse: separate;
        background: transparent;
    }

    .product-table colgroup,
    .product-table thead {
        display: none;
    }

    .product-table tbody tr {
        display: grid;
        grid-template-columns: 96px 1fr;
        column-gap: 14px;
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid #e5edf5;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(15, 43, 87, .07);
    }

    .product-table tbody td {
        border-bottom: 0;
        padding: 2px 0;
        text-align: left;
        font-size: 13px;
        line-height: 1.45;
        color: #333;
    }

    .product-td-num {
        display: none !important;
    }

    .product-td-img {
        grid-row: 1 / span 5;
        grid-column: 1;
        padding: 0 !important;
    }

    .product-table-thumb {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }

    .product-td-name {
        grid-column: 2;
        padding-top: 0 !important;
    }

    .product-td-name .product-title-link {
        display: block;
        white-space: normal;
        font-size: 16px;
        font-weight: 900;
        color: #111;
    }

    .product-td-seller,
    .product-td-price,
    .product-td-date,
    .product-td-status {
        grid-column: 2;
    }

    .product-td-seller::before,
    .product-td-price::before,
    .product-td-date::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 48px;
        margin-right: 6px;
        color: #7d8898;
        font-weight: 800;
    }

    .product-status {
        height: 28px;
        min-width: 70px;
        font-size: 12px;
    }

    .product-empty {
        display: block !important;
        padding: 34px 10px !important;
        border: 1px solid #e5edf5;
        border-radius: 14px;
        background: #fff;
    }

    .product-pagination {
        margin-top: 18px;
        gap: 5px;
    }

    .product-pagination a,
    .product-pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .product-table tbody tr {
        grid-template-columns: 82px 1fr;
        column-gap: 12px;
        padding: 12px;
    }

    .product-table-thumb {
        width: 82px;
        height: 82px;
    }

    .product-td-name .product-title-link {
        font-size: 15px;
    }
}


/* =========================================================
   PRODUCT DETAIL WIDTH / RESPONSIVE FINAL FIX
   - productView.jsp uses <main class="main-home product-page">
   - keep same 1200px width as main page
   ========================================================= */
.main-home.product-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 20px 70px;
}

.main-home.product-page .page-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.main-home.product-page .home-section {
    width: 100%;
    margin-top: 34px;
}

.main-home.product-page .home-panel,
.main-home.product-page .product-detail-panel,
.main-home.product-page .product-view-panel,
.main-home.product-page .product-board-panel,
.main-home.product-page .product-form-panel,
.main-home.product-page .product-write-panel {
    width: 100%;
    max-width: 100%;
}

.main-home.product-page .product-detail-panel {
    overflow: hidden;
}

.main-home.product-page .detail-layout {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 34px;
    align-items: flex-start;
}

.main-home.product-page .detail-gallery,
.main-home.product-page .detail-info-box,
.main-home.product-page .detail-bottom-section {
    min-width: 0;
    max-width: 100%;
}

.main-home.product-page .main-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 520px;
}

.main-home.product-page .main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-home.product-page .detail-action-buttons {
    width: 100%;
}

.main-home.product-page .detail-tab-menu,
.main-home.product-page .detail-tab-content,
.main-home.product-page .detail-info-table,
.main-home.product-page .delivery-info-table {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .main-home.product-page {
        padding: 18px 16px 60px;
    }

    .main-home.product-page .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .main-home.product-page .detail-gallery {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .main-home.product-page .main-image-box {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .main-home.product-page {
        padding: 14px 14px 50px;
    }

    .main-home.product-page .home-section {
        margin-top: 24px;
    }

    .main-home.product-page .product-detail-panel,
    .main-home.product-page .product-view-panel,
    .main-home.product-page .product-board-panel,
    .main-home.product-page .product-form-panel,
    .main-home.product-page .product-write-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .main-home.product-page .detail-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .main-home.product-page .thumb-list {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .main-home.product-page .main-image-box {
        order: 1;
        aspect-ratio: 1 / 1;
    }

    .main-home.product-page .detail-product-title {
        font-size: 24px;
    }

    .main-home.product-page .sale-price-row strong {
        font-size: 32px;
    }

    .main-home.product-page .detail-action-buttons {
        grid-template-columns: 1fr;
    }

    .main-home.product-page .detail-tab-menu {
        grid-template-columns: 1fr;
    }

    .main-home.product-page .detail-info-table,
    .main-home.product-page .detail-info-table tbody,
    .main-home.product-page .detail-info-table tr,
    .main-home.product-page .detail-info-table th,
    .main-home.product-page .detail-info-table td,
    .main-home.product-page .delivery-info-table,
    .main-home.product-page .delivery-info-table tbody,
    .main-home.product-page .delivery-info-table tr,
    .main-home.product-page .delivery-info-table th,
    .main-home.product-page .delivery-info-table td {
        display: block;
        width: 100%;
    }
}


/* =========================================================
   PRODUCT WRITE PAGE FINAL RESPONSIVE FIX
   - productWrite.jsp width / form / image rows
   ========================================================= */
.main-home.product-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 20px 70px;
}

.main-home.product-page .page-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

.main-home.product-page .home-section {
    width: 100%;
    margin-top: 34px;
}

.main-home.product-page .product-write-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-form-table {
    width: 100%;
    table-layout: fixed;
}

.product-form-table th {
    width: 180px;
}

.product-form-table td {
    width: auto;
}

.product-inline-group {
    width: 100%;
}

.product-inline-group .product-input,
.product-inline-group .product-select {
    flex: 1 1 220px;
    min-width: 0;
}

.image-row-head {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.image-row-head .option-row-title {
    min-width: 90px;
}

.image-row-head .thumb-item {
    width: 78px;
    height: 78px;
    object-fit: cover;
    vertical-align: middle;
}

.img-row-box,
.option-row-box,
.info-row-box {
    width: 100%;
}

.note-editor.note-frame,
.note-editor.note-airframe {
    width: 100% !important;
}

.note-editing-area,
.note-editable {
    max-width: 100%;
}

@media (max-width: 768px) {
    .main-home.product-page {
        padding: 14px 14px 50px;
    }

    .main-home.product-page .home-section {
        margin-top: 24px;
    }

    .main-home.product-page .section-title-wrap {
        align-items: center;
        margin-bottom: 12px;
    }

    .main-home.product-page .section-title {
        font-size: 22px;
    }

    .main-home.product-page .product-write-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .product-form-table,
    .product-form-table tbody,
    .product-form-table tr,
    .product-form-table th,
    .product-form-table td {
        display: block;
        width: 100%;
    }

    .product-form-table tr {
        padding: 12px 0;
        border-bottom: 1px solid #ebebeb;
    }

    .product-form-table th {
        padding: 0 0 8px;
        border-bottom: 0;
        background: transparent;
        font-size: 14px;
    }

    .product-form-table td {
        padding: 0;
        border-bottom: 0;
    }

    .product-inline-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .product-input,
    .product-select,
    .product-file,
    .product-textarea,
    .product-inline-group .product-input,
    .product-inline-group .product-select {
        width: 100%;
        max-width: 100%;
    }

    .product-section-title {
        margin: 22px 0 10px;
        font-size: 17px;
    }

    .image-row-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .image-row-head .option-row-title {
        min-width: 0;
    }

    .image-row-head .thumb-item {
        width: 90px;
        height: 90px;
    }

    .option-row-head,
    .info-row-head {
        gap: 10px;
    }

    .option-row-grid,
    .info-row-grid {
        grid-template-columns: 1fr;
    }

    .product-small-btn,
    .product-form-btns .product-btn-line,
    .product-form-btns .product-btn-primary,
    .product-form-btns .product-btn-danger {
        width: 100%;
    }

    .product-form-btns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
@media screen and (max-width: 768px) {
  .editor-html-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* 70?쇱씤 洹쇱쿂: 諛붾떎媛 ?좊Ъ???꾨━誘몄뾼 ?앹꽑 */
  .editor-html-wrap h2 {
    font-size: 30px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.6px !important;
    word-break: keep-all !important;
  }

  .editor-html-wrap p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .editor-html-wrap img {
    max-width: 100% !important;
    height: auto !important;
  }

  .editor-html-wrap div[style*="display:flex"] {
    flex-direction: column !important;
  }

  .editor-html-wrap div[style*="flex:1 1 calc"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
/* =========================================================
   PRODUCT VIEW DESIGN FIX - 2026-05-03
   ?곸꽭?섏씠吏 + ?먮뵒??HTML 紐⑤컮??理쒖쥌 蹂댁젙
   湲곗〈 CSS 留??꾨옒??異붽??섍굅?? 湲곗〈 editor-html-wrap 紐⑤컮???곸뿭????肄붾뱶濡?援먯껜
   ========================================================= */

.main-home.product-page {
    background: #f5f8fc;
}

.main-home.product-page .section-title-wrap {
    padding: 0 2px;
}

.main-home.product-page .section-title {
    color: #0f2f55;
    font-size: 28px;
    font-weight: 900;
}

.main-home.product-page .section-more {
    color: #0c477b;
    font-weight: 800;
}

.main-home.product-page .product-detail-panel {
    border: 1px solid #e5edf5;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 43, 87, .08);
}

.main-home.product-page .main-image-box,
.main-home.product-page .thumb-item {
    border-radius: 16px;
}

.main-home.product-page .detail-product-title {
    color: #102743;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.main-home.product-page .detail-price-box {
    margin-bottom: 20px;
    padding: 20px;
    border: 0;
    border-radius: 18px;
    background: #f7fbff;
}

.main-home.product-page .option-item {
    margin-bottom: 8px;
    padding: 16px 14px;
    border: 1px solid #e0e8f2;
    border-radius: 14px;
    background: #fff;
}

.main-home.product-page .option-item.selected {
    border-color: #0c477b;
    background: #f3f9ff;
}

.main-home.product-page .selected-option-box {
    border-radius: 16px;
}

.main-home.product-page .btn {
    border: 0;
    border-radius: 14px;
}

.main-home.product-page .btn-cart {
    border: 1px solid #0c477b;
    color: #0c477b;
}

.main-home.product-page .detail-tab-menu {
    overflow: hidden;
    border-radius: 16px;
}

/* ?먮뵒???곸꽭 HTML 湲곕낯 */
.editor-html-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.editor-html-wrap,
.editor-html-wrap * {
    box-sizing: border-box !important;
}

.editor-html-wrap img {
    max-width: 100% !important;
    height: auto !important;
}

.editor-html-wrap h1,
.editor-html-wrap h2,
.editor-html-wrap p {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}

@media screen and (max-width: 768px) {
    .main-home.product-page {
        padding: 12px 10px 44px;
        background: #f5f8fc;
    }

    .main-home.product-page .product-detail-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .main-home.product-page .detail-layout {
        gap: 18px;
    }

    .main-home.product-page .detail-product-title {
        font-size: 23px !important;
        line-height: 1.32 !important;
    }

    .main-home.product-page .detail-price-box {
        padding: 16px;
    }

    .main-home.product-page .sale-price-row strong {
        font-size: 34px !important;
    }

    .main-home.product-page .detail-tab-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        border: 1px solid #d7dce3;
    }

    .main-home.product-page .detail-tab-btn {
        height: 46px;
        font-size: 13px;
        border-top: 0;
    }

    /* 湲곗〈 肄붾뱶??flex-direction:column 媛뺤젣 ?곸슜???섎룎由?*/
    .main-home.product-page .editor-html-wrap div[style*="display:flex"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    /* ?먮뵒??蹂몃Ц ?꾩껜 ?щ갚 */
    .main-home.product-page .editor-html-wrap > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* 硫붿씤 ??댄? */
    .main-home.product-page .editor-html-wrap h1 span[style*="font-size:70px"],
    .main-home.product-page .editor-html-wrap h1 span[style*="font-size:60px"] {
        font-size: 34px !important;
        line-height: 1.22 !important;
        letter-spacing: -1px !important;
    }

    /* 70?쇱씤 洹쇱쿂 ?ы븿: ??h2 ?꾨? 紐⑤컮??異뺤냼 */
    .main-home.product-page .editor-html-wrap h2,
    .main-home.product-page .editor-html-wrap h2[style*="font-size:60px"],
    .main-home.product-page .editor-html-wrap h2[style*="font-size:34px"] {
        font-size: 27px !important;
        line-height: 1.28 !important;
        letter-spacing: -0.8px !important;
    }

    .main-home.product-page .editor-html-wrap p,
    .main-home.product-page .editor-html-wrap p[style*="font-size:25px"],
    .main-home.product-page .editor-html-wrap p[style*="font-size:20px"] {
        font-size: 16px !important;
        line-height: 1.58 !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="font-size:25px"],
    .main-home.product-page .editor-html-wrap div[style*="font-size:23px"] {
        font-size: 16px !important;
    }

    /* 援ъ꽦/議곕━/??移대뱶: 紐⑤컮??2??*/
    .main-home.product-page .editor-html-wrap div[style*="flex:1 1 calc(33.333%"],
    .main-home.product-page .editor-html-wrap div[style*="flex:1 1 calc(25%"] {
        flex: 0 0 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        min-width: 0 !important;
        padding: 10px 6px !important;
        border-radius: 13px !important;
    }

    /* 議곕━踰?3?④퀎??湲?먭? 湲몄뼱??1??*/
    .main-home.product-page .editor-html-wrap div[style*="議곕━"],
    .main-home.product-page .editor-html-wrap div[style*="padding:12px 8px"][style*="border:1px solid #d9e4ef"] {
        min-width: 0 !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="flex:1 1 calc(33.333%"] p[style*="font-size:20px"] {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="display:inline-block"] {
        max-width: 100% !important;
        white-space: normal !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="padding:80px"] {
        padding-top: 46px !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="padding:54px"] {
        padding-top: 36px !important;
    }
}

@media screen and (max-width: 420px) {
    .main-home.product-page .editor-html-wrap h1 span[style*="font-size:70px"],
    .main-home.product-page .editor-html-wrap h1 span[style*="font-size:60px"] {
        font-size: 29px !important;
    }

    .main-home.product-page .editor-html-wrap h2,
    .main-home.product-page .editor-html-wrap h2[style*="font-size:60px"],
    .main-home.product-page .editor-html-wrap h2[style*="font-size:34px"] {
        font-size: 24px !important;
    }

    .main-home.product-page .editor-html-wrap div[style*="flex:1 1 calc(33.333%"],
    .main-home.product-page .editor-html-wrap div[style*="flex:1 1 calc(25%"] {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
