/* General Styles */
body {
    font-family: Arial, sans-serif;
}

.header {
    width: 100%;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
}

.header .container-fixed {
    display: flex; /* use flexbox */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.header .search-box {
    display: flex;
    align-items: center;
    width: 300px;
}

.header .menu-icon {
    display: none; /* Hidden hamburger menu on desktop */
}

/* Mobile View: Show Menu Icon, Hide Search */
@media (max-width: 768px) {
    .header .container-fixed {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header h1 {
        font-size: 18px; /* Descrease size */
        margin: 0;
    }

    .header .menu-icon {
        display: block; /* Show hamburger menu */
        width: 30px;
        height: 30px;
    }

    .header .menu-icon img {
        width: 100%;
        height: auto;
    }

    .header .search-box {
        display: none; /* Hidden search box on mobile */
    }
}

.header .logo-img{
    width : 100px;
}

@media (max-width: 768px) {
    .header .logo-img{
        width : 80px;
    }
}

/* Section Subtitle */
.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

/* Section Title */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: left;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f7f8fa;
    display: flex;
    align-items: center;
    padding-right: 40px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 100%;
    font-size: 14px;
    background: transparent;
}

.search-box .search-divider {
    position: absolute;
    right: 35px;
    height: 24px;
    width: 1px;
    background-color: #ccc;
}

.search-box .search-icon {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    background: url('../images/Bg.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

@media (max-width: 768px) { /* ëª¨ë°”ì¼ í™”ë©´ (768px ì´í•˜) */
    .hero-banner {
        height: 300px; /* ë†’ì´ë¥¼ ì¤„ìž„ */
        padding: 20px; /* ë‚´ë¶€ ì—¬ë°± ì¶”ê°€ */
    }

    .hero-banner h2{
        font-size: 36px !important; /* í…ìŠ¤íŠ¸ í¬ê¸° ì¶•ì†Œ */
        line-height: 1.4; /* ì¤„ ê°„ê²© ì¡°ì • */
    }

    .hero-banner p{
        font-size: 12px !important; /* í…ìŠ¤íŠ¸ í¬ê¸° ì¶•ì†Œ */

    }
}



.hero-banner .banner-text h2 {
    font-size: 48px;
    font-weight: 700; /* Bold */
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-banner .banner-text p {
    font-size: 16px;
    font-weight: 400; /* Regular */
    letter-spacing: 1px;
    margin: 0;
}

/* All Products Section */
.all-products .card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.all-products .card:hover {
    transform: translateY(-5px);
}

.all-products .card img {
    height: 150px;
    object-fit: cover;
}

.all-products .card-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Container Fixed Width */
.container-fixed {
    max-width: 1180px; /* Fix Width */
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.section-icon {
    margin-top: 40px;
}

/* Icon Container */
/* ê¸°ë³¸ ìŠ¤íƒ€ì¼ */
.icon-container {
    display: flex;
    flex-wrap: nowrap; /* PCì—ì„œëŠ” í•œ ì¤„ë¡œ */
    justify-content: space-between;
    gap: 16px; /* ì•„ì´í…œ ê°„ ê°„ê²© */
    overflow-x: auto; /* horizontal scrollbar */
    white-space: nowrap;
    align-items: center;
    -ms-overflow-style: none; /* Hidden horizontal scrollbar on IE */
    scrollbar-width: none; /* Hidden horizontal scrollbar on Firefox */
    padding: 20px 0;
    min-width: 310px;
}

.icon-container::-webkit-scrollbar {
    display: none; /* Hidden horizontal scrollbar on Chrome */
}

.icon-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto; /* PCì—ì„œ í•œ ì¤„ë¡œ ì •ë ¬ */
    width: 130px; /* ì•„ì´í…œ ê³ ì • í¬ê¸° */
    box-sizing: border-box;
}

.icon-box {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.icon-box img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-item p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* ìž‘ì€ í™”ë©´ ëŒ€ì‘ */
@media (max-width: 768px) {
    .icon-container {
        flex-wrap: wrap; /* ì¤„ë°”ê¿ˆ í—ˆìš© */
        justify-content: flex-start; /* ì•„ì´í…œ ì •ë ¬ ì¡°ì • (ì¢Œì¸¡ ì •ë ¬) */
        white-space: normal; /* ì¤„ë°”ê¿ˆ ê°€ëŠ¥ */
    }

    .icon-item {
        flex: 1 1 calc(50% - 16px); /* 2ì¤„ë¡œ ë³€ê²½ */
        max-width: calc(50% - 16px);
    }

    .icon-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .icon-item {
        flex: 1 1 calc(50% - 16px); /* 2ì¤„ë¡œ ë³€ê²½ */
        max-width: calc(50% - 16px);

    }

    .icon-item p {
        font-size: 12px;
    }
}


/* Hover vÃ  Active States */
.icon-box:hover {
    background-color: #2C3E50;
}

.icon-box:hover img, .icon-box.active img {
    transform: scale(1.2);
    filter: brightness(0) invert(1);
}

.icon-box.active {
    background-color: #2C3E50;
}

/* Responsive: Mobile (Show 3 icon same time) */
@media (max-width: 768px) {
    .icon-container {
        gap: 10px;
    }

    .icon-item {
        flex: 0 0 calc(32% - 10px); /* Show 3 icon */
    }

    .icon-box {
        width: 120px;
        height: 120px;
    }

    .icon-box img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .icon-container {
        gap: 10px;
    }

    .icon-item {
        flex: 0 0 calc(32% - 10px); /* Show 3 icon */
    }

    .icon-box {
        width: 80px;
        height: 80px;
    }

    .icon-box img {
        width: 30px;
        height: 30px;
    }
}



/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 column */
    gap: 20px;
    margin-top: 60px;
}

.product-grid .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-grid .card {
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-grid .card img {
    height: 150px;
    object-fit: cover;
}

.product-grid .card:hover {
    transform: translateY(-5px);
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 column */
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 column */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 column */
    }
    .section-subtitle{
        text-align: center;
        margin-bottom: 10px;
    }
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    .section-title {
        margin-bottom: 20px;
    }
    .search-box {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
    }
}

/* Footer Styles */
.footer {
    width: 100%; /* Full Width with screen */
    max-width: 1920px;
    height: 175px;
    background-color: #101010;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

/* Franchise Title */
.footer-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: #C0C0C0;
    margin-bottom: 20px;
}

/* Copyrights Text */
.footer-copyright {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #9C9C9C;
    margin: 0;
}

.product-filter {
    margin: 20px auto;
    max-width: 1200px;
}

.product-filter .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn.active {
    background: #2c3e50;
    color: #fff;
}

.filter-btn:hover {
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .popup-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #1c2c4d;
    }
    .popup-stats {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .popup-stat-box {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 10px;
        background: #f8f8f8;
    }

    .popup-stat-box img {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .popup-stat-box .label {
        width: 90px;
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    .popup-stat-box .value {
        font-size: 13px;
        color: #444;
        line-height: 1.4;
        white-space: pre-line;
        flex: 1;
    }

      .popup-divider-with-text {
        display: block !important;  
        position: relative;
        text-align: center;
        margin: 30px 0 15px;
        padding: 0;
      }
    
      .popup-divider-with-text span {
        display: inline-block;
        background: #fff;
        padding: 0 12px;
        font-size: 13px;
        color: #666;
        position: relative;
        z-index: 1;
      }
    
      .popup-divider-with-text::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -20px;   /* ✅ 패딩 바깥으로 */
        right: -20px;  /* ✅ 패딩 바깥으로 */
        border-top: 1px solid #ddd;
        z-index: 0;
      }

    .popup-description {
        font-size: 13px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 20px;
    }

      .popup-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        flex-wrap: wrap;
      }
    
      .popup-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
        background: #333;
        color: white;
        text-decoration: none;
        flex-shrink: 0;
      }
    
      .instagram-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 8px;
        padding: 8px;
        height: 36px;
        width: 36px;
      }
    
      .instagram-link img {
        width: 25px;
        height: 25px;
      }
        .close-btn {
        top: 8px !important;
        font-size: 40px !important;
        padding: 4px;
      }
    }
/* 팝업 오버레이 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* 팝업 컨텐츠 */
.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    max-height: 90vh;
    -webkit-overflow-scrolling: touch; /* iOS 스크롤 부드럽게 */
    touch-action: pan-y; /* 위아래 드래그 허용 */
}

/* ★ 추가된 코드: LightGallery 갤러리 팝업을 최상위로 올림 ★ */
.lg-backdrop,
.lg-outer {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ✅ LightGallery 썸네일 스타일 정리 */
.lg-outer .lg-thumb {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  overflow-x: auto !important;
}

.lg-outer .lg-thumb-item {
  width: 60px !important;
  height: 60px !important;
  margin: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.lg-outer .lg-thumb-item.active {
  border-color: #2C3E50;
}

.lg-outer .lg-thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* 기존 코드 유지 */
.gallery-thumbnail {
    max-height: 300px;
    cursor: zoom-in;
    transition: all 0.3s;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.lg-actions .lg-next, 
.lg-actions .lg-prev {
    background-color: rgba(0,0,0,0.3);
}

.popup-image-section {
    position: relative;
    margin: 25px 0;
}

.main-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}
.gallery-trigger img {
  width: 20px;    /* 너비 조절 */
  height: 20px;   /* 높이 조절 */
  object-fit: contain;
  margin-right: 6px; /* 아이콘과 텍스트 간격 */
  vertical-align: middle;
}
.gallery-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 5px;
    border-radius: 4px;
    opacity: 0; /* lightGallery가 자동으로 처리 */
}

#main-brand-image {
    background: #f8f9fa;
    min-height: 300px;
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.gallery-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.gallery-container {
    display: none; /* lightGallery에서 자동으로 표시 */
}

/* 닫기 버튼 */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001; /* popup보다 위에! */
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #333;
  display: block; /* 혹시 display: none이 먹고 있을 경우 방지 */
}

/* 타이틀 */
.popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1c2c4d;
}

/* 통계 박스 */
.popup-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
}

.popup-stat-box {
    flex: 1;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.popup-stat-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.popup-stat-box .label {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.popup-stat-box .value {
    font-size: 16px;
    margin-top: 5px;
    color: #444;
    line-height: 1.4;
}

/* 구분선 */
.popup-divider {
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* 상세 설명 */
.popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* 버튼 영역 */
.popup-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.popup-btn,
.instagram-link {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;

    /* ⭐ 추가: 정렬 안정화 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-btn:hover,
.instagram-link:hover {
    background: #555;
}

.instagram-link img {
    width: 30px;
    height: 30px;
    display: inline-block;
    opacity: 1;
}

 .button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.square-button {
    width: 120px;
    height: 55px;
    background-color: #000;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.square-button i {
    font-size: 24px;
    margin-bottom: 10px;
}

.square-button:hover {
    background-color: #fff;
    color: #000;
    border-color: #333;
}

/* 서브 카테고리 컨테이너 */
.sub-category-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-top: 10px;
    justify-content: center;
}

/* 서브 카테고리 아이템 */
.sub-category-item {
    background-color: #f7f8fa;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.sub-category-item:hover {
    background-color: #2C3E50;
    color: #ffffff;
}

/* 서브 카테고리 스크롤바 숨김 */
.sub-category-list::-webkit-scrollbar {
    display: none;
}

/* 검색 관련 css */
.search-dropdown {
    position: relative;
    width: 100%;
}
.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}
.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f2f2f2;
}
.suggestion-box div {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.suggestion-box div:hover {
    background-color: #f2f2f2;
}
.autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    width: 100%;
}

.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-list li:hover {
    background: #f0f0f0;
}
.popup-divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 35px 0;
    position: relative;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.popup-divider-with-text::before,
.popup-divider-with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 10px;
}