/* 반응형 스타일시트 */

/* 1024px 이하 (태블릿) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-legal a {
        margin: 0 var(--spacing-sm);
    }
}

/* 768px 이하 (작은 태블릿 및 모바일) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-banner {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-md) 0;
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu li {
        margin: var(--spacing-sm) 0;
    }
    
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        padding: var(--spacing-md) 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .product-grid, 
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .story-section .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .story-content {
        order: 2;
    }
    
    .story-image {
        order: 1;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-menu {
        text-align: center;
    }
    
    #youtube-player {
        height: 320px;
    }
    
    .youtube-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .autoship-image img {
        max-width: 85%;
    }
    
    /* 제품 카드 모바일 개선 */
    .product-categories-container {
        display: block !important;
    }
    
    .product-category {
        margin-bottom: 30px !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-image {
        width: 100% !important;
        height: auto !important;
        padding: 20px 0 !important;
        background-color: #f9f9f9 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .product-image img {
        max-width: 60% !important;
        max-height: 180px !important;
        object-fit: contain !important;
    }
    
    .product-category h3 {
        width: 100% !important;
        text-align: center !important;
        font-size: 16px !important;
        margin: 15px 0 10px !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .category-tagline {
        width: 100% !important;
        text-align: center !important;
        padding: 0 15px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .category-tagline strong {
        display: block !important;
        margin-bottom: 5px !important;
    }
    
    .category-tagline span {
        display: inline !important;
    }
    
    .product-category > p {
        width: 100% !important;
        text-align: center !important;
        padding: 0 15px !important;
        margin-bottom: 15px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        box-sizing: border-box !important;
    }
    
    .category-features {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px 15px !important;
    }
    
    .category-feature {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
        position: relative !important;
        flex-wrap: nowrap !important;
    }
    
    .feature-icon-circle {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        margin-right: 8px !important;
        font-size: 11px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: #1a3569 !important;
        border-radius: 50% !important;
        color: white !important;
        flex-shrink: 0 !important;
    }
    
    .category-feature span {
        font-size: 13px !important;
        line-height: 1.3 !important;
        display: block !important;
        flex: 1 !important;
        width: calc(100% - 30px) !important;
        word-break: keep-all !important;
    }
    
    .product-card-image {
        background-color: transparent;
        height: 180px;
    }
    
    .product-card-image img {
        max-height: 150px;
        mix-blend-mode: multiply;
    }
    
    .product-card-image::after {
        display: none !important;
        background-image: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        content: none !important;
    }
}

/* 480px 이하 (모바일) */
@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 1.75rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card,
    .category-card {
        margin: 0 var(--spacing-md);
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    /* 작은 모바일 화면 제품 카드 추가 개선 */
    .product-image img {
        max-width: 60%;
        max-height: 180px;
    }
    
    .product-category h3 {
        font-size: 16px;
    }
    
    .category-tagline {
        font-size: 14px;
    }
    
    .category-feature span {
        font-size: 12px;
    }
    
    .feature-icon-circle {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin-right: 8px;
    }
}

/* 태블릿 */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    .hero-banner {
        padding: 70px 0;
        border-radius: 0;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .banner-description, .banner-note {
        font-size: 16px;
    }
    
    .product-highlights {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image {
        max-width: 320px;
    }
    
    .product-images {
        flex-direction: row;
        gap: 30px;
        justify-content: center;
    }
    
    .product-grid.detailed {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .autoship-content {
        flex-direction: column;
    }
    
    .autoship-info, .autoship-cta {
        width: 100%;
    }
    
    .autoship-cta {
        margin-top: var(--spacing-lg);
    }
    
    .autoship-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-section .container {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        text-align: center;
        order: 2;
    }
    
    .story-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }
    
    .features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .center-info-wrapper {
        grid-template-columns: 1fr;
    }
    
    .center-info-content {
        order: 2;
        text-align: center;
    }
    
    .center-info-list {
        display: inline-block;
        text-align: left;
    }
    
    .center-info-buttons {
        justify-content: center;
    }
    
    .center-info-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: span 2;
        text-align: center;
    }
    
    .autoship-feature {
        padding: var(--spacing-md);
    }
    
    .story-section {
        padding: 80px 0;
    }
    
    .story-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .story-content, 
    .story-image-container {
        flex: 0 0 100%;
        max-width: 100%;
        order: unset; /* 원래 순서 유지 */
    }
    
    .feature-cards {
        justify-content: center;
    }
    
    .feature-card {
        flex: 0 0 calc(33.33% - 15px);
    }
    
    .image-decoration {
        display: none;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-text {
        display: none;
    }
    
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin-bottom: 15px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-banner {
        padding: 60px 0;
    }
    
    .banner-text h1 {
        font-size: 24px;
    }
    
    .banner-description {
        font-size: 15px;
    }
    
    .banner-note {
        font-size: 14px;
    }
    
    .highlight-text {
        font-size: 14px;
    }
    
    .banner-slogan {
        font-size: 16px;
    }
    
    .product-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-image {
        max-width: 280px;
    }
    
    .product-grid.detailed {
        grid-template-columns: 1fr;
    }
    
    .product-card.expanded {
        padding: 0;
    }
    
    .product-card.expanded .product-image {
        max-height: 220px;
    }
    
    .product-card.expanded .product-content {
        padding: var(--spacing-md);
    }
    
    .autoship-features {
        grid-template-columns: 1fr;
    }
    
    .autoship-feature {
        text-align: center;
    }
    
    .autoship-image img {
        max-width: 85%;
    }
    
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    
    .center-info-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3:after, .footer-contact h3:after, .footer-social h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .brand-slogan {
        font-size: 1.3rem;
    }
    
    .product-card-image::after {
        display: none !important;
        background-image: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        content: none !important;
    }
    
    .story-section {
        padding: 60px 0;
    }
    
    .story-content h2 {
        font-size: 30px;
    }
    
    .feature-cards {
        flex-wrap: wrap;
    }
    
    .feature-card {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }
    
    .center-quote {
        padding: 15px;
    }
    
    .center-quote p {
        font-size: 16px;
    }
}

/* 작은 모바일 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-banner {
        padding: 50px 0;
    }
    
    .product-image {
        max-width: 240px;
    }
    
    .banner-text h1 {
        font-size: 22px;
    }
    
    .banner-slogan {
        font-size: 15px;
    }
    
    .product-highlights {
        padding: 15px;
    }
    
    .product-card.expanded .product-image {
        max-height: 180px;
    }
    
    .autoship-cta {
        padding: var(--spacing-md);
    }
    
    .autoship-feature {
        padding: 15px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .story-section {
        padding: 50px 0;
    }
    
    .story-content h2 {
        font-size: 26px;
    }
    
    .feature-cards {
        flex-direction: column;
    }
    
    .feature-card {
        flex: 0 0 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 15px;
    }
    
    .feature-icon {
        margin: 0 15px 0 0;
    }
}

document.addEventListener('DOMContentLoaded', function() {
    if (window.innerWidth <= 768) {
        const style = document.createElement('style');
        style.textContent = `
            .product-card-image::after {
                display: none !important;
                content: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                background-image: none !important;
            }
        `;
        document.head.appendChild(style);
    }
});

@media (min-width: 769px) {
    .product-card:nth-child(1) .product-card-image::after {
        background-image: url('images/splash1.png');
    }
    /* ... 다른 제품들 ... */
}

/* 반응형 디자인 개선 */

/* 태블릿 - 중간 크기 화면 */
@media (max-width: 1200px) {
    /* 컨테이너 조정 */
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    /* 제목 크기 조정 */
    .section-title {
        font-size: 32px;
    }
    
    /* 배너 콘텐츠 조정 */
    .banner-content h1 {
        font-size: 42px;
    }
    
    /* 그리드 레이아웃 조정 */
    .intro-content-wrapper,
    .vision-content,
    .booking-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-cards,
    .center-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 패딩 조정 */
    .feature-card, 
    .center-info-card {
        padding: 25px;
    }
    
    /* 푸터 정렬 */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 태블릿 - 소형 화면 */
@media (max-width: 992px) {
    /* 컨테이너 조정 */
    .container {
        max-width: 720px;
    }
    
    /* 헤더 메뉴 조정 */
    header .container {
        padding: 15px 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    /* 배너 섹션 패딩 조정 */
    .hero-banner {
        padding: 100px 0;
    }
    
    /* 배너 제목 크기 조정 */
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    /* 카드 정렬 조정 */
    .center-info-image-gallery {
        height: auto;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumb {
        height: 120px;
    }
}

/* 모바일 - 대형 화면 */
@media (max-width: 768px) {
    /* 컨테이너 조정 */
    .container {
        max-width: 540px;
    }
    
    /* 헤더 네비게이션 조정 */
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* 섹션 패딩 조정 */
    section {
        padding: 60px 0;
    }
    
    /* 그리드 조정 */
    .features-cards,
    .center-info-grid,
    .product-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 배너 콘텐츠 조정 */
    .banner-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner-cta a {
        width: 100%;
        justify-content: center;
    }
    
    /* CTA 섹션 조정 */
    .center-info-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    /* 하이라이트 콘텐츠 조정 */
    .highlight-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }
    
    .highlight-logo {
        margin: 0 auto 20px;
    }
}

/* 모바일 - 중형 화면 */
@media (max-width: 576px) {
    /* 컨테이너 조정 */
    .container {
        padding: 0 15px;
    }
    
    /* 제목 크기 조정 */
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* 배너 콘텐츠 조정 */
    .banner-content h1 {
        font-size: 30px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    /* 타임라인 조정 */
    .story-timeline {
        grid-template-columns: 1fr;
    }
    
    /* 테스티모니얼 조정 */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* 푸터 조정 */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* 버튼 그룹 조정 */
    .booking-buttons, 
    .testimonial-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-buttons a, 
    .testimonial-cta a {
        width: 100%;
        justify-content: center;
    }
    
    /* 갤러리 섬네일 조정 */
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .gallery-thumb {
        height: 80px;
    }
}

/* 모바일 - 소형 화면 */
@media (max-width: 375px) {
    /* 배너 콘텐츠 추가 조정 */
    .banner-content h1 {
        font-size: 26px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    /* 패딩 추가 감소 */
    .feature-card, 
    .center-info-card, 
    .testimonial-card {
        padding: 20px;
    }
    
    /* 아이콘 사이즈 조정 */
    .feature-card-icon,
    .info-card-icon {
        width: 60px;
        height: 60px;
    }
    
    /* 갤러리 섬네일 추가 조정 */
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
} 