* {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* ========================================
   기본 설정
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}


/* ========================================
   스크롤 애니메이션
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

/* 제품 카드 애니메이션 (fade-in-up 다음에 추가) */
.product-card.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out !important;
}

.product-card.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 4개 카드 애니메이션 */
.info-card.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out !important;
}

.info-card.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================
   헤더 & 로고
   ======================================== */
.메뉴 {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.상단 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.logo {
    width: 100px;
    height: auto;
}

.logotext {
    font-size: 32px;
    font-weight: bold;
    color: rgba(122, 66, 9, 0.719);
}

.logotext1 {
    font-size: 15px !important;
    font-weight: bold !important;
    color: rgba(122, 66, 9, 0.719) !important;
    margin-top: 5px !important;
}



/* ========================================
   네비게이션 메뉴
   ======================================== */
.메뉴2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.boxtext {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    margin-top: 10px;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: bold;
    color: #333;
    flex-wrap: wrap;
    padding: 0 10px;
}

.boxtext a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.boxtext a:hover {
    color: #666;
    transform: translateY(-2px);
}

.boxtext a:visited {
    color: #333;
}

.line {
    width: 100vw;
    height: 2px;
    background-color: black;
}

.top-line {
    opacity: 0.1;
}

.bottom-line {
    margin-top: 10px;
    opacity: 0.05;
}


/* ========================================
   카카오톡 버튼 (헤더)
   ======================================== */
.header-kakao-btn {
    position: absolute;
    right: 30px;
    top: 150px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #FEE500;
    color: #3C1E1E;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-kakao-btn:hover {
    background-color: #FDD835;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.header-kakao-btn svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   배경 이미지 갤러리
   ======================================== */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    cursor: grab;
    padding: 40px 0;
    user-select: none;
    opacity: 0;
}

.gallery-container:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 20px;
    padding: 0 5%;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 45%;
    min-width: 60%;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.9);
    opacity: 0.5;
}

.gallery-item.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 갤러리 네비게이션 버튼 */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.gallery-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn svg {
    width: 30px;
    height: 30px;
}

.gallery-nav-prev {
    left: 5%;
}

.gallery-nav-next {
    right: 5%;
}


/* ========================================
   제품 섹션 헤더 (스타일 5)
   ======================================== */
.product-section-header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    margin-bottom: 40px;
}

.product-section-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: #8B5A2B;
    animation: lineDropDown 1.5s ease-in infinite;
}


@keyframes lineDropDown {
    0% {
        top: -10px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 55px;
        opacity: 0;
    }
}

/* 더 작은 모바일에서 더 짧게 */
@media (max-width: 780px) {
    @keyframes lineDropDownMobile2 {
        0% {
            top: -20px;
            opacity: 0;
        }
        20% {
            opacity: 1;
        }
        80% {
            opacity: 1;
        }
        100% {
            top: 30px;  /* 더 짧게 */
            opacity: 0;
        }
    }
    
    .subtitle::before,
    .product-section-header::before {
        animation: lineDropDownMobile2 2s ease-in-out infinite !important;
    }
}



.product-section-header .subtitle {
    font-size: 14px;
    color: #8B5A2B;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.product-section-header p {
    font-size: 15px;
    color: #666;
}


/* ========================================
   제품 섹션
   ======================================== */
.product-section {
    width: 100%;
    padding: 40px 5%;
    background-color: #f8f8f8;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;  /* ← 구체적으로 지정 */
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-color: #999;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #333;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

.product-info p {
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

.sr-only {
    position: absolute;
    left: -9999px;
}


/* ========================================
   제휴업체 로고 섹션
   ======================================== */
.partner-logo-section {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #ddd;
    margin: 15px auto 40px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-box {
    border: 2px solid #ddd;
    padding: 20px 40px;
    background-color: #fafafa;
    display: inline-block;
}

.logo-box a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-box a:hover .partner-logo {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.logo-name {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.logo-name1 {
    font-size: 0.8rem;
    color: #333;
    margin: 20px;
    font-weight: 500;
}


/* ========================================
   제품사진 갤러리 제목
   ======================================== */
.gallery-title-section {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
}

.gallery-title-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.gallery-title-section p {
    font-size: 1rem;
    color: #666;
}


/* ========================================
   4개 카드 섹션
   ======================================== */
.info-cards-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.info-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.info-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.info-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    color: white;
}

.card-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 5px;
    opacity: 0.9;
}

.card-button {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.card-button:hover {
    background-color: white;
    color: #333;
}


/* ========================================
   푸터
   ======================================== */
.footer {
    width: 100%;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.footer-contact .phone {
    color: #ff6b6b;
    font-weight: bold;
}

.footer-contact p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.kakao-btn, .faq-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.kakao-btn {
    background-color: #fee500;
    color: #000;
}

.kakao-btn:hover {
    background-color: #fdd835;
}

.faq-btn {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.faq-btn:hover {
    background-color: #f8f8f8;
}

.footer-menu {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.menu-column {
    flex: 1;
    min-width: 0;
}

.menu-column h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.menu-column a {
    display: block;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
    line-height: 1.4;
}

.menu-column a:hover {
    color: #000;
}

.footer-logo {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-info {
    padding-top: 20px;
}

.info-links {
    margin-bottom: 15px;
}

.info-links a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: color 0.3s;
}

.info-links a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin: 8px 0;
}

.copyright {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}


/* ========================================
   플로팅 카카오톡 버튼
   ======================================== */
.floating-kakao {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 9998;
    cursor: pointer;
}

.floating-kakao:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #FDD835;
}

.floating-kakao-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
}

.floating-kakao-text {
    font-size: 11px;
    font-weight: bold;
    color: #3C1E1E;
}

.floating-kakao::before {
    content: '💬 궁금한 점이 있으신가요?';
    position: absolute;
    right: 80px;
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-kakao:hover::before {
    opacity: 1;
    visibility: visible;
    right: 90px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(254, 229, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    }
}

.floating-kakao.pulse {
    animation: pulse 2s infinite;
}


/* ========================================
   장바구니 아이콘
   ======================================== */
.wishlist-link {
    position: fixed;
    right: 40px;
    top: 40px;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon {
    font-size: 24px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wishlist-link:hover .wishlist-icon {
    transform: scale(1.10);
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* ========================================
   반응형 디자인
   ======================================== */

/* 1200px 이하 */
@media (max-width: 1200px) {
    .gallery-container {
        padding: 40px 0;
    }
    
    .gallery-track {
        gap: 10px;
        padding: 0;
    }
    
    .gallery-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .info-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .info-card {
        height: 300px;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        gap: 30px 20px;
    }
    
    .menu-column {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* 768px 이하 */
@media (max-width: 768px) {
    .header-kakao-btn {
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-kakao-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .product-section-header {
        padding: 40px 20px 30px;
        margin-bottom: 30px;
    }
    
    .product-section-header h2 {
        font-size: 24px;
    }
    
    .product-section-header .subtitle {
        font-size: 12px;
    }
    
    .product-section-header p {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-section {
        padding: 30px 5%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .partner-logos {
        gap: 20px;
    }
    
    .logo-box {
        padding: 30px 40px;
    }
    
    .partner-logo {
        max-width: 150px;
    }
    
    .logo-name {
        font-size: 0.9rem;
    }
    
    .info-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        height: 280px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-subtitle {
        font-size: 1rem;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-menu {
        display: none;
    }
    
    .footer-buttons {
        width: 100%;
    }
    
    .kakao-btn, .faq-btn {
        flex: 1;
    }
    
    .floating-kakao {
        width: 60px;
        height: 60px;
        bottom: 90px;
        right: 20px;
    }
    
    .floating-kakao-icon {
        width: 35px;
        height: 35px;
    }
    
    .floating-kakao-text {
        font-size: 10px;
    }
    
    .floating-kakao::before {
        display: none;
    }
    
    .wishlist-link {
        right: 20px;
        top: 20px;
    }
    
    .wishlist-icon {
        font-size: 30px;
    }
    
    .wishlist-count {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 20px;
        height: 20px;
    }
    
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-nav-prev {
        left: 3%;
    }
    
    .gallery-nav-next {
        right: 3%;
    }
}