/* ========================================================== */
/* 1. 기본 설정 및 폰트 */
/* ========================================================== */
body {
    /* HTML의 text-gray-900 클래스 대체 */
    color: #1a202c; 
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7; /* 라이트 그레이 배경 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}
.container {
    /* max-w-7xl, mx-auto, px-4, sm:px-6, lg:px-8 통합 */
    max-width: 1280px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
/* z-index 및 위치 */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* bg-white, shadow-md, border-b, border-gray-100 대체 */
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #f7f7f7;
}

/* ========================================================== */
/* 2. 색상 정의 및 유틸리티 */
/* ========================================================== */

/* Tailwind Custom Color 대체 (index.php의 tailwind.config 참고) */
.deep-green-bg { background-color: #054B22; }
.yellow-gold-text { color: #D4AF37; }
.text-deep-green { color: #054B22; }
.bg-yellow-gold { background-color: #D4AF37; }
.text-yellow-gold { color: #D4AF37; }
.bg-dark-bg { background-color: #002611; }
.text-gray-100 { color: #f7f7f7; }
.text-gray-300 { color: #d1d5db; }
.text-gray-700 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-500 { color: #6b7280; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.gold-text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}


/* ========================================================== */
/* 3. 섹션별 레이아웃 및 간격 (index.php) */
/* ========================================================== */

/* A. 헤더 */
.header-container {
    height: 4rem; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* 헤더 우측 컨트롤 (언어 + 메뉴) 그룹 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* 메뉴와 언어 버튼 사이 간격 */
}
/* 언어 전환 버튼 (데스크톱 미니 버전) */
.lang-switch-mini {
    display: flex;
    gap: 0.5rem;
}
.lang-mini-btn {
    padding: 0.125rem 0.5rem;
    border-radius: 0.125rem;
    font-size: 0.75rem; 
    font-weight: 600;
    text-decoration: none;
    color: #4b5563; /* gray-700 */
    border: 1px solid #d1d5db; /* gray-300 */
    transition: all 0.15s ease-in-out;
}
.lang-mini-btn.active {
    background-color: #054B22; /* deep-green */
    color: white;
    border-color: #054B22;
}
.lang-mini-btn:hover {
    opacity: 0.8;
}

/* 데스크톱 메뉴 */
.header-nav {
    gap: 1.5rem; 
}

/* 모바일 드롭다운 메뉴 내 언어 전환 버튼 */
.lang-switch-mobile {
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.lang-mobile-btn {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
.lang-mobile-btn.active {
    color: #054B22; /* deep-green */
    font-weight: bold;
    border-bottom: 2px solid #054B22;
}

/* Small screen 이상 (데스크톱) */
@media (min-width: 768px) {
    .header-controls {
        gap: 2.5rem; /* 데스크톱에서 언어 선택과 메뉴 간격 확대 */
    }
}
.header-nav a {
    padding-bottom: 0.25rem; 
    transition: color 150ms ease-in-out, border-color 150ms ease-in-out;
}
.header-nav {
    display: flex;
    gap: 1.5rem; 
}
@media (min-width: 640px) {
    .header-nav {
        gap: 2rem; 
    }
}
#faq-link {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
#faq-link h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}
/* 모바일 메뉴 스타일 */
.mobile-nav-dropdown {
    position: absolute;
    top: 4rem; 
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 40;
    padding: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.mobile-nav-dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #054B22;
    transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
}
.mobile-nav-dropdown a:hover {
    background-color: #f9fafb;
    color: #D4AF37;
}

/* B. 히어로 섹션 (메인 페이지) - PC 기본 스타일 */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/hero_banner2.jpg');
    /* PC 크기에서는 contain 또는 cover 유지 */
    background-size: contain; /* <-- 현재 빈 여백을 만든 설정 */
    background-position: center; 
    background-repeat: no-repeat; 
    padding-top: 4rem; 
    padding-bottom: 3rem; 
    text-align: center;
}
.hero-title-group h1 {
    /* 🚨 통일: 모바일(기본값)에서 폰트 크기 통일을 위해 3rem -> 2.5rem으로 약간 축소 */
    font-size: 3.5rem; 
    line-height: 1;
    margin-bottom: 0.5rem; 
}
.hero-title-group p {
    font-size: 1.5rem; 
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    /* PC 크기를 기준으로 마진 유지 */
    margin-bottom: 2.5rem; 
    margin-top: 2.5rem;
}

/* ================================================= */
/* 🚨 모바일 전용 (767px 이하) 설정 추가 */
/* ================================================= */
@media (max-width: 767px) {
    /* 모바일(767px 이하)에서만 패딩 축소 적용 */
   .hero-section {
        /* ⭐️ 모바일에서는 이미지가 잘리더라도 영역을 꽉 채우도록 cover로 변경 ⭐️ */
        background-size: cover; 
        
        /* 모바일에서는 패딩을 줄여서 콘텐츠가 더 잘 보이게 조정 가능 */
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
	.hero-title-group h1 {
    /* 🚨 통일: 모바일(기본값)에서 폰트 크기 통일을 위해 3rem -> 2.5rem으로 약간 축소 */
    font-size: 2.5rem; 
	}
    /* 모바일(767px 이하)에서만 설명 텍스트 마진 축소 적용 */
    .hero-title-group p {
        margin-bottom: 0.5rem; 
    }
}
/* C. 3분할 배너 섹션 (스크롤 스냅으로 중앙 정렬) */
.banner-wrapper-section {
    margin-top: 3rem; 
    margin-bottom: 4rem; 
    position: relative;
    z-index: 10;
}
/* 1. 스크롤 컨테이너 설정 */
.mobile-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory; /* 스냅 기능 유지 */
    padding-left: 1rem; 
    padding-right: 1rem; 
}
.mobile-scroll-container::-webkit-scrollbar {
    display: none; 
}
.banner-grid-section {
    display: flex;
    gap: 0.75rem; 
    width: fit-content; 
}
/* 2. 첫 번째 배너 중앙 정렬을 위한 좌측 마진 (필수) */
.banner-grid-section .banner-item:first-child {
    /* 계산: 50% - (배너 폭 42.5vw) + 컨테이너 좌측 패딩 1rem */
    margin-left: calc(50% - 42.5vw + 1rem); 
}
/* 3. 마지막 배너 중앙 정렬을 위한 우측 마진 (스크롤 끝도 중앙에) */
.banner-grid-section .banner-item:last-child {
    /* 계산: 50% - (배너 폭 42.5vw) + 컨테이너 우측 패딩 1rem */
    margin-right: calc(50% - 42.5vw + 1rem); 
}
/* 4. 개별 배너 아이템 설정 */
.banner-item {
    flex-shrink: 0; 
    width: 85vw; 
    max-width: 300px; 
    scroll-snap-align: **center**; /* 중앙 스냅 정렬 */
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    height: 20rem; 
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
    cursor: pointer;
}
.banner-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); 
}
.banner-item h2 {
    font-size: 1.875rem; 
    line-height: 1.25; 
}
.banner-item .cta-badge {
    margin-top: 0.75rem; 
}
.banner-item .cta-badge span {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* 5. 미디어 쿼리 (데스크톱 설정) */
@media (min-width: 768px) {
    .mobile-scroll-container {
        overflow-x: visible; 
        scroll-snap-type: none; 
        padding-left: 0; 
        padding-right: 0; 
    }
    .banner-grid-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 0.75rem; 
        width: 100%; 
    }
    /* 데스크톱에서는 마진 제거 */
    .banner-grid-section .banner-item:first-child,
    .banner-grid-section .banner-item:last-child {
        margin-left: 0;
        margin-right: 0;
    }
    .banner-item {
        width: auto; 
        max-width: none;
        scroll-snap-align: none;
    }
}

/* 6. 배경 이미지 클래스 (유지) */
.banner-stomach-repair {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/banner1.jpeg');
    background-size: cover; 
    background-position: center;
}
.banner-fast-relief {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/banner2.jpeg');
    background-size: cover; 
    background-position: center;
}
.banner-mmsc-ingredient {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/banner3.jpeg');
    background-size: cover; 
    background-position: center;
}

/* ========================================================== */
/* D. 제품 리스트 섹션 (#product-list) - 최종 목표 UI 구현 */
/* ========================================================== */

/* 섹션 자체의 여백을 높여 다른 섹션과의 간격을 확보 */
/* ID와 클래스를 함께 사용하여 우선순위(Specificity)를 높임 */
#product-list.product-list-section {
    /* 🚨 여백 확보: 8rem(약 128px)로 충분한 간격 설정 및 !important로 강제 적용 */
    padding-top: 4rem !important;
    padding-bottom: 4rem !important; 
    /* 박스 모델 및 마진 초기화로 간섭 방지 */
    box-sizing: content-box !important; 
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.product-list-section .section-title {
    font-size: 1.875rem; /* 제목 크기 설정 */
    font-weight: 900;
    text-align: center;
    color: #054B22; /* text-gray-900 */
    /* 아래쪽 간격을 상품 목록과 충분히 확보 */
    margin-bottom: 3rem; 
    margin-top: 0;
}

/* 모바일 최적화 (768px 미만) */
@media (max-width: 767px) {
    .product-list-section .section-title {
        font-size: 1.5rem; /* 모바일에서 제목 크기 약간 축소 */
        margin-bottom: 2rem;
    }
}
.product-list-section h3 {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 2.5rem; 
    padding-bottom: 0.75rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    /* 🚨 모바일 (768px 미만) 2열 유지 및 간격 조정 */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem; /* 좁은 화면에서 간격을 좁혀 겹침 방지 */
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.product-item {
    /* 카드 전체 설정 */
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: white;
    transition: box-shadow 300ms ease-in-out, transform 300ms ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 25rem;
    position: relative; /* 중요: 가격/버튼 절대 위치 기준점 */
}
.product-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-image-box {
    height: 16rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 0;
    overflow: hidden;
}
.product-image-box img {
    width: 100%;
    height: 100%;
    /* 🚨 이미지가 부모 컨테이너를 가득 채우도록 변경 (여백 제거) */
    object-fit: cover; 
    /* 🚨 이미지의 초점이 중앙에 오도록 설정 */
    object-position: center; 
    display: block;
}

.product-item .p-4 {
    /* 하단에 가격/버튼이 들어갈 충분한 공간을 확보 */
    padding: 0.75rem 1rem 4.5rem 1rem; 
    display: block;
    width: 100%;
}

.product-item .product-name {
    margin-top: 0;
    line-height: 1.4;
    /* 🚨 1. 높이를 2줄로 늘림: 1.4em (1줄) -> 2.8em (2줄) */
    height: 2.8em; 
    overflow: hidden;
    margin-bottom: 0; 
    /* 🚨 2. 모바일에서 폰트 크기를 약간 더 줄여 가독성 확보 */
    font-size: 0.95rem; 
    font-weight: 700;
    text-align: center;
    /* 🚨 3. 줄바꿈 허용: nowrap 제거 */
    white-space: normal; 
    /* 🚨 4. ... 처리 제거: ellipsis 제거 (2줄 이상이면 자동으로 잘림) */
    text-overflow: clip; 
}

/* 가격 영역 - 왼쪽 아래 배치 (대각선) */
.product-item .price-wrapper {
    position: absolute;
    bottom: 0.75rem; /* 버튼과 높이 맞춤 */
    left: 1rem; 
    line-height: 1;
    width: auto;
}
.product-item .price {
    font-weight: 900;
    color: #054B22;
    font-size: 1.4rem; /* 모바일 크기 조정 */
    margin: 0; 
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
}
.product-item .price span:first-child {
    font-size: 1.8rem; /* 메인 가격 폰트 크기 조정 (기존 2.1rem) */
}
.product-item .price .currency-unit {
    font-size: 1.3rem; /* 모바일 크기 조정 */
    font-weight: 700;
    color: #054B22;
    display: inline-block;
}


/* 버튼 영역 - 오른쪽 아래 배치 (대각선) */
.product-item .btn-buy {
    position: absolute;
    bottom: 0.75rem; /* 가격과 높이 맞춤 */
    right: 1rem; 
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    /* 🚨 모바일 2열에서 겹치지 않도록 최대 너비와 패딩 조정 */
    max-width: 120px; 
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
}
.product-item .btn-buy:hover {
    background-color: #fce38a;
    transform: translateY(-1px);
}
/* E. 상세/비디오 섹션 (#details) */
.details-section {
    padding-top: 4rem; /* 이 값은 4rem을 유지하거나 더 늘릴 수 있습니다. */
    padding-bottom: 4rem;
}
.details-section h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 0.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.video-background-section {
    position: relative; 
    overflow: hidden;
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.background-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    overflow: hidden;
}
.background-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    background-color: rgba(0, 0, 0, 0.3); 
}
.content-wrap {
    position: relative;
    z-index: 5; 
}
.video-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 2rem;
}
.cta-button {
    display: inline-block;
    text-align: center; 
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 300ms ease-in-out;
}
.cta-button:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background-color: rgba(212, 175, 55, 0.9);
}

/* F. 카베진이란? 섹션 (#about-aneron) */
.about-section {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.about-section h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}
.info-content {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}
.info-content p {
    margin-bottom: 1rem; 
}
.info-content .key-paragraph {
    font-weight: 700;
    font-size: 1.25rem;
}

/* G. 카베진을 많이 찾는 경우 섹션 (#usage-cases) */
.usage-section {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.usage-section h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}
.usage-section .list-header {
    margin-bottom: 1.5rem; 
}
.usage-section ul {
    margin-top: 0;
    margin-bottom: 0;
}
.usage-section li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.usage-section li span:first-child {
    margin-right: 0.75rem;
    line-height: 1; 
}
.usage-section .highlight-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #054B22;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* H. 미들 이미지 배너 섹션 */
.middle-image-banner-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}
.middle-image-banner-section .container {
    font-size: 1.25rem;
    letter-spacing: 0.05em; 
}
@media (min-width: 768px) {
    .middle-image-banner-section .container {
        font-size: 1.5rem; 
    }
}

/* I. 정보 및 직구 안내 섹션 (.info-section) */
.info-section {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.info-section h3 {
    margin-bottom: 1rem;
}
.info-section .detail-box {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    margin-bottom: 2.5rem;
}
.info-section .detail-box p {
    margin-bottom: 0.5rem; 
}

/* J. FAQ 섹션 (#faq) */
.faq-section {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.faq-section h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}
.faq-list {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: white;
    transition: background-color 150ms ease-in-out;
    border: none;
    cursor: pointer;
}
.faq-question:hover {
    background-color: #f3f4f6;
}
.faq-question:focus {
    outline: none;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition-property: max-height, padding-top, padding-bottom;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    padding-top: 0;
    padding-bottom: 0;
}
.faq-answer p {
    padding-bottom: 1rem; 
}
.arrow {
    transition: transform 0.3s ease-in-out;
}
.faq-question.is-closed .arrow {
    transform: rotate(0deg);
}
.faq-question:not(.is-closed) .arrow {
    transform: rotate(180deg);
}

/* K. 푸터 (Footer) */
.footer-section {
    padding-top: 2.5rem; 
    padding-bottom: 2.5rem; 
}
.footer-section .container {
    position: relative; 
}

/* 기존 푸터 링크 스타일 */
.footer-links {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}
.footer-links a {
    transition: color 150ms ease-in-out;
}
.footer-links a:hover {
    color: #D4AF37; 
}

/* 🚨 [수정] 패밀리 사이트 박스 컨테이너 스타일 (중앙 정렬) */
.family-site-box-container {
    text-align: center; /* 내부 요소 중앙 정렬 */
    margin-bottom: 1.5rem; 
    position: relative; 
    z-index: 10; 
}

/* 🚨 [추가] 토글 그룹 (버튼과 메뉴를 감싸는 컨테이너) */
.family-site-toggle-group {
    display: inline-block; /* 버튼 크기만큼만 영역 차지 */
    position: relative; /* 하위 메뉴의 절대 위치 기준 */
}

/* 🚨 [추가] 패밀리 사이트 버튼 스타일 (클릭 전/닫힌 상태) */
.family-site-button {
    /* 디자인: 흰색 배경, 검은 폰트, 노란색 테두리, 둥근 모서리 */
    background-color: #ffffff; 
    color: #000000; 
    border: 3px solid #D4AF37; 
    border-radius: 8px;
    padding: 0.5rem 2rem; 
    font-size: 1rem; 
    font-weight: bold;
    cursor: pointer;
    width: 200px; 
    text-align: center;
    display: block; /* 토글 그룹 내에서 너비 확보 */
}

/* 🚨 [추가] 드롭다운 메뉴 박스 스타일 */
.family-site-menu-dropdown {
    position: absolute;
    top: 100%; /* 버튼 바로 아래 위치 */
    left: 0;
    width: 100%; /* 버튼과 동일한 너비 */
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border-radius: 8px;
    overflow: hidden; /* 내부 항목의 둥근 모서리를 위해 */
}

/* 🚨 [추가] 드롭다운 메뉴 아이템 스타일 (잔스타몰) */
.family-site-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center; /* 텍스트 정중앙 */
    transition: background-color 0.15s ease-in-out;
}

/* 🚨 [추가] 토글 메뉴 호버/선택 시 스타일 (이미지의 파란색 배경) */
.family-site-item:hover {
    background-color: #0066ff; /* 파란색 배경 */
    color: #ffffff; /* 흰색 글자 */
}


/* 기존 저작권 스타일 */
.copyright {
    font-size: 0.75rem;
    text-align: center;
}
.copyright span {
    display: block; 
}

/* ========================================================== */
/* 4. info.html 전용 스타일 추가 */
/* ========================================================== */
.info-hero-section {
    /* PC 크기를 기준으로 패딩 유지 (모바일 축소는 아래 미디어 쿼리에서 적용) */
    padding-top: 4rem; 
    padding-bottom: 3rem; 
    
    text-align: center;
}
.info-hero-section .hero-title-group {
    max-width: 100%;
    margin: 0 auto;
}
.info-hero-section h1 {
    font-size: 3.5rem; 
    line-height: 1;
    margin-bottom: 0.5rem; 
}
.info-hero-section p {
    font-size: 1.5rem; 
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    /* PC 크기를 기준으로 마진 유지 */
    margin-bottom: 2.5rem; 
    margin-top: 2.5rem;
}
.info-detail-section {
    background-color: white;
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}
.info-detail-section .info-content {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem; 
    color: #4b5563;
}
.info-detail-section .info-content p {
    margin-bottom: 1rem; 
}
.info-title {
    font-size: 1.875rem; 
    margin-bottom: 1.5rem; 
    text-align: center;
}
.info-detail-section .info-content .info-title {
    text-align: left;
}
.info-image-box {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem; 
    margin-bottom: 2.5rem; 
}
.info-image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
    /* 기존 스타일: .info-hero-section h1 */
    /* 변경 스타일: .info-hero-section .hero-title-group h1 */
	.info-hero-section.deep-green-bg .hero-title-group h1 {
        font-size: 2.5rem; /* 👈 우선순위가 훨씬 높아집니다. */
    }

    /* .info-hero-section에 .deep-green-bg 클래스도 붙어있으므로 함께 사용하여 우선순위 높이기 */
    .info-hero-section.deep-green-bg {
        padding-top: 0.5rem; 
        padding-bottom: 0.5rem; 
    }
    
    .info-hero-section .hero-title-group p {
        margin-bottom: 0.5rem; 
        margin-top: 1.5rem; 
    }
}
/* ========================================================== */
/* 5. product.php 전용 스타일 추가 */
/* ========================================================== */
.product-main-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}
.product-selection-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.product-selection-section .main-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.product-selection-section .sub-text {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.product-detail-area {
    display: flex;
    flex-direction: column; 
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .product-detail-area {
        flex-direction: row; 
    }
    .product-image-box, .product-options-area {
        flex: 1; 
    }
}
.product-large-image {
    height: 24rem; 
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-large-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.product-options-area {
    padding-top: 0.5rem;
}
.product-item-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}
.option-select-box select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    cursor: pointer;
    background-color: white;
}
.cart-item-list {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: white; 
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}
.cart-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.selected-item-container {
    max-height: 14rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.selected-item-container::-webkit-scrollbar {
    width: 6px;
}
.selected-item-container::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}
.selected-item-line {
    display: flex;
    align-items: flex-start; 
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e5e7eb;
    position: relative;
    padding-right: 2.5rem; 
    flex-wrap: wrap;  
}
.selected-item-line:last-child {
    border-bottom: none;
}
.remove-item-top-btn {
    position: absolute;
    top: 50%; 
    right: 0;
    transform: translateY(-50%); 
    color: #6b7280;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
    line-height: 1;
    z-index: 10; 
    font-size: 1.25rem; 
}
.remove-item-top-btn:hover {
    color: #ef4444;
}
.item-main-content {
    width: 100%;  
    padding-right: 0; 
    margin-bottom: 0.5rem; 
}
.item-main-content .name {
    font-weight: 600;
    color: #1f2937;
    display: block;
}
.item-bottom-row {
    display: flex;
    align-items: center;
    flex-shrink: 0;  
    width: 100%;
    justify-content: space-between;  
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #054B22; 
    border-radius: 0.25rem;
}
.qty-btn {
    width: 2rem;
    height: 2rem;
    background-color: #D4AF37; 
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: background-color 0.15s ease-in-out;
    line-height: 1;
    color: #054B22; 
}
.qty-btn:hover {
    background-color: #fce38a;  
}
.quantity-control .qty-btn:first-child {
    border-top-left-radius: 0.15rem;
    border-bottom-left-radius: 0.15rem;
}
.quantity-control .qty-btn:last-child {
    border-top-right-radius: 0.15rem;
    border-bottom-right-radius: 0.15rem;
}
.qty-input {
    width: 2.5rem;
    text-align: center;
    border: none;  
    font-size: 0.875rem;
    color: #1f2937;
    background-color: white; 
}
.item-bottom-row .price {
    margin-left: auto;
}
.cart-summary .summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.cart-summary .total-line {
    font-size: 1.125rem;
    margin-top: 0.5rem;
    border-top: 1px solid #d1d5db;
    padding-top: 0.5rem;
}
.cart-summary .final-price {
    font-size: 1.5rem;
    font-weight: 800;
}
.cta-button.purchase-btn {
    max-width: 300px;
    display: block; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75rem; 
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 100%;
}
.cta-button.purchase-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #9ca3af; 
    color: #6b7280;
}
.cta-button.purchase-btn.disabled:hover {
    box-shadow: none;
    background-color: #9ca3af;
}

/* 주문서 작성 (Order View) 스타일 - product.php 내부 */
.order-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.section-header-title {
    font-size: 1.875rem;
    margin-bottom: 2.5rem;
}
.order-summary-table {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden; 
}

/* 7. product.php 전용 모달 분리 스타일 */
.product-qty-error-modal {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모달 컨테이너 */
.product-qty-error-modal .modal-content {
    max-width: 400px; 
    width: 90%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 확인 버튼 스타일 */
.product-qty-error-modal .confirm-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    
    background-color: #054B22; 
    color: white;
    transition: background-color 0.15s ease-in-out;
}

.product-qty-error-modal .confirm-btn:hover {
    background-color: rgba(5, 75, 34, 0.9);
}
/* 모달 푸터 (버튼 영역) */
.product-qty-error-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center; /* 버튼 중앙 정렬 */
}
.product-qty-error-modal .modal-header {
    background-color: #dc2626; /* 빨간색 배경 */
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    position: relative;
    font-size: 1.125rem;
	border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.product-qty-error-modal .modal-body {
    padding: 1.5rem;
    text-align: center;
}

.product-qty-error-modal .modal-close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ========================================================== */
/* 6. myorder.php 전용 스타일 (이미지 기반 복구) */
/* ========================================================== */

.order-inquiry-container {
    max-width: 800px;
    margin: 0 auto;
}
.main-section-padding {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

/* 주문 조회 폼 섹션 */
.order-inquiry-form-section {
    max-width: 450px;
    margin: 0 auto;
}
.section-title-inquiry {
    font-size: 1.875rem;
    margin-bottom: 2rem;
}
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="password"],
.inquiry-form input[type="tel"] {
    /* 🚨 테두리 추가 및 기본 스타일 정의 */
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem; /* 아래쪽 간격 확보 */
    border: 1px solid #d1ddcc; /* 라이트 그린 계열 테두리 */
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #1f2937;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-form input[type="text"]:focus,
.inquiry-form input[type="tel"]:focus {
    /* 포커스 시 테두리 색상 변경 (딥그린 강조) */
    border-color: #054B22; 
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 75, 34, 0.2); /* 은은한 쉐도우 */
}

/* 기존 CSS의 폼 요소 간격 조정 */
.inquiry-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.inquiry-form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.inquiry-button-area {
    margin-top: 2rem;
}
.inquiry-btn {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.reset-inquiry-btn {
    background-color: #4b5563 !important; 
    color: white !important;
    font-weight: bold;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    max-width: 250px;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.reset-inquiry-btn:hover {
    background-color: #374151 !important; 
}


/* 주문 결과 리스트 섹션 */
.order-inquiry-result-section {
    padding-top: 2rem;
}
.order-item-detail.inquiry-table-wrap {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
    margin-bottom: 1.5rem;
}

/* 테이블 위에 표시되는 주문번호 */
.order-id-display-title {
    font-size: 1.25rem; 
    font-weight: bold;
    color: #1f2937; 
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* 주문 상태 표시 (이미지 디자인 복구) */
.order-status-steps-container.table-status-bar {
    margin-bottom: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.status-step-labels.status-label-dots-only {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem; 
    color: #6b7280;
    padding: 0 0.5rem; 
}
.status-step-labels.status-label-dots-only .step-label {
    width: 25%;
    text-align: center;
    position: relative;
}

.status-label-dots-only .dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af; 
    border-radius: 50%;
    margin: 0 auto 0.25rem auto;
    transition: background-color 0.3s;
}

.status-label-dots-only .step-label.passed .dot {
    background-color: #9ca3af; 
}
.status-label-dots-only .step-label.current .dot,
.status-label-dots-only .step-label.highlight-blue .dot {
    /* [수정] 강조색을 딥그린으로 변경 */
    background-color: #054B22; 
}
.status-label-dots-only .step-label.current .text {
    font-weight: bold;
    color: #1f2937;
}
.status-label-dots-only .step-label.highlight-blue .text {
    /* [수정] 강조색을 딥그린으로 변경 */
    color: #054B22; 
}

/* 주문 결과 테이블 스타일 */
.order-result-table-container {
    overflow-x: auto; 
}
.order-result-table {
    width: 100%;
    min-width: 700px; 
    border-collapse: collapse;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
}
.order-result-table th {
    /* 🚨 [색상 통일] 헤더 배경색을 딥그린으로 변경 */
    background-color: #054B22; 
    color: white;
    font-weight: bold;
    padding: 0.75rem 0.5rem;
    text-align: center;
    white-space: nowrap;
}
.order-result-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}
.order-result-table tbody tr:last-child td {
    border-bottom: none;
}
.order-result-table .order-id-cell a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}
.order-result-table .product-name-link {
    color: #4b5563;
    text-decoration: none;
}
.order-result-table .final-amount-cell {
    font-weight: bold;
    color: #dc2626; 
}
.order-result-table .tracking-cell .tracking-display-box {
    line-height: 1.3;
}
.order-result-table .tracking-cell .tracking-link {
    color: #3b82f6;
    font-weight: bold;
    text-decoration: underline;
}

/* --- 주문 상세 모달 스타일 --- */

/* 모달 오버레이 */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; 
    background-color: rgba(0, 0, 0, 0.5); 
    align-items: center; 
    justify-content: center;
}

/* 모달 컨테이너 */
.order-detail-modal {
    background-color: white;
    border-radius: 0.75rem;
    max-width: 70rem; /* 짤림 방지 */
    width: 90%; 
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative; 
    z-index: 10000;
}

/* 모달 헤더 */
.order-detail-modal .modal-header {
    background-color: white; 
    color: #054B22; 
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb; 
}
.order-detail-modal .modal-header h2 {
    font-weight: 900;
}
.order-detail-modal .modal-close-btn {
    position: static; 
    font-size: 1.5rem;
    color: #6b7280; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* 모달 내용 컨테이너 */
.order-detail-modal .modal-content {
    padding: 1.5rem; 
    overflow-y: auto;
    max-height: 80vh;
}

/* 모달 내부 테이블 */
.order-detail-modal .product-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.order-detail-modal .product-detail-table th {
    /* 🚨 [색상 통일] 모달 내부 테이블 헤더를 딥그린으로 변경 */
    background-color: #054B22;  
    color: white;
    padding: 0.6rem 0.4rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

.order-detail-modal .product-detail-table th:nth-child(1) { 
    width: 10%;
}
.order-detail-modal .product-detail-table th:nth-child(2) { 
    width: 40%;
}
.order-detail-modal .product-detail-table th:nth-child(3) { 
    width: 15%; 
}
.order-detail-modal .product-detail-table th:nth-child(4) { 
    width: 15%; 
}
.order-detail-modal .product-detail-table th:nth-child(5) { 
    width: 20%; 
}


.order-detail-modal .product-detail-table td {
    padding: 0.8rem 0.4rem; 
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    /* 🚨 기본적으로 모든 TD를 중앙 정렬합니다. */
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-detail-modal .product-detail-table td:nth-child(2) {
    text-align: center;
}
.product-detail-table .product-thumb {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
}

/* 모달 푸터 요약 스타일 */
.modal-summary-footer {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 1rem 0;
    margin-top: 1rem;
    /* [색상 통일] 모달 푸터 구분선을 딥그린으로 변경 */
    border-top: 2px solid #054B22; 
    font-size: 1rem;
    font-weight: 500;
    color: #054B22;
}

.modal-summary-footer span {
    margin-left: 1rem;
}

.modal-summary-footer .final-amount-red {
    font-size: 1.25rem; 
    font-weight: 900;
    color: #dc2626; 
}
/* 모바일 대응 */
@media (max-width: 640px) {
    .order-item-detail {
        padding: 1rem;
    }
    .order-id-display-title {
        font-size: 1rem;
    }
    .order-result-table {
        min-width: 600px; 
    }
}
/* ========================================================== */
/* 9. company_info.html 전용 스타일 추가 */
/* ========================================================== */

.company-section {
    max-width: 900px; /* 적절한 중앙 너비 설정 */
    margin-left: auto;
    margin-right: auto;
}

.company-table {
    width: 100%; 
    border-collapse: collapse;
    border: 1px solid #e5e7eb; /* gray-200 */
}

/* 테이블 헤더 (전체) */
.company-table-header {
    background-color: #054B22; /* deep-green */
    color: #D4AF37; /* yellow-gold */
    padding: 1rem;
    line-height: 1.5;
}

.company-table th, .company-table td {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.95rem;
    color: #1f2937; /* gray-800 */
}

.company-table th {
    background-color: #f9fafb; /* gray-50 */
    width: 30%;
    font-weight: 600; /* semibold */
    white-space: nowrap;
}

.company-table td {
    background-color: white;
}
/* ========================================================== */
/* 8. privacy_policy.php & terms_of_service.php 전용 스타일 추가 */
/* ========================================================== */

.terms-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/* 약관 제목 스타일 (제 n 조) */
.article-title {
    /* text-lg font-bold text-deep-green mt-5 mb-2 클래스로 대체했으므로 CSS는 최소화 */
}
/* 약관 본문 */
.terms-content p {
    margin-bottom: 1rem;
}

/* 언어 전환 버튼 스타일 (privacy_policy.php와 공유) */
.lang-switch {
    text-align: right; 
}
.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #054B22; 
    text-decoration: none;
    color: #054B22; 
    margin-left: 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.lang-btn:hover {
    background-color: #f3f4f6;
}
.lang-switch .active {
    background-color: #D4AF37; 
    color: #054B22; 
    border-color: #D4AF37;
    font-weight: bold;
}

/* 약관 내부 테이블 (개인정보 제3자 제공 세부) */
.terms-table-wrap {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}
.terms-table {
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 0.75rem;
}
.terms-table th, .terms-table td { 
    border: 1px solid #d1d5db;
    padding: 10px;
    vertical-align: top; 
    font-size: 0.85rem;
    color: #1f2937;
}
.terms-table th { 
    background-color: #f3f4f6;
    font-weight: 600;
    width: 15%;
    white-space: nowrap;
}
/* ========================================================== */
/* 10. shipping_info.php 전용 스타일 추가 */
/* ========================================================== */

.shipping-section { 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 언어 전환 버튼 스타일은 8번 섹션과 공유 */

.shipping-section h2 { 
    /* 2xl font-bold text-deep-green mb-6 pb-2 border-b-2 border-yellow-gold 클래스로 대체 */
}
.shipping-section h3 { 
    /* lg font-bold text-deep-green mt-6 mb-3 클래스로 대체 */
}
.shipping-section ul { 
    list-style: disc; 
    padding-left: 1.5rem; 
}

/* 국제 배송비 테이블 스타일 */
.shipping-table-wrap { 
    margin-top: 1.5rem; 
    margin-bottom: 2.5rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    overflow: hidden;
}
.shipping-table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: center; 
    background-color: white;
}
.shipping-table th, .shipping-table td { 
    border: 1px solid #e5e7eb; /* gray-200 */
    padding: 0.75rem; 
    vertical-align: middle; 
    font-size: 0.85rem;
}
.shipping-table th { 
    /* 헤더 스타일 */
    background-color: #f3f4f6; /* gray-100 */
    color: #054B22; /* deep-green */ 
    font-weight: bold; 
    width: 33%; 
}
/* 셀 병합된 카베진몰 배송비 셀 스타일 */
.aneron-fixed-fee { 
    font-size: 1.125rem; /* text-lg */
    font-weight: 800;
    color: #dc2626; /* red-600 */
    background-color: #fffde7; /* light yellow */
}

/* 경고 텍스트 (커스텀) */
.customs-warning, .duty-warning {
    color: #dc2626; /* red-600 */
}
.customs-warning {
    border: 1px dashed #D4AF37;
    background-color: #fffef2;
}
.final-info-highlight {
    font-size: 1.125rem;
}
/* ==================================== */
/* 🛒 Product Selection View - 품절 UI */
/* ==================================== */

/* 1. 이미지 컨테이너 설정 (오버레이를 위해 필요) */
.product-large-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; /* Tailwind rounded-lg */
}

/* 2. 품절 오버레이 스타일 */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 어두운 투명 오버레이 */
    display: none; /* JS로 활성화/비활성화 */
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.sold-out-overlay.active {
    display: flex; /* JS에서 .active 클래스 추가 시 표시 */
}
.sold-out-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    user-select: none;
}

/* 3. 품절 버튼 스타일 */
.cta-button.sold-out-btn {
    /* 기존 배경색/텍스트색 무시하고 강제로 품절 스타일 적용 */
    background-color: #8B0000 !important; /* 진한 빨간색 */
    color: white !important;
    cursor: not-allowed;
    border: 2px solid #5C0000;
}

/* 4. 장바구니 비었거나 품절 상태일 때 비활성화 버튼 스타일 */
.cta-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================================== */
/* 🚨 Quantity Error Modal Style (JS에서 display: flex 처리) */
/* ==================================== */
.product-qty-error-modal .modal-content {
    max-width: 400px;
    width: 90%;
    background-color: white;
    border-radius: 0.5rem; /* 여기에 이미 둥근 모서리 적용됨 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
/* ========================================================== */
/* 5. product.php 전용 스타일 추가 (계속) */
/* ========================================================== */


/* 주문서 작성 (Order View) 스타일 - product.php 내부 */
.order-form-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.section-header-title {
    font-size: 1.875rem;
    margin-bottom: 2.5rem;
}
.order-summary-table {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* 주문 요약 테이블 스타일 */
.order-summary-table table {
    width: 100%;
    border-collapse: collapse;
}
.order-summary-table th, .order-summary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
}
/* 주문 요약 테이블 헤더 (<th>) 스타일 */
.order-summary-table th {
    /* 🚨 [수정] 딥그린 배경, 흰색 텍스트로 가시성 확보 */
    background-color: #054B22; /* deep-green */
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #003013; /* 짙은 경계선 */
}
/* 주문 요약 테이블 바디 (<td>) 스타일 */
.order-summary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6; /* 밝은 경계선 */
    text-align: center;
    font-size: 0.95rem;
    color: #1a202c; /* body 기본 텍스트 색상 */
    background-color: white; /* 🚨 배경색 흰색으로 설정 */
}
.order-summary-table table tfoot td {
    padding: 1rem;
    background-color: #f9fafb; /* gray-50 */
    font-size: 1.125rem;
    color: #054B22; /* deep-green */
    border-top: 2px solid #e5e7eb;
}
.order-summary-table .summary-units-title {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.25rem;
    color: #054B22;
}
.order-summary-table .final-price {
    font-size: 1.5rem;
    font-weight: 800;
}
.order-summary-table .delete-btn {
    background: none;
    border: none;
    color: #ef4444; /* red-500 */
    cursor: pointer;
    font-size: 1rem;
}

/* 받는 사람 (Recipient) 폼 스타일 */
.recipient-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}
.recipient-form .form-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #D4AF37;
    width: 100%;
}
.recipient-form .form-group {
    margin-bottom: 1.5rem;
}
.recipient-form label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}
.recipient-form input[type="text"],
.recipient-form input[type="tel"],
.recipient-form input[type="email"],
.recipient-form .customs-input-modified,
.recipient-form .short-input,
.recipient-form .full-width-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.recipient-form input:focus, .recipient-form select:focus {
    border-color: #054B22;
    outline: none;
    box-shadow: 0 0 0 1px rgba(5, 75, 34, 0.5);
}
.recipient-form .address-group-modified,
.recipient-form .customs-group-modified {
    display: flex;
    gap: 0.5rem;
}
.recipient-form .short-input {
    flex-grow: 1;
}
.recipient-form .btn-address-search-modified,
.recipient-form .customs-btn-modified {
    padding: 0.75rem 1rem;
    background-color: #054B22;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.recipient-form .customs-input-modified {
    flex-grow: 1;
}

/* 약관 동의 영역 */
.recipient-form .terms-area textarea {
    width: 100%;
    height: 100px;
    resize: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
    color: #4b5563;
}
.recipient-form .terms-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

/* 결제 버튼 */
.recipient-form .payment-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* 안내사항 영역 */
.guidance-notes {
    color: #4b5563;
}
.guidance-notes h3 {
    border-bottom: 2px solid #D4AF37;
    width: fit-content;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding-bottom: 0.25rem;
}
.guidance-notes ol {
    list-style-type: decimal;
}
.guidance-notes li {
    margin-bottom: 0.5rem;
}
/* ========================================================== */
/* 11. 새로운 추가 섹션 스타일 (index.php) */
/* ========================================================== */

/* A. 공통 섹션 스타일 */
.new-content-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: white;
    text-align: center;
}
.new-info-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #f9fafb; /* gray-50 */
    color: #4b5563; /* text-gray-700 */
}
.new-info-section h3 {
    /* 기존 info-section h3 스타일 재정의 */
    font-size: 1.875rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #054B22; /* deep-green */
    text-align: center;
}

/* B. 콘텐츠 섹션 (상품 3개 그리드) */
.new-content-section h2 {
    /* 기존 인라인 스타일 (color: #2F7C32) 대체 및 마진 조정 */
    color: #054B22; /* deep-green */
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800; /* font-extrabold */
    margin-top: 0;
    margin-bottom: 1rem;
}
.new-content-section p {
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* text-gray-700 */
    margin-bottom: 2rem;
    line-height: 1.6;
}
.new-content-section .feature-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}
.new-content-section .feature-list li {
    margin-bottom: 0.5rem;
    color: #054B22; /* deep-green */
    font-weight: 500;
}
.new-content-section .feature-list li::before {
    content: "✔️"; /* 이모티콘 추가 */
    margin-right: 0.5rem;
}

/* C. 상품 그리드 (기존 product-grid와 유사하지만 별도의 클래스 사용) */
.new-product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .new-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .new-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.new-product-grid .new-product-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: transform 0.2s;
    min-height: 20rem; /* 높이 확보 */
}
.new-product-grid .new-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.new-product-grid .new-product-item img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}
.new-product-grid .new-product-item h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #054B22;
    margin-bottom: 0.5rem;
}
.new-product-grid .new-product-item p {
    font-size: 0.95rem;
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
/* D. 정보 섹션 (Info) */
.new-info-section .new-info-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.new-info-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #054B22; /* deep-green */
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #D4AF37; /* yellow-gold */
}
.new-info-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.new-info-section ul li {
    margin-bottom: 0.5rem;
}
.new-info-section .callout {
    padding: 1rem;
    background-color: #fffde7; /* light yellow */
    border-left: 4px solid #D4AF37; /* yellow-gold */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
}
.new-info-section .callout strong {
    color: #dc2626; /* red-600 */
    display: block;
    margin-bottom: 0.5rem;
}
.new-info-section .callout ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.new-info-section .callout ul li::before {
    content: "•";
    margin-right: 0.5rem;
    color: #dc2626;
}

/* E. 구매 가이드 섹션 */
.new-purchase-guide-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: white;
}
.new-purchase-guide-section h3 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #054B22; /* deep-green */
    text-align: center;
    margin-bottom: 2.5rem;
}
.new-purchase-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .new-purchase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.new-purchase-item {
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #f3f4f6; /* gray-100 */
    text-align: left;
}
.new-purchase-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.new-purchase-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #4b5563;
}
.new-purchase-item .cta-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.new-purchase-item:first-child .cta-link {
    background-color: #D4AF37; /* yellow-gold */
    color: #054B22; /* deep-green */
}
.new-purchase-item:first-child .cta-link:hover {
    opacity: 0.8;
}
.new-purchase-item:last-child .cta-link {
    background-color: #555;
    color: white;
}
.new-purchase-item:last-child .cta-link:hover {
    opacity: 0.8;
}

/* F. 독립 배너 섹션 (index.php에 추가할 코드에는 포함되어 있지 않지만, 요청하신 내용이 있으므로 정의) */
.new-banner-section {
    height: 10rem; /* 적절한 높이 설정 */
    background-color: #054B22; /* deep-green */
    background-size: cover;
    background-position: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#section1-banner {
    background-image: url('/img/default_banner_1.jpg'); /* 가상의 이미지 */
}
#section2-banner {
    background-image: url('/img/default_banner_2.jpg'); /* 가상의 이미지 */
}
.new-banner-section .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    /* 실제 배너 이미지를 CSS background-image로 처리했기 때문에 빈 링크 요소로 처리 */
}
/* ========================================================== */
/* D. 제품 리스트 섹션 (#product-list) - 상품 카드 전체 링크 활성화 스타일 */
/* ========================================================== */
.product-item-link {
    /* 부모 flex/grid 레이아웃을 따르도록 설정 */
    display: block; 
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 텍스트 색상 상속 */
}

/* <a> 태그로 감싼 .product-item에 원래의 스타일을 적용 */
.product-item-link .product-item {
    /* 기존 .product-item에 적용된 스타일 속성(box-shadow, transition, min-height 등)은 그대로 유지됨 */
    height: 100%; /* 부모 링크에 맞게 높이 꽉 채우기 */
}

/* 기존 .product-item:hover 효과를 .product-item-link:hover 시 내부 .product-item에 적용 */
.product-item-link:hover .product-item {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 기존 구매하기 버튼(.btn-buy)을 내부 div로 변경하고, 위치만 유지하도록 재정의 */
.product-item-link .btn-buy {
    position: absolute; /* 절대 위치 유지 */
    bottom: 0.75rem; 
    right: 1rem;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 120px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.375rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
    /* <a> 태그의 기본 hover 효과를 막기 위해 색상 강제 지정 */
    color: #054B22; 
    background-color: #D4AF37;
}

.product-item-link:hover .btn-buy {
    background-color: #fce38a; /* 호버 시 버튼 색상 변경 유지 */
    transform: translateY(-1px);
}
네, 기존 페이지들의 디자인 시스템(Tailwind CSS 기반의 커스텀 클래스, 색상 팔레트, 폰트 등)을 완벽하게 반영하여 앞서 구현하신 **문의 게시판 (qna_board.php, qna_write.php, qna_view.php)**에 적용할 CSS 스타일 코드를 작성해 드리겠습니다.

작성하신 스타일 코드의 맨 아래에 그대로 추가하시면 됩니다.

CSS

/* ========================================================== */
/* 12. 문의 게시판 (QNA Board) 전용 스타일 추가 */
/* ========================================================== */

/* A. 공통 섹션 스타일 (게시판 목록, 작성, 상세 페이지) */
.qna-section-container {
    /* container mx-auto mt-10 p-5 max-w-2xl bg-white shadow-lg rounded-lg 에 대응 */
    margin-top: 2.5rem; /* mt-10 */
    margin-bottom: 2.5rem; /* 여백 확보 */
    padding: 1.5rem; /* p-6 (약) */
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}
.qna-section-container.qna-view-container {
    max-width: 70rem; /* qna_view.php의 max-w-3xl보다 넓게 설정 */
    margin-left: auto;
    margin-right: auto;
}
.qna-section-container.qna-write-container {
    max-width: 48rem; /* qna_write.php의 max-w-2xl보다 넓게 설정 */
    margin-left: auto;
    margin-right: auto;
}

/* 섹션 제목 */
.qna-section-title {
    /* text-3xl font-bold text-deep-green mb-6 border-b pb-3 에 대응 */
    font-size: 1.875rem;
    font-weight: 700;
    color: #054B22; /* deep-green */
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #D4AF37; /* yellow-gold */
    padding-bottom: 0.5rem;
}

/* B. 게시판 목록 (qna_board.php) */

/* 글쓰기 버튼 */
.qna-write-btn {
    /* px-4 py-2 bg-yellow-gold text-deep-green font-semibold rounded hover:bg-yellow-600 */
    padding: 0.5rem 1rem;
    background-color: #D4AF37; /* yellow-gold */
    color: #054B22; /* deep-green */
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out;
}
.qna-write-btn:hover {
    background-color: #F8D77B; /* 약간 밝은 노란색 */
}

/* 테이블 컨테이너 (그림자 및 모서리) */
.qna-table-wrap {
    /* overflow-x-auto shadow-md rounded-lg 에 대응 */
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

/* 게시판 테이블 */
.qna-table {
    /* min-w-full divide-y divide-gray-200 에 대응 */
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

/* 테이블 헤더 */
.qna-table thead {
    /* bg-deep-green text-white 에 대응 */
    background-color: #054B22; /* deep-green */
    color: white;
}
.qna-table th {
    /* px-6 py-3 text-left text-xs font-medium uppercase tracking-wider 에 대응 */
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #003013;
}

/* 테이블 바디 */
.qna-table tbody {
    /* bg-white divide-y divide-gray-200 에 대응 */
    background-color: white;
}
.qna-table td {
    /* px-6 py-4 whitespace-nowrap text-sm text-gray-500 에 대응 */
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
    border-bottom: 1px solid #f3f4f6;
}

/* 제목 셀 */
.qna-table .title-cell {
    /* text-sm font-medium text-gray-900 에 대응 */
    font-weight: 500;
    color: #1a202c; /* body color */
}
.qna-table .title-cell a {
    /* text-deep-green hover:text-yellow-gold 에 대응 */
    color: #054B22; /* deep-green */
    text-decoration: none;
    transition: color 0.15s;
}
.qna-table .title-cell a:hover {
    color: #D4AF37; /* yellow-gold */
    text-decoration: underline;
}

/* 비밀글 표시 */
.qna-private-tag {
    /* text-red-500 font-bold 에 대응 */
    margin-left: 0.5rem;
    color: #ef4444; /* red-500 */
    font-weight: 700;
}

/* C. 글 작성 (qna_write.php) */

/* 폼 그룹 */
.qna-form-group {
    /* mb-4 에 대응 */
    margin-bottom: 1rem;
}
.qna-form-group label {
    /* block text-sm font-medium text-gray-700 에 대응 */
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563; /* gray-700 */
    margin-bottom: 0.25rem;
}
.qna-form-group input,
.qna-form-group textarea {
    /* mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-deep-green focus:ring-deep-green p-2 에 대응 */
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db; /* gray-300 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qna-form-group input:focus,
.qna-form-group textarea:focus {
    border-color: #054B22; /* deep-green */
    outline: none;
    box-shadow: 0 0 0 1px #054B22;
}

/* 체크박스 영역 */
.qna-form-group .checkbox-label {
    /* ml-2 block text-sm text-gray-900 font-bold 에 대응 */
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 700;
}
.qna-form-group input[type="checkbox"] {
    /* h-4 w-4 text-deep-green border-gray-300 rounded focus:ring-deep-green 에 대응 */
    height: 1rem;
    width: 1rem;
    color: #054B22; /* deep-green */
    border-color: #d1d5db;
    border-radius: 0.25rem;
    /* 기본 브라우저 스타일 재정의를 위해 appearance 속성 조정이 필요하지만, Tailwind가 처리하므로 최소화 */
}

/* 등록하기 버튼 */
.qna-submit-btn {
    /* w-full py-2 px-4 border border-transparent rounded-md shadow-sm text-white font-semibold bg-deep-green hover:bg-green-700 에 대응 */
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: 600;
    background-color: #054B22; /* deep-green */
    transition: background-color 0.15s;
}
.qna-submit-btn:hover {
    background-color: #003013; /* 더 짙은 녹색 */
}

/* D. 게시글 상세 및 비밀번호 확인 (qna_view.php) */

/* 비밀번호 입력 폼 */
.qna-password-form {
    /* space-y-4 에 대응 */
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.qna-password-form input {
    /* flex-grow rounded-md border-gray-300 shadow-sm p-2 에 대응 */
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.qna-password-form button {
    /* px-4 py-2 bg-deep-green text-white font-semibold rounded-md hover:bg-green-700 에 대응 */
    padding: 0.5rem 1rem;
    background-color: #054B22;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
    white-space: nowrap;
}
.qna-password-form button:hover {
    background-color: #003013;
}
.qna-password-group {
    /* flex space-x-2 에 대응 */
    display: flex;
    gap: 0.5rem;
}

/* 게시글 내용 영역 */
.qna-content-box {
    /* p-4 border rounded-md bg-gray-50 에 대응 */
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
    min-height: 10rem;
    line-height: 1.6;
}
.qna-content-box p {
    margin-top: 0;
    margin-bottom: 0;
    color: #1a202c;
    /* 공백/줄바꿈 유지 */
    white-space: pre-wrap; 
}
.qna-view-info {
    /* flex justify-between items-center text-sm text-gray-500 border-b pb-2 mb-4 에 대응 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
/* 답변 완료 상태 텍스트 색상 */
.text-green-600 {
    color: #059669; /* Tailwind green-600 색상 */
}

/* 답변 내용 박스 스타일 */
.qna-answer-display-box .p-4 {
    /* Tailwind 클래스를 사용하여 bg-green-50, border, border-green-200, rounded-md 스타일을 줍니다. */
    padding: 1rem;
    background-color: #f0fdf4; /* green-50 */
    border: 1px solid #bbf7d0; /* green-200 */
    border-radius: 0.375rem;
}

/* ================================================= */
/* D. 제품 리스트 섹션 (#product-list) - 가격 스타일 및 반응형 */
/* ================================================= */

/* 정가 (줄 긋기) 스타일 - 원화(ウォン)와 가격 숫자에는 줄이 그어지도록 유지 */
.product-item .original-price-strikethrough {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: line-through; /* ✅ 정가 가격에 줄 긋기 유지 */
    margin-bottom: -0.5rem; 
    line-height: 1.2;
    font-weight: 500;
    display: block; 
}

/* 🎯 할인율 % 숫자 (줄 긋기 제거) */
.product-item .original-price-strikethrough .text-red-600 {
    color: #DC2626;
    font-weight: bold;
    margin-left: 0.25rem;
    /* ✅ 할인율 %의 줄 긋기 제거 */
    text-decoration: none; 
    display: inline-block; 
}

/* 할인가 (기존 price) 스타일 */
.product-item .price {
    margin-top: 0.5rem;
    line-height: 1.2;
    font-size: 1.4rem; /* 데스크톱/기본 크기 */
}

/* 할인가 숫자 강조 */
.product-item .price span:first-child.text-red-600 {
    color: #054B22;
    font-size: 1.8rem; /* 데스크톱/기본 크기 */
    font-weight: 800;
}

/* 구매하기 버튼 기본 스타일 (데스크톱/태블릿) */
.product-item .btn-buy {
    padding: 0.75rem 1rem; 
    font-size: 1rem;
    margin-top: 0.5rem; 
    display: block; 
    text-align: center;
    border-radius: 0.25rem;
    text-decoration: none;
    line-height: 1;
}
/* ================================================= */
/* 🎯 태블릿 환경 최적화 (1024px ~ 769px) */
/* ================================================= */

@media (min-width: 769px) and (max-width: 1025px) {
    /* 상품 카드 내부의 가격 정보와 버튼을 가로로 배치하기 위해 inline-block 적용 */
    
    /* 1. 가격 Wrapper (inline-block으로 변경) */
    .product-item .price-wrapper {
        display: inline-block; 
        vertical-align: middle;
        margin-right: 0.5rem; 
        width: auto; 
        text-align: left;
    }

    /* 2. 구매하기 버튼 (inline-block으로 변경) */
    .product-item .btn-buy {
        display: inline-block;
        vertical-align: middle;
        
        /* 태블릿 크기에 맞는 버튼 크기 조정 */
        padding: 0.5rem 0.8rem; /* 버튼 높이 조정 */
        font-size: 0.95rem; /* 텍스트 크기 약간 축소 */
        margin-top: 0; /* 세로 마진 제거 */
    }

    /* 3. 가격 폰트 크기 조정 */
    .product-item .original-price-strikethrough {
        font-size: 0.85rem;
        margin-bottom: -0.4rem; 
    }
    
    .product-item .price {
        font-size: 1.3rem;
        margin-top: 0.4rem;
    }
    
    .product-item .price span:first-child.text-red-600 {
        font-size: 1.6rem;
    }
}

/* ================================================= */
/* 🎯 모바일 화면 최적화 (768px 이하) */
/* ================================================= */

@media (max-width: 768px) {
    /* 1. 상품 아이템 내부에서 가격 컨테이너와 버튼을 Flexbox로 감싸 가로 정렬 */
    .product-item > div:last-of-type { /* 상품명 아래 콘텐츠 영역을 Flexbox 컨테이너로 설정 (레이아웃에 따라 선택자 조정 필요) */
        /* 이 선택자가 가격과 버튼을 포함하는 가장 가까운 부모여야 합니다. 
           만약 price-wrapper와 btn-buy가 product-item의 직접적인 자식이라면 아래 코드를 사용 */
    }
    
    .product-item {
        /* 상품 카드를 Flexbox 컨테이너로 설정하고, 
           가격 wrapper와 버튼이 있는 영역을 중앙으로 정렬 */
        display: flex;
        flex-direction: column;
        align-items: center; /* 카드 내용 중앙 정렬 */
    }

    /* 2. 가격과 버튼을 포함하는 영역에 Flexbox 적용 */
    /* index.php 코드에서 price-wrapper와 btn-buy가 형제 요소이므로, 이 둘을 감싸는 부모 요소에 Flexbox 적용이 이상적입니다.
       가장 근접한 공통 부모가 .product-item 내부의 다른 <div>라고 가정하고 아래와 같이 조정합니다.
       만약 price-wrapper와 btn-buy를 감싸는 부모 <div>가 있다면, 그 <div>에 아래 스타일을 적용해야 합니다. */
    .product-item { /* 현재 상황에서는 product-item 내부의 구조를 변경할 수 없으므로, 
                        .product-item 하단 영역의 배치를 변경하는 방식으로 접근합니다. */
        /* ... (이미 위에서 선언됨) ... */
    }
    
    /* 3. 가격 Wrapper와 구매하기 버튼을 가로로 정렬하기 위한 새로운 컨테이너 (CSS에서 가상으로) */
    /* *가장 실용적인 방법: 가격 컨테이너와 버튼이 한 줄에 배치되도록 스타일 조정* */
    .product-item .price-wrapper {
        display: inline-block; /* 버튼과 옆에 배치되도록 인라인 블록으로 변경 */
        vertical-align: middle;
        margin-right: 0.5rem; /* 버튼과의 간격 */
        width: auto; /* 내용물 크기만큼 너비 조정 */
        text-align: left;
    }

    .product-item .btn-buy {
        display: inline-block; /* 버튼을 인라인 블록으로 변경 */
        vertical-align: middle;
        
        /* 버튼 크기 조정 */
        padding: 0.4rem 0.6rem; 
        font-size: 0.9rem; 
        margin-top: 0; /* 세로 마진 제거 */
    }
    
    /* 4. 가격 폰트 크기 조정 */
    .product-item .original-price-strikethrough {
        font-size: 0.8rem;
        margin-bottom: -0.4rem; 
    }
    
    .product-item .price {
        font-size: 1.2rem;
        margin-top: 0.4rem;
    }
    
    .product-item .price span:first-child.text-red-600 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-item {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 20px !important;
    }
    .product-image-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* .price-wrapper 마진 - 기존 코드 유지 */
    .product-item .price-wrapper {
        margin-bottom: 1.8rem !important;
    }
    
    /* 제품 이미지 잘림 방지 코드 - 기존 코드 유지 */
    .product-item img {
        max-width: 100%; 
        height: auto; 
        display: block; 
    }
}