/*
 * 어른의 국어 상점 - shop.css v1.4 - Nakseo link
 * WP Pages: /shop/, /shop/notebooks/, /shop/pdf/, and product children
 * Other templates, post categories and post content are unaffected.
 */

body.gw-shop-layout .site-content { display: block; }
body.gw-shop-layout .content-area { width: 100%; }
body.gw-shop-layout .widget-area { display: none; }
body.gw-shop-layout .site-main { margin: 0; }

.gw-shop-page {
    --gw-shop-ink: #25372e;
    --gw-shop-green: #314a3b;
    --gw-shop-deep: #183f40;
    --gw-shop-paper: #f7f3e8;
    --gw-shop-light: #fbfaf6;
    --gw-shop-line: #ded8ca;
    --gw-shop-soft: #66655f;
    --gw-shop-gold: #bc924f;
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 22px 96px;
    color: #252a26;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.gw-shop-page *, .gw-shop-page *::before, .gw-shop-page *::after { box-sizing: border-box; }
.gw-shop-page a { text-underline-offset: 3px; }
.gw-shop-page a:focus-visible { outline: 3px solid #789b83; outline-offset: 4px; }
.gw-shop-page h1, .gw-shop-page h2, .gw-shop-page h3 { color: var(--gw-shop-ink); }
.gw-shop-page p { line-height: 1.85; }
.gw-shop-kicker {
    display: inline-block;
    color: var(--gw-shop-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* Intro */
.gw-shop-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 58px 72px;
    border: 1px solid var(--gw-shop-line);
    border-radius: 19px;
    background: linear-gradient(125deg, #f5f0e5 0%, #fbfaf6 63%, #e5eee6 100%);
}
.gw-shop-hero::after {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    right: -105px;
    top: -118px;
    border: 1px solid rgba(49,74,59,.13);
    border-radius: 50%;
    pointer-events: none;
}
.gw-shop-hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 59px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.052em;
}
.gw-shop-hero-lead {
    margin: 0 0 14px;
    color: var(--gw-shop-ink);
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 650;
}
.gw-shop-hero p:not(.gw-shop-hero-lead) {
    max-width: 675px;
    margin: 0;
    color: var(--gw-shop-soft);
    font-size: 16px;
}
.gw-shop-hero-inner { padding: 57px 50px; }
.gw-shop-hero-inner h1 { font-size: clamp(34px, 4.2vw, 51px); }
.gw-shop-page-intro {
    max-width: 900px;
    margin: 29px auto 0;
    padding: 14px 0 4px;
    border-bottom: 1px solid var(--gw-shop-line);
}
.gw-shop-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 23px;
    color: #777b73;
    font-size: 13px;
    line-height: 1.6;
}
.gw-shop-breadcrumbs a, .gw-shop-breadcrumbs a:visited { color: var(--gw-shop-green); text-decoration: none; }
.gw-shop-breadcrumbs a:hover { text-decoration: underline; }

/* Collection landing */
.gw-shop-section { margin-top: 73px; }
.gw-shop-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}
.gw-shop-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.04em;
}
.gw-shop-count { color: var(--gw-shop-soft); font-size: 14px; white-space: nowrap; }
.gw-shop-collections-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gw-shop-collection-card, .gw-shop-collection-card:visited {
    display: block;
    overflow: hidden;
    border: 1px solid var(--gw-shop-line);
    border-radius: 16px;
    background: #fff;
    color: var(--gw-shop-ink);
    text-decoration: none !important;
    box-shadow: 0 9px 24px rgba(26,42,32,.025);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gw-shop-collection-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(26,42,32,.09); }
.gw-shop-collection-card.is-unavailable:hover { transform: none; box-shadow: none; }
.gw-shop-collection-image {
    height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e8dec9;
}
.gw-shop-collection-image-pdf { background: #dce8df; }
/* New craft/dot-to-dot storefront card. No external preview image is needed. */
.gw-shop-collection-image-nakseo {
    background: linear-gradient(135deg, #e5eee3 0%, #f5f1e7 58%, #e4e9dd 100%);
}
.gw-shop-nakseo-illustration {
    width: min(90%, 300px);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 7px rgba(36, 58, 43, .08));
}
.gw-shop-collection-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-shop-collection-symbol { font-family: Georgia, 'Noto Serif CJK KR', serif; font-weight: 600; color: rgba(29,75,57,.55); font-size: 112px; line-height: 1; }
.gw-shop-collection-content { padding: 26px 30px 29px; }
.gw-shop-product-kind { display: inline-block; color: #667d6a; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.gw-shop-collection-content h3 { font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.35; margin: 10px 0 10px; }
.gw-shop-collection-content p { margin: 0 0 22px; color: var(--gw-shop-soft); font-size: 15px; }
.gw-shop-category-cta { color: var(--gw-shop-green); font-size: 14px; font-weight: 800; }

/* Product cards */
.gw-shop-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gw-shop-product-card { min-width: 0; margin: 0; border: 1px solid var(--gw-shop-line); border-radius: 15px; overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.gw-shop-product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,50,35,.09); }
.gw-shop-product-card-link, .gw-shop-product-card-link:visited { display: block; height: 100%; color: inherit; text-decoration: none !important; }
.gw-shop-product-media { height: 228px; display: grid; place-items: center; background: var(--gw-shop-paper); overflow: hidden; }
.gw-shop-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.gw-shop-image-placeholder { color: #6f806e; font-family: Georgia, 'Noto Serif CJK KR', serif; font-size: 91px; }
.gw-shop-product-info { display: flex; flex-direction: column; min-height: 195px; padding: 19px 21px 21px; }
.gw-shop-product-info h3 { margin: 7px 0 6px; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: -.03em; }
.gw-shop-product-subtitle { margin: 0; font-size: 13px; line-height: 1.65 !important; color: var(--gw-shop-soft); }
.gw-shop-product-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-top: auto; padding-top: 19px; }
.gw-shop-product-price { font-size: 19px; color: var(--gw-shop-ink); white-space: nowrap; }
.gw-shop-more { color: var(--gw-shop-green); font-weight: 750; font-size: 12px; white-space: nowrap; }
.gw-shop-collection-tabs { display: flex; gap: 9px; flex-wrap: wrap; padding: 30px 0 0; }
.gw-shop-tab, .gw-shop-tab:visited { display: inline-block; padding: 10px 18px; border: 1px solid #d8e0d7; border-radius: 30px; color: var(--gw-shop-green); background: #fff; font-size: 14px; font-weight: 750; text-decoration: none !important; }
.gw-shop-tab:hover { background: #edf3ed; }
.gw-shop-tab.is-active, .gw-shop-tab.is-active:visited { background: var(--gw-shop-green); color: #fff; border-color: var(--gw-shop-green); }
.gw-shop-empty { padding: 70px 25px; text-align: center; border: 1px dashed #d5d8cf; border-radius: 14px; background: var(--gw-shop-light); }
.gw-shop-empty > span { color: var(--gw-shop-gold); font-size: 39px; }
.gw-shop-empty h3 { margin: 14px 0 9px; font-size: 22px; }
.gw-shop-empty p { margin: 0; color: var(--gw-shop-soft); font-size: 15px; }

/* Secondary editorial banner */
.gw-shop-reading-note { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 72px; padding: 35px 39px; border-radius: 14px; background: var(--gw-shop-paper); border: 1px solid var(--gw-shop-line); }
.gw-shop-reading-note h2 { margin: 9px 0; font-size: 22px; letter-spacing: -.025em; }
.gw-shop-reading-note p { margin: 0; color: var(--gw-shop-soft); font-size: 14px; }

/* Buttons */
.gw-shop-btn, .gw-shop-btn:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 21px; border-radius: 9px; font-size: 15px; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none !important; transition: background-color .18s ease; }
.gw-shop-btn-primary, .gw-shop-btn-primary:visited { background: var(--gw-shop-green); border: 1px solid var(--gw-shop-green); color: #fff !important; }
.gw-shop-btn-primary:hover, .gw-shop-btn-primary:focus { background: var(--gw-shop-deep); color: #fff !important; }
.gw-shop-btn-secondary, .gw-shop-btn-secondary:visited { background: #fff; color: var(--gw-shop-green) !important; border: 1px solid var(--gw-shop-green); }
.gw-shop-btn-secondary:hover { background: #eef4ee; }
.gw-shop-btn-disabled { color: #656e68; background: #e9eae6; border: 1px solid #e0e2db; cursor: not-allowed; }

/* Product detail page */
.gw-shop-detail-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 50px; align-items: center; padding: 22px 0 52px; border-bottom: 1px solid var(--gw-shop-line); }
.gw-shop-detail-visual { min-width: 0; display: grid; place-items: center; min-height: 385px; border-radius: 16px; overflow: hidden; border: 1px solid var(--gw-shop-line); background: var(--gw-shop-paper); }
.gw-shop-main-image { display: block; width: 100%; max-height: 540px; height: auto; object-fit: contain; padding: 16px; }
.gw-shop-detail-image-placeholder { font-family: Georgia, 'Noto Serif CJK KR', serif; color: #667e65; font-size: 164px; }
.gw-shop-detail-overview h1 { margin: 12px 0 14px; font-size: clamp(31px, 3.8vw, 46px); letter-spacing: -.045em; font-weight: 800; line-height: 1.34; }
.gw-shop-detail-subtitle { color: var(--gw-shop-soft); font-size: 17px; margin: 0 0 22px; }
.gw-shop-detail-price { color: #223e2d; font-size: 29px; font-weight: 850; letter-spacing: -.025em; margin: 17px 0 19px; }
.gw-shop-detail-benefits { border-top: 1px solid var(--gw-shop-line); padding-top: 17px; margin-top: 16px; }
.gw-shop-detail-benefits p { font-size: 14px; line-height: 1.7; color: var(--gw-shop-soft); margin: 0 0 6px; }
.gw-shop-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding-top: 23px; }
.gw-shop-external-note { margin: 10px 0 0; color: #777; font-size: 12px; }
.gw-shop-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 58px; margin-top: 60px; }
.gw-shop-detail-description h2 { margin: 9px 0 23px; font-size: 28px; letter-spacing: -.04em; }
.gw-shop-detail-aside { padding: 26px 25px; border-radius: 13px; background: var(--gw-shop-light); border: 1px solid var(--gw-shop-line); }
.gw-shop-detail-aside h2 { margin: 0 0 15px; font-size: 19px; }
.gw-shop-detail-aside p { color: var(--gw-shop-soft); font-size: 13px; line-height: 1.8; }
.gw-shop-detail-aside .gw-shop-btn { width: 100%; margin-top: 10px; }
.gw-shop-delivery-note { padding: 15px 0; margin: 15px 0; border-top: 1px solid var(--gw-shop-line); border-bottom: 1px solid var(--gw-shop-line); font-size: 13px; line-height: 1.8; }
.gw-shop-bottom-link { margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--gw-shop-line); }
.gw-shop-bottom-link a, .gw-shop-bottom-link a:visited { color: var(--gw-shop-green); font-weight: 800; text-decoration: none; }
.gw-shop-bottom-link a:hover { text-decoration: underline; }

/* Native WordPress blocks / editor copy, only inside shop. */
.gw-shop-richtext { font-size: 16px; line-height: 1.9; }
.gw-shop-richtext p { margin: 0 0 20px; }
.gw-shop-richtext h2 { font-size: 25px; letter-spacing: -.035em; margin: 35px 0 14px; }
.gw-shop-richtext h3 { font-size: 20px; margin: 27px 0 12px; }
.gw-shop-richtext ul, .gw-shop-richtext ol { margin-left: 21px; padding: 0; }
.gw-shop-richtext li { margin-bottom: 8px; }
.gw-shop-richtext img { max-width: 100%; height: auto; border-radius: 9px; }
.gw-shop-richtext figure { max-width: 100%; margin: 24px auto; }
.gw-shop-richtext figure figcaption { color: var(--gw-shop-soft); font-size: 13px; text-align: center; }
.gw-shop-richtext .wp-block-gallery { margin: 23px 0; }
.gw-shop-richtext .wp-block-image img { height: auto; }
.gw-shop-richtext .wp-block-button__link { background: var(--gw-shop-green); border-radius: 9px; }

@media (max-width: 1024px) {
    .gw-shop-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-shop-collection-card-nakseo {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(220px, .92fr) minmax(0, 1.08fr);
    }
    .gw-shop-collection-card-nakseo .gw-shop-collection-image { height: 100%; min-height: 210px; }
    .gw-shop-collection-card-nakseo .gw-shop-collection-content { align-self: center; }
    .gw-shop-detail-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 30px; }
    .gw-shop-products-grid { gap: 15px; }
    .gw-shop-product-info { padding: 17px 15px; }
}
@media (max-width: 820px) {
    .gw-shop-hero { padding: 55px 35px; }
    .gw-shop-detail-hero { grid-template-columns: 1fr; gap: 30px; }
    .gw-shop-detail-visual { max-width: 650px; width: 100%; margin: 0 auto; }
    .gw-shop-detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .gw-shop-detail-aside { max-width: 100%; }
    .gw-shop-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-shop-collection-image { height: 205px; }
    .gw-shop-reading-note { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .gw-shop-page { padding: 12px 16px 65px; }
    .gw-shop-hero { padding: 41px 24px; border-radius: 12px; }
    .gw-shop-hero h1 { font-size: 35px; }
    .gw-shop-hero p:not(.gw-shop-hero-lead) { font-size: 14px; }
    .gw-shop-hero-lead { font-size: 19px; }
    .gw-shop-section { margin-top: 48px; }
    .gw-shop-section-head { margin-bottom: 19px; }
    .gw-shop-collections-grid { grid-template-columns: 1fr; gap: 18px; }
    .gw-shop-collection-card-nakseo { grid-column: auto; display: block; }
    .gw-shop-collection-card-nakseo .gw-shop-collection-image { height: 210px; min-height: 0; }
    .gw-shop-collection-image { height: 210px; }
    .gw-shop-collection-content { padding: 22px 22px 25px; }
    .gw-shop-collection-content h3 { font-size: 22px; }
    .gw-shop-products-grid { grid-template-columns: 1fr; gap: 18px; }
    .gw-shop-product-media { height: 238px; }
    .gw-shop-product-info { min-height: 160px; padding: 19px 20px; }
    .gw-shop-reading-note { padding: 24px; margin-top: 48px; }
    .gw-shop-detail-hero { padding: 10px 0 35px; }
    .gw-shop-detail-visual { min-height: 240px; }
    .gw-shop-detail-overview h1 { font-size: 30px; }
    .gw-shop-detail-actions .gw-shop-btn { width: 100%; }
    .gw-shop-detail-price { font-size: 26px; }
    .gw-shop-detail-layout { margin-top: 45px; }
    .gw-shop-collection-tabs { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-shop-page .gw-shop-collection-card,
    .gw-shop-page .gw-shop-product-card,
    .gw-shop-page .gw-shop-btn { transition: none; }
    .gw-shop-page .gw-shop-collection-card:hover,
    .gw-shop-page .gw-shop-product-card:hover { transform: none; }
}
