/* THE-K — original styles, palette inspired by reference */

:root {
    --brand-dark:    #1a1a1a;        /* 상단 검은 바 */
    --brand-purple:  #6b3f8a;        /* 활성 탭, 포인트 */
    --brand-purple-2:#8a5cb3;        /* 보조 퍼플 */
    --brand-purple-hover:#5a3275;
    --brand-gold:    #8b6336;        /* 로고/보더 골드 */
    --brand-gold-2:  #c9a96e;        /* 옅은 골드 */
    --grey-100:      #f6f5f3;
    --grey-200:      #efedea;
    --grey-300:      #e2d8c8;
    --grey-400:      #cfc8b9;
    --grey-500:      #888;
    --bg-body:       #f6f5f3;
    --bg-card:       #ffffff;
    --bg-soft:       #faf6f0;
    --text-default:  #222;
    --text-muted:    #777;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Malgun Gothic', '맑은 고딕', AppleSDGothicNeo, sans-serif; color: var(--text-default); background: var(--bg-body); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* =========================== PC LAYOUT =========================== */
.layout-pc { min-width: 1080px; background: var(--bg-body); }

.site-header { background: var(--brand-dark); color: #fff; }
.header-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-text { font-weight: 700; letter-spacing: 3px; font-size: 18px; font-family: 'Georgia', serif; color: #fff; }
.brand-sub { font-size: 13px; color: var(--brand-gold-2); letter-spacing: 1px; font-weight: 400; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.utility-nav { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; font-size: 13px; align-items: center; }
.utility-nav li { display: flex; align-items: center; }
.utility-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; opacity: .95; color: #fff; line-height: 1; }
.utility-nav a:hover { opacity: 1; color: var(--brand-purple-2); }
.utility-nav .u-ico { width: 14px; height: 14px; display: inline-block; color: var(--brand-purple-2); flex-shrink: 0; }
.utility-nav a:hover .u-ico { color: var(--brand-purple-2); }
.header-greet { margin: 0; font-size: 12px; color: #d8d2c4; letter-spacing: 0.3px; }
.header-greet strong { color: #a878c8; font-weight: 700; margin-right: 1px; }

.utility-nav .site-language-switcher {
    z-index: 30;
}

.utility-nav .site-language-current {
    min-width: 106px;
    height: 34px;
    padding: 0 12px;
    gap: 8px;
    border-color: #d5c7b4;
    border-radius: 4px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    background: #fffdf9;
}

.utility-nav .site-language-current:hover {
    color: var(--brand-dark);
}

.utility-nav .site-language-menu {
    right: 0;
    min-width: 168px;
    border-color: #d5c7b4;
    border-radius: 4px;
    overflow: hidden;
    z-index: 100;
}

.utility-nav .site-language-option {
    min-height: 36px;
    padding: 0 12px;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.utility-nav .site-language-chevron {
    border-color: var(--brand-dark);
}

/* 상단 헤더와 primary-nav 사이 옅은 회색 구분 띠 (chariscell 디자인) */
.header-divider { height: 18px; background: #d1d1d1; border-top: 1px solid #c0c0c0; border-bottom: 1px solid #b8b8b8; }

/* ===== Primary nav (chariscell 톤) ===== */
.primary-nav { background: #3c3b40; color: #fff; position: relative; z-index: 20; }
.primary-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; }
.primary-nav > .primary-nav-inner > ul { list-style: none; padding: 0; margin: 0; display: flex; }
.primary-nav .nav-item { position: relative; list-style: none; }
.primary-nav .nav-item + .nav-item { border-left: 1px solid rgba(255,255,255,0.12); }
.primary-nav .nav-item > a {
    display: block;
    padding: 13px 46px 13px 28px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.4px;
}
.primary-nav .nav-item:last-child > a { padding-right: 28px; }
.primary-nav .nav-item:hover > a,
.primary-nav .nav-item.active > a { background: var(--brand-purple); color: #fff; }

/* ===== Submenu: 부모 li 기준 좌측 정렬 가로 띠 (chariscell 동일) =====
   배경은 .primary-subnav 와 동일(--bg-soft) — ::before 가상 요소로 좌우 끝까지
   확장해서 호버 시 subnav 가 사라져도 한 줄 띠가 끊김 없이 보이게 한다 */
.primary-nav .nav-sub {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--grey-300);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 30;
    white-space: nowrap;
    height: 44px;
    align-items: center;
}
.primary-nav .nav-sub::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -100vw;
    right: -100vw;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--grey-300);
    z-index: -1;
}
.primary-nav .nav-item:hover > .nav-sub { display: flex; }
.primary-nav .nav-sub li { list-style: none; height: 100%; display: flex; align-items: center; }
.primary-nav .nav-sub li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.2px;
}
.primary-nav .nav-sub li a:hover { color: var(--brand-purple); background: rgba(0,0,0,0.04); }

/* PC 서브메뉴 strip (현재 부모 메뉴의 자식들 — 전용 영역) */
.primary-subnav { background: var(--bg-soft); border-bottom: 1px solid var(--grey-300); height: 44px; transition: visibility 0s; }
.primary-subnav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; height: 100%; }
.primary-subnav a { padding: 0 20px; height: 100%; display: flex; align-items: center; font-size: 14px; color: #555; white-space: nowrap; position: relative; }
.primary-subnav a:hover { color: var(--brand-purple); }
.primary-subnav a.on { color: var(--brand-purple); font-weight: 700; }
.primary-subnav a.on:after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--brand-purple); }

/* 대메뉴 hover 중일 때 (드롭다운이 보일 때) 기존 subnav 숨김 — 시각적 충돌 방지 */
.primary-nav:has(.nav-item:hover) + .primary-subnav { visibility: hidden; }

.page-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }

/* 페이지 헤드: 좌측 타이틀 / 우측 빵부스러기 */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid #8b6336; }
.page-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #222; padding: 0; border: none; }
.page-breadcrumb { font-size: 12px; color: #888; line-height: 1.4; padding-bottom: 4px; }
.page-breadcrumb .sep { margin: 0 6px; color: #bbb; }
.page-breadcrumb strong { color: #8b6336; font-weight: 600; }

.page-body { background: #fff; border: 1px solid #e2d8c8; padding: 24px; }

.site-footer { background: #efedea; color: #555; padding: 28px 20px; text-align: center; font-size: 12px; border-top: 1px solid var(--grey-300); }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-view-toggle { margin-bottom: 14px; font-size: 12px; }
.footer-view-toggle a { display: inline-block; padding: 4px 12px; color: #666; border: 1px solid #cfcfcf; background: #fff; }
.footer-view-toggle a.on { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); font-weight: 600; }
.footer-view-toggle .sep { display: inline-block; width: 4px; }
.footer-links { padding-bottom: 14px; border-bottom: 1px solid var(--grey-300); margin-bottom: 14px; font-size: 13px; }
.footer-links a { color: #444; margin: 0 8px; }
.footer-links a:hover { color: var(--brand-purple); }
.footer-links .sep { color: #ccc; }
.footer-company p { margin: 4px 0; }
.footer-company .sep { color: #ccc; margin: 0 6px; }
.footer-copy { margin-top: 8px !important; color: #888; font-size: 11px; }

/* 모바일 풋터 */
.m-footer-view-toggle { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 16px 6px; background: #fff; font-size: 13px; }
.m-footer-view-toggle a { display: inline-block; padding: 6px 16px; border: 1px solid #cfcfcf; background: #fff; color: #555; font-weight: 600; border-radius: 2px; }
.m-footer-view-toggle a.on { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
.m-footer-view-toggle .sep { color: #ccc; }
.m-footer-links { display: flex; justify-content: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid #eee; background: #fff; font-size: 13px; }
.m-footer-links a { color: #444; }
.m-footer-links .sep { color: #ccc; }
.m-footer { background: #efedea; padding: 16px; font-size: 11px; color: #777; line-height: 1.6; }
.m-footer p { margin: 2px 0; }
.m-footer .sep { color: #bbb; margin: 0 4px; }
.m-footer-copy { color: #999; margin-top: 8px !important; font-size: 10px !important; }

/* =========================== Generic Components =========================== */
.box-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: #faf6f0; border: 1px solid #e6dcc8; margin-bottom: 16px; }
.box-search label { font-size: 13px; color: #555; }
.box-search input[type="text"],
.box-search input[type="date"],
.box-search input[type="month"],
.box-search select { padding: 6px 8px; border: 1px solid #c9bda5; background: #fff; font-size: 13px; }
.btn { display: inline-block; padding: 6px 16px; border: 1px solid #8b6336; background: #8b6336; color: #fff; font-size: 13px; border-radius: 2px; }
.btn:hover { background: #6e4d27; border-color: #6e4d27; }
.btn-outline { background: #fff; color: #8b6336; }
.btn-outline:hover { background: #faf6f0; color: #6e4d27; }

.data-table { font-size: 13px; }
.data-table th { background: #f4ecdd; border-bottom: 2px solid #8b6336; color: #6e4d27; padding: 10px 8px; font-weight: 600; }
.data-table td { border-bottom: 1px solid #eadfc7; padding: 10px 8px; text-align: center; }
.data-table tbody tr:hover { background: #fbf8f1; }

.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.summary-card { background: #fff; border: 1px solid #e2d8c8; padding: 16px; border-radius: 2px; text-align: center; }
.summary-card .label { color: #888; font-size: 12px; }
.summary-card .value { color: #8b6336; font-size: 20px; font-weight: 700; margin-top: 6px; }
.summary-card .desc { color: #777; font-size: 11px; line-height: 1.4; margin-top: 7px; }

.tab-list { display: flex; gap: 4px; border-bottom: 1px solid #c9bda5; margin: 0 0 16px; padding: 0; list-style: none; }
.tab-list li a { display: block; padding: 8px 18px; background: #f1e9d8; border: 1px solid #c9bda5; border-bottom: none; color: #6b5b3d; font-size: 13px; }
.tab-list li.on a,
.tab-list li a:hover { background: #fff; color: #8b6336; font-weight: 700; }

.page-empty { text-align: center; padding: 60px 0; color: #888; }

/* =========================== Mobile LAYOUT =========================== */
.layout-mobile { background: #fff; min-width: 0; }

/* 상단 검은 바 (CHARIS) */
.m-topbar { position: sticky; top: 0; z-index: 40; height: 50px; background: #1a1a1a; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.m-icon-btn { width: 36px; height: 36px; background: transparent; border: none; padding: 0; color: #fff; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; }
.m-icon-btn span { display: block; width: 22px; height: 2px; background: #fff; }
.m-topbar-brand { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 4px; font-family: 'Georgia', serif; }

/* 더케이그룹 / 아이오피스 탭 */
.m-tabs { display: flex; background: #fff; border-bottom: 1px solid #ddd; }
.m-tab { flex: 1; padding: 14px 0; text-align: center; color: #888; background: #e8e8e8; font-size: 15px; font-weight: 600; border-right: 1px solid #d2d2d2; }
.m-tab:last-child { border-right: none; }
.m-tab.on { background: #6b3f8a; color: #fff; }

/* 카테고리 + 페이지 드롭다운 두 개 */
.m-ddmenu { display: flex; gap: 10px; padding: 12px; background: #fff; border-bottom: 1px solid #eee; }
.m-dd { position: relative; flex: 1; }
.m-dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fff; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 14px; color: #222; cursor: pointer; }
.m-dd-btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.m-dd-btn .caret { color: #888; flex-shrink: 0; transition: transform .2s; }
.m-dd.open .m-dd-btn { border-color: #8b6336; }
.m-dd.open .caret { transform: rotate(180deg); }
.m-dd-list { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 6px 0 0; padding: 4px 0; background: #fff; border: 1px solid #d0d0d0; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); z-index: 30; list-style: none; max-height: 320px; overflow-y: auto; }
.m-dd.open .m-dd-list { display: block; }
.m-dd-list li { list-style: none; }
.m-dd-list li a { display: block; padding: 11px 14px; font-size: 14px; color: #333; }
.m-dd-list li a:active,
.m-dd-list li.on a { background: #4a6cf7; color: #fff; }
.m-dd-list li a:hover { background: #f5f5f5; }
.m-dd-list li.on a:hover { background: #4a6cf7; color: #fff; }

/* 구버전 (m-header) 남겨둠 — 다른 곳에서 쓰면 깨지지 않도록 */
.m-header { position: sticky; top: 0; z-index: 20; height: 50px; background: #fff; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.m-menu-btn { width: 32px; height: 32px; background: transparent; border: none; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.m-menu-btn span { display: block; width: 22px; height: 2px; background: #222; }
.m-brand { font-size: 16px; font-weight: 700; color: #8b6336; letter-spacing: 1px; }
.m-cart-btn { color: #444; }

.m-sidemenu { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: #fff; border-right: 1px solid #ddd; z-index: 60; transition: left .28s ease; overflow-y: auto; }
.m-sidemenu.open { left: 0; box-shadow: 4px 0 16px rgba(0,0,0,0.18); }
.m-sidemenu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #8b6336; color: #fff; }
.m-logout { background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.m-sidemenu-list { list-style: none; margin: 0; padding: 0; }
.m-sidemenu-group { border-bottom: 1px solid #eee; padding: 10px 0; }
.m-sidemenu-label { color: #8b6336; font-size: 12px; font-weight: 700; margin: 0 0 6px; padding: 0 16px; letter-spacing: 1px; }
.m-sidemenu-group ul { list-style: none; padding: 0; margin: 0; }
.m-sidemenu-group ul li a { display: block; padding: 10px 16px 10px 24px; font-size: 14px; color: #333; }
.m-sidemenu-group ul li a:active { background: #f5f0e6; }
.m-sidemenu-bottom { padding: 14px 16px; }
.m-sidemenu-bottom a { color: #8b6336; font-size: 13px; text-decoration: underline; }
.m-sidemenu-bottom .site-language-switcher {
    width: 100%;
    display: flex;
    margin-bottom: 12px;
}
.m-sidemenu-bottom .site-language-current {
    width: 100%;
    height: 42px;
    justify-content: space-between;
    border-radius: 4px;
}
.m-sidemenu-bottom .site-language-menu {
    width: 100%;
    min-width: 0;
    border-radius: 4px;
    z-index: 120;
}
.m-sidemenu-dim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 50; display: none; }
.m-sidemenu-dim.show { display: block; }

.m-page-head { background: #fff; padding: 16px 16px 10px; border-bottom: 1px solid #eee; }
.m-page-title { font-size: 18px; font-weight: 700; margin: 0; color: #222; }
.m-breadcrumb { margin: 6px 0 0; font-size: 11px; color: #888; }
.m-breadcrumb .sep { margin: 0 4px; color: #ccc; }

.m-page-body { padding: 16px; padding-bottom: 80px; min-height: calc(100vh - 200px); }

.m-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #fff; border-top: 1px solid #eee; display: flex; }
.m-bottom-nav a { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; }
.m-bottom-nav a.on { color: #8b6336; font-weight: 700; }

/* =========================== Mobile Components =========================== */
.m-card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 14px; margin-bottom: 10px; }
.m-card-title { font-size: 14px; font-weight: 700; color: #222; margin: 0 0 8px; }
.m-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: #555; }
.m-row .v { color: #222; font-weight: 600; }
.m-btn { display: inline-block; padding: 10px 14px; background: #8b6336; color: #fff; font-size: 14px; border-radius: 4px; }
.m-btn.outline { background: #fff; color: #8b6336; border: 1px solid #8b6336; }
.m-search-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.m-search-bar input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.m-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.m-summary-item { background: #faf6f0; border: 1px solid #ead8b8; padding: 10px; border-radius: 4px; text-align: center; }
.m-summary-item .label { color: #888; font-size: 11px; }
.m-summary-item .value { color: #8b6336; font-size: 16px; font-weight: 700; margin-top: 2px; }
.m-summary-item .desc { color: #777; font-size: 10px; line-height: 1.35; margin-top: 5px; }

/* =========================== HOME (PC) =========================== */
.page-wrap.is-home { padding: 28px 20px 0; }
.page-wrap.is-home .page-body { padding: 0; background: transparent; border: none; }

.home-pc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-bottom: 36px; }

.home-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-content: start; }
.home-icon-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 1/1; border-radius: 6px; padding: 18px; color: #fff; text-align: center; transition: transform .15s; }
.home-icon-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.home-icon-card.grey   { background: #888; }
.home-icon-card.purple { background: var(--brand-purple); }
.home-icon-card .lbl { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0.5px; }
.home-icon-card .ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; color: #fff; background: transparent; border-radius: 0; }
.home-icon-card .ico svg { width: 100%; height: 100%; display: block; }

.home-side-col { display: flex; flex-direction: column; gap: 16px; }
.home-side-card { background: #fff; border: 1px solid var(--grey-300); padding: 20px; }
.home-side-title { margin: 0 0 4px; font-size: 16px; color: var(--brand-purple); font-weight: 700; }
.home-side-sub { margin: 0 0 12px; font-size: 12px; color: var(--text-muted); }
.home-notice-list { list-style: none; margin: 0; padding: 0; }
.home-notice-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.home-notice-list li:last-child { border-bottom: none; }
.home-notice-list li a { color: #333; }
.home-notice-list li a:hover { color: var(--brand-purple); }
.home-notice-list li .d { color: var(--text-muted); font-size: 12px; }

.home-allowance-table { width: 100%; font-size: 13px; }
.home-allowance-table th { background: var(--bg-soft); padding: 8px; font-weight: 600; color: #555; }
.home-allowance-table td { padding: 8px; text-align: center; border-bottom: 1px solid #f0eadc; }

.home-popular { margin-top: 8px; padding-bottom: 40px; }
.home-popular-head h2 { color: var(--brand-purple); margin: 0 0 4px; font-size: 18px; }
.home-popular-head p { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.home-popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-popular-card { background: transparent; border: none; overflow: hidden; }
.home-popular-card .thumb { height: 220px; display: flex; align-items: center; justify-content: center; background: transparent; padding: 12px; }
.home-popular-card .thumb svg { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.home-popular-card .thumb img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.home-popular-card .name { padding: 12px 0; font-size: 14px; text-align: center; color: #333; line-height: 1.4; }
.home-popular-card:hover .name { color: var(--brand-purple); font-weight: 700; }
.home-popular-fallback { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; background: #e2d4ee; color: var(--brand-purple); font-weight: 700; font-size: 13px; text-align: center; padding: 12px; }

/* (홈 아이콘 박스는 home.php 안의 인라인 SVG 사용) */

/* =========================== HOME (Mobile) =========================== */
.m-hero { position: relative; height: 320px; overflow: hidden; }
.m-hero-slides { position: relative; height: 100%; }
.m-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: flex; align-items: center; justify-content: center; color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; }
.m-hero-slide:before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.18); }
.m-hero-slide.on { opacity: 1; }
.m-hero-text { position: relative; z-index: 1; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.m-hero-text strong { display: block; font-size: 32px; font-family: 'Georgia', serif; letter-spacing: 4px; }
.m-hero-text small { display: block; font-size: 14px; margin-top: 8px; opacity: 0.85; }
.m-hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; }
.m-hero-dots .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); margin: 0 4px; cursor: pointer; }
.m-hero-dots .dot.on { background: #fff; }

.m-quickmenu { display: grid; grid-template-columns: repeat(4, 1fr); background: #6e6e6e; }
.m-quickmenu a { padding: 18px 4px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid #5a5a5a; font-size: 12px; line-height: 1.3; }
.m-quickmenu a:last-child { border-right: none; }
.m-quickmenu a:nth-child(2),
.m-quickmenu a:nth-child(4) { background: #585858; }
.m-quickmenu .ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.m-quickmenu .ico-cart:before  { content: '🛒'; }
.m-quickmenu .ico-doc:before   { content: '📋'; }
.m-quickmenu .ico-won:before   { content: '₩'; font-size: 18px; font-weight: 700; }
.m-quickmenu .ico-board:before { content: '📊'; }

.m-doc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px; background: #f7f4f7; border-bottom: 1px solid #e7e0e7; }
.m-doc-buttons a { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #d4c6d8; background: #fff; color: var(--brand-purple); font-size: 13px; font-weight: 700; }

.m-notice-strip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.m-notice-badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--brand-purple); color: var(--brand-purple); font-size: 11px; font-weight: 700; border-radius: 2px; flex-shrink: 0; }
.m-notice-link { flex: 1; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-notice-more { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ccc; text-align: center; line-height: 20px; color: #888; font-size: 14px; }

.m-popular { padding: 20px 16px; }
.m-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.m-section-head h2 { font-size: 16px; color: var(--brand-purple); margin: 0; }
.m-section-tabs .dot { display: inline-block; width: 10px; height: 10px; background: #ddd; margin-left: 4px; }
.m-section-tabs .dot.on { background: var(--brand-purple); }
.m-popular-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-popular-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.m-popular-thumb { height: 130px; display: flex; align-items: center; justify-content: center; color: var(--brand-purple); font-size: 12px; font-weight: 600; letter-spacing: 1px; background: #fbf8ff; padding: 10px; }
.m-popular-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.m-popular-name { padding: 10px; text-align: center; font-size: 13px; }

/* =========================== 간편주문 (chariscell 스타일) =========================== */
.cart-total { background: #fff; border: 1px solid #d6c0d6; margin-bottom: 18px; }
.cart-total .cart-con { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; gap: 20px; }
.cart-total .total-pay { display: flex; align-items: center; gap: 16px; flex: 1; }
.cart-total .total-pay .text { color: #555; font-size: 14px; font-weight: 600; }
.cart-total .total-pay p { margin: 0; font-size: 28px; font-weight: 700; color: var(--brand-purple); letter-spacing: -0.5px; }
.cart-total .total-pay p span { font-family: 'Georgia', serif; }
.cart-total .total-pay .rv { color: #999; font-size: 13px; }
.cart-total .total-pay .plus { color: #ccc; font-size: 20px; margin: 0 4px; }
.cart-total .total-pay .ship { color: #666; font-size: 13px; }
.cart-total .btn-box { display: flex; gap: 6px; flex-shrink: 0; }
.cart-total .btn-box a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; font-size: 14px; font-weight: 600; }
.cart-total .btn-box .cart { background: #fff; color: var(--brand-purple); border: 1px solid var(--brand-purple); }
.cart-total .btn-box .cart:hover { background: var(--bg-soft); }
.cart-total .btn-box .check { background: var(--brand-purple); color: #fff; border: 1px solid var(--brand-purple); }
.cart-total .btn-box .check:hover { background: var(--brand-purple-hover); }

.simple-category { list-style: none; padding: 0; margin: 0 0 14px; display: flex; gap: 4px; border-bottom: 2px solid var(--brand-purple); }
.simple-category li { list-style: none; }
.simple-category li a { display: inline-block; padding: 10px 24px; background: #eee; color: #555; font-size: 13px; font-weight: 600; border: 1px solid #ccc; border-bottom: none; }
.simple-category li a.active { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }

/* =========================== 관리팀 직급자 조회 =========================== */
.grade-filter { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #d9c3d9; padding: 16px 22px; margin-bottom: 18px; }
.grade-filter-left { display: flex; align-items: flex-start; gap: 18px; }
.grade-filter-title { color: var(--brand-purple); font-weight: 700; font-size: 14px; white-space: nowrap; padding-top: 2px; }
.grade-filter-notice p { margin: 0; font-size: 12px; color: #666; line-height: 1.7; }
.grade-filter-right { display: flex; gap: 6px; align-items: center; }
.grade-filter-right select { padding: 7px 10px; border: 1px solid #cfcfcf; font-size: 13px; min-width: 170px; background: #fff; }
.btn-grade-query { padding: 7px 18px; background: var(--brand-purple); color: #fff; border: 1px solid var(--brand-purple); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-grade-query:hover { background: var(--brand-purple-hover); }

.grade-twin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grade-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grade-col { background: #fafafa; border: 1px solid #e5e5e5; }
.grade-col-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #e5e5e5; background: #fff; font-size: 14px; font-weight: 600; color: #333; }
.grade-col-head .badge { color: var(--brand-purple); font-weight: 700; }
.grade-col-head .grade-count { margin-left: auto; color: var(--brand-purple); font-size: 13px; font-weight: 700; }
.grade-line-meta { padding: 8px 14px; border-bottom: 1px solid #eee; background: #fbfafb; color: #666; font-size: 12px; }
.grade-col-scroll { max-height: 420px; overflow-y: auto; background: #fff; }
.grade-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grade-table thead th { background: #f3f0f3; color: #555; padding: 8px 6px; border-bottom: 1px solid #e0d8e0; text-align: center; font-weight: 600; }
.grade-table tbody td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #f0eef0; color: #333; }
.grade-table tbody tr:hover td { background: #faf6fa; }
.grade-table td.st-on { color: #1e7a3a; }
.grade-table td.st-out { color: #a13030; }
.grade-empty { text-align: center; color: #999; padding: 30px 10px !important; font-style: italic; }
.grade-prompt { text-align: center; color: #999; padding: 50px 0; font-size: 14px; }

/* 모바일 직급자 */
.m-grade-filter { display: flex; gap: 6px; padding: 12px 14px 8px; }
.m-grade-filter select { flex: 1; padding: 8px 10px; border: 1px solid #ddd; font-size: 13px; }
.m-grade-notice { margin: 0 14px 12px; padding: 10px 12px; background: #faf6fa; border: 1px solid #ecd6ec; font-size: 11px; color: #666; line-height: 1.6; }
.m-grade-block { padding: 10px 14px; }
.m-grade-head { padding: 8px 12px; background: #f3f0f3; border: 1px solid #e0d8e0; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.m-grade-head strong { color: var(--brand-purple); }
.m-grade-count { color: var(--brand-purple); font-size: 12px; }
.m-grade-line-meta { margin: -2px 0 8px; padding: 8px 10px; background: #fbfafb; border: 1px solid #eee; color: #666; font-size: 12px; }
.m-row .v.st-on { color: #1e7a3a; }
.m-row .v.st-out { color: #a13030; }

/* =========================== 계층도 (PC dtree 팝업 스타일) =========================== */
.hier-popup { background:#fff; border:1px solid #cfcfcf; box-shadow:0 2px 10px rgba(0,0,0,0.06); max-width:1000px; margin:0 auto; }
.hier-popup-head { background: linear-gradient(#e6e6e6,#cfcfcf); border-bottom:1px solid #b5b5b5; padding:10px 16px; display:flex; align-items:center; gap:8px; position:relative; }
.hier-popup-head:after { content:'MY OFFICE'; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-family:Georgia,serif; font-weight:700; color:#fff; background:#555; padding:4px 14px; letter-spacing:2px; font-size:13px; }
.hier-title-arrow { color: var(--brand-purple); font-size:14px; line-height:1; }
.hier-title { margin:0; font-size:15px; font-weight:700; color:#333; letter-spacing:0.5px; }
.hier-popup-body { padding:16px; border:1px solid #ddd; margin:12px; background:#fff; }
.hier-tabs { display:flex; border-bottom:2px solid var(--brand-purple); margin-bottom:12px; }
.hier-tab { padding:8px 22px; background:#eee; color:#555; font-size:13px; border:1px solid #ccc; border-bottom:none; margin-right:2px; font-weight:600; letter-spacing:0.3px; }
.hier-tab.on { background: var(--brand-purple); color:#fff; border-color: var(--brand-purple); }
.hier-tree-wrap { font-family: 'Malgun Gothic','맑은 고딕', AppleSDGothicNeo, sans-serif; font-size:13px; color:#333; padding:10px 4px; min-height:520px; max-height:600px; overflow:auto; }
.app2-hier-summary { margin: 0 0 10px; padding: 8px 10px; background: #faf6f0; border: 1px solid #e6dcc8; color: #6b5b3d; font-size: 13px; font-weight: 600; }
.hier-popup-foot { padding:12px 16px 16px; text-align:center; border-top:1px solid #eee; background:#fafafa; }
.hier-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; margin:0 4px; background: linear-gradient(#f6f6f6,#dddddd); border:1px solid #b5b5b5; color:#333; font-size:13px; font-weight:600; cursor:pointer; }
.hier-btn:hover { background: linear-gradient(#fafafa,#e3e3e3); }
.hier-btn.close .ico-x { display:inline-block; width:14px; height:14px; line-height:14px; background:#c63629; color:#fff; border-radius:50%; text-align:center; font-size:11px; font-weight:700; }
.hier-btn .ico { font-size:12px; color:#777; }

/* dtree */
.dtree-root { padding:2px 0 6px; color:#444; }
.dtree-root strong { color:#222; margin:0 4px 0 4px; }
.dtree-root .dtree-doc { margin-right:4px; }
.dtree-children { padding-left:18px; position:relative; }
.dtree-children.root-children { padding-left:6px; }
.dtree-node { position:relative; padding:1px 0; }
.dtree-children:before {
    content:''; position:absolute; left:6px; top:0; bottom:0;
    border-left: 1px dotted #999;
}
.dtree-node.last > .dtree-row:after {
    content:''; position:absolute; left:-12px; top:11px; bottom:-1px; width:1px; background:#fff;
}
.dtree-row { display:flex; align-items:center; gap:2px; padding:2px 0; position:relative; }
.dtree-row:before {
    content:''; position:absolute; left:-12px; top:11px; width:12px;
    border-top: 1px dotted #999;
}
.dtree-children.root-children > .dtree-node > .dtree-row:before { display:none; }
.dtree-toggle { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border:1px solid #888; background:#fff; color:#555; font-size:11px; font-weight:700; line-height:1; flex-shrink:0; user-select:none; }
.dtree-toggle.leaf { border-color: transparent; background: transparent; }
.dtree-doc { margin: 0 4px 0 2px; font-size:13px; }
.dtree-label { line-height:1.4; }
.dtree-label .gen { color:#666; font-weight:400; }
.dtree-label .mid { color:#2a2a2a; font-weight:600; }
.dtree-label .status { margin:0 2px; }
.dtree-label .status.st-active { color:#1e7a3a; }
.dtree-label .status.st-out    { color:#a13030; }

/* =========================== 계층도 (모바일) =========================== */
.m-hier-popup { background:#fff; }
.m-hier-tabs { display:flex; border-bottom:2px solid var(--brand-purple); }
.m-hier-tab { flex:1; text-align:center; padding:10px 0; background:#eee; color:#555; font-size:13px; font-weight:600; border-right:1px solid #ddd; }
.m-hier-tab:last-child { border-right:none; }
.m-hier-tab.on { background: var(--brand-purple); color:#fff; }
.m-hier-body { padding:14px 10px; font-size:13px; min-height:60vh; overflow:auto; }
.m-hier-foot { display:flex; justify-content:center; gap:8px; padding:12px; border-top:1px solid #eee; background:#fafafa; }
.m-hier-btn { display:inline-flex; align-items:center; gap:4px; padding:8px 14px; background:#fff; border:1px solid #c5c5c5; color:#333; font-size:13px; font-weight:600; }
.m-hier-btn.close { background:#c63629; color:#fff; border-color:#a8281c; }

/* 모바일 탑바 로고 */
.m-topbar-brand { display: flex; align-items: center; }
.m-brand-logo { height: 28px; width: auto; display: block; }

/* =========================== ORG CHART (PC 가로형) =========================== */
.orgchart-wrap { overflow-x: auto; padding: 30px 10px; }
.orgchart { display: inline-block; min-width: 100%; }
.orgchart ul { padding: 0; margin: 0; list-style: none; position: relative; display: flex; justify-content: center; gap: 24px; }
.orgchart > ul { padding-top: 0; }
.orgchart ul ul { padding-top: 30px; }
.orgchart li { position: relative; list-style: none; text-align: center; padding: 0 8px; }

/* 부모 → 자식 세로 연결선 (각 자식 위) */
.orgchart ul ul li::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: var(--brand-purple);
    transform: translateX(-1px);
}
/* 자식 형제 가로 연결선: 첫/마지막 노드의 중심까지만 그려서 끝 라인이 삐져나오지 않게 한다. */
.orgchart ul ul li::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -12px;
    right: -12px;
    height: 2px;
    background: var(--brand-purple);
}
.orgchart ul ul li:first-child::after { left: 50%; }
.orgchart ul ul li:last-child::after { right: 50%; }
.orgchart ul ul li:only-child::after { display: none; }

/* 노드 카드 */
.org-node { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border: 1px solid var(--grey-300); border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); min-width: 130px; }
.org-node-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.org-node-body { text-align: center; }
.org-node-name { font-size: 14px; font-weight: 700; color: #222; }
.org-node-meta { font-size: 12px; color: #666; margin-top: 2px; }
.org-node-meta .rank { font-weight: 700; }
.org-node-id { font-size: 11px; color: #999; margin-top: 2px; }
.org-node:hover { border-color: var(--brand-purple); box-shadow: 0 4px 12px rgba(107,63,138,0.18); cursor: pointer; }
.app2-org-node-link { color: inherit; text-decoration: none; }
.app2-org-node-link:hover,
.app2-org-node-link:focus { color: inherit; text-decoration: none; }
.app2-org-search { align-items: center; }
.app2-org-search-summary { margin-left: 16px; color: #888; font-size: 13px; }
.app2-org-pc-toggle { display: inline-flex; border: 1px solid #c9bda5; background: #fff; margin-right: 6px; }
.app2-org-pc-toggle a { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 34px; padding: 0 12px; color: #6b5b3d; font-size: 13px; border-right: 1px solid #c9bda5; }
.app2-org-pc-toggle a:last-child { border-right: none; }
.app2-org-pc-toggle a.on { background: #8b6336; color: #fff; font-weight: 700; }
.app2-org-message { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #eadfc7; background: #fffaf0; color: #7a5a2f; font-size: 13px; }
.app2-org-mode-tabs { display: flex; width: 100%; border-bottom: 1px solid var(--brand-purple); margin: 0 0 14px; }
.app2-org-mode-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px; background: #fff; border: 1px solid #ddd; border-bottom: none; color: #777; font-size: 14px; font-weight: 600; }
.app2-org-mode-tabs a.on { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }
.app2-org-mode-tabs a + a { border-left: none; }
.app2-org-mobile-search { margin-bottom: 12px; }
.app2-org-mobile-search button { border: 1px solid #8b6336; background: #fff; color: #8b6336; }
.app2-org-mobile-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.app2-org-mobile-options select { width: 100%; height: 49px; padding: 0 14px; border: 1px solid #ddd; background: #fff; color: #222; font-size: 14px; }
.app2-org-node { position: relative; overflow: hidden; min-width: 158px; padding: 16px 12px 10px; border-color: #d8c7ad; box-shadow: none; }
.app2-org-rankbar { position: absolute; top: 0; left: 0; right: 0; height: 8px; }
.app2-org-fullname { margin: 3px 0 6px; font-size: 12px; color: #444; }
.app2-org-tree-size-compact .app2-org-node { min-width: 132px; padding: 13px 9px 8px; }
.app2-org-tree-size-compact .org-node-meta,
.app2-org-tree-size-compact .org-node-id { font-size: 10px; }
.app2-org-tree-size-wide .app2-org-node { min-width: 190px; padding: 18px 16px 12px; }
.app2-mobile-org-toolbar { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 8px; }
.app2-mobile-org-toolbar button { min-width: 38px; height: 32px; padding: 0 10px; border: 1px solid #c9bda5; background: #fff; color: #6b5b3d; font-size: 13px; font-weight: 700; }
.app2-mobile-org-viewport { position: relative; height: 62vh; min-height: 430px; overflow: hidden; border: 1px solid #e2d8c8; background: #fffaf3; padding: 0; touch-action: none; user-select: none; overscroll-behavior: contain; }
.app2-mobile-org-canvas { position: absolute; top: 0; left: 0; min-width: max-content; padding: 28px 22px 42px; transform-origin: 0 0; will-change: transform; }
.app2-mobile-org-canvas.orgchart { min-width: max-content; }
.app2-mobile-org-canvas .org-node { pointer-events: auto; }

/* =========================== ORG CHART (모바일 들여쓰기) =========================== */
.m-tree { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 10px 4px; }
.m-tree-node { padding: 4px 0; border-bottom: 1px dashed #f0f0f0; }
.m-tree-node:last-child { border-bottom: none; }
.m-tree-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.m-tree-branch { color: #aaa; font-family: monospace; font-size: 14px; flex-shrink: 0; }
.m-tree-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.m-tree-info { flex: 1; min-width: 0; }
.m-tree-name { font-size: 14px; font-weight: 600; color: #222; }
.m-tree-id { color: #999; font-size: 12px; font-weight: 400; }
.m-tree-meta { font-size: 12px; color: #666; margin-top: 2px; }
.app2-m-org-node[data-depth="0"] { background: #fffaf3; border: 1px solid #eadfc7; border-radius: 6px; margin-bottom: 6px; }
.app2-org-tree-size-compact .m-tree-row { padding-top: 4px; padding-bottom: 4px; }
.app2-org-tree-size-wide .m-tree-row { padding-top: 9px; padding-bottom: 9px; }

/* =========================== 추천/후원인 조회 =========================== */
.app2-nomin-wrap { background: #fff; }
.app2-nomin-pc-tabs { margin-bottom: 0; border-bottom-color: var(--brand-purple); }
.app2-nomin-pc-tabs li a { min-width: 92px; text-align: center; }
.app2-nomin-parent { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; border: 1px solid #ddd; background: #fff; margin: 0 0 10px; }
.app2-nomin-parent span { padding: 11px 14px; background: #f4f4f4; color: #6b3f8a; font-weight: 700; border-right: 1px solid #ddd; }
.app2-nomin-parent strong { padding: 10px 14px; font-size: 13px; color: #555; font-weight: 500; }
.app2-nomin-parent em { padding: 0 14px 10px 14px; color: #777; font-size: 12px; font-style: normal; grid-column: 2; margin-top: -6px; }
.app2-nomin-parent-pc { grid-template-columns: 226px minmax(0, 1fr); margin-bottom: 0; border-top: none; }
.app2-nomin-table th,
.app2-nomin-table td { text-align: center; }
.app2-nomin-table td.empty { padding: 26px 10px; color: #777; }
.app2-nomin-tabs { display: flex; border-bottom: 1px solid var(--brand-purple); margin: 0 0 12px; }
.app2-nomin-tabs a { flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; background: #eee; border: 1px solid #ddd; border-bottom: none; color: #666; font-size: 14px; font-weight: 700; }
.app2-nomin-tabs a.on { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }
.app2-nomin-card .m-card-title span { color: #777; font-size: 12px; font-weight: 500; }

/* =========================== 나의 수당내역 =========================== */
.app2-allow-search { align-items: center; }
.app2-allow-search-summary { margin-left: 16px; color: #777; font-size: 13px; }
.app2-allow-search-summary strong { color: #8b6336; }
.app2-allow-search-m { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px; border: 1px solid #eadfc7; background: #fffaf3; }
.app2-allow-search-m label { font-size: 13px; font-weight: 700; color: #6b5b3d; }
.app2-allow-search-m input { min-width: 0; height: 36px; border: 1px solid #c9bda5; padding: 0 8px; background: #fff; }
.app2-allow-table th,
.app2-allow-table td,
.app2-allow-detail-table th,
.app2-allow-detail-table td { text-align: center; }
.app2-allow-table td.empty,
.app2-allow-detail-table td.empty { padding: 24px 10px; color: #777; }
.app2-allow-table tr.total { font-weight: 700; background: #faf6f0; }
.app2-allow-section-title { margin: 18px 0 8px; font-weight: 700; color: #6b5b3d; }
.app2-allow-status { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.app2-allow-status.ok { background: #e6f4ec; color: #19713d; }
.app2-allow-status.warn { background: #fff4d8; color: #946300; }
.app2-allow-status.bad { background: #fde8e8; color: #b02727; }
.app2-allow-detail-m { padding: 10px 0; border-bottom: 1px dashed #eee; }
.app2-allow-detail-m:last-child { border-bottom: none; }
.app2-allow-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.app2-allow-detail-head strong { color: #222; font-size: 14px; }

/* =========================== 나의 정보 =========================== */
.my-info-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 6px; }
.my-info-tabs { display: flex; border-bottom: 1px solid var(--brand-purple); margin-top: 8px; }
.my-info-tabs button { min-width: 112px; padding: 10px 24px; text-align: center; background: #eee; border: 1px solid #ddd; border-bottom: none; color: #666; font-size: 13px; font-weight: 700; cursor: pointer; }
.my-info-tabs button.on { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
.my-info-panel { display: none; }
.my-info-panel.open { display: block; }
.my-info-list { display: grid; grid-template-columns: 230px minmax(0, 1fr); margin: 0 0 18px; border-top: 1px solid #d9d9d9; }
.my-info-list dt,
.my-info-list dd { margin: 0; min-height: 36px; padding: 8px 12px; border-bottom: 1px solid #e2e2e2; font-size: 13px; }
.my-info-list dt { display: flex; align-items: center; background: #f1f1f1; color: #555; font-weight: 700; }
.my-info-list dt:before { content: '›'; color: var(--brand-purple); margin-right: 7px; font-weight: 900; }
.my-info-list dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #555; }
.my-info-list input { height: 28px; border: 1px solid #d9d9d9; background: #fff; padding: 0 8px; font-size: 13px; }
.my-select { height: 28px; border: 1px solid #d9d9d9; background: #fff; padding: 0 8px; font-size: 13px; min-width: 200px; }
.my-info-list input[readonly] { background: #fafafa; color: #333; }
.my-phone input { width: 86px; text-align: center; }
.my-email input { width: 190px; }
.my-address input { width: min(100%, 520px); }
.my-address input:first-child { width: 110px; }
.my-postcode-address { display: grid !important; grid-template-columns: 130px 150px minmax(0, 1fr); width: 100%; }
.my-postcode-address input { width: 100% !important; }
.my-postcode-address input:nth-of-type(n+2) { grid-column: 1 / -1; }
.my-postcode-address .btn { width: 100%; text-align: center; }
.my-bank input { width: 160px; }
.my-bank p { flex-basis: 100%; margin: 2px 0; color: #777; font-size: 12px; }
.my-bank .warn { color: #e00000; }
.my-business-list input { width: 100%; }
.my-business-no,
.my-business-phone { display: grid !important; grid-template-columns: 1fr auto 1fr auto 1fr; width: 100%; align-items: center; }
.my-business-no input,
.my-business-phone input { width: 100%; text-align: center; }
.my-business-phone select { width: 100%; height: 28px; border: 1px solid #d9d9d9; background: #fff; padding: 0 8px; font-size: 13px; }
.my-business-radio label { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.my-business-radio input { width: auto; height: auto; }
.my-business-email { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
.my-business-email p { grid-column: 1 / -1; margin: 0 0 4px; color: var(--brand-purple); font-size: 12px; }
.my-business-email input { width: 100%; }
.my-business-address { display: grid !important; grid-template-columns: minmax(0, 1fr) 180px; width: 100%; }
.my-business-address input { width: 100% !important; }
.my-business-address input:nth-of-type(n+2) { grid-column: 1 / -1; }
.my-business-address .btn { width: 100%; text-align: center; }
.my-info-submit { display: flex; justify-content: flex-end; gap: 12px; margin: 14px 0 18px; }
.my-password-fields { align-items: flex-start !important; }
.my-password-fields input { width: 180px; }
.my-password-fields p { margin: 6px 0 0; color: var(--brand-purple); font-size: 12px; }
.my-cert-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.my-cert-modal.open { display: flex; }
.my-cert-dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.my-cert-wrap { position: relative; z-index: 1; width: min(560px, 96vw); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.my-cert-card { position: relative; width: 100%; min-height: 680px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg,#f7fbff 0%,#ffffff 42%,#e7d9f2 43%,#c6a4db 100%); box-shadow: 0 20px 50px rgba(0,0,0,.22); padding: 48px 34px 34px; }
.my-cert-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 76% 12%, rgba(255,255,255,.35) 0 2px, transparent 2px), linear-gradient(115deg, rgba(255,255,255,.72) 0 48%, rgba(255,255,255,.2) 48% 100%); background-size: 18px 18px, 100% 100%; opacity: .8; }
.my-cert-head { position: relative; display: flex; align-items: center; gap: 24px; margin-bottom: 46px; }
.my-cert-head img { width: 178px; height: auto; }
.my-cert-head strong { display: block; font-size: 24px; color: #47424d; letter-spacing: -0.5px; }
.my-cert-head span { display: block; margin-top: 4px; color: #777; font-size: 15px; }
.my-cert-body { position: relative; padding: 30px 26px; border-radius: 18px; background: rgba(255,255,255,.68); }
.my-cert-body dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 14px; margin: 0; }
.my-cert-body dt { display: flex; align-items: center; color: var(--brand-purple); font-size: 21px; font-weight: 800; letter-spacing: 4px; }
.my-cert-body dt:before { content: ''; width: 4px; height: 22px; background: var(--brand-purple); margin-right: 10px; }
.my-cert-body dd { margin: 0; min-height: 48px; display: flex; align-items: center; background: rgba(255,255,255,.88); padding: 9px 14px; font-size: 20px; color: #222; line-height: 1.35; }
.my-cert-company { position: relative; margin-top: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--brand-purple); font-size: 24px; font-weight: 900; }
.my-cert-company img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.my-cert-company span { letter-spacing: 8px; }
.my-cert-close { width: 100px; height: 50px; border: none; background: #333; color: #fff; font-size: 15px; border-radius: 6px; }

@media (max-width: 720px) {
    .my-info-actions { justify-content: flex-start; }
    .my-info-actions .btn { flex: 1; text-align: center; padding: 12px 8px; }
    .my-info-tabs button { flex: 1; min-width: 0; padding: 12px 8px; font-size: 14px; }
    .my-info-list { display: block; border-top: 1px solid #dedede; }
    .my-info-list dt { border-bottom: none; background: #f6f3f5; padding: 12px 0 4px; }
    .my-info-list dd { padding: 6px 0 12px; border-bottom: 1px solid #dedede; }
    .my-info-list input { height: 46px; font-size: 15px; }
    .my-select { width: 100%; height: 46px; font-size: 15px; }
    .my-phone { display: grid !important; grid-template-columns: 1fr auto 1fr auto 1fr; width: 100%; }
    .my-phone input { width: 100%; }
    .my-email { display: grid !important; grid-template-columns: 1fr auto 1fr; width: 100%; }
    .my-email input,
    .my-address input,
    .my-bank input,
    .my-password-fields input { width: 100%; }
    .my-business-phone select { height: 46px; font-size: 15px; }
    .my-business-email,
    .my-postcode-address,
    .my-business-address { grid-template-columns: 1fr !important; }
    .my-business-email span { display: none; }
    .my-business-address .btn { padding: 12px; }
    .my-info-submit { flex-direction: column; }
    .my-info-submit .btn { width: 100%; text-align: center; padding: 12px; }
    .my-cert-modal { align-items: flex-start; overflow: auto; padding: 14px 0; }
    .my-cert-wrap { width: 100%; padding: 0 4px; }
    .my-cert-card { min-height: 710px; border-radius: 0 14px 14px 0; padding: 38px 28px 28px; }
    .my-cert-head { gap: 12px; margin-bottom: 36px; }
    .my-cert-head img { width: 170px; }
    .my-cert-head strong { font-size: 20px; }
    .my-cert-head span { font-size: 13px; }
    .my-cert-body { padding: 26px 20px; }
    .my-cert-body dl { grid-template-columns: 112px minmax(0, 1fr); }
    .my-cert-body dt { font-size: 19px; letter-spacing: 3px; }
    .my-cert-body dd { font-size: 18px; min-height: 46px; }
}

/* =========================== Forms =========================== */
.form-table { width: 100%; }
.form-table th { width: 130px; text-align: left; padding: 10px 12px; background: #faf6f0; border-bottom: 1px solid #e2d8c8; font-size: 13px; font-weight: 600; color: #555; }
.form-table td { padding: 10px 12px; border-bottom: 1px solid #e2d8c8; font-size: 13px; }
.form-table input[type="text"], .form-table input[type="password"], .form-table input[type="number"], .form-table select { padding: 6px 8px; border: 1px solid #c9bda5; font-size: 13px; min-width: 200px; }

.qty-ctl { display: inline-flex; align-items: center; border: 1px solid #c9bda5; }
.qty-ctl button { width: 26px; height: 26px; border: none; background: #fff; color: #333; }
.qty-ctl input { width: 40px; border: none; text-align: center; }

.simple-product-name { display: inline-flex; align-items: center; gap: 10px; }
.simple-thumb { width: 52px; height: 52px; object-fit: cover; border: 1px solid #eadfc7; background: #fff; }
.simple-thumb-m { width: 100%; height: 150px; margin-bottom: 10px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.checkout-shipping { grid-column: 1; }
.checkout-summary { grid-column: 2; grid-row: 1 / span 2; }
.checkout-panel { background: #fff; border: 1px solid #e2d8c8; padding: 16px; margin-bottom: 16px; }
.checkout-panel h3 { margin: 0 0 12px; font-size: 16px; color: #6e4d27; }
.checkout-form { display: grid; gap: 10px; }
.checkout-form label { display: grid; gap: 5px; font-size: 13px; color: #555; }
.checkout-form input[type="text"] { width: 100%; padding: 9px 10px; border: 1px solid #c9bda5; background: #fff; }
.checkout-form input[readonly] { background: #fafafa; color: #333; }
.checkout-address-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; align-items: center; }
.checkout-address-search { width: 100%; height: 38px; padding: 0 10px; font-size: 13px; }
.checkout-address-search.secondary { background: #78613e; }
.checkout-check,
.checkout-radio { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
.checkout-pay-method { display: grid; gap: 8px; padding: 12px; background: #faf6f0; border: 1px solid #eadfc7; }
.checkout-bank-info { margin-top: 4px; padding: 12px; border: 1px solid #eadfc7; background: #fff; }
.checkout-bank-info dl { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 10px; font-size: 13px; }
.checkout-bank-info dt { color: #777; font-weight: 400; }
.checkout-bank-info dd { margin: 0; color: #222; font-weight: 700; text-align: right; word-break: break-all; }
.checkout-bank-info p { margin: 4px 0 0; font-size: 12px; color: #777; line-height: 1.5; }
.order-bank-info { padding: 12px; border: 1px solid #eadfc7; background: #fffaf2; }
.order-bank-info dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.order-bank-info dt { color: #777; font-weight: 400; }
.order-bank-info dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.order-bank-info p { margin: 10px 0 0; font-size: 13px; color: #777; }
.checkout-submit { width: 100%; padding: 12px 16px; font-size: 15px; }
.checkout-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.checkout-summary dt { color: #666; }
.checkout-summary dd { margin: 0; font-weight: 700; }
.checkout-summary .total { color: var(--brand-purple); font-size: 20px; }

/* =========================== BigLee Theme Overhaul =========================== */
:root {
    --brand-dark: #123536;
    --brand-purple: #0f4a4d;
    --brand-purple-2: #c49a45;
    --brand-purple-hover: #0a3d40;
    --brand-gold: #c49a45;
    --brand-gold-2: #d8b86b;
    --grey-100: #f8f4ee;
    --grey-200: #f1ebe2;
    --grey-300: #e4d7c6;
    --grey-400: #cbbba4;
    --grey-500: #756b5f;
    --bg-body: #f8f4ee;
    --bg-card: #fffdf9;
    --bg-soft: #fbf7ef;
    --text-default: #123536;
    --text-muted: #746b60;
}

html, body {
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", AppleSDGothicNeo, sans-serif;
    font-size: 15px;
    line-height: 1.58;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.layout-pc {
    background:
        radial-gradient(circle at 8% 0%, rgba(196,154,69,.10), transparent 26%),
        linear-gradient(180deg, #fbf7ef 0%, #f8f4ee 240px, #f4eee5 100%);
}

.site-header {
    background: rgba(255,253,249,.96);
    color: var(--brand-dark);
    border-bottom: 1px solid rgba(18,53,54,.12);
    box-shadow: 0 8px 28px rgba(18,53,54,.07);
}

.header-inner {
    padding: 12px 22px;
}

.brand {
    gap: 14px;
}

.brand-logo-wide {
    height: 54px;
}

.brand-sub {
    color: var(--brand-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.utility-nav {
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
}

.utility-nav a {
    color: var(--brand-dark);
}

.utility-nav a:hover,
.utility-nav .u-ico,
.utility-nav a:hover .u-ico {
    color: var(--brand-gold);
}

.header-greet {
    color: #756b5f;
    font-size: 13px;
}

.header-greet strong {
    color: var(--brand-dark);
}

.header-divider {
    display: none;
}

.primary-nav {
    background: var(--brand-dark);
    box-shadow: 0 10px 28px rgba(18,53,54,.13);
}

.primary-nav .nav-item > a {
    padding: 15px 42px 15px 28px;
    font-size: 15px;
}

.primary-nav .nav-item:hover > a,
.primary-nav .nav-item.active > a,
.primary-subnav a.on:after,
.footer-view-toggle a.on,
.m-footer-view-toggle a.on {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
}

.primary-subnav {
    background: rgba(255,253,249,.92);
}

.primary-subnav a,
.primary-nav .nav-sub li a {
    font-size: 15px;
}

.primary-subnav a:hover,
.primary-subnav a.on,
.primary-nav .nav-sub li a:hover {
    color: var(--brand-dark);
}

.page-wrap {
    padding-top: 34px;
}

.page-head {
    border-bottom: 2px solid var(--brand-gold);
    margin-bottom: 20px;
}

.page-title {
    color: var(--brand-dark);
    font-size: 29px;
    font-weight: 850;
}

.page-breadcrumb {
    font-size: 13px;
}

.page-breadcrumb strong {
    color: var(--brand-gold);
}

.page-body {
    background: rgba(255,253,249,.94);
    border-color: var(--grey-300);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(18,53,54,.07);
}

.site-footer,
.m-footer {
    background: #eee7dc;
    border-top-color: var(--grey-300);
}

.footer-links,
.m-footer-links,
.m-footer-view-toggle {
    font-size: 14px;
}

.btn,
.btn-grade-query,
.cart-total .btn-box .check,
.simple-category li a.active,
.app2-org-pc-toggle a.on {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #fff;
}

.btn:hover,
.btn-grade-query:hover,
.cart-total .btn-box .check:hover {
    background: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
}

.btn-outline,
.cart-total .btn-box .cart,
.app2-org-mobile-search button {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

.data-table,
.grade-table,
.home-allowance-table {
    font-size: 14px;
}

.data-table th {
    background: #f2eadc;
    border-bottom-color: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
}

.summary-card,
.home-side-card,
.cart-total,
.grade-filter,
.grade-col,
.m-card {
    background: #fffdf9;
    border-color: var(--grey-300);
    border-radius: 8px;
}

.summary-card .value,
.home-side-title,
.home-popular-head h2,
.m-section-head h2,
.cart-total .total-pay p,
.grade-filter-title,
.grade-col-head .badge,
.grade-col-head .grade-count,
.m-grade-head strong,
.m-grade-count {
    color: var(--brand-purple);
}

.home-icon-card {
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(18,53,54,.09);
}

.home-icon-card.grey {
    background: linear-gradient(135deg, #1a5a5d, #123536);
}

.home-icon-card.purple {
    background: linear-gradient(135deg, #0f4a4d, #0a3639);
}

.home-icon-card:nth-child(3n),
.home-icon-card:nth-child(6n) {
    background: linear-gradient(135deg, #c49a45, #9d7533);
}

.home-icon-card .lbl {
    font-size: 16px;
    font-weight: 800;
}

.home-side-title {
    font-size: 18px;
}

.home-side-sub,
.home-popular-head p {
    font-size: 14px;
}

.home-notice-list li,
.home-allowance-table {
    font-size: 14px;
}

.home-popular-card .name {
    font-size: 15px;
    font-weight: 700;
}

/* Mobile BigLee theme and readability */
.layout-mobile {
    background: #fbf7ef;
    font-size: 16px;
}

.m-topbar {
    height: 58px;
    background: rgba(255,253,249,.98);
    color: var(--brand-dark);
    border-bottom: 1px solid rgba(18,53,54,.13);
    box-shadow: 0 6px 20px rgba(18,53,54,.08);
    padding: 0 8px;
}

.m-icon-btn {
    width: 42px;
    height: 42px;
    color: var(--brand-dark);
}

.m-icon-btn span {
    width: 24px;
    height: 2px;
    background: var(--brand-dark);
}

.m-brand-logo-wide {
    height: 38px;
    max-width: 190px;
}

.m-tabs {
    border-bottom-color: var(--grey-300);
}

.m-tab {
    padding: 12px 2px;
    background: #efe8dc;
    color: #756b5f;
    font-size: 15px;
    font-weight: 800;
}

.m-tab.on {
    background: var(--brand-purple);
    color: #fff;
}

.m-ddmenu {
    gap: 6px;
    padding: 8px;
    background: #fbf7ef;
}

.m-dd-btn {
    min-height: 46px;
    padding: 9px 10px;
    border-color: var(--grey-300);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

.m-dd.open .m-dd-btn {
    border-color: var(--brand-purple);
}

.m-dd-list li a {
    padding: 13px 12px;
    font-size: 15px;
}

.m-dd-list li a:active,
.m-dd-list li.on a,
.m-dd-list li.on a:hover {
    background: var(--brand-purple);
    color: #fff;
}

.m-page-head {
    padding: 12px 10px 8px;
}

.m-page-title {
    font-size: 21px;
    color: var(--brand-dark);
}

.m-breadcrumb {
    font-size: 12px;
}

.m-page-body {
    padding: 8px 8px 76px;
}

.m-card {
    padding: 12px;
    margin-bottom: 8px;
}

.m-card-title {
    font-size: 16px;
}

.m-row {
    font-size: 15px;
}

.m-search-bar {
    gap: 6px;
    margin-bottom: 8px;
}

.m-search-bar input,
.m-grade-filter select,
.app2-org-mobile-options select {
    min-height: 44px;
    font-size: 15px;
}

.m-btn {
    padding: 11px 14px;
    background: var(--brand-purple);
    font-size: 15px;
    font-weight: 800;
}

.m-summary {
    gap: 6px;
    margin-bottom: 8px;
}

.m-summary-item {
    padding: 10px 8px;
    background: #fffdf9;
    border-color: var(--grey-300);
}

.m-summary-item .label {
    font-size: 13px;
}

.m-summary-item .value {
    color: var(--brand-purple);
    font-size: 18px;
}

.m-sidemenu {
    width: min(86vw, 320px);
    left: min(-86vw, -320px);
}

.m-sidemenu .site-language-switcher {
    width: 100%;
    max-width: 100%;
}

.m-sidemenu .site-language-current {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.m-sidemenu .site-language-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.m-sidemenu-head {
    padding: 18px 16px;
    background: var(--brand-dark);
}

.m-sidemenu-label {
    color: var(--brand-gold);
    font-size: 14px;
}

.m-sidemenu-group ul li a {
    padding: 12px 16px 12px 24px;
    font-size: 16px;
}

.m-sidemenu-bottom a {
    color: var(--brand-purple);
    font-size: 15px;
}

.m-bottom-nav {
    height: 62px;
}

.m-bottom-nav a {
    font-size: 13px;
}

.m-bottom-nav a.on {
    color: var(--brand-purple);
}

.m-footer-view-toggle,
.m-footer-links {
    padding-left: 8px;
    padding-right: 8px;
}

.m-footer {
    padding: 14px 10px 18px;
    font-size: 12px;
}

@media (max-width: 767px) {
    html, body {
        font-size: 16px;
    }
    .data-table {
        font-size: 14px;
    }
    .box-search {
        padding: 10px;
        margin-bottom: 10px;
        gap: 6px;
    }
    .box-search input[type="text"],
    .box-search input[type="date"],
    .box-search input[type="month"],
    .box-search select {
        min-height: 42px;
        font-size: 15px;
    }
}

/* BigLee My Office home */
.home-hero-pc {
    min-height: 360px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(18,53,54,.92) 0%, rgba(18,53,54,.76) 42%, rgba(18,53,54,.10) 68%, rgba(18,53,54,0) 100%),
        url("../store/assets/images/biglee/biglee-choi-main-banner-realcase.png") center right/cover no-repeat;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 58px rgba(18,53,54,.16);
}

.home-hero-copy {
    max-width: 530px;
    padding: 48px 54px;
    color: #fff;
}

.home-hero-kicker {
    margin: 0 0 14px;
    color: var(--brand-gold-2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 1.24;
    letter-spacing: 0;
}

.home-hero-copy p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.home-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.home-hero-actions a:first-child {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
}

.m-hero {
    height: 300px;
}

.m-hero-slide {
    align-items: flex-end;
    justify-content: flex-start;
    background-position: center;
}

.m-hero-slide:before {
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(18,53,54,.56) 100%);
}

.m-hero-text {
    width: 100%;
    text-align: left;
    padding: 0 14px 32px;
    text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.m-hero-text strong {
    font-size: 34px;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: 0;
    font-weight: 900;
}

.m-hero-text small {
    font-size: 16px;
    line-height: 1.45;
    opacity: .95;
}

.m-quickmenu {
    background: var(--brand-dark);
}

.m-quickmenu a {
    padding: 15px 2px;
    border-right-color: rgba(255,255,255,.13);
    font-size: 14px;
    font-weight: 800;
}

.m-quickmenu a:nth-child(2),
.m-quickmenu a:nth-child(4) {
    background: rgba(255,255,255,.06);
}

.m-doc-buttons {
    gap: 6px;
    padding: 8px;
    background: #fbf7ef;
}

.m-doc-buttons a {
    min-height: 44px;
    border-color: var(--grey-300);
    color: var(--brand-purple);
    font-size: 14px;
}

.m-notice-strip {
    padding: 12px 10px;
}

.m-notice-badge {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    font-size: 12px;
}

.m-notice-link {
    font-size: 15px;
}

.m-popular {
    padding: 18px 8px;
}

.m-section-head h2 {
    font-size: 19px;
}

.m-popular-grid {
    gap: 8px;
}

.m-popular-card {
    border-color: var(--grey-300);
    border-radius: 8px;
}

.m-popular-thumb {
    height: 150px;
    background: #fffdf9;
}

.m-popular-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .m-hero {
        height: 284px;
    }
    .m-hero-text {
        padding-left: 12px;
        padding-right: 12px;
    }
}
.order-address-list { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.order-address-list dt { color: #666; font-weight: 600; }
.order-address-list dd { margin: 0; color: #222; line-height: 1.55; }
.claim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.claim-help { color: #666; font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.claim-order { border: 1px solid #eadfc7; padding: 14px; margin-bottom: 12px; background: #fff; }
.claim-order-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #eadfc7; font-size: 14px; }
.claim-form { display: grid; gap: 10px; }
.claim-form label { display: grid; gap: 5px; font-size: 13px; color: #555; }
.claim-form input[type="text"],
.claim-form input[type="number"],
.claim-form select,
.claim-form textarea,
.claim-track-form input { padding: 8px 10px; border: 1px solid #c9bda5; background: #fff; }
.claim-items { display: grid; gap: 6px; }
.claim-item { display: grid !important; grid-template-columns: 22px minmax(0, 1fr) 70px auto; align-items: center; gap: 8px !important; padding: 8px; background: #faf6f0; border: 1px solid #eadfc7; }
.claim-item em { color: #777; font-style: normal; }
.claim-history { border-top: 1px solid #eadfc7; padding: 12px 0; display: grid; gap: 6px; font-size: 13px; }
.claim-track-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.board-body { line-height: 1.7; font-size: 14px; }
.board-body img { max-width: 100%; height: auto; }

/* BigLee PC My Office redesign */
.layout-pc .page-wrap.is-home {
    padding-top: 28px;
}

.layout-pc .home-hero-pc,
.layout-pc .pc-home-dashboard {
    display: none;
}

.layout-pc .home-pc-redesign {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    margin-bottom: 34px;
}

.layout-pc .home-icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.layout-pc .home-icon-card {
    min-height: 172px;
    aspect-ratio: auto;
    border-radius: 8px;
    gap: 18px;
    box-shadow: none;
}

.layout-pc .home-icon-card.green {
    background: #123f3d;
}

.layout-pc .home-icon-card.gold {
    background: #b68a38;
}

.layout-pc .home-icon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(18, 63, 61, .16);
}

.layout-pc .home-icon-card .ico {
    width: 64px;
    height: 64px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .96;
}

.layout-pc .home-icon-card .ico-cart { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12h8l6 30h24l6-20H22' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='27' cy='52' r='4'/%3E%3Ccircle cx='47' cy='52' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-coin { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='32' cy='32' r='25' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M20 24l8 18 4-12 4 12 8-18M18 33h28' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-chart { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='11' y='12' width='42' height='40' rx='3' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M19 42l10-10 8 6 10-16' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-people { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='23' r='8' fill='none' stroke='black' stroke-width='5'/%3E%3Ccircle cx='43' cy='22' r='7' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M10 52c2-12 9-18 18-18s16 6 18 18M34 37c8-4 17 1 20 13' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-doc,
.layout-pc .home-icon-card .ico-file { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 10h22l10 10v34H18zM40 10v12h10M26 32h16M26 42h16' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-user { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='32' cy='22' r='10' fill='none' stroke='black' stroke-width='5'/%3E%3Cpath d='M16 54c3-13 9-20 16-20s13 7 16 20' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.layout-pc .home-icon-card .ico-book { mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 14c7-3 13-2 18 2v36c-5-4-11-5-18-2zM50 14c-7-3-13-2-18 2v36c5-4 11-5 18-2z' fill='none' stroke='black' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.layout-pc .home-icon-card .lbl {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
}

.layout-pc .home-side-col {
    gap: 16px;
}

.layout-pc .home-side-card {
    min-height: 172px;
    padding: 22px 24px 18px;
    background: #fff;
    border: 1px solid #ddcfb9;
    border-radius: 0;
}

.layout-pc .home-side-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.layout-pc .home-side-title {
    margin: 0 0 6px;
    color: #123f3d;
    font-size: 21px;
    font-weight: 900;
}

.layout-pc .home-side-sub {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.layout-pc .home-side-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #123f3d;
    font-size: 20px;
    font-weight: 800;
}

.layout-pc .home-notice-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e6ded1;
    font-size: 14px;
}

.layout-pc .home-notice-list li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
}

.layout-pc .home-notice-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layout-pc .home-notice-list em {
    color: #777;
    font-style: normal;
    text-align: right;
}

.layout-pc .home-allowance-table {
    table-layout: fixed;
    margin-top: 12px;
    font-size: 14px;
}

.layout-pc .home-allowance-table th {
    padding: 10px 8px;
    background: #f7f2ea;
    color: #2f3b3a;
    font-weight: 900;
}

.layout-pc .home-allowance-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eadfc7;
}

.layout-pc .home-pc-redesign-products {
    margin-top: 10px;
    padding-bottom: 46px;
}

.layout-pc .home-popular-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.layout-pc .home-popular-head h2 {
    margin: 0 0 6px;
    color: #123f3d;
    font-size: 24px;
    font-weight: 900;
}

.layout-pc .home-popular-head p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.layout-pc .home-popular-head > a {
    color: #87652e;
    font-size: 14px;
    font-weight: 800;
}

.layout-pc .home-popular-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.layout-pc .home-popular-card {
    display: block;
}

.layout-pc .home-popular-card .thumb {
    height: 210px;
    padding: 0;
    background: #fff;
    border: 1px solid #eadfc7;
}

.layout-pc .home-popular-card .thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.layout-pc .home-popular-card .name {
    display: block;
    padding: 14px 4px 0;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.board-detail-image { display: block; max-width: 100%; height: auto; margin: 16px auto 0; }
.board-list-desc { color: #666; font-size: 12px; margin-top: 6px; line-height: 1.5; }
.board-file-link { color: #6e4d27; text-decoration: underline; }
.board-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.board-file-name { min-width: 0; overflow-wrap: anywhere; }
.board-download-btn {
    flex-shrink: 0;
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #fff;
}
.board-download-btn:hover {
    background: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
    color: #fff;
}
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-card { display: block; border: 1px solid #e2d8c8; background: #fff; overflow: hidden; }
.event-thumb { height: 200px; background: #f4ecdd; display: flex; align-items: center; justify-content: center; color: #7a5328; font-weight: 700; font-size: 18px; text-align: center; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 14px; }
.event-card-body p { margin: 0 0 6px; font-weight: 600; }
.event-card-body span { color: #888; font-size: 13px; }
.event-banner-detail { display: block; width: 100%; max-height: 360px; object-fit: cover; margin-bottom: 18px; border: 1px solid #e2d8c8; }

@media (max-width: 720px) {
    .checkout-grid { display: block; }
    .checkout-panel { border-radius: 6px; }
    .checkout-address-row { grid-template-columns: minmax(0, 1fr) 92px; }
    .order-address-list { grid-template-columns: 74px minmax(0, 1fr); }
    .claim-layout { display: block; }
    .claim-order-head { display: grid; }
    .claim-item { grid-template-columns: 22px minmax(0, 1fr); }
    .claim-item input[type="number"],
    .claim-item em { margin-left: 30px; }
    .event-grid { grid-template-columns: 1fr; }
    .event-thumb { height: 150px; }
    .board-file-row { display: grid; gap: 6px; }
    .board-file-row-m .board-download-btn { text-align: center; }
}

/* BigLee My Office product shop */
.shop-panel {
    display: grid;
    gap: 18px;
}

.shop-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(18,53,54,.94), rgba(18,53,54,.72)),
        url("../store/assets/images/biglee/biglee-choi-main-banner-realcase.png") center right/cover no-repeat;
    color: #fff;
}

.shop-kicker {
    margin: 0 0 8px;
    color: var(--brand-gold-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.shop-panel-head h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.22;
    color: #fff;
}

.shop-panel-head p {
    margin: 10px 0 0;
    max-width: 560px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.65;
}

.shop-total-box {
    min-width: 220px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}

.shop-total-box span,
.shop-total-box em {
    display: block;
    color: rgba(255,255,255,.78);
    font-style: normal;
    font-size: 13px;
}

.shop-total-box strong {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-size: 24px;
}

.shop-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-category-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--grey-300);
    background: #fffdf9;
    color: var(--brand-dark);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 850;
}

.shop-category-tabs a.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 12px 28px rgba(18,53,54,.07);
}

.shop-product-card.has-qty {
    border-color: var(--brand-gold);
    box-shadow: 0 16px 34px rgba(196,154,69,.16);
}

.shop-product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5efe5;
    overflow: hidden;
}

.shop-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.shop-product-thumb span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    color: var(--brand-dark);
    font-weight: 900;
}

.shop-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.shop-product-body h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 16px;
    line-height: 1.42;
    font-weight: 850;
}

.shop-product-body p {
    margin: 0;
    color: #6f6558;
    font-size: 13px;
    line-height: 1.55;
}

.shop-product-price {
    margin-top: auto;
    display: grid;
    gap: 4px;
}

.shop-product-price del {
    color: #9a9187;
    font-size: 13px;
}

.shop-product-price strong {
    color: var(--brand-purple);
    font-size: 20px;
    line-height: 1.1;
}

.shop-product-price span {
    color: var(--brand-gold);
    font-size: 13px;
    font-weight: 800;
}

.shop-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
    align-items: stretch;
}

.shop-card-actions .qty-ctl {
    width: 100%;
    height: 38px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    border: 1px solid var(--grey-300);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.shop-card-actions .qty-ctl button {
    width: 100%;
    height: 100%;
    background: #fffdf9;
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
}

.shop-card-actions .qty-ctl input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border-left: 1px solid #f1e8da;
    border-right: 1px solid #f1e8da;
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 850;
}

.shop-add-btn,
.shop-primary-btn,
.shop-secondary-btn {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 850;
}

.shop-add-btn {
    height: 38px;
    background: var(--brand-dark);
    color: #fff;
    width: 100%;
}

.shop-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px 132px;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: rgba(255,253,249,.96);
    box-shadow: 0 -12px 28px rgba(18,53,54,.08);
}

.shop-sticky-actions span {
    display: block;
    color: #7b6d5d;
    font-size: 12px;
}

.shop-sticky-actions strong {
    display: block;
    color: var(--brand-dark);
    font-size: 20px;
}

.shop-primary-btn,
.shop-secondary-btn {
    height: 44px;
    font-size: 14px;
}

.shop-primary-btn {
    background: var(--brand-dark);
    color: #fff;
}

.shop-secondary-btn {
    border: 1px solid var(--brand-dark);
    background: #fff;
    color: var(--brand-dark);
}

.shop-empty {
    padding: 30px;
    border: 1px solid var(--grey-300);
    background: #fffdf9;
    color: #756b5f;
    text-align: center;
    font-weight: 800;
}

.shop-product-body h3 a {
    color: inherit;
}

.shop-detail-page {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.shop-detail-media {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #f5efe5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    display: block;
}

.shop-detail-media span {
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 900;
}

.shop-detail-info {
    padding: 22px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #fffdf9;
}

.shop-detail-info h2 {
    margin: 0 0 14px;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1.28;
}

.shop-detail-summary {
    margin: 0 0 20px;
    color: #6f6558;
    font-size: 15px;
    line-height: 1.72;
    white-space: pre-line;
}

.shop-detail-price {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0 0 22px;
    padding: 18px 0;
    border-top: 1px solid var(--grey-300);
    border-bottom: 1px solid var(--grey-300);
}

.shop-detail-price dt {
    color: #7b6d5d;
    font-weight: 800;
}

.shop-detail-price dd {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 800;
}

.shop-detail-price strong {
    color: var(--brand-purple);
    font-size: 26px;
}

.shop-detail-price del {
    color: #9a9187;
}

.shop-detail-buy {
    display: grid;
    grid-template-columns: 144px 132px 132px;
    gap: 8px;
    align-items: stretch;
}

.shop-detail-buy .qty-ctl {
    width: 100%;
    height: 44px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.shop-detail-buy .qty-ctl button,
.shop-detail-buy .qty-ctl input {
    width: 100%;
    height: 100%;
}

.shop-detail-buy .qty-ctl input {
    border-left: 1px solid #f1e8da;
    border-right: 1px solid #f1e8da;
    font-size: 16px;
    font-weight: 850;
    text-align: center;
}

.shop-detail-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--brand-dark);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.shop-detail-empty {
    padding: 44px 20px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #fffdf9;
    text-align: center;
}

.shop-detail-empty h2 {
    margin: 0 0 18px;
    color: var(--brand-dark);
}

.shop-detail-images {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: #fffdf9;
}

.shop-detail-images h2 {
    margin: 0 0 18px;
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.shop-detail-image-stack {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.shop-detail-image-stack img {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    border: 1px solid var(--grey-300);
    background: #fff;
}

@media (max-width: 1180px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shop-panel {
        gap: 10px;
    }
    .shop-panel-head {
        display: block;
        padding: 16px 12px;
        border-radius: 6px;
    }
    .shop-panel-head h2 {
        font-size: 26px;
    }
    .shop-panel-head p {
        font-size: 14px;
    }
    .shop-total-box {
        margin-top: 14px;
        min-width: 0;
        padding: 12px;
    }
    .shop-category-tabs {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
    .shop-category-tabs a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 18px;
        font-size: 15px;
    }
    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .shop-product-grid.is-single {
        grid-template-columns: 1fr;
    }
    .shop-product-card {
        border-radius: 6px;
    }
    .shop-product-body {
        padding: 10px;
        gap: 8px;
    }
    .shop-product-body h3 {
        font-size: 15px;
    }
    .shop-product-body p {
        display: none;
    }
    .shop-product-price strong {
        font-size: 17px;
    }
    .shop-card-actions {
        grid-template-columns: 1fr;
    }
    .shop-add-btn {
        width: 100%;
        height: 40px;
    }
    .shop-sticky-actions {
        grid-template-columns: minmax(0, 1fr) 76px 86px;
        gap: 6px;
        padding: 8px;
        border-radius: 6px 6px 0 0;
    }
    .shop-sticky-actions strong {
        font-size: 16px;
    }
    .shop-primary-btn,
    .shop-secondary-btn {
        height: 40px;
        font-size: 13px;
    }
    .shop-detail-page {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .shop-detail-info {
        padding: 14px 12px;
    }
    .shop-detail-info h2 {
        font-size: 24px;
    }
    .shop-detail-buy {
        grid-template-columns: 1fr;
    }
    .shop-detail-buy .shop-primary-btn,
    .shop-detail-buy .shop-secondary-btn {
        width: 100%;
        height: 44px;
    }
    .shop-detail-images {
        margin-top: 12px;
        padding: 10px;
        border-radius: 6px;
    }
    .shop-detail-images h2 {
        margin-bottom: 10px;
        font-size: 20px;
    }
    .shop-detail-image-stack {
        gap: 8px;
    }
    .shop-detail-image-stack img {
        border: 0;
    }
}

/* Contrast fixes for outline action buttons in order/cart pages. */
.btn.btn-outline,
button.btn.btn-outline,
a.btn.btn-outline {
    background: #fffdf9;
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

.btn.btn-outline:hover,
button.btn.btn-outline:hover,
a.btn.btn-outline:hover {
    background: #f6efe4;
    color: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
}

.m-btn.outline,
button.m-btn.outline,
a.m-btn.outline {
    background: #fffdf9;
    color: var(--brand-purple);
    border: 1px solid var(--brand-purple);
}

.m-btn.outline:hover,
button.m-btn.outline:hover,
a.m-btn.outline:hover {
    background: #f6efe4;
    color: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
}
