/* ---------- 구글 번역 스켈레톤 UX (.yestranslate에만 적용) ---------- */
.yestranslate.gt-skeleton {
    color: transparent !important;
    background: linear-gradient(90deg, #e8e8e8 25%, #f0f0f0 50%, #e8e8e8 75%) !important;
    background-size: 200% 100% !important;
    animation: gt-skeleton-shimmer 1.2s ease-in-out infinite !important;
    border-radius: 4px !important;
}
@keyframes gt-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 언어 선택 모달 표시 ---------- */
#languageModal {
    display: none;
}
#languageModal.language-modal--open {
    display: flex;
}
#languageModal .css-modal-content {
    padding-bottom: 20px;
}
#languageModal .lang-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
#languageModal .lang-modal-header .css-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}
#languageModal .lang-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#languageModal .lang-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}
#languageModal .lang-modal-close i {
    font-size: 1rem;
}

.grid-2-view img{
    height: 135px;
}
.grid-2-view .product-item>div{
    padding: 10px !important;
}
.grid-2-view .product-item h3{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: 60px;
}
/* 수평 뷰*/
.horizon-view img{
    height: 200px;
    width: 100%;
}
@media (min-width: 998px) {
    .horizon-view .product-item>div{
        width: 290px !important;
    }
    .grid-2-view img{
        height: 250px;
    }
    .grid-2-view .product-item>div{
        padding: 15px !important;
    }
}
.horizon-view .product-item>div{
    width: 55vw;
}
.horizon-view .product-item h3{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    height: 40px;
}
.scroll-x-hidden {
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE, Edge */
  scrollbar-width: none;     /* Firefox */
}
/* Chrome, Safari, Opera */
.scroll-x-hidden::-webkit-scrollbar {
  display: none;
}
.not-allowed {
  pointer-events: none;
  opacity: 0.5;           /* 반투명 → 비활성화 느낌 */
  filter: grayscale(100%);/* 색을 회색톤으로 */
  cursor: not-allowed;    /* 마우스 올리면 '🚫' 커서 */
  background-color: #8080808a;
}


/* 언어 선택 모달 스타일 */
.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 0;
}

/* 태블릿 이상 (600px 이상) */
@media (min-width: 600px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 15px 0;
    }
}

/* 데스크톱 (900px 이상) */
@media (min-width: 900px) {
    .language-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px 0;
    }
}

#languageModal .language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    /*border: 2px solid #e5e7eb;*/
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

/* 태블릿 이상 */
@media (min-width: 600px) {
    .language-option {
        gap: 8px;
        padding: 14px 10px;
    }
}

/* 데스크톱 */
@media (min-width: 900px) {
    .language-option {
        gap: 8px;
        padding: 16px 12px;
    }
}

.language-option:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.language-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
}


.language-option.selected .flag-container {
    border-color: #3b82f6;

}
.language-option .flag-container .flag-icon{
    width: 2.2rem;
    height: 2.2rem;
    max-width: unset;
    object-fit: cover;
}

/* 태블릿 이상 */
@media (min-width: 600px) {
    .language-option .flag-container .flag-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 데스크톱 */
@media (min-width: 900px) {
    .language-option .flag-container .flag-icon {
        width: 2.7rem;
        height: 2.7rem;
    }
}

.language-text {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    word-break: keep-all;
    line-height: 1.3;
}

/* 태블릿 이상 */
@media (min-width: 600px) {
    .language-text {
        font-size: 12px;
    }
}

.modal-actions {
    position: fixed;
    bottom: 50px;
    z-index: 9;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    display: flex;
    gap: 50px;
    justify-content: center;
    /*margin-top: 15px;*/
    /*padding-top: 15px;*/
    /*border-top: 1px solid #e5e7eb;*/
    /*flex-shrink: 0;*/
}

/* 모바일 */
@media (max-width: 480px) {
    .modal-actions {
        margin-top: 10px;
        padding-top: 10px;
        /*gap: 8px;*/
    }
}

.cancel-btn, .apply-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    flex: 1;
    max-width: 150px;
}

/* 모바일 */
@media (max-width: 480px) {
    .cancel-btn, .apply-btn {
        padding: 8px 16px;
        font-size: 13px;
        max-width: none;
    }
}

.cancel-btn {
    background: white;
    color: #f97316;
    border: 2px solid #f97316;
}

.cancel-btn:hover {
    background: #fef3f2;
}

.apply-btn {
    background: #f97316;
    color: white;
}

.apply-btn:hover {
  background: #ea580c;
}

/* 메인컬러 */
.bg-ht-main {
  background-color: #FF7801;
}
.bg-ht-sub {
  background-color: #FEBF87;
}
.bg-ht-light {
  background-color: #FFFBF5;
}

/* 이미지 캡션 */
.image-caption {
    font-size: 14px !important;
    color: #555 !important;
    text-align: center !important;
    margin-top: 4px !important;
    background-color: #f0f8ff !important;
    border: 1px dashed #88bfff !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    min-height: 20px !important;
    outline: none !important;
    cursor: text !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ht-search-keyword {
    font-size: 1.5rem;
    font-weight: bold;
}
.ht-search-result {
    font-size: 1.0rem;
    font-weight: unset;
    margin-left: 5px;
}

.image-wrapper {
    width: 100% !important;
}

.header-margin {
   margin-top: 62px;
}

/* xerost-webview UA: 헤더 숨김 + 고정 헤더용 상단 여백 제거 (basic/static/front/js/xerost-webview.js) */
body.xerost-webview #main-header {
  display: none !important;
}

body.xerost-webview .header-margin {
  margin-top: unset;
}

/* 바텀 네비: 평상시 4열(뒤로 칸 숨김), xerost-webview에서만 5열 + 뒤로 칸 표시 */
#bottom-nav .bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#bottom-nav .bottom-nav-back {
  display: none;
}

body.xerost-webview #bottom-nav .bottom-nav-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.xerost-webview #bottom-nav .bottom-nav-back {
  display: flex !important;
}

/* 홈 인디케이터 영역만큼 바 전체를 위로 올려 탭 영역 정렬 */
#bottom-nav.bottom-nav--safe {
  box-sizing: border-box;
  transform: translateY(calc(env(safe-area-inset-bottom, 0px) * -1));
}

/* 네비를 위로 올린 뒤 남는 하단(물리적 bottom~safe-area 높이)은 흰색으로 채움 (구매 바보다 아래 레이어) */
.bottom-nav-safe-inset-fill {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
  background-color: #fff;
  z-index: 39;
  pointer-events: none;
}

/* 하단 고정 구매/결제 바: bottom-buy-bar-stack.js가 #bottom-nav 상단에 맞춤 (네비·safe-fill 위, 네비 아래) */
.bottom-buy-bar--above-nav {
  bottom: var(--bottom-nav-stack-height, 72px);
  z-index: 48;
}

#detail-scroll-top-btn {
  z-index: 48;
}

@media (max-width: 768px) {
  body.has-bottom-buy-bar {
    padding-bottom: var(--item-detail-bottom-pad, calc(140px + env(safe-area-inset-bottom, 0px))) !important;
  }
}
.backbar-margin {
   margin-top: 45px;
}
.ht-breadcrumb {
    background-color: white;
    /*padding: .2rem .5rem;*/
    position: fixed;
    top: 48px;
    left: 5px;
    right: 0;
    z-index: 9;
}
.scrollbar-hide {
  -ms-overflow-style: none; /* IE */
  scrollbar-width: none;    /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;            /* Chrome, Safari */
}
/* 키오스크 용 */
@media (min-height: 1440px) {
    #languageModal .css-modal-content{
        padding-bottom: 55px;
        position: relative;
    }
    #languageModal .modal-actions{
        position: absolute;
        bottom: 1rem;
    }
}