/* ============================================
   BEAUTYLINK GLOBAL — BRANDS / PRODUCTS CSS
   ============================================ */

/* ============================================
   SHARED: PAGE HERO
   ============================================ */
.page-hero {
    position: relative;
    height: 320px;
    margin-top: 0;
    padding-top: 70px;
    display: flex;
    align-items: flex-end;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.5) 100%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 48px;
}
.page-hero-content h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    margin: 12px 0 8px;
    line-height: 1.2;
}
.page-hero-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}

/* ============================================
   SHARED: BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.breadcrumb a:hover { color: #E8B4A0; }
.breadcrumb .fa-chevron-right { font-size: 9px; }
.breadcrumb span { color: rgba(255,255,255,0.9); }

/* 다크 배경용이 아닌 흰 배경 breadcrumb */
.detail-breadcrumb { background: #F8F5F2; border-bottom: 1px solid #E8E0D8; margin-top: 70px; }
.detail-breadcrumb .container { padding: 14px 24px; }
.detail-breadcrumb .breadcrumb { color: #6B6B6B; }
.detail-breadcrumb .breadcrumb a { color: #6B6B6B; }
.detail-breadcrumb .breadcrumb a:hover { color: #C8956C; }
.detail-breadcrumb .breadcrumb span { color: #2C2C2C; }

/* ============================================
   SHARED: ACTIVE NAV
   ============================================ */
.nav-link.active-nav {
    color: #C8956C !important;
    font-weight: 700;
}

/* ============================================
   SHARED: BADGES & TAGS
   ============================================ */
.pop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg, #FF6B35, #F7C59F);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
}
.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: .5px;
}
.prod-tag {
    display: inline-block;
    background: #F8F5F2;
    color: #6B6B6B;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid #E8E0D8;
}

/* ============================================
   SHARED: EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6B6B6B;
}
.empty-state i { font-size: 48px; color: #E8E0D8; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ============================================
   SHARED: RESULT HEADER
   ============================================ */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E0D8;
}
.result-header p { font-size: 14px; color: #6B6B6B; }
.result-header strong { color: #1A1A1A; }
.view-toggle { display: flex; gap: 6px; }
.view-btn {
    width: 36px; height: 36px;
    border: 1px solid #E8E0D8;
    border-radius: 8px;
    color: #6B6B6B;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
}
.view-btn.active, .view-btn:hover {
    border-color: #C8956C;
    color: #C8956C;
    background: #EDD8C0;
}

/* btn-sm */
.btn-sm { padding: 10px 20px !important; font-size: 13px !important; }

/* ============================================
   BRANDS PAGE — FILTER BAR
   ============================================ */
.brands-page { padding: 56px 0 80px; }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 50px;
    padding: 10px 18px;
    min-width: 200px;
    flex: 0 0 auto;
}
.search-wrap i { color: #6B6B6B; font-size: 14px; }
.search-wrap input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #2C2C2C;
    width: 160px;
    background: transparent;
}

.tab-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #E8E0D8;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #6B6B6B;
    background: #fff;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.tab-btn:hover { border-color: #C8956C; color: #C8956C; }
.tab-btn.active {
    border-color: #C8956C;
    background: #C8956C;
    color: #fff;
}
.tab-btn .tab-count {
    background: rgba(255,255,255,0.25);
    padding: 1px 7px;
    border-radius: 50px;
    font-size: 11px;
}
.tab-btn:not(.active) .tab-count { background: #F8F5F2; color: #999; }

.sort-wrap select {
    padding: 10px 16px;
    border: 1px solid #E8E0D8;
    border-radius: 50px;
    font-size: 13px;
    color: #2C2C2C;
    background: #fff;
    outline: none;
    cursor: pointer;
}

/* ============================================
   BRANDS PAGE — GALLERY GRID
   ============================================ */
.brand-gallery[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.brand-gallery[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 그리드 카드 */
.brand-gallery-card {
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s;
}
.brand-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
    border-color: #C8956C;
}

.bgc-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.bgc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.brand-gallery-card:hover .bgc-img-wrap img { transform: scale(1.08); }

.bgc-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.brand-gallery-card:hover .bgc-overlay { opacity: 1; }
.bgc-view-btn {
    background: #C8956C; color: #fff;
    border: none; border-radius: 50px;
    padding: 10px 22px; font-size: 13px; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background .2s;
}
.bgc-view-btn:hover { background: #A67548; }

.bgc-cat {
    position: absolute; bottom: 12px; left: 12px;
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
    letter-spacing: .5px;
}
.brand-gallery-card .pop-badge {
    position: absolute; top: 12px; right: 12px;
}

.bgc-body { padding: 18px; }
.bgc-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 8px;
}
.bgc-name { font-size: 16px; font-weight: 700; color: #1A1A1A; margin-bottom: 2px; }
.bgc-name-en { font-size: 11px; color: #6B6B6B; font-family: 'Inter', sans-serif; }
.bgc-stars { font-size: 13px; color: #C8956C; letter-spacing: 1px; }
.bgc-desc { font-size: 12px; color: #6B6B6B; margin-bottom: 14px; line-height: 1.5; }
.bgc-footer {
    display: flex; justify-content: space-between; align-items: center;
}
.bgc-stats {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.bgc-stats span {
    font-size: 11px; color: #999;
    display: flex; align-items: center; gap: 4px;
}
.bgc-btn {
    width: 32px; height: 32px;
    background: #F8F5F2; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #C8956C; font-size: 12px;
    transition: all .2s;
}
.brand-gallery-card:hover .bgc-btn { background: #C8956C; color: #fff; }

/* 리스트 아이템 */
.brand-item-list {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all .3s;
}
.brand-item-list:hover {
    border-color: #C8956C;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateX(4px);
}
.bil-img {
    width: 100px; height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.bil-img img { width: 100%; height: 100%; object-fit: cover; }
.bil-info { flex: 1; }
.bil-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bil-tag {
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
}
.bil-cat {
    font-size: 11px; color: #999;
    display: flex; align-items: center; gap: 4px;
}
.bil-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.bil-info h3 em { font-style: normal; font-size: 13px; color: #999; margin-left: 6px; }
.bil-info p { font-size: 13px; color: #6B6B6B; margin-bottom: 10px; line-height: 1.5; }
.bil-meta { display: flex; gap: 16px; font-size: 12px; color: #999; flex-wrap: wrap; }
.bil-action { flex-shrink: 0; }

/* ============================================
   BRANDS PAGE — CTA
   ============================================ */
.brands-cta-section { padding: 40px 0 80px; background: #F8F5F2; }
.cta-box {
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    border-radius: 20px;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.cta-text h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cta-text p { font-size: 14px; color: rgba(255,255,255,0.6); }
.cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================
   PRODUCTS PAGE — BRAND HERO
   ============================================ */
.brand-detail-hero {
    position: relative;
    height: 340px;
    margin-top: 0;
    padding-top: 70px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
}
.bdh-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.bdh-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.55) 100%);
}
.bdh-content { position: relative; z-index: 2; }
.bdh-info {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}
.bdh-logo-wrap {
    width: 96px; height: 96px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    background: #fff;
}
.bdh-logo-img { width: 100%; height: 100%; object-fit: cover; }
.bdh-text { flex: 1; }
.bdh-badges { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bdh-tag {
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px; letter-spacing: .5px;
}
.bdh-text h1 {
    font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #fff;
    margin-bottom: 8px; line-height: 1.2;
}
.bdh-text h1 em { font-style: normal; font-size: 0.6em; color: rgba(255,255,255,0.55); margin-left: 8px; }
.bdh-text p { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 12px; max-width: 500px; }
.bdh-meta { display: flex; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.55); flex-wrap: wrap; }
.bdh-meta span { display: flex; align-items: center; gap: 5px; }

/* ============================================
   PRODUCTS PAGE — FILTER BAR
   ============================================ */
.products-page { padding: 56px 0 80px; }

.products-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.pf-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #E8E0D8;
    border-radius: 50px; padding: 10px 18px;
    min-width: 200px;
}
.pf-search i { color: #6B6B6B; font-size: 14px; }
.pf-search input {
    border: none; outline: none;
    font-size: 14px; color: #2C2C2C;
    width: 140px; background: transparent;
}
.pf-cats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.pf-cat-btn {
    padding: 8px 16px;
    border: 1px solid #E8E0D8;
    border-radius: 50px;
    font-size: 12px; font-weight: 600;
    color: #6B6B6B; background: #fff;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: 5px;
}
.pf-cat-btn:hover { border-color: #C8956C; color: #C8956C; }
.pf-cat-btn.active { border-color: #C8956C; background: #C8956C; color: #fff; }
.pf-cat-btn .tab-count { font-size: 10px; background: rgba(255,255,255,0.3); padding: 1px 6px; border-radius: 50px; }
.pf-cat-btn:not(.active) .tab-count { background: #F8F5F2; color: #999; }
.pf-sort select {
    padding: 10px 16px;
    border: 1px solid #E8E0D8; border-radius: 50px;
    font-size: 13px; color: #2C2C2C; background: #fff;
    outline: none; cursor: pointer;
}

/* ============================================
   PRODUCTS PAGE — PRODUCT GALLERY
   ============================================ */
.product-gallery[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.product-gallery[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

/* 그리드 제품 카드 */
.product-card {
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: #C8956C;
}
.pc-img-wrap {
    position: relative; height: 200px; overflow: hidden;
}
.pc-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s;
}
.product-card:hover .pc-img-wrap img { transform: scale(1.07); }
.pc-hover-btns {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.42);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.product-card:hover .pc-hover-btns { opacity: 1; }
.pc-quick-btn {
    background: #C8956C; color: #fff;
    border: none; border-radius: 50px;
    padding: 10px 22px; font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.pc-body { padding: 16px; }
.pc-cat { font-size: 11px; color: #C8956C; font-weight: 600; letter-spacing: .5px; margin-bottom: 6px; display: block; }
.pc-name { font-size: 14px; font-weight: 700; color: #1A1A1A; margin-bottom: 2px; line-height: 1.4; }
.pc-name-en { font-size: 11px; color: #999; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.pc-stars { font-size: 12px; color: #C8956C; display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.pc-review-cnt { font-size: 11px; color: #999; margin-left: 4px; }
.pc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-price-row { display: flex; justify-content: space-between; align-items: center; }
.pc-price-krw { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.pc-price-thb { font-size: 12px; color: #999; display: block; }
.pc-detail-btn {
    width: 32px; height: 32px;
    background: #F8F5F2; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #C8956C; font-size: 12px; cursor: pointer;
    transition: all .2s;
}
.product-card:hover .pc-detail-btn { background: #C8956C; color: #fff; }

/* 리스트 제품 아이템 */
.product-item-list {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: all .3s;
    align-items: center;
}
.product-item-list:hover {
    border-color: #C8956C;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.pil-img {
    width: 88px; height: 88px;
    border-radius: 10px; overflow: hidden;
    flex-shrink: 0; position: relative;
}
.pil-img img { width: 100%; height: 100%; object-fit: cover; }
.pil-info { flex: 1; }
.pil-cat { font-size: 10px; color: #C8956C; font-weight: 700; letter-spacing: .5px; margin-bottom: 4px; }
.pil-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.pil-en { font-size: 11px; color: #999; margin-bottom: 6px; }
.pil-desc { font-size: 12px; color: #6B6B6B; margin-bottom: 8px; }
.pil-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.pil-meta { display: flex; gap: 12px; font-size: 11px; color: #999; align-items: center; }
.pil-stars { display: flex; align-items: center; gap: 2px; }
.pil-action { flex-shrink: 0; text-align: right; }
.pil-price { margin-bottom: 10px; }
.price-krw { font-size: 17px; font-weight: 700; color: #1A1A1A; display: block; }
.price-thb { font-size: 12px; color: #999; }

/* ============================================
   PRODUCTS PAGE — OTHER BRANDS
   ============================================ */
.other-brands-section { background: #F8F5F2; padding: 48px 0; }
.other-brands-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.other-brands-track {
    display: flex; gap: 16px; overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.other-brands-track::-webkit-scrollbar { display: none; }
.ob-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff;
    border: 1px solid #E8E0D8;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .25s;
}
.ob-card:hover { border-color: #C8956C; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ob-img { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; }
.ob-img img { width: 100%; height: 100%; object-fit: cover; }
.ob-info strong { display: block; font-size: 13px; font-weight: 700; }
.ob-info span { font-size: 11px; color: #999; font-family: 'Inter', sans-serif; }

/* ============================================
   PRODUCT DETAIL — MAIN
   ============================================ */
.detail-main { padding: 56px 0 40px; background: #fff; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 이미지 갤러리 */
.detail-gallery { position: sticky; top: 100px; }
.dg-main-img {
    border-radius: 20px;
    overflow: hidden;
    background: #F8F5F2;
    position: relative;
    margin-bottom: 12px;
    height: 420px;
}
.dg-main-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .25s;
}
.dg-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
}
.dg-badge span {
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 12px; border-radius: 50px;
    letter-spacing: .5px;
}
.dg-thumbs {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.dg-thumb {
    border-radius: 10px;
    overflow: hidden;
    height: 72px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
}
.dg-thumb.active, .dg-thumb:hover { border-color: #C8956C; }
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dg-actions { display: flex; gap: 10px; }
.dg-act-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #E8E0D8;
    border-radius: 10px;
    font-size: 13px; color: #6B6B6B;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all .2s;
}
.dg-act-btn:hover { border-color: #C8956C; color: #C8956C; }

/* 제품 정보 */
.detail-info {}
.di-brand-link { display: none; margin-bottom: 16px; }
.di-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F8F5F2;
    border: 1px solid #E8E0D8;
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2C2C2C;
    transition: all .2s;
}
.di-brand-chip:hover { border-color: #C8956C; color: #C8956C; }
.di-brand-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.di-brand-chip em { font-style: normal; font-size: 11px; color: #999; margin-left: 2px; }
.di-brand-chip .fa-external-link-alt { font-size: 10px; color: #999; }

.di-top-badges { display: none; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.di-badge {
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 50px; letter-spacing: .5px;
}
.di-cat-pill {
    background: #F8F5F2; border: 1px solid #E8E0D8;
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 50px; color: #6B6B6B;
}

.di-name {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800; color: #1A1A1A;
    line-height: 1.3; margin-bottom: 4px;
}
.di-name-en {
    font-size: 14px; color: #999;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.di-rating {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E8E0D8;
}
.dir-stars { display: flex; gap: 2px; }
.dir-score { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.dir-count { font-size: 13px; color: #999; }

/* 가격 박스 */
.di-price-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #F8F5F2;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.dipb-krw .dipb-label, .dipb-thb .dipb-label {
    font-size: 11px; color: #999; font-weight: 600;
    letter-spacing: .5px; text-transform: uppercase;
    display: block; margin-bottom: 4px;
}
.dipb-krw strong { font-size: 22px; font-weight: 800; color: #1A1A1A; }
.dipb-thb strong { font-size: 22px; font-weight: 800; color: #C8956C; }
.dipb-thb small { font-size: 11px; color: #999; display: block; }
.dipb-divider { width: 1px; height: 40px; background: #E8E0D8; }
.dipb-bulk {
    width: 100%; font-size: 12px; color: #999;
    display: flex; align-items: center; gap: 6px;
    padding-top: 12px; border-top: 1px solid #E8E0D8;
}

/* 주요 특징 */
.di-highlights { margin-bottom: 20px; }
.di-highlights h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.dih-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dih-item {
    display: flex; align-items: center; gap: 10px;
    background: #F8F5F2; border-radius: 10px; padding: 12px;
}
.dih-item i { color: #C8956C; font-size: 16px; width: 20px; text-align: center; }
.dih-item strong { font-size: 11px; color: #999; display: block; font-weight: 600; }
.dih-item span { font-size: 13px; font-weight: 600; color: #1A1A1A; }

/* 스펙 테이블 */
.di-specs { margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
    padding: 10px 12px; font-size: 13px;
    border-bottom: 1px solid #F0EBE5;
    text-align: left;
}
.spec-table th { color: #999; font-weight: 600; width: 120px; }
.spec-table td { color: #2C2C2C; font-weight: 500; }

/* 수량 */
.di-quantity { margin-bottom: 20px; }
.di-quantity label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 10px; }
.qty-control {
    display: inline-flex; align-items: center;
    border: 1px solid #E8E0D8; border-radius: 10px;
    overflow: hidden;
}
.qty-btn {
    width: 40px; height: 40px;
    background: #F8F5F2; color: #6B6B6B;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer;
    transition: all .2s;
}
.qty-btn:hover { background: #C8956C; color: #fff; }
.qty-control input {
    width: 60px; height: 40px;
    text-align: center;
    border: none; border-left: 1px solid #E8E0D8; border-right: 1px solid #E8E0D8;
    font-size: 15px; font-weight: 700; outline: none;
}
.qty-hint { font-size: 11px; color: #999; margin-top: 6px; display: block; }

/* 구매 버튼 */
.di-buy-section {
    display: flex; gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}
.btn-buy-main {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #C8956C, #A67548);
    color: #fff;
    border: none; border-radius: 14px;
    padding: 18px 24px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 6px 24px rgba(200,149,108,0.4);
    font-family: 'Noto Sans KR', sans-serif;
}
.btn-buy-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(200,149,108,0.55);
    background: linear-gradient(135deg, #A67548, #C8956C);
}
.btn-buy-inquiry {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff;
    color: #2C2C2C;
    border: 2px solid #E8E0D8;
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all .3s;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
}
.btn-buy-inquiry:hover { border-color: #C8956C; color: #C8956C; }

/* 구매 안내 */
.di-buy-info {
    background: #F8F5F2;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.di-buy-info-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #6B6B6B;
}
.di-buy-info-item i { color: #C8956C; width: 16px; text-align: center; }

/* ============================================
   PRODUCT DETAIL — TABS
   ============================================ */
.detail-tabs-section { background: #F8F5F2; padding: 0 0 60px; }
.detail-tabs {
    display: flex; gap: 0;
    border-bottom: 2px solid #E8E0D8;
    background: #fff;
    padding: 0 24px;
}
.dt-tab {
    padding: 18px 28px;
    font-size: 14px; font-weight: 600;
    color: #6B6B6B; background: none;
    border: none; cursor: pointer;
    position: relative;
    transition: all .2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.dt-tab.active { color: #C8956C; border-bottom-color: #C8956C; }
.dt-tab:hover { color: #C8956C; }

.dt-panel { display: none; padding: 48px 0; }
.dt-panel.active { display: block; }

/* 제품 소개 탭 */
.dt-desc-grid {
    display: grid;
    gap: 60px;
    align-items: center;
}
.dt-main-desc {
    font-size: 18px; font-weight: 500;
    line-height: 1.7; color: #1A1A1A;
    margin-bottom: 20px;
}
.dt-desc-text p { font-size: 14px; color: #6B6B6B; line-height: 1.8; margin-bottom: 20px; }
.dt-feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.dt-feature-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500;
}
.dt-feature-item .fa-check-circle { color: #C8956C; }
.dt-award-box {
    display: flex; gap: 14px;
    background: linear-gradient(135deg, #EDD8C0, #F8F0E8);
    border-radius: 12px; padding: 16px 20px;
}
.dt-award-box .fa-award { font-size: 28px; color: #C8956C; }
.dt-award-box strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.dt-award-box p { font-size: 13px; color: #6B6B6B; margin: 0; }
.dt-desc-img { border-radius: 20px; overflow: hidden;}
.dt-desc-img img { width: 100%; height: 100%; object-fit: cover; }

/* 성분 탭 */
.ingredients-wrap { max-width: 900px; }
.ing-highlight-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-bottom: 40px;
}
.ing-card {
    background: #fff; border: 1px solid #E8E0D8;
    border-radius: 14px; padding: 24px;
    text-align: center;
}
.ing-icon {
    width: 48px; height: 48px;
    background: #EDD8C0; color: #C8956C;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}
.ing-card h5 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ing-card p { font-size: 12px; color: #6B6B6B; }
.ing-full { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 24px; border: 1px solid #E8E0D8; }
.ing-full h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ing-full-text { font-size: 12px; color: #6B6B6B; line-height: 1.9; }
.ing-free-from h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ing-free-from .fa-ban { color: #27AE60; }
.ing-free-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.free-tag {
    background: #EAFAF1; color: #27AE60;
    border: 1px solid #A9DFBF;
    font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 50px;
}

/* 사용 방법 탭 */
.howto-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-bottom: 28px;
}
.howto-step-card {
    background: #fff; border: 1px solid #E8E0D8;
    border-radius: 16px; padding: 24px 20px;
    text-align: center;
    position: relative;
}
.hs-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700;
    color: #C8956C; letter-spacing: 1px;
    margin-bottom: 12px;
}
.hs-icon {
    width: 52px; height: 52px;
    background: #EDD8C0; color: #C8956C;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin: 0 auto 14px;
}
.howto-step-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.howto-step-card p { font-size: 12px; color: #6B6B6B; line-height: 1.6; }
.howto-tip-box {
    background: linear-gradient(135deg, #EDD8C0, #F8F0E8);
    border-radius: 14px; padding: 20px 24px;
    display: flex; gap: 14px; align-items: flex-start;
}
.howto-tip-box .fa-lightbulb { font-size: 22px; color: #C8956C; }
.howto-tip-box strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.howto-tip-box p { font-size: 13px; color: #6B6B6B; margin: 0; }

/* 리뷰 탭 */
.reviews-summary {
    display: flex; gap: 48px;
    background: #fff; border-radius: 16px;
    padding: 32px; margin-bottom: 28px;
    border: 1px solid #E8E0D8;
    align-items: center;
}
.rs-score { text-align: center; }
.rs-big { font-size: 56px; font-weight: 800; color: #C8956C; line-height: 1; }
.rs-stars { font-size: 18px; color: #C8956C; display: flex; gap: 2px; justify-content: center; margin: 8px 0; }
.rs-total { font-size: 13px; color: #999; }
.rs-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rs-bar-row { display: flex; align-items: center; gap: 12px; }
.rs-bar-row > span:first-child { font-size: 12px; color: #6B6B6B; width: 28px; }
.rs-bar-row > span:last-child { font-size: 12px; color: #6B6B6B; width: 36px; }
.rs-bar-track { flex: 1; height: 6px; background: #E8E0D8; border-radius: 3px; overflow: hidden; }
.rs-bar-fill { height: 100%; background: #C8956C; border-radius: 3px; }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
    background: #fff; border: 1px solid #E8E0D8;
    border-radius: 14px; padding: 24px;
}
.rc-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.rc-avatar {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #C8956C, #E8B4A0);
    color: #fff; font-weight: 700; font-size: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rc-top strong { font-size: 14px; font-weight: 700; }
.rc-top span { font-size: 12px; color: #999; margin-left: 4px; }
.rc-stars { display: flex; gap: 2px; margin-top: 2px; }
.rc-date { font-size: 12px; color: #999; margin-left: auto; }
.review-card > p { font-size: 14px; color: #2C2C2C; line-height: 1.7; margin-bottom: 12px; }
.rc-helpful { font-size: 12px; color: #999; display: flex; align-items: center; gap: 6px; }

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products-section { background: #fff; padding: 48px 0; }
.rp-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.related-products {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rp-card {
    border: 1px solid #E8E0D8; border-radius: 14px;
    overflow: hidden; cursor: pointer; transition: all .3s;
}
.rp-card:hover { border-color: #C8956C; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.rpc-img { position: relative; height: 160px; overflow: hidden; }
.rpc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rp-card:hover .rpc-img img { transform: scale(1.06); }
.rpc-info { padding: 14px; }
.rpc-cat { font-size: 10px; color: #C8956C; font-weight: 700; letter-spacing: .5px; margin-bottom: 4px; }
.rpc-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.rpc-price { font-size: 14px; font-weight: 700; }
.rpc-price span { font-size: 12px; color: #999; margin-left: 6px; }

/* ============================================
   INQUIRY MODAL
   ============================================ */
.inquiry-modal {
    position: fixed; inset: 0;
    z-index: 2000;
    display: none;
    align-items: center; justify-content: center;
}
.inquiry-modal.open { display: flex; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-box {
    position: relative; z-index: 2;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 90%; max-width: 580px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: #F8F5F2; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #6B6B6B; font-size: 14px;
    cursor: pointer; transition: all .2s;
}
.modal-close:hover { background: #E8E0D8; }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header i { font-size: 36px; color: #C8956C; display: block; margin-bottom: 12px; }
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-header p { font-size: 13px; color: #C8956C; font-weight: 600; margin-top: 4px; }
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mf-group label { font-size: 13px; font-weight: 600; color: #2C2C2C; }
.mf-group input, .mf-group select, .mf-group textarea {
    padding: 11px 14px;
    border: 1px solid #E8E0D8; border-radius: 10px;
    font-size: 14px; color: #2C2C2C;
    outline: none; transition: border-color .2s;
    font-family: 'Noto Sans KR', sans-serif;
}
.mf-group input:focus, .mf-group select:focus, .mf-group textarea:focus {
    border-color: #C8956C;
    box-shadow: 0 0 0 3px rgba(200,149,108,0.12);
}
.modal-buy-btns { margin-bottom: 20px; }
.modal-sns-contact { text-align: center; }
.modal-sns-contact p { font-size: 12px; color: #999; margin-bottom: 10px; }
.modal-sns-contact { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.modal-line-btn, .modal-kakao-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 50px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.modal-line-btn { background: #00B900; color: #fff; }
.modal-line-btn:hover { background: #009900; }
.modal-kakao-btn { background: #FEE500; color: #3A1D1D; }
.modal-kakao-btn:hover { background: #FFDA00; }

.modal-success {
    text-align: center; padding: 40px 20px;
}
.modal-success i { font-size: 60px; color: #C8956C; display: block; margin-bottom: 16px; }
.modal-success h4 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal-success p { color: #6B6B6B; margin-bottom: 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .brand-gallery[data-view="grid"] { grid-template-columns: repeat(3, 1fr); }
    .product-gallery[data-view="grid"] { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .detail-gallery { position: static; }
    .dt-desc-grid { grid-template-columns: 1fr; gap: 32px; }
    .howto-grid { grid-template-columns: repeat(2, 1fr); }
    .related-products { grid-template-columns: repeat(3, 1fr); }
    .cta-box { flex-direction: column; text-align: center; padding: 40px; }
}

@media (max-width: 768px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-wrap { width: 100%; }
    .search-wrap input { width: 100%; }
    .brand-gallery[data-view="grid"] { grid-template-columns: repeat(2, 1fr); }
    .product-gallery[data-view="grid"] { grid-template-columns: repeat(2, 1fr); }
    .brand-item-list { flex-direction: column; }
    .product-item-list { flex-direction: column; }
    .pil-action { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .bil-action { width: 100%; }
    .bdh-info { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ing-highlight-grid { grid-template-columns: 1fr 1fr; }
    .howto-grid { grid-template-columns: 1fr 1fr; }
    .related-products { grid-template-columns: repeat(2, 1fr); }
    .reviews-summary { flex-direction: column; gap: 24px; }
    .dg-thumbs { grid-template-columns: repeat(4, 1fr); }
    .di-buy-section { flex-direction: column; }
    .mf-row { grid-template-columns: 1fr; }
    .modal-box { padding: 24px; }
    .detail-tabs { overflow-x: auto; }
    .dt-tab { white-space: nowrap; padding: 16px 18px; }
    .di-price-box { flex-direction: column; gap: 12px; }
    .dipb-divider { width: 100%; height: 1px; }
}

@media (max-width: 480px) {
    .brand-gallery[data-view="grid"] { grid-template-columns: 1fr; }
    .product-gallery[data-view="grid"] { grid-template-columns: 1fr; }
    .related-products { grid-template-columns: 1fr 1fr; }
    .ing-highlight-grid { grid-template-columns: 1fr; }
    .howto-grid { grid-template-columns: 1fr; }
    .page-hero { height: 240px; }
}

/* ── 브랜드 카드 대표제품 hover 프리뷰 ── */
.bgc-product-preview {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}
.bgc-product-preview.visible {
    opacity: 1;
}
.bgc-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bgc-logo-img {
    transition: opacity 0.35s ease;
}
.brand-gallery-card:hover .bgc-logo-img {
    opacity: 0;
}
.bgc-overlay {
    z-index: 2;
}