/* sticky: head.php body{overflow-x:hidden}가 overflow-y를 auto로 바꿔 스크롤 컨테이너가 됨 */
body:has(.gl-ai-detail) {
    background: #F7F8FA;
    overflow: visible !important;
    overflow-x: clip;
}
#wrapper:has(.gl-ai-detail),
#container:has(.gl-ai-detail),
#container:has(.gl-ai-detail) .shop-content,
#sit:has(.gl-ai-detail),
#sit:has(.gl-ai-detail) #sit_ov_from {
    overflow: visible !important;
}
#sit:has(.gl-ai-detail),
#sit:has(.gl-ai-detail) #sit_ov_from {
    max-width: none !important;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent;
}
#container:has(.gl-ai-detail) {
    width: min(1280px, calc(100% - 24px));
    max-width: 1280px;
}
#sct_location { display: none !important; }

.gl-ai-detail {
    --gl-ai-sticky-top: 96px;
    --blue: #3182F6;
    --blue-d: #1B64DA;
    --blue-l: #E8F3FF;
    --ink: #191F28;
    --ink2: #4E5968;
    --ink3: #8B95A1;
    --line: #EFF1F4;
    --fill: #F2F4F6;
    --bg: #F7F8FA;
    --mint: #1FB8A3;
    --mint-d: #0F8B7B;
    --mint-l: #EAF6F4;
    --red: #E8464B;
    --s2b: #2C6FD1;
    --r-lg: 20px;
    --r-md: 16px;
    --r-sm: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 28px 40px;
    color: var(--ink);
    font-family: Pretendard, -apple-system, "Malgun Gothic", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -.01em;
}
.gl-ai-detail * { box-sizing: border-box; }
.gl-ai-detail img { max-width: 100%; display: block; }
.gl-ai-detail button { font-family: inherit; }

.gl-ai-detail .crumb { font-size: 12px; color: var(--ink3); padding: 6px 4px 12px; }
.gl-ai-detail .crumb a { color: inherit; text-decoration: none; }
.gl-ai-detail .crumb a:hover { color: var(--blue); }
.gl-ai-detail .crumb .cur { color: var(--ink2); }

.gl-ai-detail .hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(16, 24, 42, .04);
}
.gl-ai-detail .hero-grid3 {
    display: grid;
    grid-template-columns: 356px minmax(0, 1fr);
    grid-template-areas: "heading heading" "img buy";
    gap: 18px 24px;
    align-items: start;
}
.gl-ai-detail .product-heading { grid-area: heading; min-width: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gl-ai-detail .col-img { grid-area: img; width: 356px; max-width: 100%; align-self: start; }
.gl-ai-detail .hero-grid3 > .col-buy {
    grid-area: buy;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
    grid-template-areas: "options totals" "options cta";
    gap: 16px 20px;
    min-height: 356px;
    align-self: start;
}
.gl-ai-detail .hero-grid3 > .col-buy .buy-options { grid-area: options; align-self: stretch; }
.gl-ai-detail .hero-grid3 > .col-buy .buy-totals {
    grid-area: totals; align-self: stretch; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
}
.gl-ai-detail .hero-grid3 > .col-buy .cta { grid-area: cta; margin-top: 0; padding-top: 0; align-self: stretch; }
.gl-ai-detail .buy-options, .gl-ai-detail .buy-totals { min-width: 0; }
.gl-ai-detail .col-img, .gl-ai-detail .col-buy { display: flex; flex-direction: column; min-width: 0; }

.gl-ai-detail .gal-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--fill);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gl-ai-detail .gal-main img { width: 100%; height: 100%; object-fit: cover; }

.gl-ai-detail .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gl-ai-detail .badge {
    font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 7px;
    background: var(--blue-l); color: var(--blue-d); white-space: nowrap;
}
.gl-ai-detail .badge.g { background: var(--fill); color: var(--ink2); }
.gl-ai-detail .badge.m { background: var(--mint-l); color: var(--mint-d); }

.gl-ai-detail h1.p-title {
    font-size: 21px; font-weight: 800; letter-spacing: -.04em; line-height: 1.36;
    margin: 0 0 6px; word-break: keep-all;
}
.gl-ai-detail p.p-sub { font-size: 12.5px; color: var(--ink3); margin: 0 0 14px; line-height: 1.55; }
.gl-ai-detail .p-price { display: flex; align-items: flex-end; gap: 7px; flex-wrap: wrap; }
.gl-ai-detail .p-price b { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.gl-ai-detail .p-price i { font-style: normal; font-size: 15px; font-weight: 700; padding-bottom: 4px; }
.gl-ai-detail .p-price span { font-size: 12px; color: var(--ink3); padding-bottom: 6px; }

.gl-ai-detail .itab { display: flex; gap: 5px; background: var(--fill); padding: 4px; border-radius: 12px; margin: 0 0 10px; }
.gl-ai-detail .itab button {
    flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px;
    font-size: 12.5px; font-weight: 700; color: var(--ink3); cursor: pointer;
}
.gl-ai-detail .itab button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16, 24, 42, .10); }
.gl-ai-detail .ipanel { display: none; }
.gl-ai-detail .ipanel.on { display: flex; flex: 1; }
.gl-ai-detail .ipanel table { width: 100%; height: 100%; border-collapse: collapse; font-size: 12.5px; }
.gl-ai-detail .ipanel th {
    text-align: left; padding: 10px 13px; background: var(--fill); color: var(--ink2);
    font-weight: 600; width: 28%; vertical-align: middle; border-radius: 8px 0 0 8px;
}
.gl-ai-detail .ipanel td { padding: 10px 13px; vertical-align: middle; }
.gl-ai-detail .ipanel tr + tr th, .gl-ai-detail .ipanel tr + tr td { border-top: 1px solid var(--line); }
.gl-ai-detail .itab-note { margin: 12px 0 0; font-size: 11px; color: var(--ink3); line-height: 1.5; }

.gl-ai-detail .col-buy {
    background: #FBFCFD;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px;
    font-family: Pretendard, -apple-system, "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: -.02em;
}
.gl-ai-detail .col-buy button,
.gl-ai-detail .col-buy input,
.gl-ai-detail .col-buy select {
    font-family: inherit;
    letter-spacing: inherit;
}
.gl-ai-detail .lab { font-size: 14px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--ink); }
.gl-ai-detail .lab em { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--ink3); }
.gl-ai-detail .opt-box { position: relative; }
.gl-ai-detail .opt-box .sel {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.gl-ai-detail .opt-trigger {
    position: relative; height: auto; line-height: 1.35;
    width: 100%; min-height: 48px; padding: 12px 40px 12px 14px;
    border: 1px solid transparent; border-radius: var(--r-sm);
    background: var(--fill); color: var(--ink);
    display: flex; align-items: center; text-align: left;
    font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.gl-ai-detail .opt-trigger svg { position: absolute; right: 14px; top: 50%; margin-top: -4px; color: var(--ink2); pointer-events: none; transition: transform .18s ease; }
.gl-ai-detail .opt-trigger-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-ai-detail .opt-trigger-txt.is-ph { color: var(--ink3); font-weight: 500; }
.gl-ai-detail .opt-trigger:hover { background: #EBEEF2; }
.gl-ai-detail .opt-trigger[aria-expanded="true"] { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(49, 130, 246, .12); }
.gl-ai-detail .opt-trigger[aria-expanded="true"] svg { transform: translateY(1px) rotate(180deg); }
.gl-ai-detail .opt-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
    margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 12px 32px rgba(25, 31, 40, .14);
    max-height: 260px; overflow: auto;
}
.gl-ai-detail .opt-menu[hidden] { display: none; }
.gl-ai-detail .opt-item {
    width: 100%; height: auto; line-height: 1.35; padding: 11px 12px; border: 0; border-radius: 10px;
    background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    cursor: pointer; text-align: left;
}
.gl-ai-detail .opt-item:hover { background: var(--fill); }
.gl-ai-detail .opt-item.is-on { background: var(--blue-l); }
.gl-ai-detail .opt-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.gl-ai-detail .opt-item-meta { display: flex; align-items: center; gap: 6px; flex: none; }
.gl-ai-detail .opt-item-meta em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--red); background: #FDECEE; padding: 2px 6px; border-radius: 6px; }
.gl-ai-detail .opt-item-meta b { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.gl-ai-detail .qty { display: flex; align-items: center; gap: 10px; }
.gl-ai-detail .qty-ctl { display: flex; align-items: center; border-radius: var(--r-sm); background: var(--fill); overflow: hidden; }
.gl-ai-detail .qty-ctl button { width: 40px; height: 48px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink2); }
.gl-ai-detail .qty-ctl button:hover { background: #E4E8ED; }
.gl-ai-detail .qty-ctl input {
    width: 48px; height: 48px; border: 0; background: transparent; text-align: center;
    font-size: 15px; font-weight: 700; font-family: inherit;
}
.gl-ai-detail .qty-note,
.gl-ai-detail .stock-note {
    margin: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.4; min-height: 18px;
}
.gl-ai-detail .qty-note { white-space: nowrap; }
.gl-ai-detail .stock-note { grid-column: 1; }
.gl-ai-detail .qty-note { grid-column: 2; }

.gl-ai-detail .summary {
    margin-top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 16px; position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.gl-ai-detail .summary .tot { display: flex; justify-content: space-between; align-items: center; }
.gl-ai-detail .summary .tot span { font-size: 13.5px; font-weight: 700; }
.gl-ai-detail .summary .tot b { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.gl-ai-detail .summary-note { min-height: 20px; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.gl-ai-detail .summary-note.active { color: var(--blue-d); }
.gl-ai-detail .summary-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink2); }
.gl-ai-detail .detail-trigger { border: 0; background: none; color: var(--ink2); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 2px; }
.gl-ai-detail .detail-trigger:disabled { color: var(--ink3); cursor: default; }
.gl-ai-detail .price-detail {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
    padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 8px 32px rgba(25, 31, 40, .15);
}
.gl-ai-detail .price-detail[hidden] { display: none; }
.gl-ai-detail .detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.gl-ai-detail .detail-close { border: 0; background: var(--fill); border-radius: 6px; cursor: pointer; padding: 3px 8px; }
.gl-ai-detail .detail-note { font-size: 11px; color: var(--ink3); margin: 8px 0 0; }
.gl-ai-detail .price-detail .row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; color: var(--ink2); }
.gl-ai-detail .price-detail .row b { color: var(--ink); font-weight: 600; }
.gl-ai-detail .price-detail .row.disc b { color: var(--red); }

.gl-ai-detail .s2b-mini {
    margin-top: 0; background: #F4F8FE; border: 1px solid #DEE9F9; border-radius: var(--r-sm);
    padding: 0 14px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #41607F; height: 48px;
}
.gl-ai-detail .s2b-mini .ic { flex: none; font-size: 9.5px; font-weight: 800; color: #fff; background: var(--s2b); border-radius: 5px; padding: 3px 6px; }
.gl-ai-detail .s2b-mini b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-ai-detail .s2b-mini .muted { color: #9FB2C8; font-weight: 500; }
.gl-ai-detail .purchase-field { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.gl-ai-detail .purchase-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gl-ai-detail .purchase-choice.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-ai-detail .purchase-choice button {
    height: 48px; min-height: 48px; padding: 0 4px; border: 1px solid #E4E8ED; border-radius: 10px;
    background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
}
.gl-ai-detail .purchase-choice button:hover { border-color: #B8D5FF; background: #F8FBFF; }
.gl-ai-detail .purchase-choice button.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); box-shadow: 0 0 0 1px rgba(49, 130, 246, .08); }
.gl-ai-detail .purchase-date {
    width: 100%; height: 48px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px;
    background: var(--fill); color: var(--ink); font: 600 14px inherit;
}
.gl-ai-detail .purchase-date:focus { outline: none; border-color: var(--blue); background: #fff; }
.gl-ai-detail .purchase-context { margin-top: 0; padding: 12px 14px; border-radius: 10px; background: #F6F9FD; color: #3d4d5c; font-size: 13px; line-height: 1.45; }
.gl-ai-detail .buy-core-grid { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 16px; row-gap: 6px; align-items: start; }
.gl-ai-detail .buy-core-grid.is-qty-only { grid-template-columns: minmax(0, 240px); }
.gl-ai-detail .buy-core-grid.is-qty-only .stock-note,
.gl-ai-detail .buy-core-grid.is-qty-only .qty-note { grid-column: 1; }
.gl-ai-detail .buy-core-grid .lab { margin-top: 0; min-height: 22px; }
.gl-ai-detail .buy-core-grid .opt-trigger { height: 48px; min-height: 48px; }
.gl-ai-detail .buy-core-grid .qty { align-items: center; min-height: 48px; }
.gl-ai-detail .purchase-field--date .purchase-date { max-width: 220px; }
.gl-ai-detail .buy-totals .summary { margin-top: 0; }
.gl-ai-detail .buy-totals .s2b-mini,
.gl-ai-detail .buy-totals .purchase-context { margin-top: 0; }

.gl-ai-detail .cta { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.gl-ai-detail .cta > .btn { width: 100%; }
.gl-ai-detail .btn,
.gl-ai-detail button.btn,
.gl-ai-detail a.btn {
    box-sizing: border-box;
    height: auto !important;
    min-height: 48px;
    line-height: 1.25 !important;
    padding: 14px 16px !important;
    border-radius: var(--r-sm);
    font-size: 14.5px !important;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}
.gl-ai-detail .btn-primary { background: var(--blue); color: #fff; }
.gl-ai-detail .btn-primary:hover { background: var(--blue-d); color: #fff; }
.gl-ai-detail .btn-s2b { background: var(--s2b); color: #fff; }
.gl-ai-detail .btn-s2b:hover { background: #1F55A6; color: #fff; }
.gl-ai-detail .btn-s2b:disabled { background: #E4E8ED; color: #B0BAC5; cursor: not-allowed; }
.gl-ai-detail .btn-ghost { background: var(--fill); color: var(--ink); }
.gl-ai-detail .btn-ghost:hover { background: #E4E8ED; }
.gl-ai-detail .btn-half { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
.gl-ai-detail .btn-half .btn { width: 100%; }
.gl-ai-detail .cta-hint { font-size: 11px; color: var(--ink3); text-align: center; margin: 4px 0 0; }

.gl-ai-detail .body-grid {
    display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px;
}
.gl-ai-detail .rail {
    position: sticky;
    top: var(--gl-ai-sticky-top);
    z-index: 5;
    align-self: start;
    max-height: calc(100vh - var(--gl-ai-sticky-top) - 16px);
    overflow: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 12px; box-shadow: 0 2px 12px rgba(16, 24, 42, .05);
}
.gl-ai-detail .rail h5 { margin: 0 0 12px; padding-left: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink3); letter-spacing: .02em; }
.gl-ai-detail .rail a {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
    text-decoration: none; color: var(--ink2); font-size: 13px; font-weight: 600;
}
.gl-ai-detail .rail a i { font-style: normal; font-size: 11px; font-weight: 800; color: #B0BAC5; min-width: 18px; }
.gl-ai-detail .rail a:hover { background: var(--fill); }
.gl-ai-detail .rail a.on { background: var(--blue-l); color: var(--blue-d); }
.gl-ai-detail .rail a.on i { color: var(--blue); }
.gl-ai-detail .rail-prog { margin-top: 14px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.gl-ai-detail .rail-prog span { font-size: 11px; color: var(--ink3); display: block; margin-bottom: 7px; }
.gl-ai-detail .rail-prog .track { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.gl-ai-detail .rail-prog .fill { height: 100%; width: 0; background: var(--blue); transition: width .2s; }

.gl-ai-detail .sec {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(16, 24, 42, .05);
    scroll-margin-top: calc(var(--gl-ai-sticky-top) + 8px);
}
.gl-ai-detail .sec-band { display: flex; align-items: center; gap: 13px; padding: 22px 28px 0; }
.gl-ai-detail .sec-no {
    flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-l); color: var(--blue-d);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.gl-ai-detail .sec-h { font-size: 19px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 2px; }
.gl-ai-detail .sec-d { font-size: 12.5px; color: var(--ink3); margin: 0; }
.gl-ai-detail .sec-in { padding: 18px 28px 28px; }
.gl-ai-detail .sub { background: #FAFBFC; border-radius: var(--r-md); padding: 18px; margin-bottom: 12px; }
.gl-ai-detail .sub:last-child { margin-bottom: 0; }
.gl-ai-detail .sub-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 11px; }
.gl-ai-detail .sub-h::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--blue); flex: none; }
.gl-ai-detail .sub-h em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink3); }

.gl-ai-detail table.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.gl-ai-detail table.tb th {
    background: #F4F6F8; text-align: left; padding: 10px 13px; font-weight: 600; width: 26%;
    vertical-align: top; color: var(--ink2); border-bottom: 1px solid var(--line);
}
.gl-ai-detail table.tb td { padding: 10px 13px; vertical-align: top; border-bottom: 1px solid var(--line); }
.gl-ai-detail table.tb tr:last-child th, .gl-ai-detail table.tb tr:last-child td { border-bottom: 0; }

.gl-ai-detail .alert { border-radius: var(--r-sm); padding: 14px 16px; font-size: 12.5px; line-height: 1.65; }
.gl-ai-detail .alert.amber { background: #FFF8E8; color: #8A6A16; }
.gl-ai-detail .alert.blue { background: var(--blue-l); color: #1B4E8F; }
.gl-ai-detail .alert ul { margin: 9px 0 0; padding-left: 18px; }

.gl-ai-detail .fold { position: relative; overflow: hidden; transition: max-height .28s ease; }
.gl-ai-detail .fold.closed { max-height: 520px; }
.gl-ai-detail .fold.open { max-height: none; }
.gl-ai-detail .fold-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.86) 55%, #fff 100%);
}
.gl-ai-detail .fold.open .fold-fade { display: none; }
.gl-ai-detail .fold-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 12px;
    padding: 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
    font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.gl-ai-detail .fold-btn svg { transition: transform .25s ease; }
.gl-ai-detail .fold-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.gl-ai-detail .cert { background: #EFF6FF; border: 1px solid #DBEAFE; border-radius: var(--r-lg); padding: 22px; margin-bottom: 14px; }
.gl-ai-detail .cert-head { margin-bottom: 14px; }
.gl-ai-detail .cert-head h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 5px; font-size: 17px; font-weight: 800; color: #1E3A8A; }
.gl-ai-detail .cert-head p { margin: 0; font-size: 13px; color: #4B5563; font-weight: 500; }
.gl-ai-detail .cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.gl-ai-detail .cert-item { background: #fff; padding: 14px 15px; border-radius: 12px; border: 1px solid #E0F2FE; display: flex; align-items: flex-start; gap: 9px; }
.gl-ai-detail .cert-item .ok { flex: none; color: #10B981; margin-top: 2px; }
.gl-ai-detail .cert-item h4 { margin: 0 0 3px; font-size: 13.5px; font-weight: 700; color: #111; }
.gl-ai-detail .cert-item p { margin: 0; font-size: 11.5px; color: #666; line-height: 1.45; }
.gl-ai-detail .cert-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gl-ai-detail .cert-btn {
    flex: 1; min-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; box-sizing: border-box;
}
.gl-ai-detail .cert-btn.fill { background: #2563EB; color: #fff; }
.gl-ai-detail .cert-btn.fill:hover { background: #1D4ED8; color: #fff; }
.gl-ai-detail .cert-btn.line { background: #fff; color: #2563EB; border-color: #2563EB; }
.gl-ai-detail .cert-btn .cv { transition: transform .2s; }
.gl-ai-detail .cert-btn[aria-expanded="true"] .cv { transform: rotate(180deg); }
.gl-ai-detail .cert-drop { display: none; margin-top: 10px; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.gl-ai-detail .cert-drop.on { display: block; }
.gl-ai-detail .cert-drop a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px;
    text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.gl-ai-detail .cert-drop a:last-child { border-bottom: 0; }
.gl-ai-detail .cert-drop a:hover { background: #F5F9FF; }
.gl-ai-detail .cert-drop a span.meta { font-size: 12px; color: var(--ink3); font-weight: 500; }
.gl-ai-detail .cert-note { margin-top: 14px; font-size: 11.5px; color: #5B6B85; line-height: 1.6; }

.gl-ai-detail .ai_content_area { font-size: 15px; line-height: 1.7; color: #374151; word-break: break-word; }
.gl-ai-detail .ai_content_area img { height: auto; }

.gl-ai-detail .seller { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-ai-detail .foot { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 26px; font-size: 12px; color: var(--ink3); line-height: 1.8; }

.gl-ai-detail .fixed {
    position: sticky; bottom: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 24px rgba(16, 24, 42, .12);
    padding: 12px 20px; display: flex; align-items: center; gap: 16px; z-index: 70; margin-top: 14px;
}
.gl-ai-detail .fixed .fx-name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-ai-detail .fixed .fx-price { font-size: 12.5px; color: var(--ink3); white-space: nowrap; }
.gl-ai-detail .fixed .fx-price b { font-size: 22px; color: var(--ink); margin-left: 8px; letter-spacing: -.04em; }
.gl-ai-detail .fixed .fx-btns { display: flex; gap: 9px; }
.gl-ai-detail .fixed .btn,
.gl-ai-detail .fixed button.btn {
    width: auto;
    min-width: 120px;
    min-height: 46px;
    padding: 12px 22px !important;
    font-size: 14px !important;
}

.gl-ai-totop {
    position: fixed; right: 28px; bottom: 110px; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; border: 1px solid #EFF1F4; box-shadow: 0 4px 16px rgba(16, 24, 42, .12);
    cursor: pointer; font-size: 16px; color: #4E5968; z-index: 80; display: none;
}
.gl-ai-totop.on { display: block; }

.gl-ai-detail .gl-ai-board-actions { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.gl-ai-detail .gl-ai-board-actions .btn { padding: 10px 18px; font-size: 13px; }
.gl-ai-detail .rev-sum {
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px;
    align-items: center; background: #fff; border-radius: var(--r-sm); padding: 18px;
}
.gl-ai-detail .rev-score { text-align: center; }
.gl-ai-detail .rev-score b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.gl-ai-detail .rev-score span { font-size: 11.5px; color: var(--ink3); }
.gl-ai-detail .bar { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink3); margin-bottom: 6px; }
.gl-ai-detail .bar .track { flex: 1; height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.gl-ai-detail .bar .fill { height: 100%; background: #FFB020; }
.gl-ai-detail .sortnote {
    font-size: 11.5px; color: var(--ink3); margin-bottom: 6px; padding: 11px 14px;
    background: #fff; border-radius: 12px;
}
.gl-ai-detail .rev { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.gl-ai-detail .rev:last-child { border-bottom: 0; }
.gl-ai-detail .rev-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink3); margin-bottom: 8px; }
.gl-ai-detail .rev-meta .who { color: var(--ink2); font-weight: 600; }
.gl-ai-detail .rev-body { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink); }
.gl-ai-detail .rev-body img { max-width: 100%; height: auto; }
.gl-ai-detail .rev-cmd { margin-top: 8px; font-size: 12px; }
.gl-ai-detail .rev-cmd a { color: var(--ink3); text-decoration: none; margin-right: 10px; }
.gl-ai-detail .rev-cmd a:hover { color: var(--blue); }
.gl-ai-detail .rev-reply {
    margin-top: 10px; padding: 12px 14px; background: var(--fill); border-radius: 10px;
    font-size: 12.5px; color: var(--ink2);
}
.gl-ai-detail .gl-ai-empty { margin: 18px 0 6px; text-align: center; color: var(--ink3); font-size: 13px; }
.gl-ai-detail .qa { background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.gl-ai-detail .qa table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gl-ai-detail .qa th { background: #F4F6F8; padding: 11px 13px; font-weight: 600; font-size: 12.5px; color: var(--ink2); text-align: left; }
.gl-ai-detail .qa td { padding: 12px 13px; border-top: 1px solid var(--line); vertical-align: middle; }
.gl-ai-detail .qa .col-st { width: 130px; }
.gl-ai-detail .qa .col-who { width: 88px; }
.gl-ai-detail .qa .col-date { width: 104px; }
.gl-ai-detail .qa .st { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--fill); color: var(--ink2); white-space: nowrap; }
.gl-ai-detail .qa .st.done { background: var(--blue-l); color: var(--blue-d); }
.gl-ai-detail .qa .st.wait { background: #FFF3DC; color: #C98A16; }
.gl-ai-detail .qa .lock { color: var(--ink3); }
.gl-ai-detail .qa .subj { font-weight: 500; cursor: pointer; }
.gl-ai-detail .qa .subj:hover { color: var(--blue); text-decoration: underline; }
.gl-ai-detail .qa .ans { display: none; background: #FAFBFC; font-size: 12.5px; color: var(--ink2); }
.gl-ai-detail .qa .ans td { padding: 14px 16px 16px; }
.gl-ai-detail .qa-q, .gl-ai-detail .qa-a { display: flex; gap: 10px; align-items: flex-start; }
.gl-ai-detail .qa-a { margin-top: 10px; }
.gl-ai-detail .qa-q span, .gl-ai-detail .qa-a span {
    flex: none; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.gl-ai-detail .qa-q span { background: var(--fill); color: var(--ink2); }
.gl-ai-detail .qa-a span { background: var(--blue-l); color: var(--blue-d); }
.gl-ai-detail .pg_wrap { margin: 16px 0 0; text-align: center; }
.gl-ai-detail .pg { display: inline-flex; gap: 4px; align-items: center; }
.gl-ai-detail .pg a, .gl-ai-detail .pg .pg_current {
    min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; display: inline-flex;
    align-items: center; justify-content: center; text-decoration: none; font-size: 13px; color: var(--ink2);
}
.gl-ai-detail .pg .pg_current { background: var(--blue-l); color: var(--blue-d); font-weight: 700; }

@media (max-width: 1100px) {
    .gl-ai-detail .hero-grid3 { grid-template-columns: 310px minmax(0, 1fr); grid-template-areas: "heading heading" "img buy"; }
    .gl-ai-detail .col-img { width: 310px; max-width: 100%; }
    .gl-ai-detail .hero-grid3 > .col-buy { grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
    .gl-ai-detail .body-grid { grid-template-columns: 1fr; }
    .gl-ai-detail .rail { position: static; }
}
@media (max-width: 900px) {
    .gl-ai-detail .hero-grid3 { grid-template-columns: 1fr; grid-template-areas: "heading" "img" "buy"; }
    .gl-ai-detail .col-img { width: min(100%, 356px); justify-self: center; }
    .gl-ai-detail .hero-grid3 > .col-buy { min-height: 0; }
}
@media (max-width: 720px) {
    .gl-ai-detail { padding: 12px 14px 28px; }
    .gl-ai-detail .hero { padding: 16px; }
    .gl-ai-detail .hero-grid3 { grid-template-columns: 1fr; grid-template-areas: "heading" "img" "buy"; }
    .gl-ai-detail .col-img { width: min(100%, 320px); justify-self: center; }
    .gl-ai-detail .hero-grid3 > .col-buy { display: flex; grid-template-columns: 1fr; gap: 16px; }
    .gl-ai-detail .purchase-choice.cols3,
    .gl-ai-detail .buy-core-grid { grid-template-columns: 1fr; }
    .gl-ai-detail .purchase-choice button { white-space: normal; }
    .gl-ai-detail .btn-half { grid-template-columns: 1fr; }
    .gl-ai-detail .cert-grid, .gl-ai-detail .seller, .gl-ai-detail .rev-sum { grid-template-columns: 1fr; }
    .gl-ai-detail .qa { overflow-x: auto; }
    .gl-ai-detail .sec-band, .gl-ai-detail .sec-in { padding-left: 16px; padding-right: 16px; }
    .gl-ai-detail .fixed { flex-wrap: wrap; }
    .gl-ai-detail .fixed .fx-name { flex-basis: 100%; }
}
