/* 파일명: assets/css/public-commerce-store.css
   설명: 퍼블릭 구매/결제 통합 진열장 스타일 */
.commerce-store-wrap{background:linear-gradient(180deg,#fbfaf7 0%,#fff 100%);padding:34px 0 64px}.commerce-store-container{max-width:1120px}.commerce-store-hero{background:#fff;border:1px solid #e8eadf;border-radius:28px;padding:30px;margin-bottom:20px;box-shadow:0 14px 34px rgba(31,41,55,.05)}.commerce-store-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border-radius:999px;background:#eef7ed;color:#327a40;font-size:13px;font-weight:800;margin-bottom:14px}.commerce-store-hero h1{margin:0;font-size:42px;line-height:1.18;color:#172017}.commerce-store-hero p{margin:12px 0 0;color:#667085;font-size:16px;line-height:1.7}.commerce-store-user{margin-top:18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:#f8faf6;border:1px solid #edf0e7}.commerce-store-user strong{color:#1f2937}.commerce-store-user span{color:#6b7280;font-size:14px}.commerce-store-tabs{position:sticky;top:0;z-index:5;display:flex;gap:8px;flex-wrap:wrap;padding:12px;margin:0 0 18px;border-radius:18px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border:1px solid #eceee5}.commerce-store-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:999px;background:#f5f7f0;color:#334155;text-decoration:none;font-weight:800;font-size:14px}.commerce-store-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 20px;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid #eceee5;color:#475569}.commerce-store-summary strong{color:#111827}.commerce-section{margin-top:22px}.commerce-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:14px}.commerce-section-head h2{margin:0;font-size:26px;color:#111827}.commerce-section-head p{margin:6px 0 0;color:#667085}.commerce-section-head span{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#f3f4f6;color:#475569;font-weight:800;font-size:13px}.commerce-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.commerce-product-card{background:#fff;border:1px solid #e7eadf;border-radius:24px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.05);transition:.18s ease}.commerce-product-card.is-open{border-color:#9fc8a1;box-shadow:0 16px 38px rgba(47,111,54,.12)}.commerce-product-kind{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#f1f7ef;color:#2f6f36;font-size:12px;font-weight:900;margin-bottom:10px}.commerce-product-main h3{margin:0 0 8px;font-size:22px;color:#111827}.commerce-product-main p{margin:0 0 14px;color:#667085;line-height:1.65}.commerce-product-price{display:block;font-size:30px;color:#1f2937;margin-top:12px}.commerce-toggle-btn{width:100%;min-height:44px;margin-top:18px;border:0;border-radius:999px;background:#315f37;color:#fff;font-weight:900;cursor:pointer}.commerce-toggle-btn:disabled{background:#cbd5c0;cursor:not-allowed}.commerce-buy-panel{display:none;margin-top:16px;padding-top:16px;border-top:1px dashed #dfe5d5}.commerce-product-card.is-open .commerce-buy-panel{display:grid;gap:12px}.commerce-field{display:grid;gap:6px}.commerce-field span{font-size:13px;font-weight:900;color:#374151}.commerce-field input,.commerce-field select{width:100%;height:46px;border:1px solid #d8decf;border-radius:14px;padding:0 13px;font-size:15px;background:#fff}.commerce-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.commerce-help{margin:0;padding:10px 12px;border-radius:14px;background:#f7f8f2;color:#667085;font-size:13px;line-height:1.6}.commerce-total{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:#f8faf6;color:#475569}.commerce-total strong{font-size:22px;color:#315f37}.commerce-empty{background:#fff;border:1px dashed #d8decf;border-radius:22px;padding:34px;text-align:center;color:#475569}@media (max-width:900px){.commerce-card-grid{grid-template-columns:1fr}.commerce-store-hero h1{font-size:32px}.commerce-section-head{align-items:flex-start;flex-direction:column}.commerce-store-summary{align-items:flex-start;flex-direction:column}.commerce-field-grid{grid-template-columns:1fr}}

/* =========================================================
   v2 보완: 연구상품 안내/예상가격 계산기
========================================================= */
.commerce-research-notice{
    margin-top:14px;
    padding:13px 14px;
    border-radius:16px;
    background:#f6faf4;
    border:1px solid #dfead9;
    display:grid;
    gap:5px;
}
.commerce-research-notice strong{
    color:#2f6f36;
    font-size:14px;
}
.commerce-research-notice span{
    color:#52605a;
    font-size:13px;
    line-height:1.55;
}
.commerce-research-benefit{
    padding:14px 15px;
    border-radius:18px;
    background:#f8faf6;
    border:1px solid #e1eadc;
}
.commerce-research-benefit strong{
    display:block;
    margin-bottom:8px;
    color:#24492a;
    font-size:14px;
}
.commerce-research-benefit ul{
    margin:0;
    padding-left:18px;
    color:#59665e;
    font-size:13px;
    line-height:1.65;
}
.commerce-price-estimator{
    display:grid;
    gap:12px;
    padding:16px;
    border-radius:20px;
    background:#fffdf8;
    border:1px solid #efe3c6;
}
.commerce-estimator-head{
    display:grid;
    gap:5px;
}
.commerce-estimator-head strong{
    color:#503b13;
    font-size:15px;
}
.commerce-estimator-head span{
    color:#7a6a4c;
    font-size:13px;
    line-height:1.55;
}
.commerce-estimator-result{
    display:grid;
    gap:8px;
}
.commerce-estimator-result div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border-radius:14px;
    background:#fff;
    border:1px solid #f1e7cf;
}
.commerce-estimator-result span{
    color:#6b7280;
    font-size:13px;
    font-weight:800;
}
.commerce-estimator-result strong{
    color:#334155;
    font-size:18px;
}
.commerce-estimator-result .is-emphasis{
    background:#f7fbf4;
    border-color:#d9ead2;
}
.commerce-estimator-result .is-emphasis span,
.commerce-estimator-result .is-emphasis strong{
    color:#2f6f36;
}
@media (max-width:640px){
    .commerce-product-card{padding:18px;border-radius:22px}
    .commerce-product-price{font-size:26px}
    .commerce-estimator-result div{align-items:flex-start;flex-direction:column;gap:3px}
}

/* =========================================================
   v3 보완: 비로그인 공개 진열장 + 상품 유형 배지 색상
========================================================= */
.commerce-login-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:0 12px;
    border-radius:999px;
    background:#315f37;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
}
.commerce-product-kind--test{
    background:#f3efff;
    color:#6d28d9;
}
.commerce-product-kind--research{
    background:#ecfdf3;
    color:#15803d;
}
.commerce-product-kind--sales{
    background:#fff7ed;
    color:#c2410c;
}
.commerce-product-kind--education{
    background:#eff6ff;
    color:#1d4ed8;
}
.commerce-section--test .commerce-product-card.is-open{
    border-color:#c4b5fd;
    box-shadow:0 16px 38px rgba(109,40,217,.12);
}
.commerce-section--research .commerce-product-card.is-open{
    border-color:#86efac;
    box-shadow:0 16px 38px rgba(22,163,74,.12);
}
.commerce-section--sales .commerce-product-card.is-open{
    border-color:#fdba74;
    box-shadow:0 16px 38px rgba(245,158,11,.12);
}
.commerce-section--education .commerce-product-card.is-open{
    border-color:#93c5fd;
    box-shadow:0 16px 38px rgba(37,99,235,.12);
}
.commerce-section--test .commerce-toggle-btn{background:#7c3aed;}
.commerce-section--research .commerce-toggle-btn{background:#16a34a;}
.commerce-section--sales .commerce-toggle-btn{background:#f59e0b;color:#1f2937;}
.commerce-section--education .commerce-toggle-btn{background:#2563eb;}
.commerce-section--test .commerce-total strong{color:#6d28d9;}
.commerce-section--research .commerce-total strong{color:#15803d;}
.commerce-section--sales .commerce-total strong{color:#c2410c;}
.commerce-section--education .commerce-total strong{color:#1d4ed8;}

/* =========================================================
   v4 보완: 연구상품 고지 강조 + 예상 연구 비용 접힘 UI
========================================================= */
.commerce-research-notice--strong{
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-left:5px solid #f97316;
}
.commerce-research-notice--strong strong{
    color:#b45309;
    font-size:14px;
    line-height:1.5;
}
.commerce-research-notice--strong span{
    color:#7c4a16;
}
.commerce-estimator-toggle{
    width:100%;
    border:0;
    border-radius:16px;
    background:#fff7ed;
    color:#7c4a16;
    padding:13px 14px;
    display:grid;
    gap:4px;
    text-align:left;
    cursor:pointer;
    font-weight:900;
}
.commerce-estimator-toggle span{
    position:relative;
    padding-right:22px;
    font-size:15px;
}
.commerce-estimator-toggle span::after{
    content:'▼';
    position:absolute;
    right:0;
    top:0;
    font-size:12px;
}
.commerce-price-estimator.is-open .commerce-estimator-toggle span::after{
    content:'▲';
}
.commerce-estimator-toggle em{
    font-style:normal;
    color:#9a6a2c;
    font-size:12px;
    font-weight:700;
    line-height:1.45;
}
.commerce-estimator-body{
    display:none;
    gap:12px;
}
.commerce-price-estimator.is-open .commerce-estimator-body{
    display:grid;
}
