@charset "utf-8";

/* ==========================================
   공통
========================================== */
#bo_list,
#bo_v {
    padding: 0;
    margin: 0;
    max-width: none;
}

/* ==========================================
   서브 헤더 (목록 — sub_breadcrumb 스타일)
========================================== */
.prd-sub-header {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 2.75rem 0 2.5rem;
    text-align: center;
}

.prd-sub-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 브레드크럼 */
.prd-sub-bc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.1rem;
}

.prd-sub-bc a {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.prd-sub-bc a:hover {
    color: #1a6e7a;
}

.prd-sub-bc-sep {
    display: inline-flex;
    align-items: center;
    opacity: 0.5;
}

/* 메인 타이틀 */
.prd-sub-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0d0d0d;
    line-height: 1.1;
    margin: 0;
}

/* ==========================================
   필터 영역 (목록)
========================================== */
.prd-filter-area {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
}

.prd-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
}

/* 카테고리 탭 */
.prd-cat-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.prd-cat-tabs::-webkit-scrollbar {
    display: none;
}

.prd-cat-tab {
    display: inline-flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #777;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.prd-cat-tab:hover {
    color: #1a6e7a;
    text-decoration: none;
}

.prd-cat-tab.is-active {
    color: #1a6e7a;
    font-weight: 700;
    border-bottom-color: #1a6e7a;
}

/* 검색 */
.prd-search-form {
    flex: 0 0 280px;
    padding: 0.6rem 0;
    padding-right: 1rem;
}

.prd-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.prd-search-input {
    width: 100%;
    height: 3rem;
    padding: 0 3rem 0 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #222;
    outline: none;
    background: #fff;
}

.prd-search-input::placeholder {
    color: #bbb;
}

.prd-search-input:focus {
    border-color: #1a6e7a;
}

.prd-search-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* ==========================================
   제품 그리드 (목록)
========================================== */
.prd-grid-section {
    padding: 3rem 0 4rem;
}

.prd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prd-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.prd-card:hover {
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prd-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.prd-card-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.prd-card-info {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.prd-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0 0 0.35rem;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prd-card-price {
    font-size: 0.875rem;
    color: #888;
    margin: 0;
}

.prd-empty {
    text-align: center;
    padding: 5rem 0;
    color: #999;
    font-size: 1rem;
}

/* 관리자 버튼 바 */
.prd-admin-bar {
    padding: 1rem 0;
    text-align: right;
}

/* ==========================================
   페이지네이션
========================================== */
.pg_wrap {
    clear: both;
    display: flex;
    justify-content: center;
    margin: 2rem auto 0;
}

.pg_page,
.pg_current {
    display: inline-block;
    vertical-align: middle;
    background: none;
    border: none;
}

.pg_current {
    color: #1a6e7a;
    font-weight: bold;
    padding: 0 10px;
    height: 32px;
    line-height: 32px;
    min-width: 32px;
    text-align: center;
}

.pg_page a {
    display: inline-block;
    padding: 0 10px;
    height: 32px;
    line-height: 32px;
    min-width: 32px;
    text-align: center;
    color: #444;
}

.pg_page a:hover {
    color: #1a6e7a;
    text-decoration: none;
}

.pg_prev,
.pg_next,
.pg_start,
.pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    overflow: hidden;
    text-indent: -9999px;
}

.pg_prev {
    background: url('data:image/svg+xml;utf8,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 1L1 7L7 13" stroke="%23555" stroke-width="1.5" stroke-linecap="round"/></svg>') no-repeat center;
}

.pg_next {
    background: url('data:image/svg+xml;utf8,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23555" stroke-width="1.5" stroke-linecap="round"/></svg>') no-repeat center;
}

/* ==========================================
   제품 상세 뷰
========================================== */
.prd-view-wrap {
    background: #fff;
}

/* 브레드크럼 */
.prd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0;
    font-size: 0.875rem;
    color: #888;
}

.prd-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.prd-breadcrumb a:hover {
    color: #1a6e7a;
}

.prd-bc-sep {
    color: #ccc;
    font-size: 0.8rem;
}

.prd-breadcrumb span:last-child {
    color: #444;
    font-weight: 500;
}

/* 제품 요약 박스 */
.prd-summary-box {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 3rem;
}

.prd-summary-img {
    flex: 0 0 320px;
    border: 1px solid #e8e8e8;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    max-height: 320px;
}

.prd-summary-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prd-summary-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.prd-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0 0 0.6rem;
    word-break: keep-all;
}

.prd-summary-price {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 1rem;
}

.prd-summary-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    word-break: keep-all;
}

.prd-inquiry-btn {
    display: inline-block;
    background: #1a6e7a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    align-self: stretch;
}

.prd-inquiry-btn:hover {
    background: #135a66;
    color: #fff;
    text-decoration: none;
}

/* 상세정보 섹션 */
.prd-detail-section {
    margin-bottom: 3rem;
}

.prd-detail-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a6e7a;
    margin: 0 0 0.75rem;
}

.prd-detail-hr {
    border: none;
    border-top: 2px solid #1a6e7a;
    margin: 0 0 2rem;
}

.prd-detail-content {
    transition: max-height 0.4s ease;
    line-height: 1.7;
    overflow: hidden;
}

.prd-detail-content img {
    max-width: 100%;
    height: auto;
}

.prd-detail-more-wrap {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 0;
}

.prd-detail-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a6e7a;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.prd-detail-more-btn:hover {
    background: #135a66;
}

.prd-detail-more-btn svg {
    transition: transform 0.3s;
}

/* 다른 상품 보기 */
.prd-related-section {
    padding: 2.5rem 0 3.5rem;
    border-top: 1px solid #e8e8e8;
}

.prd-related-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 1.5rem;
}

.prd-related-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prd-related-viewport {
    flex: 1;
    overflow: hidden;
}

.prd-related-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.35s ease;
}

.prd-related-card {
    flex: 0 0 calc((100%) / 3 - 0.9rem);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.prd-related-card:hover {
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.prd-related-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.prd-related-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prd-related-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin: 0.75rem 0.9rem 0.3rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prd-related-price {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0.9rem 0.9rem;
}

/* 슬라이더 네비 버튼 */
.prd-related-nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.prd-related-nav:hover {
    background: #f4f4f4;
    border-color: #bbb;
}

.prd-related-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

/* 목록/관리자 버튼 */
.prd-view-admin-bar {
    padding: 1rem 0 2.5rem;
    display: flex;
    gap: 0.5rem;
}

.prd-list-back-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    color: #444;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s;
}

.prd-list-back-btn:hover {
    border-color: #1a6e7a;
    color: #1a6e7a;
    text-decoration: none;
}

/* ==========================================
   반응형
========================================== */
@media (max-width: 1200px) {
    .prd-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .prd-sub-header {
        padding: 2rem 0 1.75rem;
    }

    .prd-filter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .prd-search-form {
        flex: none;
        padding: 0.75rem 1rem;
        border-top: 1px solid #f0f0f0;
    }

    .prd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prd-summary-box {
        flex-direction: column;
        gap: 1.5rem;
    }

    .prd-summary-img {
        flex: none;
        width: 100%;
        max-height: 260px;
        aspect-ratio: unset;
        height: 260px;
    }

    .prd-related-card {
        flex: 0 0 calc(50% - 0.65rem);
    }
}

@media (max-width: 600px) {
    .prd-sub-title {
        font-size: 2.25rem;
    }

    .prd-cat-tab {
        padding: 0.9rem 1.1rem;
        font-size: 0.875rem;
    }

    .prd-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .prd-related-card {
        flex: 0 0 calc(100% - 0rem);
    }

    .prd-summary-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   제품 등록/수정 페이지 (write)
========================================== */
.prd-write-section {
    padding: 3rem 0 5rem;
    background: #f0f2f5;
    min-height: 60vh;
}

.prd-write-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* 상단 타이틀 */
.prd-write-top {
    margin-bottom: 2rem;
}

.prd-write-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.35rem;
}

.prd-write-sub {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* 카드 */
.prd-write-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.prd-wcard-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
}

.prd-wcard-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a6e7a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.prd-wcard-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: #1a1a1a;
}

.prd-wcard-desc {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: auto;
}

.prd-wcard-body {
    padding: 1.75rem 1.5rem;
}

/* 필드 공통 */
.prd-field {
    margin-bottom: 1.5rem;
}

.prd-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.prd-req {
    color: #e53e3e;
    margin-left: 2px;
}

/* 입력 기본 */
.prd-input {
    width: 100%;
    height: 2.875rem;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.prd-input:focus {
    border-color: #1a6e7a;
    box-shadow: 0 0 0 3px rgba(26,110,122,0.1);
}

.prd-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: #fff url("data:image/svg+xml;utf8,<svg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 1L6 6L11 1' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat right 1rem center;
    padding-right: 2.5rem;
}

.prd-textarea {
    height: auto;
    padding: 0.8rem 1rem;
    resize: vertical;
    line-height: 1.65;
}

/* ── 썸네일 업로드 ── */
.prd-thumb-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prd-thumb-box {
    width: 240px;
    height: 240px;
    position: relative;
}

/* 기존 썸네일 */
.prd-thumb-existing {
    width: 100%;
    height: 100%;
    border-radius: 0.625rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #e4e7ec;
}

.prd-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9fafb;
    display: block;
}

.prd-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.prd-thumb-existing:hover .prd-thumb-overlay {
    opacity: 1;
}

.prd-thumb-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.prd-thumb-replace {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.prd-thumb-replace:hover {
    background: rgba(255, 255, 255, 0.32);
}

.prd-thumb-del {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #fecaca;
}

.prd-thumb-del:hover {
    background: rgba(220, 38, 38, 0.28);
}

/* 업로드 존 */
.prd-thumb-zone {
    width: 100%;
    height: 100%;
    border: 2px dashed #d1d5db;
    border-radius: 0.625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}

.prd-thumb-zone:hover {
    border-color: #1a6e7a;
    background: #f0f9fa;
}

.prd-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    pointer-events: none;
}

.prd-zone-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.prd-zone-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

.prd-thumb-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.prd-thumb-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prd-thumb-clear {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.prd-thumb-clear:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ── 상세 이미지 그리드 ── */
.prd-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

.prd-detail-item {
    border: 1px solid #e4e7ec;
    border-radius: 0.5rem;
    background: #fff;
    overflow: hidden;
    transition: opacity 0.2s;
}

/* 이미지 표시 영역 */
.prd-detail-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prd-detail-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 번호 배지 */
.prd-detail-num {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* 새 슬롯 업로드 존 */
.prd-detail-upload-zone {
    border: 2px dashed #d1d5db;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    background: #fafbfc;
    transition: border-color 0.15s, background 0.15s;
}

.prd-detail-upload-zone:hover {
    border-color: #1a6e7a;
    background: #f0f9fa;
}

.prd-detail-upload-zone span {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
}

/* 컨트롤 바 */
.prd-detail-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}

.prd-move-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e4e7ec;
    border-radius: 0.25rem;
    background: #fff;
    color: #6b7280;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    flex-shrink: 0;
}

.prd-move-btn:hover {
    border-color: #1a6e7a;
    color: #1a6e7a;
    background: #f0f9fa;
}

/* 기존 파일 삭제 체크 */
.prd-del-label {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}

.prd-del-label input[type="checkbox"] {
    accent-color: #e53e3e;
    width: 13px;
    height: 13px;
}

/* 새 슬롯 삭제 버튼 */
.prd-remove-btn {
    margin-left: auto;
    height: 26px;
    padding: 0 0.55rem;
    border: 1px solid #fca5a5;
    border-radius: 0.25rem;
    background: #fff;
    color: #e53e3e;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.12s;
    flex-shrink: 0;
}

.prd-remove-btn:hover {
    background: #fff5f5;
}

/* 이미지 추가 타일 */
.prd-detail-add-tile {
    aspect-ratio: 1;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.prd-detail-add-tile:hover {
    border-color: #1a6e7a;
    background: #f0f9fa;
    color: #1a6e7a;
}

/* ── 제출 버튼 영역 ── */
.prd-write-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.prd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.875rem;
    padding: 0 2.25rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.prd-btn-cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #555;
}

.prd-btn-cancel:hover {
    border-color: #9ca3af;
    color: #222;
    text-decoration: none;
}

.prd-btn-submit {
    border: none;
    background: #1a6e7a;
    color: #fff;
    box-shadow: 0 1px 4px rgba(26,110,122,0.25);
}

.prd-btn-submit:hover {
    background: #155f6a;
    box-shadow: 0 3px 10px rgba(26,110,122,0.3);
}

.prd-btn-submit:disabled {
    background: #9cc5cc;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 860px) {
    .prd-write-inner {
        padding: 0 1rem;
    }
}

@media (max-width: 700px) {
    .prd-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .prd-write-heading {
        font-size: 1.3rem;
    }

    .prd-thumb-box {
        width: 200px;
        height: 200px;
    }

    .prd-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prd-wcard-body {
        padding: 1.25rem 1rem;
    }
}


/* ==========================================
   제품 상세 뷰 (디자인 리뉴얼)
========================================== */
.prd-view-wrap {
    background: #fff;
    padding-bottom: 5rem;
}

/* 상단 글로벌 헤더 & 카테고리 탭 */
.prd-top-header {
    text-align: center;
    padding: 3rem 0 0;
}

.prd-breadcrumb-center {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.prd-breadcrumb-center a { color: #888; text-decoration: none; }
.prd-breadcrumb-center .sep { font-size: 0.8rem; color: #ccc; }
.prd-breadcrumb-center .current { color: #111; font-weight: 500; }

.prd-global-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.prd-category-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.prd-category-tabs li a {
    display: block;
    padding: 0 0.5rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.prd-category-tabs li a:hover {
    color: #222;
}

.prd-category-tabs li.active a {
    color: #005970;
}

.prd-category-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #005970;
}

/* 제품 요약 박스 (회색 배경 영역) */
.prd-summary-bg {
    padding: 2rem 0 4rem;
    margin-bottom: 4rem;
}

.prd-breadcrumb-inner {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.prd-breadcrumb-inner .sep { color: #ccc; }
.prd-breadcrumb-inner .current { color: #111; font-weight: 600; }

.prd-summary-box {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.prd-summary-img {
    flex: 0 0 35%;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    box-sizing: border-box;
    aspect-ratio: 3 / 3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.prd-summary-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prd-summary-info {
    flex: 1;
    padding-top: 1rem;
}

.prd-summary-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin: 0 0 1rem;
    word-break: keep-all;
}

.prd-summary-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 2rem;
}

.prd-summary-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    word-break: keep-all;
}

.prd-inquiry-btn {
    display: block;
    width: 100%;
    background: #005970;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.1rem 0;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.prd-inquiry-btn:hover {
    background: #004557;
    color: #fff;
    text-decoration: none;
}

/* 섹션 공통 헤더 (밑줄 포인트) */
.prd-section-header {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2.5rem;
    position: relative;
}

.prd-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #005970;
    margin: 0;
    padding-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.prd-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: #005970;
}

/* 상세정보 내용 및 페이드 효과 */
.prd-detail-section {
    margin-bottom: 5rem;
}

.prd-detail-content-wrap {
    position: relative;
}

.prd-detail-content {
    transition: max-height 0.4s ease;
    line-height: 1.7;
    overflow: hidden;
}

.prd-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.prd-detail-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.prd-detail-content-wrap.is-expanded .prd-detail-fade {
    opacity: 0;
}

.prd-detail-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
}

/* 둥근 알약 형태의 더보기 버튼 */
.prd-detail-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #005970;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,89,112,0.2);
}

.prd-detail-more-btn:hover {
    background: #004557;
    transform: translateY(-2px);
}

.prd-detail-more-btn svg {
    transition: transform 0.3s;
}

/* 다른 상품 보기 */
.prd-related-section {
    margin-bottom: 3rem;
}

.prd-related-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.prd-related-viewport {
    flex: 1;
    overflow: hidden;
}

.prd-related-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.35s ease;
}

.prd-related-card {
    flex: 0 0 calc((100%) / 3 - 1rem);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.prd-related-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
}

.prd-related-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.prd-related-card:hover .prd-related-img-wrap {
    border-color: #005970;
}

.prd-related-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prd-related-name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prd-related-price {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 슬라이더 네비 버튼 (원형 제거, 심플한 꺾쇠 밖으로 빼기) */
.prd-related-nav {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.prd-related-nav:hover svg path {
    stroke: #111;
}

.prd-related-nav:disabled {
    cursor: default;
}

/* 목록/관리자 버튼 */
.prd-view-admin-bar {
    padding: 2rem 0;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.prd-list-back-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    color: #444;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s;
}

.prd-list-back-btn:hover {
    border-color: #005970;
    color: #005970;
    text-decoration: none;
}

/* 반응형 */
@media (max-width: 900px) {
    .prd-global-title { font-size: 2.5rem; }
    .prd-summary-box { flex-direction: column; gap: 2rem; }
    .prd-summary-img { flex: none; width: 100%; aspect-ratio: unset; min-height: 300px; }
    .prd-related-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 600px) {
    .prd-category-tabs { gap: 1rem; flex-wrap: wrap; }
    .prd-category-tabs li a { font-size: 0.95rem; }
    .prd-summary-title { font-size: 1.5rem; }
    .prd-related-wrap { gap: 0.5rem; }
    .prd-related-card { flex: 0 0 calc(100% - 0rem); }
    .prd-related-nav { display: none; /* 모바일에서는 슬라이더 네비 숨김 처리 고려 */ }
}