/* COOKZZANG 상품 상세 페이지 스타일 (K6486-A0881-K8376) */
/* 모든 스타일에 !important 적용하여 외부 스타일 상속 방지 */

/* 기본 스타일 초기화 */
.tks-container * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* 컨테이너 스타일 */
.tks-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

/* 헤더 스타일 */
.tks-header {
    text-align: center !important;
    margin-bottom: 30px !important;
    padding: 30px 15px !important;
    background: linear-gradient(to right, #e9f7ef, #f4f9f6) !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.tks-header::before {
    content: "" !important;
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 100px !important;
    height: 100px !important;
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-radius: 50% !important;
    z-index: 0 !important;
}

.tks-product-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 15px !important;
    position: relative !important;
    font-family: 'Noto Serif KR', serif !important;
}

.tks-product-subtitle {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

/* 메인 이미지 스타일 */
.tks-main-image {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto 30px auto !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 섹션 스타일 */
.tks-section {
    margin-bottom: 40px !important;
    padding: 0 15px !important;
}

.tks-section-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #2e7d32 !important;
    font-family: 'Noto Serif KR', serif !important;
    position: relative !important;
}

.tks-section-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 60px !important;
    height: 2px !important;
    background-color: #2e7d32 !important;
}

/* 제품 특징 스타일 */
.tks-features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.tks-feature-item {
    background-color: #fff !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
}

.tks-feature-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.tks-feature-item::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background-color: #2e7d32 !important;
}

.tks-feature-icon {
    font-size: 36px !important;
    margin-bottom: 15px !important;
    color: #2e7d32 !important;
    text-align: center !important;
}

.tks-feature-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #2e7d32 !important;
    text-align: center !important;
}

.tks-feature-description {
    font-size: 16px !important;
    color: #666 !important;
    flex-grow: 1 !important;
    text-align: center !important;
}

/* 스펙 테이블 스타일 */
.tks-spec-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 30px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.tks-spec-table th, 
.tks-spec-table td {
    padding: 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #eee !important;
}

.tks-spec-table th {
    background-color: #f4f9f6 !important;
    font-weight: 700 !important;
    width: 30% !important;
    color: #2e7d32 !important;
}

.tks-spec-table tr:nth-child(even) {
    background-color: #fafafa !important;
}

.tks-spec-table tr:last-child th,
.tks-spec-table tr:last-child td {
    border-bottom: none !important;
}

/* 사용 방법 스타일 */
.tks-usage-steps {
    position: relative !important;
    margin-left: 20px !important;
    margin-bottom: 30px !important;
}

.tks-usage-steps::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 6px !important;
    height: 100% !important;
    width: 2px !important;
    background-color: #2e7d32 !important;
    opacity: 0.3 !important;
}

.tks-usage-step {
    position: relative !important;
    padding-left: 35px !important;
    margin-bottom: 25px !important;
}

.tks-usage-step:last-child {
    margin-bottom: 0 !important;
}

.tks-usage-step::before {
    content: attr(data-step) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 28px !important;
    height: 28px !important;
    background-color: #2e7d32 !important;
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    z-index: 1 !important;
}

.tks-usage-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 8px !important;
}

.tks-usage-content {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

/* 보관 방법 스타일 */
.tks-storage-panel {
    background-color: #f4f9f6 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    border-left: 4px solid #2e7d32 !important;
}

.tks-storage-icon {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    font-size: 36px !important;
    opacity: 0.2 !important;
    color: #2e7d32 !important;
}

.tks-storage-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 10px !important;
}

.tks-storage-info {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 10px !important;
}

.tks-storage-warning {
    background-color: #fff !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 14px !important;
    color: #e53935 !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
}

.tks-storage-warning::before {
    content: "⚠️" !important;
    margin-right: 8px !important;
    font-size: 16px !important;
}

/* 활용 요리 스타일 */
.tks-recipes-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.tks-recipe-card {
    background-color: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease !important;
}

.tks-recipe-card:hover {
    transform: translateY(-5px) !important;
}

.tks-recipe-content {
    padding: 20px !important;
}

.tks-recipe-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 10px !important;
}

.tks-recipe-description {
    font-size: 16px !important;
    color: #666 !important;
    margin-bottom: 15px !important;
}

.tks-recipe-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.tks-recipe-tag {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

/* 특징 배지 스타일 */
.tks-badges-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.tks-badge {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
}

.tks-badge::before {
    content: "✓" !important;
    font-weight: 700 !important;
    margin-right: 5px !important;
}

/* 비디오 스타일 (선택적) */
.tks-video-container {
    position: relative !important;
    padding-bottom: 56.25% !important; /* 16:9 비율 */
    margin-bottom: 30px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.tks-video-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* 푸터 스타일 */
.tks-footer {
    background-color: #f4f9f6 !important;
    padding: 20px !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin-top: 40px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.tks-company-info {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 10px !important;
}

.tks-company-info strong {
    font-weight: 700 !important;
    color: #2e7d32 !important;
}

/* 강조 텍스트 스타일 */
.tks-highlight {
    color: #2e7d32 !important;
    font-weight: 700 !important;
}

/* 스토리 섹션 스타일 (고정 폰트 사이즈) */
.tks-story-heading {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2e7d32 !important;
    margin-bottom: 15px !important;
    font-family: 'Noto Serif KR', serif !important;
}

.tks-story-text {
    font-size: 18px !important;
    color: #333 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .tks-product-title {
        font-size: 26px !important;
    }
    
    .tks-section-title {
        font-size: 22px !important;
    }
    
    .tks-features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tks-recipes-container {
        grid-template-columns: 1fr !important;
    }
    
    .tks-spec-table th {
        width: 40% !important;
    }
}

/* 이미지 갤러리 스타일 */
.tks-image-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 20px !important;
}

.tks-gallery-item {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.tks-gallery-item:hover {
    transform: translateY(-8px) !important;
}

.tks-gallery-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

.tks-gallery-caption {
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-align: center !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* 리뷰 섹션 스타일 */
.tks-review-summary {
    background: linear-gradient(135deg, #fff9c4 0%, #fff3a0 100%) !important;
    padding: 30px !important;
    border-radius: 15px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2) !important;
}

.tks-rating-score {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
    margin-bottom: 10px !important;
}

.tks-rating-stars {
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.tks-rating-count {
    font-size: 16px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.tks-review-list {
    display: grid !important;
    gap: 20px !important;
}

.tks-review-item {
    background: white !important;
    padding: 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    border-left: 4px solid #ff6b35 !important;
}

.tks-review-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.tks-review-stars {
    font-size: 16px !important;
}

.tks-review-author {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
}

.tks-review-date {
    color: #999 !important;
    font-size: 12px !important;
    margin-left: auto !important;
}

.tks-review-content {
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 반응형 디자인 추가 */
@media (max-width: 768px) {
    .tks-image-gallery {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .tks-gallery-image {
        height: 250px !important;
    }
    
    .tks-rating-score {
        font-size: 36px !important;
    }
    
    .tks-review-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .tks-review-date {
        margin-left: 0 !important;
    }
}