/* ========================================================== */
/* 1. 기본 설정 및 폰트 */
/* ========================================================== */
body {
    color: #1a202c;
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    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 대체 (아네론몰: 로얄블루, 화이트 투톤) */
.royal-blue-bg { background-color: #0040C0; }
.royal-blue-text { color: #0040C0; }
.royal-blue-accent-bg { background-color: #4A89DC; }
.royal-blue-accent-text { color: #4A89DC; }
.darker-royal-blue-bg { background-color: #002D80; }
.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; }

.blue-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;
    border: 1px solid #d1d5db;
    transition: all 0.15s ease-in-out;
}
.lang-mini-btn.active {
    background-color: #0040C0;
    color: white;
    border-color: #0040C0;
}
.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;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
.lang-mobile-btn.active {
    color: #0040C0;
    font-weight: bold;
    border-bottom: 2px solid #0040C0;
}

@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: #0040C0;
    transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
}
.mobile-nav-dropdown a:hover {
    background-color: #f9fafb;
    color: #4A89DC;
}

/* 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');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 4rem;
    padding-bottom: 3rem;
    text-align: center;
}
.hero-title-group h1 {
    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;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}

/* ================================================= */
/* 
모바일 전용 (767px 이하) 설정 추가 */
/* ================================================= */
@media (max-width: 767px) {
   .hero-section {
        background-size: cover;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
	.hero-title-group h1 {
    font-size: 2.5rem;
	}
    .hero-title-group p {
        margin-bottom: 0.5rem;
    }
}
/* C. 3분할 배너 섹션 (스크롤 스냅으로 중앙 정렬) */
.banner-wrapper-section {
    margin-top: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}
.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;
}
.banner-grid-section .banner-item:first-child {
    margin-left: calc(50% - 42.5vw + 1rem);
}
.banner-grid-section .banner-item:last-child {
    margin-right: calc(50% - 42.5vw + 1rem);
}
.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(74, 137, 220, 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;
}

@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;
    }
}

.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-aneron-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 구현 */
/* ========================================================== */

#product-list.product-list-section {
    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: #0040C0;
    margin-bottom: 3rem;
    margin-top: 0;
}

@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;
    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;
    height: 2.8em;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    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: #0040C0;
    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;
}
.product-item .price .currency-unit {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0040C0;
    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;
    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: #8CB4ED;
    transform: translateY(-1px);
}
/* E. 상세/비디오 섹션 (#details) */
.details-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.details-section h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #4A89DC;
    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(74, 137, 220, 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 #0040C0;
    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;
    /* 배경색을 쨍한 로얄 블루로 변경 */
    background-color: #0040C0; 
    /* 폰트 색상을 흰색으로 변경 */
    color: white; 
}
.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;
    background-color: #0040C0; /* 로얄 블루 배경 유지 */
    color: white; /* 기본 폰트 흰색 유지 */
}
.footer-section .container {
    position: relative;
}

.footer-links {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}
/* 푸터 링크 색상도 흰색 및 호버 시 밝은 파랑으로 조정 */
.footer-links a {
    color: white; 
    transition: color 150ms ease-in-out;
}
.footer-links a:hover {
    color: #4A89DC;
}

.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 #4A89DC;
    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: #0040C0;
    color: #ffffff;
}


.copyright {
    font-size: 0.75rem;
    text-align: center;
    /* 푸터 텍스트 색상 상속으로 흰색 적용 */
}
.copyright span {
    display: block;
}

/* ========================================================== */
/* 4. info.html 전용 스타일 추가 */
/* ========================================================== */
.info-hero-section {
    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;
    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.royal-blue-bg .hero-title-group h1 {
        font-size: 2.5rem;
    }

    .info-hero-section.royal-blue-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 #0040C0;
    border-radius: 0.25rem;
}
.qty-btn {
    width: 2rem;
    height: 2rem;
    background-color: #4A89DC;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: background-color 0.15s ease-in-out;
    line-height: 1;
    color: #0040C0;
}
.qty-btn:hover {
    background-color: #8CB4ED;
}
.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: #0040C0;
    color: white;
    transition: background-color 0.15s ease-in-out;
}

.product-qty-error-modal .confirm-btn:hover {
    background-color: rgba(0, 64, 192, 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 #A7C7F3;
    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: #0040C0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 64, 192, 0.2);
}

.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: #0040C0;
}
.status-label-dots-only .step-label.current .text {
    font-weight: bold;
    color: #1f2937;
}
.status-label-dots-only .step-label.highlight-blue .text {
    color: #0040C0;
}

.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: #0040C0;
    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: #0040C0;
    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: #0040C0;
    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;
    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 #0040C0;
    font-size: 1rem;
    font-weight: 500;
    color: #0040C0;
}

.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;
}

.company-table-header {
    background-color: #0040C0;
    color: white;
    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;
}

.company-table th {
    background-color: #f9fafb;
    width: 30%;
    font-weight: 600;
    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;
}
.article-title {

}
.terms-content p {
    margin-bottom: 1rem;
}

.lang-switch {
    text-align: right;
}
.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #0040C0;
    text-decoration: none;
    color: #0040C0;
    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: #4A89DC;
    color: #0040C0;
    border-color: #4A89DC;
    font-weight: bold;
}

.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;
}

.shipping-section h2 {

}
.shipping-section h3 {

}
.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;
    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;
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.85rem;
}
.shipping-table th {
    background-color: #f3f4f6;
    color: #0040C0;
    font-weight: bold;
    width: 33%;
}
.aneron-fixed-fee {
    font-size: 1.125rem;
    font-weight: 800;
    color: #dc2626;
    background-color: #E0F2F7;
}

.customs-warning, .duty-warning {
    color: #dc2626;
}
.customs-warning {
    border: 1px dashed #4A89DC;
    background-color: #E0F2F7;
}
.final-info-highlight {
    font-size: 1.125rem;
}
/* ==================================== */
/* 
Product Selection View - 품절 UI */
/* ==================================== */

.product-large-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.sold-out-overlay.active {
    display: flex;
}
.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;
}

.cta-button.sold-out-btn {
    background-color: #8B0000 !important;
    color: white !important;
    cursor: not-allowed;
    border: 2px solid #5C0000;
}

.cta-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.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;
}
.order-summary-table th {
    background-color: #0040C0;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #002D80;
}
.order-summary-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.95rem;
    color: #1a202c;
    background-color: white;
}
.order-summary-table table tfoot td {
    padding: 1rem;
    background-color: #f9fafb;
    font-size: 1.125rem;
    color: #0040C0;
    border-top: 2px solid #e5e7eb;
}
.order-summary-table .summary-units-title {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.25rem;
    color: #0040C0;
}
.order-summary-table .final-price {
    font-size: 1.5rem;
    font-weight: 800;
}
.order-summary-table .delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
}

.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 #4A89DC;
    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: #0040C0;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 64, 192, 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: #0040C0;
    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 #4A89DC;
    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;
    color: #4b5563;
}
.new-info-section h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #0040C0;
    text-align: center;
}

/* B. 콘텐츠 섹션 (상품 3개 그리드) */
.new-content-section h2 {
    color: #0040C0;
    font-size: 1.875rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
}
.new-content-section p {
    font-size: 1.125rem;
    color: #4b5563;
    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: #0040C0;
    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;
    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;
    font-weight: 700;
    color: #0040C0;
    margin-bottom: 0.5rem;
}
.new-product-grid .new-product-item p {
    font-size: 0.95rem;
    color: #6b7280;
    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: #0040C0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4A89DC;
}
.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: #E0F2F7;
    border-left: 4px solid #4A89DC;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
}
.new-info-section .callout strong {
    color: #dc2626;
    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: #0040C0;
    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;
    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: #4A89DC;
    color: #0040C0;
}
.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: #0040C0;
    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;
}
/* ========================================================== */
/* D. 제품 리스트 섹션 (#product-list) - 상품 카드 전체 링크 활성화 스타일 */
/* ========================================================== */
.product-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-item-link .product-item {
    height: 100%;
}

.product-item-link:hover .product-item {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.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;
    color: #0040C0;
    background-color: #4A89DC;
}

.product-item-link:hover .btn-buy {
    background-color: #8CB4ED;
    transform: translateY(-1px);
}
/* ========================================================== */
/* 12. 문의 게시판 (QNA Board) 전용 스타일 추가 */
/* ========================================================== */

/* A. 공통 섹션 스타일 (게시판 목록, 작성, 상세 페이지) */
.qna-section-container {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    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;
    margin-left: auto;
    margin-right: auto;
}
.qna-section-container.qna-write-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.qna-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0040C0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4A89DC;
    padding-bottom: 0.5rem;
}

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

.qna-write-btn {
    padding: 0.5rem 1rem;
    background-color: #4A89DC;
    color: #0040C0;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out;
}
.qna-write-btn:hover {
    background-color: #8CB4ED;
}

.qna-table-wrap {
    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 {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.qna-table thead {
    background-color: #0040C0;
    color: white;
}
.qna-table th {
    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 #002D80;
}

.qna-table tbody {
    background-color: white;
}
.qna-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.qna-table .title-cell {
    font-weight: 500;
    color: #1a202c;
}
.qna-table .title-cell a {
    color: #0040C0;
    text-decoration: none;
    transition: color 0.15s;
}
.qna-table .title-cell a:hover {
    color: #4A89DC;
    text-decoration: underline;
}

.qna-private-tag {
    margin-left: 0.5rem;
    color: #ef4444;
    font-weight: 700;
}

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

.qna-form-group {
    margin-bottom: 1rem;
}
.qna-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}
.qna-form-group input,
.qna-form-group textarea {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    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: #0040C0;
    outline: none;
    box-shadow: 0 0 0 1px #0040C0;
}

.qna-form-group .checkbox-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 700;
}
.qna-form-group input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
    color: #0040C0;
    border-color: #d1d5db;
    border-radius: 0.25rem;
}

.qna-submit-btn {
    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: #0040C0;
    transition: background-color 0.15s;
}
.qna-submit-btn:hover {
    background-color: #002D80;
}

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

.qna-password-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.qna-password-form input {
    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 {
    padding: 0.5rem 1rem;
    background-color: #0040C0;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
    white-space: nowrap;
}
.qna-password-form button:hover {
    background-color: #002D80;
}
.qna-password-group {
    display: flex;
    gap: 0.5rem;
}

.qna-content-box {
    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 {
    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;
}

.qna-answer-display-box .p-4 {
    padding: 1rem;
    background-color: #E0F2F7;
    border: 1px solid #A7C7F3;
    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;
}

.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: #0040C0;
    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) {
    
    .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.5rem 0.8rem;
        font-size: 0.95rem;
        margin-top: 0;
    }

    .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) {
    
    .product-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .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;
    }
    
    .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;
    }
}

/* 380px 이하 및 모든 모바일 기기 최적화 */
@media (max-width: 480px) {
    /* 1. 카드 전체: 높이 고정을 해제하여 내용물에 따라 늘어나게 함 */
    .product-item {
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 15px !important;
    }

    /* 2. 이미지 영역: 공간을 너무 많이 차지하지 않게 비율 조정 */
    .product-image-box {
        height: auto !important;
        aspect-ratio: 1 / 1; /* 정사각형 유지 */
        flex-shrink: 0 !important;
    }

    /* 3. 정보 영역: absolute를 완전히 해제하여 순서대로 배치 */
    .product-item .p-4 {
        position: static !important; /* 겹침 방지의 핵심 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 12px 10px !important;
        width: 100% !important;
    }

    /* 4. 상품명: 높이 제한을 풀고 중앙 정렬 */
    .product-item .product-name {
        font-size: 0.95rem !important;
        height: auto !important;
        min-height: 2.8em;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    /* 5. 가격 영역: 버튼과 겹칠 수 없도록 독립적인 구역 설정 */
    .product-item .price-wrapper {
        position: static !important; /* 공중에 띄우지 않음 */
        width: 100% !important;
        margin-bottom: 10px !important; /* 버튼과의 확실한 간격 */
        text-align: center !important;
    }

    .product-item .original-price-strikethrough {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .product-item .price {
        display: flex !important;
        justify-content: center !important;
        align-items: baseline !important;
        gap: 2px !important;
        font-size: 1.1rem !important;
    }

    .product-item .price span:first-child {
        font-size: 1.6rem !important; /* 가격 숫자 크기 */
        font-weight: 900 !important;
    }

    /* 6. 구매하기 버튼: 가격 아래에 넓고 깔끔하게 배치 */
    .product-item .btn-buy {
        position: static !important; /* 가격 아래로 자동 배치 */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important; /* 가로를 꽉 채워 클릭하기 좋게 */
        max-width: 160px !important;
        margin: 0 auto !important;
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
        border-radius: 4px !important;
        background-color: #0033CC !important;
        color: white !important;
    }

    /* 불필요한 장식 제거 */
    .product-divider {
        display: none !important;
    }
}