/**
 * drsoft-store 테마 - 헤더·푸터·홈 (store.drsoft.co.kr)
 *
 * 색·간격 토큰은 base.css(it-hp 스타일 스냅샷)의 :root 를 쓴다. 쇼핑 페이지 본문은 tp-link.css·synology.css 가 맡는다.
 * 접두사 st- 는 base.css 의 클래스와 겹치지 않게 한 것이다.
 *
 *  1) 기본·접근성   2) 헤더·내비   3) 홈 히어로   4) 벤더 카드   5) 안내 3열   6) 푸터   7) 반응형
 */

/* ========================================
   1) 기본·접근성
   ======================================== */
.st-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.st-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius-md);
}
.st-skip:focus { top: 12px; }

.st-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.st-body a:focus-visible, .st-body button:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

/* ========================================
   2) 헤더·내비 — 높이는 --header-h(76px). 쇼핑 페이지의 sticky 오프셋이 이 값을 쓴다
   ======================================== */
.st-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}
.st-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.st-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1.05rem;
}
.st-brand:hover { text-decoration: none; }
.st-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--navy-900);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.st-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.st-nav__link {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.st-nav__link:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.st-nav__link.is-active { color: var(--blue-700); background: var(--blue-100); }
.st-nav__link--ext { color: var(--text-muted); font-weight: 500; }

.st-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.st-nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--navy-900); }

/* ========================================
   3) 홈 히어로
   ======================================== */
.st-hero {
    padding: 72px 0 64px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.st-hero__eyebrow {
    margin: 0 0 16px;
    color: var(--blue-600);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.st-hero__title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.st-hero__lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.st-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.st-btn:hover { text-decoration: none; }
.st-btn--primary { background: var(--blue-600); color: #fff; }
.st-btn--primary:hover { background: var(--blue-700); color: #fff; }
.st-btn--line { border-color: #b7c2d3; color: var(--text-secondary); background: var(--bg-white); }
.st-btn--line:hover { background: var(--blue-50); }

/* ========================================
   4) 벤더 카드
   ======================================== */
.st-section { padding: 64px 0; }
.st-section__title { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.st-section__desc { margin: 0 0 32px; color: var(--text-muted); }

.st-vendors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.st-vendor {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}
.st-vendor__logo { display: block; height: 40px; width: auto; max-width: 180px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.st-vendor__name { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.st-vendor__text { margin: 10px 0 0; color: var(--text-secondary); flex: 0 0 auto; }
.st-vendor__meta { margin: 14px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; flex: 1 1 auto; align-content: flex-start; }
.st-chips a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}
.st-chips a:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-700); }
.st-chips small { color: var(--text-light); font-weight: 500; }
.st-vendor__actions { margin-top: 22px; }

/* ========================================
   5) 안내 3열
   ======================================== */
.st-info { background: var(--bg-light); border-top: 1px solid var(--border-color); }
.st-info__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-info__item { padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-white); }
.st-info__item h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.st-info__item p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; }

/* ========================================
   6) 푸터
   ======================================== */
.st-footer { background: var(--navy-900); color: #c9d4e6; font-size: 0.92rem; }
.st-footer a { color: #c9d4e6; }
.st-footer__inner { display: flex; justify-content: space-between; gap: 40px; padding-top: 44px; padding-bottom: 36px; }
.st-footer__name { margin: 0 0 12px; color: #fff; font-weight: 800; }
.st-footer__info, .st-footer__links { margin: 0; padding: 0; list-style: none; }
.st-footer__info li, .st-footer__links li { padding: 2px 0; }
.st-footer__copy { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; color: #94a3bd; font-size: 0.85rem; }
.st-footer__copy p { margin: 0; }

/* ========================================
   7) 반응형
   ======================================== */
@media (max-width: 900px) {
    .st-vendors, .st-info__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .st-nav-toggle { display: inline-flex; }
    .st-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-h);
        padding: 8px 20px 14px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
    }
    .st-nav.is-open { display: block; }
    .st-nav__list { flex-direction: column; align-items: stretch; }
    .st-nav__link { padding: 12px 8px; }

    .st-hero { padding: 52px 0 44px; }
    .st-section { padding: 48px 0; }
    .st-footer__inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 480px) {
    .st-hero__actions .st-btn { width: 100%; }
}
