/* Products Page Mobile Styles */

@media (max-width: 768px) {
    /* Hero 섹션 모바일 조정 */
    .page-hero {
        height: 400px !important;
        margin-top: 60px !important;
    }

    .page-hero h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .page-hero p {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }

    /* 모바일 필터 드롭다운 스타일 */
    .mobile-filter-dropdown {
        display: block !important;
        width: 100%;
        padding: 15px 20px;
        background: var(--bg-darker);
        border: 1px solid var(--border-gray);
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
        margin-bottom: 30px;
        cursor: pointer;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2714%27%20height%3D%278%27%20viewBox%3D%270%200%2014%208%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpolyline%20points%3D%271%201%207%207%2013%201%27%20stroke%3D%27%23ff3333%27%20stroke-width%3D%272%27%20fill%3D%27none%27%20fill-rule%3D%27evenodd%27/%3E%3C/svg%3E');
        background-repeat: no-repeat;
        background-position: right 20px center;
        padding-right: 50px;
    }

    .mobile-filter-dropdown:focus {
        outline: none;
        border-color: var(--primary-red);
    }

    /* PC 필터 탭 숨기기 */
    .product-tabs {
        display: none !important;
    }

    /* 제품 그리드 모바일 */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }

    /* 제품 카드 모바일 */
    .product-card {
        margin-bottom: 10px;
    }

    .product-image {
        height: 200px !important;
    }

    .product-info {
        padding: 20px !important;
    }

    .product-title {
        font-size: 1.3rem !important;
    }

    .product-subtitle {
        font-size: 0.9rem !important;
    }

    .product-features {
        font-size: 0.9rem !important;
    }

    /* 심플 제품 리스트 모바일 */
    .simple-product-list {
        padding: 10px 0 !important;
    }

    .simple-product-item {
        padding: 20px !important;
        margin-bottom: 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .simple-product-title {
        font-size: 1.2rem !important;
    }

    .simple-product-desc {
        font-size: 0.9rem !important;
    }

    .simple-product-arrow {
        width: 35px !important;
        height: 35px !important;
    }

    /* 상세 그리드 모바일 */
    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .detail-item {
        padding: 20px !important;
    }

    .detail-content-box {
        padding: 20px !important;
        padding-right: 60px !important;
    }

    .detail-content-box h4 {
        font-size: 1.1rem !important;
    }

    .detail-specs {
        font-size: 0.85rem !important;
    }

    .detail-arrow {
        width: 35px !important;
        height: 35px !important;
        right: 15px !important;
    }

    /* 뒤로가기 버튼 모바일 */
    .back-button {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    /* System Components 그리드 모바일 */
    .system-components-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .system-component-image-box {
        height: 150px !important;
    }

    .system-component-item h4 {
        font-size: 1rem !important;
    }

    /* 공법 상세 모바일 */
    .method-detail-content {
        padding: 20px !important;
    }

    .method-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .method-image img {
        border-radius: 4px !important;
    }

    /* CTA 섹션 모바일 */
    .cta-section {
        padding: 60px 0 !important;
    }

    .cta-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .cta-content p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .btn-white,
    .btn-outline {
        width: 100% !important;
        padding: 15px 30px !important;
        font-size: 1rem !important;
    }

    /* 이미지 모달 모바일 */
    .image-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
    }

    /* 컨테이너 패딩 조정 */
    .container {
        padding: 0 15px !important;
    }

    section {
        padding: 60px 0 !important;
    }

    /* A/S Center 모바일 */
    #service .products-grid {
        grid-template-columns: 1fr !important;
    }

    #service div[style*="display: flex; justify-content: center"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 모바일 스크롤 부드럽게 */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* 탭 콘텐츠 애니메이션 비활성화 (성능) */
    .tab-content,
    .sub-category-content {
        animation: none !important;
    }

    /* 기존 푸터 숨기기 */
    footer:not(.mobile-footer),
    .footer {
        display: none !important;
    }
    
    /* 모바일 푸터만 표시 */
    .mobile-footer {
        display: block !important;
    }
}

/* 태블릿 대응 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-filter-dropdown {
        display: none !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .system-components-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
