.expo-container {
    max-width: 80% !important;
    margin: 0 auto;
}

/* Google Font for navbar slogan only */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@700;800;900&display=swap');
/* Pretendard Variable for shiny slogan */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');
/* Gowun Batang for footer slogan */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

/* Paperlogy Font */
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* ===== CSS Variables ===== */
:root {
    /* ===== 브랜드 색상 팔레트 (Base Colors) ===== */
    /* 네이비 계열 */
    --color-navy-900: #0F172A;
    /* 가장 진함 */
    --color-navy-800: #1E3A5F;
    /* 메인 네이비 */
    --color-navy-700: #1E40AF;

    /* 블루 계열 */
    --color-blue-600: #1E3A8A;
    /* 진한 네이비 블루 */
    --color-blue-500: #1E40AF;
    /* 메인 네이비 블루 */
    --color-blue-400: #3B82F6;
    /* 라이트 블루 */
    --color-blue-100: #DBEAFE;
    /* 매우 연한 블루 */

    /* 그레이 계열 */
    --color-gray-900: #111827;
    --color-gray-700: #334155;
    --color-gray-500: #64748B;
    --color-gray-400: #94A3B8;
    --color-gray-200: #E2E8F0;
    --color-gray-100: #F1F5F9;
    --color-gray-50: #F8FAFC;

    /* 기본 색상 */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* ===== 시맨틱 색상 (Semantic Tokens) ===== */

    /* 브랜드 */
    --brand-primary: var(--color-navy-800);
    --brand-primary-rgb: 30, 58, 95;
    /* 메인 브랜드 색상 */
    --brand-secondary: var(--color-blue-500);
    /* 포인트 색상 */
    --brand-accent: var(--color-blue-400);
    /* 강조 색상 */

    /* 텍스트 */
    --text-primary: var(--color-navy-900);
    /* 제목 */
    --text-secondary: var(--color-gray-700);
    /* 본문 */
    --text-muted: var(--color-gray-400);
    /* 보조 텍스트 */
    --text-inverse: var(--color-white);
    /* 어두운 배경 위 */

    /* 배경 */
    --bg-primary: var(--color-white);
    /* 메인 배경 */
    --bg-secondary: var(--color-gray-100);
    /* 보조 배경 */
    --bg-tertiary: var(--color-gray-50);
    /* 카드 배경 */

    /* 테두리 */
    --border-default: var(--color-gray-200);
    /* 기본 테두리 */
    --border-hover: var(--brand-primary);
    /* 호버 테두리 */
    --border-focus: var(--brand-secondary);
    /* 포커스 테두리 */

    /* 상태 */
    --state-hover: var(--color-gray-100);
    /* 호버 배경 */
    --state-active: var(--brand-primary);
    /* 활성 상태 */
    --state-focus: var(--brand-secondary);
    /* 포커스 상태 */

    /* 인터랙티브 */
    --interactive-primary: var(--brand-secondary);
    /* CTA 버튼 */
    --interactive-primary-hover: var(--color-blue-600);
    /* CTA 호버 */
    --interactive-secondary: var(--brand-primary);
    /* 보조 버튼 */

    /* 그림자 */
    --shadow-color: rgba(15, 23, 42, 0.1);
    /* 네이비 기반 그림자 */

    /* ===== 레거시 변수 (하위 호환) ===== */
    --primary-color: var(--text-primary);
    --secondary-color: var(--brand-primary);
    --accent-color: var(--bg-secondary);
    --background-color: var(--bg-primary);
    --text-color: var(--text-secondary);
    --border-color: var(--border-default);

    /* ===== 기타 설정 ===== */
    --transition: all 0.3s ease;
    --nav-height: 75px;
    /* 고정 헤더 높이 */
    --sidebar-offset: 15px;
    /* 사이드바 상단 여백 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --border-strong: 2px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* ===== Header Styles ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    min-height: 95px;
    overflow: visible;
}

.navbar {
    padding: 0.75rem 0;
    min-height: 95px;
    overflow: visible;
    border-bottom: 2px solid var(--color-gray-200);
}

/* 내비바 전체 너비 활용 — main의 container-fluid와 좌우 padding 일치 */
.navbar>.container {
    max-width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    display: flex;
    align-items: center;
}

.navbar>.container>.navbar-collapse {
    flex-grow: 1;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color) !important;
    height: auto;
    padding: 0;
    margin: 0;
}

/* 데스크톱(lg+): 로고를 좌측 사이드바(col-lg-2) 너비 안에서 가로 중앙 정렬
   — main의 container-fluid(0.75rem padding) + col-lg-2(0.75rem col padding) 와 동일 좌표계 매칭 */
@media (min-width: 992px) {
    .navbar > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .navbar-brand {
        width: 16.6667%;
        flex-shrink: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }
    /* English 배너 우측 끝을 검색창 input 우측과 정렬
       (col padding 12px + .products-container padding-right 16px = 28px) */
    .english-website-btn {
        margin-right: 28px;
    }
    /* 메뉴 4개 2px 좌측 이동 */
    .navbar-collapse .navbar-nav.me-auto {
        margin-left: -2px;
    }
}

/* 태블릿(md): 사이드바 col-md-3 — 햄버거 모드라 로고만 영향 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        width: 25%;
        flex-shrink: 0;
    }
}

.logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.navbar .container {
    position: relative;
}

/* English Website 우측 배너 (이미지) */
.english-website-btn {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.english-website-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.english-website-btn:hover,
.english-website-btn:focus {
    opacity: 0.85;
    text-decoration: none;
}

/* 관리자 모드 (쉴드) 아이콘 — 영문 배너 왼쪽, 작고 희미하게 + 수직 중앙 */
.admin-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-right: 2.5rem;
    opacity: 0.18;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.admin-trigger svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted, #999);
    display: block;
}

.admin-trigger:hover,
.admin-trigger:focus {
    opacity: 0.75;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

/* Increase spacing between nav links, keep button position fixed */
.navbar-nav .nav-link:not(.btn-inquiry) {
    margin-right: 3rem;
}

/* Colorful Border CTA for inquiry */
.navbar .btn-inquiry {
    background: #fff;
    color: var(--text-primary) !important;
    border: 1px solid #000;
    padding: 0.9rem 1.4rem;
    min-width: 115px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 0px var(--brand-primary),
        inset 0 0 0 0px var(--brand-accent),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .btn-inquiry:hover {
    box-shadow:
        inset 0 0 0 2px var(--brand-primary),
        inset 0 0 0 5px var(--brand-accent),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Lighter placeholders in contact modal */
.contact-form .form-control::placeholder,
.contact-form textarea::placeholder {
    color: #B6BCCD;
    /* 연한 그레이-블루 */
    opacity: 1;
    /* 사파리 대응 */
}


/* Nav link underline base */
.navbar-nav .nav-link:not(.btn-inquiry) {
    position: relative;
}

.navbar-nav .nav-link:not(.btn-inquiry)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--brand-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover underline */
.navbar-nav .nav-link:not(.btn-inquiry):hover {
    color: var(--brand-primary) !important;
}

.navbar-nav .nav-link:not(.btn-inquiry):hover::after {
    width: 60%;
}

/* Active nav link */
.navbar-nav .nav-link.active {
    font-weight: 700;
    color: var(--brand-primary) !important;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active:hover {
    color: var(--brand-primary) !important;
}

.navbar-nav .nav-link.active:hover::after {
    width: 100%;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 95px;
    padding-top: 0;
}

/* ===== Hero Banner ===== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 240px;
    /* 높이 축소 (300px -> 240px) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle {
    font-family: 'Paperlogy', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Paperlogy', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-description {
    font-family: 'Paperlogy', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    word-break: keep-all;
}

/* ===== Products Section ===== */
.products-section {
    padding-top: 1.5rem;
    padding-bottom: 6rem;
    min-height: calc(100vh - 80px);
}

/* ===== Exhibition (Expo) ===== */
.expo-section {
    padding: 1.25rem 0 2rem;
}

.expo-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expo-full {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Back to home (text + icon) */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 800;
    margin-left: -80px;
    margin-top: 0.05rem;
    transition: color .2s ease, transform .2s ease, text-shadow .2s ease;
}

.back-home:hover {
    color: var(--brand-secondary);
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
    transform: translateX(-2px);
}

.back-home svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.back-home:hover svg {
    transform: translateX(-2px);
}

@media (max-width: 1200px) {
    .expo-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .expo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .expo-gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== Category Sidebar ===== */
.category-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
    padding: 1.05rem 0.85rem;
    position: sticky;
    top: calc(var(--nav-height) + var(--sidebar-offset));
    display: flex;
    flex-direction: column;
}

/* ===== Inquiry Card (Sidebar) ===== */
/* Static element inside sticky sidebar — no overlap */
.inquiry-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.inquiry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.inquiry-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.inquiry-dot {
    display: none;
}

.inquiry-title {
    font-family: 'Paperlogy', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.inquiry-subtitle {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.inquiry-sep {
    height: 1px;
    background: transparent;
    margin: 0.5rem 0;
    display: block;
    /* Ensure separation */
}

.inquiry-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}

.inquiry-phone i {
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.inquiry-phone .icon-phone {
    width: 16px;
    height: 16px;
    color: var(--brand-primary);
    opacity: 0.9;
    flex: 0 0 auto;
}

.inquiry-phone-number {
    font-family: 'Paperlogy', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    letter-spacing: -0.3px;
}

.inquiry-dashed {
    display: none;
    /* Removing mechanical dashed line */
}

.inquiry-fax {
    font-weight: 800;
    color: #222;
    white-space: nowrap;
}

.inquiry-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0;
    text-align: left;
}

.icon-email {
    width: 14px;
    height: 14px;
    color: #000;
    flex: 0 0 auto;
    margin-left: 1px;
    margin-right: 1px;
}

.inquiry-email-text {
    font-family: 'Paperlogy', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.sidebar-title {
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 1.43rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    padding-left: 0.18rem;
    margin-bottom: 0.82rem;
    padding-bottom: 0.72rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.34);
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    padding-left: 0;
}

.category-group {
    display: flex;
    flex-direction: column;
}

.category-filter {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 6px;
    padding: 0 0.55rem 0 0.75rem;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 1.04rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    text-align: left;
    width: 100%;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.category-group.has-sub .category-filter {
    grid-template-columns: 18px 1fr 14px;
    padding-right: 0.94rem;
}

.category-filter-label {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 100%;
    line-height: 1.2;
    padding-top: 2px;
}

.subcategory-caret {
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889AAF' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 0.5rem;
    margin-right: 0.32rem;
    flex-shrink: 0;
    align-self: center;
}

.category-group.expanded .subcategory-caret {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237889A2' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
}

.subcategory-list {
    display: none;
    flex-direction: column;
    gap: 0.14rem;
    padding: 0.24rem 0 0.58rem 1.58rem;
    position: relative;
}

.subcategory-list::before {
    content: '';
    position: absolute;
    left: 0.82rem;
    top: 0.42rem;
    bottom: 0.64rem;
    width: 1px;
    background: rgba(100, 116, 139, 0.56);
}

.category-group.expanded .subcategory-list {
    display: flex;
}

.subcategory-filter {
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    padding: 0.42rem 0.48rem 0.42rem 0.78rem;
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 0.87rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.subcategory-filter:hover {
    color: #2f66c8;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.18);
}

.subcategory-filter.active {
    color: #2b5fc1;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    font-weight: 600;
}

/* Arrow indicator - inline flex item */
.category-filter::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0;
    margin-left: 0;
    margin-top: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889AAF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    align-self: center;
}

.category-filter::after {
    display: none;
}

.category-filter:hover {
    color: #2f66c8;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.18);
}

.category-filter:hover::before {
    opacity: 1;
    transform: translateX(0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.category-filter.active {
    color: #2d63c7;
    background: rgba(59, 130, 246, 0.13);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.category-filter.active::before {
    opacity: 1;
    transform: translateX(0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.category-filter i,
.category-filter .count {
    display: none !important;
}

/* ===== Products Container ===== */
.products-container {
    padding-left: 0.3rem;
    /* 사이드바와 제품 영역 사이 간격 축소 */
    padding-right: 1rem;
    /* 화면 우측 여백 +8px */
}

/* ===== Products Grid: 4 per row on large screens ===== */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

/* Full width for loading/empty states */
#productsGrid>.col-12 {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
}

/* Category grid inside #productsGrid takes full width */
#productsGrid>.category-grid {
    grid-column: 1 / -1;
}

.product-item {
    /* wrapper for each card */
    width: 100%;
}

/* Brand Row + Search Wrapper */
.brand-search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.brand-search-bar .brand-row {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.product-search {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
}

.product-search-input {
    height: 52px;
    padding: 0 96px 0 46px;
    width: 280px;
    background: #fff;
    border: 1.5px solid var(--brand-primary, #1a3a8f);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 4px 14px rgba(26, 58, 143, 0.14);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-search-input::placeholder {
    color: #9ca3af;
}

.product-search-input:hover {
    box-shadow: 0 6px 18px rgba(26, 58, 143, 0.2);
    transform: translateY(-1px);
}

.product-search-input:focus {
    border-color: var(--brand-primary, #1a3a8f);
    box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.18), 0 6px 18px rgba(26, 58, 143, 0.2);
}

.product-search-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--brand-primary, #1a3a8f);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.product-search-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
}

.product-search-icon:hover {
    background: rgba(26, 58, 143, 0.08);
    opacity: 0.85;
}

.product-search-icon:focus-visible {
    outline: 2px solid var(--brand-primary, #1a3a8f);
    outline-offset: 2px;
}

.product-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s ease;
}

.product-search-clear:hover {
    background: #e5e7eb;
    color: #111827;
}

.product-search-enter {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(26, 58, 143, 0.25);
    border-radius: 8px;
    background: rgba(26, 58, 143, 0.06);
    color: var(--brand-primary, #1a3a8f);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 1px 0 rgba(26, 58, 143, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.product-search-enter[hidden] {
    display: none;
}

.product-search-enter svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
}

.product-search-enter:hover {
    background: rgba(26, 58, 143, 0.12);
    border-color: rgba(26, 58, 143, 0.45);
    transform: translateY(-50%) scale(1.03);
}

.product-search-enter:focus-visible {
    outline: 2px solid var(--brand-primary, #1a3a8f);
    outline-offset: 2px;
}

/* Brand Row */
.brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.brand-row .brand-chip:first-child {
    margin-left: 0;
}

.brand-label {
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.25rem;
}

.brand-chip {
    height: 52px;
    min-width: 84px;
    padding: 0 1rem;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand-chip-text {
    min-width: 130px;
}

.brand-chip-text-label {
    font-family: 'Paperlogy', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.2px;
}

.brand-chip-text.active .brand-chip-text-label {
    color: #0f172a;
}

/* Remove old underline */
.brand-chip::after {
    display: none;
}

.brand-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-color: var(--brand-primary);
    /* Navy Hover Border */
    z-index: 2;
}

.brand-chip.active {
    border: 1px solid var(--brand-primary);
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    z-index: 1;
}

/* Image Styles (Grayscale to Color) */
.brand-chip img {
    height: 26px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.brand-chip[data-brand="aha"] {
    min-width: 138px;
}

.brand-chip[data-brand="aha"] img {
    height: 34px;
    max-width: 128px;
}

.brand-chip[data-brand="promotech"] {
    min-width: 148px;
    padding: 0 0.4rem;
}

.brand-chip[data-brand="promotech"] img {
    max-width: 140px;
}

.brand-chip[data-brand="laco"] img {
    height: 44px;
    max-width: 100px;
}

.brand-chip[data-brand="kaindl"] img {
    height: 22px;
}

.brand-chip:hover img,
.brand-chip.active img {
    filter: none;
    transform: scale(1.05);
}

/* "Select All" Button Styling */
.brand-chip[data-brand="all"] {
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1;
    padding-top: 3px;
    box-sizing: border-box;
}

.brand-chip[data-brand="all"].active {
    background: #fff;
    color: var(--brand-primary);
    border: none;
    position: relative;
    z-index: 1;
}

.brand-chip[data-brand="all"].active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,
        var(--brand-secondary),
        var(--brand-accent),
        #60a5fa,
        var(--brand-secondary)
    );
    background-size: 300% 100%;
    border-radius: 14px;
    z-index: -1;
    animation: flowingBorder 2s linear infinite;
}

.brand-chip[data-brand="all"].active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        #ffffff 0%,
        #f8faff 25%,
        #f0f5ff 50%,
        #f8faff 75%,
        #ffffff 100%
    );
    background-size: 400% 400%;
    border-radius: 11px;
    z-index: -1;
    display: block;
    animation: subtleBackground 3s ease infinite;
}

@keyframes flowingBorder {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes subtleBackground {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

.brand-chip[data-brand="all"]:hover {
    color: var(--brand-primary);
}

.brand-chip[data-brand="all"].active:hover {
    color: var(--brand-primary);
    transform: translateY(-4px);
}

/* Disable old animations */
.brand-chip.deselecting,
.brand-chip.deselecting::after {
    animation: none;
}

/* Unused animations removed */

/* ===== Brand Filters ===== */
.brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== Resources Board (Re-design) ===== */
.resources-section {
    padding: 1.25rem 0 3rem;
    background-color: #fafbfc;
}

#resources-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.doc-item {
    border-bottom: 0;
    padding: 0;
}

/* Old borders removal */
.doc-item+.doc-item {
    border-top: none;
}

.doc-link {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.board .doc-list .doc-item>a.doc-link {
    width: 100% !important;
    max-width: none;
    margin: 0;
}

.doc-item--highlight .doc-link {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 59, 130, 246), 0.3), 0 12px 30px rgba(15, 23, 42, 0.1);
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.doc-link:hover {
    transform: none;
    /* No movement */
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border-color: var(--brand-primary);
}

.doc-link:active {
    transform: none;
}

/* Image/Preview Area */
.doc-preview {
    width: 100%;
    height: 280px;
    /* Taller image area */
    background: #fff;
    /* Unified background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Full bleed */
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.doc-link:hover .doc-preview {
    background: #fff;
    /* Keep white */
}

.doc-preview img {
    max-width: 95%;
    /* Bigger image */
    max-height: 95%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    margin: 0 auto;
}

.doc-preview-placeholder {
    width: 64px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 6px;
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}
.doc-preview-placeholder::after {
    content: 'PDF';
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}

.doc-link:hover .doc-preview img {
    transform: scale(1.05);
    /* Subtle scale only */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

/* Content Area */
.doc-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    flex-grow: 1;
    flex-grow: 1;
    position: relative;
    border-top: none;
    /* Seamless merge */
}

.doc-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-navy-900);
    line-height: 1.5;
    white-space: normal;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Remove old numbering style */
.doc-title::before {
    content: none;
}

/* Meta Data Row */
.doc-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    position: static;
    /* Remove absolute positioning */
    padding-top: 0.5rem;
}

.doc-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.doc-badge.pdf {
    background: #fff;
    color: #dc2626;
    /* PDF Red */
    border: 1px solid #dc2626;
}

.doc-badge.web {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.doc-badge.doc {
    background: #fff;
    color: #16a34a;
    border: 1px solid #16a34a;
}

/* Hover effect removed as requested */
/* .doc-link:hover .doc-badge.pdf {
    background: var(--color-blue-100);
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
} */

/* Arrow Icon */
.doc-arrow {
    width: 20px;
    height: 20px;
    color: var(--brand-secondary);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Moving arrow to absolute bottom right */
.doc-right svg.doc-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
}

.doc-link:hover .doc-arrow {
    opacity: 1;
    transform: none;
    color: #dc2626;
    /* Red Arrow */
}

/* Responsive Grid */
@media (max-width: 992px) {
    .doc-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .doc-list {
        grid-template-columns: 1fr;
    }

    .doc-preview {
        height: 180px;
    }
}

/* ===== Product Cards (1st Tier Redesign) ===== */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    height: 100%;
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 55%, #93c5fd 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover {
    transform: none;
    /* No movement on hover */
    border-color: var(--brand-primary);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.product-card:hover::before,
.product-card:focus-within::before,
.product-card.active::before {
    opacity: 1;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card.no-detail {
    cursor: default;
    border-style: dashed;
}

.product-card.no-detail:hover {
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.product-card.no-detail::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    opacity: 0.9;
}

.product-image {
    width: 100%;
    height: 220px;
    padding: 2.4rem 0.5rem 0.5rem;
    object-fit: contain;
    background: radial-gradient(circle at 50% 0%, #f8fafc 0%, #ffffff 60%);
    position: relative;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem 1.45rem 0.95rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    flex-grow: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Cleaned up duplicate code */

/* Category: Top, Clean Navy Text */
.product-category {
    order: -1;
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e3a8a;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.2rem;
    display: block;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1.2;
}

/* Name: Large, Bold */
.product-name {
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--color-navy-900);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.2rem;
}

/* Model: Subtext */
.product-model {
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 0.8rem;
    color: #1d4ed8;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: fit-content;
    min-height: 32px;
    padding: 0.37rem 0.78rem;
    line-height: 1;
    border-radius: 8px;
    border: 1px solid rgba(29, 78, 216, 0.4);
    background: #ffffff;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    white-space: nowrap;
}

.product-model-text {
    display: block;
    line-height: 1;
    transform: translateY(1px);
}

.product-card[data-detail-id="gesipa-battery-rivet-gun"] .product-model,
.product-card[data-detail-id="kaindl-milling-disc"] .product-model {
    white-space: normal;
    line-height: 1.25;
    min-height: 0;
    padding: 0.4rem 0.45rem;
    word-break: keep-all;
}

.product-card[data-detail-id="gesipa-battery-rivet-gun"] .product-model-text,
.product-card[data-detail-id="kaindl-milling-disc"] .product-model-text {
    line-height: 1.25;
    transform: none;
}

.product-pending {
    margin-top: 0.45rem;
    margin-bottom: 0;
    font-family: 'Pretendard', 'Pretendard Variable', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
    display: inline-flex;
    width: fit-content;
}

.product-meta-row .product-pending {
    margin-top: 0;
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
}

/* ===== Brand Badge on Card ===== */
.brand-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 36px;
    min-width: 92px;
    max-width: 120px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.brand-badge img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-badge:has(img[data-brand="promotech"]) {
    max-width: 134px;
}

.brand-badge:has(img[data-brand="laco"]) {
    padding: 1px 4px;
}

/* ===== Footer ===== */
.footer {
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    background: #f8fafc;
    border-top: 2px solid #cbd5e1;
}


/* 푸터 전체 너비 활용 */
.footer>.container {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 240px;
}

.footer-logo-img {
    height: 46px;
    width: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-korean {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.brand-english {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.footer-slogan {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-left: 20px;
    font-family: 'Gowun Batang', serif;
    position: relative;
}

.footer-slogan::before,
.footer-slogan::after {
    content: '"';
    color: var(--brand-secondary);
}

.footer-slogan::before {
    margin-right: 4px;
}

.footer-slogan::after {
    margin-left: 4px;
}

.footer-slogan-en {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    margin-left: 20px;
    margin-top: 4px;
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    text-align: right;
}

.copyright {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Supersquad Signature */
@keyframes shine-pass {
    0% { transform: translateX(-100%) skewX(12deg); }
    100% { transform: translateX(200%) skewX(12deg); }
}

.footer.group:hover .supersquad-signature .shimmer-overlay {
    animation: shine-pass 0.8s ease-in-out 2;
}

.supersquad-signature {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    user-select: none;
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.supersquad-signature .signature-text {
    font-size: 12px;
    font-weight: 500;
    color: #737373;
}

.supersquad-signature .signature-logo {
    opacity: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.supersquad-signature .signature-logo img {
    width: auto;
    height: 14px;
    object-fit: contain;
}

.supersquad-signature .shimmer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%) skewX(12deg);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.highlight {
    color: var(--brand-secondary);
    font-weight: 700;
}

.address,
.ceo-biz {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
}

.ceo-biz {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ceo-biz-sep {
    color: var(--text-muted);
    font-weight: 700;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-default);
}

.contact-info span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Modal Styles ===== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* ===== Contact Modal (Glassmorphism) ===== */
#contactModal {
    --bs-modal-bg: transparent;
}

#contactModal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
}

#contactModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#contactModal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
}

#contactModal .modal-title {
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
}

#contactModal .btn-close {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

#contactModal .btn-close:hover {
    opacity: 1;
}

#contactModal .modal-body {
    padding: 1.5rem 2rem 2rem;
}

#contactModal.modal.show {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contact-form .form-control:hover {
    border-color: var(--color-gray-400);
}

.contact-form .form-control:focus {
    background: #fff;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-form .btn {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    background: var(--brand-primary);
    border: none;
    transition: all 0.2s ease;
}

.contact-form .btn:hover {
    background: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .category-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-container {
        padding-left: 0;
    }
}

/* Sidebar/Product width fine-tune for large screens */
@media (min-width: 992px) {
    .sidebar-col {
        flex: 0 0 220px;
        max-width: 220px;
        width: 220px;
    }

    .main-col {
        flex: 1;
        max-width: calc(100% - 220px);
    }
}

/* Prevent category button text breaking into vertical stack */
.category-filter {
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* 모바일 navbar 높이 축소 (95 → 60) — 수직 중앙 정렬 강제 */
    .header,
    .navbar {
        min-height: 60px !important;
        height: 60px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }
    .main-content {
        margin-top: 60px;
    }
    .navbar > .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 60px;
        height: 60px;
        align-items: center !important;
    }
    .navbar-brand,
    .navbar-toggler {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center !important;
    }

    /* 모바일: '제품군' 사이드바를 접기/펼치기 토글 카드로 전환
       (bootstrap .row > * { margin-top: var(--bs-gutter-y) } 보다 specificity 동등 + 뒤에 로드되므로 !important 필요) */
    .sidebar-col {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 모바일: 제품 섹션 좌우 패딩 + 상단 여백 (navbar에 살짝만 띄움) */
    .products-section {
        padding-top: 0;
    }
    .products-section > .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .products-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    .main-col {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .products-container {
        padding: 0;
    }

    /* 모바일: 브랜드 칩 가운데 정렬 (줄바꿈 시 양쪽 균등 여백) */
    .brand-row {
        justify-content: center;
    }
    .product-search {
        margin-top: 0.5rem;
    }

    .category-sidebar {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    .sidebar-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        margin: 0;
        padding: 0.8rem 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
        user-select: none;
        font-size: 1.05rem;
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-title::after {
        content: '';
        display: inline-block;
        width: 9px;
        height: 9px;
        border-right: 2px solid #475569;
        border-bottom: 2px solid #475569;
        transform: rotate(45deg) translate(-3px, -3px);
        transition: transform 0.25s ease;
    }

    .category-sidebar.is-expanded .sidebar-title::after {
        transform: rotate(-135deg) translate(-3px, -3px);
    }

    .category-filters {
        display: none;
    }
    /* 모바일: 제품문의 카드는 사이드바 펼쳐도 항상 숨김 */
    .inquiry-card {
        display: none !important;
    }

    .category-sidebar.is-expanded .category-filters {
        display: flex;
        margin-top: 0.75rem;
    }

    /* 태블릿 내비바 */
    .navbar>.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        height: 32px;
    }

    /* 모바일/태블릿: English 배너는 햄버거 메뉴 안에서 표시 */
    .english-website-btn {
        margin-top: 0.75rem;
    }
    .english-website-img {
        height: 36px;
    }

    /* 모바일: 관리자 아이콘 완전 숨김 */
    .admin-trigger {
        display: none !important;
    }

    /* 모바일 햄버거 토글 버튼 */
    .navbar .navbar-toggler {
        padding: 0.5rem 0.65rem;
        border-radius: 9px;
        border-color: rgba(15, 23, 42, 0.14);
        font-size: 1rem;
        line-height: 1;
        min-width: 40px;
        min-height: 40px;
    }
    .navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.18);
    }
    .navbar .navbar-toggler-icon {
        width: 1.25em;
        height: 1.25em;
    }

    /* 모바일 햄버거 — 우측 슬라이드 드로어로 전환 (Bootstrap collapse 간섭 완전 차단) */
    .navbar .navbar-collapse,
    .navbar .navbar-collapse.collapse,
    .navbar .navbar-collapse.collapsing {
        position: fixed !important;
        top: 60px !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(82vw, 320px) !important;
        height: calc(100vh - 60px) !important;
        max-width: 320px;
        margin: 0 !important;
        padding: 1.25rem 1.25rem 2rem !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.06);
        transform: translateX(101%);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.2s ease !important;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1050;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none;
    }
    .navbar .navbar-collapse.show {
        transform: translateX(0) !important;
        box-shadow: -16px 0 40px rgba(15, 23, 42, 0.12) !important;
        pointer-events: auto;
    }
    /* 드로어 백드롭 */
    .navbar-backdrop {
        position: fixed;
        inset: 60px 0 0 0;
        background: rgba(15, 23, 42, 0.32);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        /* navbar(z:1030) stacking context 내부 drawer가 body레벨에선 1030으로 평가됨.
           backdrop은 body 직속이라 1029로 둬서 drawer 아래로 보내야 함 */
        z-index: 1029;
    }
    .navbar-backdrop.is-active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s ease;
    }
    /* ===== 모바일 드로어 디자인 시스템 (Linear/Notion 톤) ===== */
    /* 드로어 내부 여백 확장 + 컬럼 정렬 */
    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse {
        padding: 1.5rem 1.25rem 1.25rem !important;
    }

    /* eyebrow */
    .navbar .navbar-collapse::before {
        content: 'NAVIGATION';
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.22em;
        color: #1E3A5F;
        margin-bottom: 1rem;
        padding-left: 0.25rem;
        flex-shrink: 0;
    }

    /* 드로어 푸터 시그니처 — 가시성 확보 */
    .navbar .navbar-collapse::after {
        content: 'AHA INDUSTRIAL CO.   ·   042-935-7600';
        display: block;
        margin-top: auto;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: #475569;
        text-align: center;
        line-height: 1.6;
        flex-shrink: 0;
    }

    /* 메뉴 리스트 */
    .navbar .navbar-collapse .navbar-nav.me-auto {
        flex-direction: column;
        gap: 0;
        margin: 0;
        width: 100%;
        border-top: 1px solid rgba(15, 23, 42, 0.05);
    }
    .navbar .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }

    /* 메뉴 항목 — 좌측 indicator + 우측 chevron, 강한 위계 */
    .navbar .navbar-nav .nav-link:not(.btn-inquiry) {
        position: relative;
        display: flex !important;
        align-items: center;
        padding: 1rem 0.85rem !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: #0b1220 !important;
        margin-right: 0 !important;
        border-bottom: none !important;
        background: transparent;
        transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.22s cubic-bezier(0.32, 0.72, 0, 1);
        -webkit-tap-highlight-color: transparent;
        letter-spacing: -0.01em;
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        transform-origin: center;
        width: 3px;
        height: 22px;
        background: #1E3A5F;
        border-radius: 0 3px 3px 0;
        transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry)::after {
        display: none !important;
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry):hover {
        color: #1E3A5F !important;
        padding-left: 1.1rem !important;
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry):hover::after {
        opacity: 0.7;
        right: 0.7rem;
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry):active {
        background: rgba(30, 58, 95, 0.04);
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry).active {
        color: #1E3A5F !important;
        font-weight: 700 !important;
        background: rgba(30, 58, 95, 0.08);
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry).active::before {
        transform: translateY(-50%) scaleY(1);
        width: 3px;
        height: 28px;
    }
    .navbar .navbar-nav .nav-link:not(.btn-inquiry).active::after {
        opacity: 1;
        border-color: #1E3A5F;
    }

    /* 빠른 문의 컨테이너 .nav-item을 flex로 만들어 가운데 정렬 */
    .navbar .navbar-nav .nav-item:has(.btn-inquiry) {
        display: flex;
        justify-content: center;
    }
    /* 빠른 문의 — solid 네이비 CTA, 가운데 정렬 */
    .navbar .navbar-nav .nav-link.btn-inquiry {
        display: block !important;
        margin: 1.1rem auto 1.1rem !important;
        padding: 0.95rem 2.25rem !important;
        text-align: center;
        width: fit-content;
        min-width: 60%;
        border-radius: 12px !important;
        font-size: 0.98rem !important;
        font-weight: 600 !important;
        background: #1E3A5F !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow:
            0 8px 18px rgba(30, 58, 95, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.18s ease;
        letter-spacing: -0.005em;
    }
    .navbar .navbar-nav .nav-link.btn-inquiry:hover {
        background: #142A47 !important;
        box-shadow:
            0 12px 26px rgba(30, 58, 95, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
        color: #ffffff !important;
    }
    .navbar .navbar-nav .nav-link.btn-inquiry:active {
        transform: scale(0.98);
        box-shadow:
            0 4px 10px rgba(30, 58, 95, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    /* English Website — 미니멀 chip row */
    .navbar .english-website-btn {
        display: flex !important;
        align-items: center;
        margin: 0.5rem 0 0 !important;
        padding: 0.6rem 0.85rem;
        align-self: stretch !important;
        justify-content: flex-start !important;
        gap: 0.7rem;
        background: #F7F7F8;
        border: 1px solid rgba(15, 23, 42, 0.05);
        border-radius: 10px;
        transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
    }
    .navbar .english-website-btn::before {
        content: 'GLOBAL';
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.2em;
        color: rgba(15, 23, 42, 0.4);
        flex-shrink: 0;
        padding: 3px 7px;
        background: #ffffff;
        border-radius: 4px;
        border: 1px solid rgba(15, 23, 42, 0.06);
    }
    .navbar .english-website-img {
        height: 26px !important;
        width: auto;
    }
    .navbar .english-website-btn:hover {
        background: #F0F0F2;
        border-color: rgba(15, 23, 42, 0.1);
    }
    .navbar .english-website-btn:active {
        transform: scale(0.985);
    }

    /* 모바일 푸터 compaction (768 이하부터 column 레이아웃) */
    .footer {
        padding: 1.1rem 0 0.9rem;
        margin-top: 1.25rem;
    }
    .footer > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.55rem;
        align-items: center;
        text-align: center;
    }
    .footer-logo {
        min-width: auto;
        flex-direction: column;
    }
    .footer-logo {
        gap: 0.4rem;
        margin: 0 auto 0.25rem !important;
        align-items: center;
    }
    .footer-logo-img {
        height: 30px !important;
    }
    .footer-brand-text {
        align-items: center;
        text-align: center;
    }
    .footer-slogan {
        font-size: 0.98rem !important;
        margin-left: 0;
        line-height: 1.35;
    }
    .footer-slogan::before,
    .footer-slogan::after {
        font-size: 0.9em;
    }
    .footer-slogan-en {
        font-size: 0.74rem;
        margin-left: 0;
        margin-top: 2px;
        line-height: 1.3;
        opacity: 0.75;
    }
    .footer-info {
        align-items: center;
        text-align: center;
        gap: 0.15rem;
    }
    .copyright {
        font-size: 0.7rem;
        font-weight: 500;
        flex-direction: column;
        gap: 3px;
        margin-bottom: 0.15rem;
        line-height: 1.4;
    }
    .copyright .highlight {
        font-weight: 600;
    }
    .address,
    .ceo-biz {
        font-size: 0.68rem;
        line-height: 1.4;
    }
    .ceo-biz {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.4rem;
    }
    .ceo-biz-sep {
        display: none;
    }
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.15rem 0.55rem;
        font-size: 0.68rem;
        line-height: 1.4;
        margin-top: 0.1rem;
    }
    /* 푸터 supersquad 시그니처 — 카피라이트 spans 숨김 규칙으로부터 보호 */
    .footer-info .supersquad-signature,
    .footer-info .supersquad-signature .signature-text {
        display: inline-flex !important;
    }
    .footer-info .supersquad-signature {
        padding: 2px 6px;
    }
    .footer-info .supersquad-signature .signature-text {
        font-size: 11px;
    }
    .footer-info .supersquad-signature .signature-logo img {
        height: 12px;
    }

    .category-filter {
        padding: 0 0.75rem;
        min-height: 44px;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .brand-row {
        gap: 8px;
        padding: 0;
        border-radius: 0;
    }

    .product-search {
        width: 100%;
        margin-left: 0;
    }

    .product-search-input {
        width: 100%;
        min-width: 0;
        height: 44px;
    }

    .brand-chip {
        height: 40px;
        min-width: 70px;
        padding: 0 0.7rem;
        border-radius: 10px;
    }

    .brand-chip img {
        height: 20px;
        max-width: 80px;
    }

    .brand-chip[data-brand="promotech"] {
        min-width: 128px;
    }

    .brand-chip[data-brand="promotech"] img {
        max-width: 112px;
    }

    .brand-chip-text {
        min-width: 100px;
    }

    .brand-chip-text-label {
        font-size: 0.86rem;
    }

    #productsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-image {
        height: 150px;
        padding: 2rem 0.4rem 0.4rem;
    }

    .product-info {
        padding: 0.72rem 0.85rem 0.7rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-model {
        font-size: 0.7rem;
        min-height: 30px;
        padding: 0.32rem 0.68rem;
    }

    .product-category {
        font-size: 0.62rem;
        padding: 0;
    }

    /* 태블릿 푸터 */
    .footer>.container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-slogan {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 1rem 0;
    }

    .search-box {
        max-width: 100%;
    }

    #productsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .brand-row {
        gap: 6px;
        padding: 0;
    }

    .brand-chip {
        height: 36px;
        min-width: 62px;
        padding: 0 0.5rem;
    }

    .brand-chip img {
        height: 16px;
        max-width: 64px;
    }

    .brand-chip[data-brand="promotech"] {
        min-width: 104px;
    }

    .brand-chip[data-brand="promotech"] img {
        max-width: 90px;
    }

    .brand-chip-text {
        min-width: 84px;
    }

    .brand-chip-text-label {
        font-size: 0.75rem;
    }

    .product-image {
        height: 120px;
        padding: 1.7rem 0.35rem 0.3rem;
    }

    .product-info {
        padding: 0.55rem 0.68rem 0.52rem;
        gap: 0.25rem;
    }

    .product-name {
        font-size: 0.82rem;
    }

    .product-model {
        font-size: 0.64rem;
        min-height: 28px;
        padding: 0.28rem 0.56rem;
    }

    .product-category {
        font-size: 0.58rem;
        padding: 0;
    }

    .product-pending {
        font-size: 0.62rem;
        padding: 0.2rem 0.35rem;
    }

    /* 모바일 내비바 */
    .navbar>.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        height: 34px;
    }

    /* 모바일 푸터 (576 이하) — 768 블록과 동일한 compaction 유지 */
    .footer-content {
        flex-direction: column;
        gap: 0.65rem;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        min-width: auto;
        flex-direction: column;
        justify-content: center;
    }
    /* 768 블록의 footer-logo-img/slogan/footer-info 압축 값 유지 — 여기서 재정의 안 함 */
}

/* ===== Animation Classes ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Loading States ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    width: 100%;
}

.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    width: 100%;
    gap: 1rem;
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    color: #e63946;
}

.empty-state p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-default);
    border-top: 4px solid var(--brand-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== Product Detail Page ===== */

.pd-page {
    background: #fff;
    min-height: 100vh;
}

/* Breadcrumb */
.pd-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.pd-breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.pd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.pd-back-link:hover {
    color: #333;
}

.pd-back-link svg {
    width: 16px;
    height: 16px;
}

/* Hero */
.pd-hero {
    background: #fff;
    padding: 4rem 0 0;
}

.pd-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Gallery */
.pd-gallery {
    position: sticky;
    top: 100px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.pd-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transition: none;
}

.pd-main-image:hover img {
    transform: none;
}

/* 연삭기 상세: 썸네일 이미지를 컨테이너에 꽉 차게 표시 */
.pd-main-image.pd-main-image--fill .pd-main-image-img--fill {
    object-fit: cover;
}

/* 특정 연삭기 썸네일( WIG-4 / BSG 20-2 / BSG 60 )은 115%로 확대 */
.pd-main-image.pd-main-image--thumb115 .pd-main-image-img--thumb115 {
    width: 115%;
    height: 115%;
    object-fit: contain;
}

/* 면취기: 썸네일 이미지를 88%로 축소 */
.pd-main-image.pd-main-image--chamfer .pd-main-image-img--chamfer {
    width: 95%;
    height: 95%;
    object-fit: contain;
}

/* BSG 20-2 / BSG 60: 표출 영역을 우측으로 살짝 이동 */
.pd-main-image.pd-main-image--thumb-shift-right .pd-main-image-img--thumb-shift-right {
    object-position: 48% center;
    transform: translateX(0);
}

.pd-main-image.pd-main-image--thumb-shift-right:hover .pd-main-image-img--thumb-shift-right {
    transform: translateX(0);
}

.pd-brand-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 2;
}

.pd-brand-badge img {
    height: 20px;
    width: auto;
    display: block;
}

/* Product Info */
.pd-info {
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.pd-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-navy-800, #1E3A5F);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-left: 10px;
    border-left: 3px solid #2563eb;
}

.pd-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 0.25rem;
}

.pd-model {
    font-size: 0.95rem;
    color: #999;
    font-weight: 500;
    margin: 0 0 1.5rem;
}

.pd-summary {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 2rem;
    word-break: keep-all;
}

/* Quick Specs */
.pd-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    margin-bottom: 2rem;
}

.pd-quick-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem 1.25rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pd-quick-spec-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
}

.pd-quick-spec-value {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
}

/* CTA Buttons */
.pd-cta-group {
    display: flex;
    gap: 0.75rem;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.pd-btn svg {
    width: 17px;
    height: 17px;
}

.pd-btn-primary {
    background: #111;
    color: #fff;
    flex: 1;
}

.pd-btn-primary:hover {
    background: #333;
    color: #fff;
}

.pd-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    flex: 1;
}

.pd-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #111;
}

/* Divider between hero and content */
.pd-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

/* Sections */
.pd-section {
    margin-bottom: 7rem;
}

.pd-section-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.pd-section-icon {
    display: none;
}

.pd-section-title {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.pd-section-title::before {
    content: '';
    display: block;
    width: 3px;
    min-width: 3px;
    height: 1em;
    background: #335580;
    border-radius: 1.5px;
    flex-shrink: 0;
    position: relative;
    top: -1.5px;
}

/* Feature List */
.pd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

.pd-feature-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pd-feature-item:last-child {
    border-bottom: 1px solid #f0f0f0;
}

.pd-feature-bullet {
    width: 5px;
    height: 5px;
    min-width: 5px;
    background: #ccc;
    border-radius: 50%;
    margin-top: 0;
    position: relative;
    top: 0;
}

.pd-feature-bullet svg {
    display: none;
}

.pd-feature-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #444;
    font-weight: 400;
}

.pd-feature-gallery-wrap {
    margin-top: 1.25rem;
}

/* Content Sections (다중 제품 변형) */
.pd-block-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.pd-block-heading::before {
    content: '';
    display: block;
    width: 3px;
    min-width: 3px;
    height: 1em;
    background: #335580;
    border-radius: 1.5px;
    flex-shrink: 0;
    position: relative;
    top: -1.5px;
}
.pd-block-note {
    font-size: 0.82rem;
    color: #666;
    margin: 0.4rem 0;
    line-height: 1.5;
}
.pd-block-note + .pd-cs-image {
    margin-top: 3rem;
}
.pd-cs-image {
    margin: 1.25rem 0;
}
.pd-cs-image img {
    max-width: min(100%, 680px);
    height: auto;
    display: block;
    margin: 0;
}
.pd-cs-sub-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 4rem 0 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.pd-cs-sub-title::before {
    content: '';
    display: block;
    width: 3px;
    min-width: 3px;
    height: 1em;
    background: #335580;
    border-radius: 1.5px;
    flex-shrink: 0;
    position: relative;
    top: -1.5px;
}

/* Spec Table */
.pd-spec-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.pd-spec-table thead {
    background: #f7f7f8;
}

.pd-spec-table th {
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: #666;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #eee;
}

.pd-spec-table th {
    border-right: 1px solid rgba(255,255,255,0.15);
}

.pd-spec-table th:last-child {
    border-right: none;
}

.pd-spec-table th:first-child {
    text-align: left;
}

.pd-spec-table td {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    text-align: center;
}

.pd-spec-table td:last-child {
    border-right: none;
}

.pd-spec-table td:first-child {
    font-weight: 600;
    color: #222;
    text-align: left;
}

.pd-spec-table tbody tr:last-child td {
    border-bottom: none;
}

.pd-spec-table tbody tr:hover {
    background: #fafafa;
}

/* Image Grid */
.pd-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pd-image-item {
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f8;
}

.pd-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Grid */
.pd-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pd-video-item {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.pd-video-item iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* CTA Banner */
.pd-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    margin-top: 0;
    background: #f7f7f8;
    border-radius: 12px;
    color: #111;
}

.pd-cta-banner-text h3 {
    font-family: 'Pretendard Variable', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #111;
}

.pd-cta-banner-text p {
    font-size: 0.88rem;
    color: #888;
    margin: 0;
}

.pd-cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.75rem;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.pd-cta-banner-btn:hover {
    background: #333;
    color: #fff;
}

.pd-cta-banner-btn span {
    position: relative;
    top: 1px;
}

.pd-cta-banner-btns {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.pd-cta-banner-btn--secondary {
    background: #fff;
    color: #111;
    border: 1.5px solid #d1d5db;
}

.pd-cta-banner-btn--secondary:hover {
    background: #f3f4f6;
    color: #111;
    border-color: #9ca3af;
}

/* Spec Image */
.pd-spec-image {
    width: 100%;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .pd-hero {
        padding: 2.5rem 0 0;
    }

    .pd-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-gallery {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }

    .pd-title {
        font-size: 1.75rem;
    }

    .pd-video-grid,
    .pd-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pd-hero-inner,
    .pd-breadcrumb-inner,
    .pd-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .pd-content {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .pd-section {
        margin-bottom: 5rem;
    }

    .pd-title {
        font-size: 1.5rem;
    }

    .pd-cta-group {
        flex-direction: column;
    }

    .pd-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .pd-spec-table th,
    .pd-spec-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pd-title {
        font-size: 1.35rem;
    }

    .pd-quick-specs {
        grid-template-columns: 1fr;
    }

    .pd-summary {
        font-size: 0.9rem;
    }
}

/* ===== Card Fade-in Animation ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Category Breadcrumb ===== */
.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 1.25rem;
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.breadcrumb-back:hover {
    color: var(--brand-primary);
}

.breadcrumb-back svg {
    transition: transform 0.2s ease;
}

.breadcrumb-back:hover svg {
    transform: translateX(-2px);
}

.breadcrumb-sep {
    color: var(--color-gray-400);
    font-size: 0.85rem;
}

.breadcrumb-current {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ===== Category Card Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}

.category-card-item {
    width: 100%;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.category-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: inherit;
}

.category-card:active {
    transform: scale(0.98);
}

.category-card-image {
    width: 100%;
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

.category-card-info {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    flex-grow: 1;
}

.category-card-name {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy-900);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
    word-break: keep-all;
}

.category-card-count {
    font-family: 'Pretendard Variable', Pretendard, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.category-card-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--color-gray-400);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--brand-secondary);
}

/* ===== Category Grid Responsive ===== */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card-image {
        height: 150px;
        padding: 1.5rem 1rem;
    }

    .category-card-name {
        font-size: 0.9rem;
    }

    .category-card-count {
        font-size: 0.7rem;
    }

    .category-card-info {
        padding: 0.75rem 1rem 1rem;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card-image {
        height: 120px;
        padding: 1rem 0.75rem;
    }

    .category-card-name {
        font-size: 0.82rem;
    }

    .category-card-info {
        padding: 0.6rem 0.75rem 0.75rem;
    }

    .category-card {
        border-radius: 14px;
    }
}
