/* Ceramic Product Detail Page Styles */

.ceramic-product-detail {
    width: 100%;
}

/* 상단 헤더 이미지 */
.product-header-section {
    width: 100%;
    margin-bottom: 60px;
}

.product-header-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.product-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 제품명 섹션 */
.product-title-section {
    padding: 40px 0;
    text-align: center;
}

.product-title-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.product-code {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* 메인 제품 이미지 */
.product-main-image-section {
    padding: 40px 0;
    background: #fff;
}

.product-main-image-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-main-image {
    text-align: center;
}

.product-main-image img {
    width: 580px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.square-block .product-main-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* INFO 스펙 섹션 */
.product-info-section {
    padding: 100px 0 60px 0;
    background: #fff;
    text-align: center; /* 섹션 내 텍스트 중앙 정렬 기반 */
}

.product-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 자식 요소들을 가로축 가운데로 정렬 */
}

.section-title {
    font-size: 64px;
    font-weight: 900;
    margin: 0 0 80px 0;
    color: #111;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px; /* 정보 덩어리의 최대 너비를 제한하여 가운데 모음 */
    margin: 0 auto;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    padding: 0;
    border: none;
    text-align: left; /* 내부 글씨는 다시 왼쪽 정렬로 가독성 유지 */
}

.spec-label {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    min-width: 200px; /* 라벨 영역 너비를 적절히 조정 */
    text-transform: uppercase;
    line-height: 1.2;
}

.spec-value {
    font-size: 24px;
    font-weight: 400;
    color: #777;
    flex: 1;
    line-height: 1.2;
}

/* 타일 패턴 섹션 */
.product-pattern-section {
    padding: 100px 0;
    background: #fff;
}

.product-tile-block {
    margin-bottom: 50px;
}

.product-tile-block:last-child {
    margin-bottom: 50px;
}

.product-pattern-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pattern-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 타일 패턴 이미지가 1개일 때 중앙 정렬 */
.pattern-images-grid.has-one-item {
    display: flex;
    justify-content: center;
}

.pattern-images-grid.has-one-item .pattern-image-item {
    width: 100%;
    max-width: 366px; /* 3열 배치일 때의 개별 이미지 크기와 동일하게 유지 */
}

.pattern-image-item {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.pattern-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 세로형 타일 (2:3 비율) */
.vertical-tiles .pattern-image-item {
    aspect-ratio: 2 / 3;
}

/* 정사각형 타일 (1:1 비율) */
.square-tiles .pattern-image-item {
    aspect-ratio: 1 / 1;
}

/* APPLICATION 섹션 (캐러셀) */
.product-application-section {
    padding: 50px 0 100px;
    background: #fff;
}

.product-application-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.app-section-title {
    text-align: left !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    margin-bottom: 60px !important;
    letter-spacing: -1px;
}

.app-swiper {
    width: 100%;
    padding-bottom: 100px !important;
    overflow: visible !important;
}

.application-image-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.application-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 하단 프로그레스 바 스타일 */
.swiper-pagination-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #eee;
}

.app-swiper .swiper-pagination-progressbar {
    background: #eee !important;
    height: 2px !important;
    position: relative !important;
}

.app-swiper .swiper-pagination-progressbar-fill {
    background: #000 !important;
}

/* 라이트박스 커서 */
.app-lightbox {
    cursor: zoom-in;
    display: block;
}

/* Magnific Popup 화살표 (테마 CSS 충돌 방지) */
.single-ceramic_product .mfp-arrow {
    width: 52px !important;
    height: 52px !important;
    margin-top: -26px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    opacity: 1 !important;
}

.single-ceramic_product .mfp-arrow::before,
.single-ceramic_product .mfp-arrow::after {
    content: none !important;
    border: 0 !important;
}

.single-ceramic_product .mfp-arrow .mfp-a {
    display: none !important;
}

.single-ceramic_product .mfp-arrow-left::before,
.single-ceramic_product .mfp-arrow-right::before {
    content: "" !important;
}

.single-ceramic_product .mfp-arrow-left::after,
.single-ceramic_product .mfp-arrow-right::after {
    content: none !important;
}

.single-ceramic_product .mfp-arrow-left {
    left: 16px !important;
}

.single-ceramic_product .mfp-arrow-right {
    right: 16px !important;
}

.single-ceramic_product .mfp-arrow-left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='30' viewBox='0 0 18 30'%3E%3Cpath d='M16 2L3 15L16 28' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.single-ceramic_product .mfp-arrow-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='30' viewBox='0 0 18 30'%3E%3Cpath d='M2 2L15 15L2 28' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* 카테고리별 공통 INFO (하단 특징 섹션) */
.product-category-info-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.product-category-info-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더: 왼쪽 타이틀, 오른쪽 설명 */
.category-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 50px;
}

.category-info-header .header-left {
    flex: 0 0 300px;
}

.category-info-header .header-right {
    flex: 1;
}

.info-label {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin: 0 0 15px 0;
    line-height: 1;
    text-align: left;
}

.category-info-title {
    font-size: 40px;
    font-weight: 800;
    color: #555;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.category-info-description {
    color: #111;
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

.category-info-description p {
    margin: 0 0 10px 0;
}

/* 특징 그리드 (4열 레이아웃) */
.category-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-icon {
    width: 100%;
    aspect-ratio: 1.6 / 1; /* 가로가 약간 긴 사각형 */
    margin-bottom: 25px;
    overflow: hidden;
    background: #f5f5f5;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-text {
    padding: 0 5px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    letter-spacing: -0.5px;
}

.feature-description {
    font-size: 15px;
    color: #111;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

/* 반응형 조정 */
@media (max-width: 1024px) {
    .category-info-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 50px;
    }
    .category-info-header .header-left {
        flex: none;
    }
    .category-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-label { font-size: 24px; }
    .category-info-title { font-size: 32px; }
    .category-info-description { font-size: 16px; }
    .category-features-grid { gap: 30px; }
}

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

/* 반응형 조정 */
@media (max-width: 1024px) {
    .category-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    .pattern-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .category-info-title {
        font-size: 24px;
    }
    .category-info-description {
        font-size: 16px;
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .pattern-images-grid {
        grid-template-columns: 1fr;
    }
    .category-features-grid {
        grid-template-columns: 1fr;
    }
}
