@import url('/css/font.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, input, select, textarea {
    font-family: inherit;
}

body {
    font-family: 'UMOFont', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    background: #fff;
}

button, input, select, textarea {
    font-family: inherit;
}

#wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    font-family: 'DailyMoody', sans-serif;
    font-size: 16px;
    font-weight: normal;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    /* Step 2: iPhone 노치/Dynamic Island 회피 */
    padding-top: var(--mtv-safe-top, 0px);
}

.header-spacer {
    /* Step 2: 헤더 콘텐츠 57px + safe-area-top 만큼 본문 밀어내기 */
    height: calc(57px + var(--mtv-safe-top, 0px));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
}

.header-left {
    flex: 0 0 auto;
}

.logo {
    display: block;
}

.logo img {
    height: 20px;
    width: auto;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #352f2f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.6;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'DailyMoody', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #352f2f;
}

.header-btn {
    background: none;
    border: none;
    font-family: 'DailyMoody', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #352f2f;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.header-btn:hover {
    opacity: 0.6;
}

/* ===================================================
   Hamburger Button (모바일 전용, 데스크탑에서 숨김)
   =================================================== */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    /* Step 2: 터치 영역 44x44 보장 (iOS HIG / Material) */
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #111;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================================================
   Mobile Menu Overlay
   =================================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1050;
    flex-direction: column;
    padding-top: 56px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.mobile-menu-overlay.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 48px 32px 40px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-family: 'DailyMoody', sans-serif;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #111;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mobile-nav-link:hover {
    opacity: 0.4;
}

.mobile-menu-bottom {
    display: flex;
    gap: 28px;
    padding-bottom: 8px;
}

.mobile-nav-sub {
    font-family: 'DailyMoody', sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #555;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mobile-nav-sub:hover {
    opacity: 0.5;
}

.next-product {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #666;
    cursor: pointer;
}

.next-product:hover {
    opacity: 0.6;
}

.sub-menu {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    padding: 15px 20px;
}

.sub-menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.sub-menu-link {
    text-decoration: none;
    color: #666;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.sub-menu-link:hover,
.sub-menu-link.active {
    color: #000;
}

.main {
    flex: 1;
    margin-top: 5px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.hero {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: calc(100vh - 57px);
    height: calc(100dvh - 57px);
    padding: 30px 20px;
    gap: 20px;
    overflow: hidden;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.hero-main-img {
    height: 100%;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.hero-dot-logo {
    width: clamp(280px, 55vw, 520px);
    height: auto;
}

.hero-tagline {
    font-family: 'DailyMoody', sans-serif;
    font-size: clamp(13px, 2vw, 18px);
    letter-spacing: 6px;
    color: #111;
    font-weight: normal;
}

.hero-desc {
    font-size: clamp(13px, 1.4vw, 16px);
    color: #555;
    line-height: 2;
    letter-spacing: 0.5px;
    font-weight: normal;
}

.hero-cta {
    display: inline-block;
    padding: 14px 48px;
    border: 1.5px solid #111;
    color: #111;
    text-decoration: none;
    font-family: 'DailyMoody', sans-serif;
    font-size: 15px;
    letter-spacing: 4px;
    font-weight: normal;
    transition: background 0.25s, color 0.25s;
}

.hero-cta:hover {
    background: #111;
    color: #fff;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    object-fit: contain;
}

.main-list {
    flex: 1;
    margin-top: 112px;
    padding: 30px 20px 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-card:hover {
    opacity: 0.7;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-price {
    font-size: 11px;
    color: #666;
}

.main-detail {
    flex: 1;
    margin-top: 56px;
    padding: 30px 20px 60px;
}

.detail-container {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.detail-left {
    flex: 0 0 600px;
    overflow-y: auto;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-image {
    width: 100%;
    background: #f5f5f5;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-right {
    flex: 0 0 400px;
}

.detail-info-sticky {
    position: sticky;
    top: 86px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 126px);
    min-height: calc(100dvh - 126px);
}

.product-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 14px;
    margin-bottom: 20px;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-label {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-color {
    margin-bottom: 20px;
}

.color-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-option:hover,
.color-option.active {
    border-color: #000;
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-size {
    margin-bottom: 20px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover,
.size-option.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.shipping-info {
    font-size: 11px;
    color: #666;
    margin-bottom: 20px;
}

.product-details {
    border-top: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.detail-section {
    border-bottom: 1px solid #e5e5e5;
}

.detail-toggle {
    width: 100%;
    padding: 15px 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-toggle:hover {
    opacity: 0.6;
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 16px;
}

.detail-toggle.active .toggle-icon {
    transform: rotate(90deg);
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.detail-content.active {
    max-height: 500px;
    padding-bottom: 15px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    font-size: 11px;
    line-height: 1.8;
    color: #666;
    padding-left: 12px;
    position: relative;
}

.detail-list li::before {
    content: '-';
    position: absolute;
    left: 0;
}

.size-notice {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.size-info p {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
}

.shipping-content p {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
}

.shipping-content strong {
    color: #000;
}

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
}

.image-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-images {
    width: 100%;
}

.lightbox-image {
    margin-bottom: 0;
    background: #f5f5f5;
    width: 100%;
}

.lightbox-image img {
    width: 100%;
    height: auto;
    display: block;
}

.add-to-bag-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.add-to-bag-btn:hover {
    background: #333;
}

.add-to-bag-btn.show-message {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.cart-added-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 350px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.cart-added-popup.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.popup-close:hover {
    color: #000;
}

.popup-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.popup-product {
    padding: 20px;
    display: flex;
    gap: 15px;
}

.popup-product-image {
    flex: 0 0 80px;
    background: #f5f5f5;
}

.popup-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-product-info {
    flex: 1;
}

.popup-product-name {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
}

.popup-product-options {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.popup-product-price {
    font-size: 12px;
    font-weight: 700;
}

.popup-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-btn-view {
    background: #000;
    color: #fff;
}

.popup-btn-view:hover {
    background: #333;
}

.popup-btn-checkout {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.popup-btn-checkout:hover {
    background: #f5f5f5;
}

.bag-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    background: #fff;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bag-sidebar.show {
    transform: translateX(0);
}

.bag-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bag-sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.bag-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bag-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.bag-sidebar-header h2 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.bag-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.bag-sidebar-close:hover {
    color: #000;
}

.bag-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
    align-items: center;
}

.sidebar-item.updating .item-loading-mask {
    opacity: 1;
    visibility: visible;
}

.remove-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.remove-item-btn:hover {
    color: #000;
}

.item-loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1;
}

.sidebar-item-image {
    flex: 0 0 80px;
    background: #f5f5f5;
}

.sidebar-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-item-info {
    flex: 1;
}

.sidebar-item-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.sidebar-item-name {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
}

.sidebar-item-options {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.sidebar-item-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}
.sidebar-price-now {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
.sidebar-price-original {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
}
.sidebar-discount-rate {
    font-size: 11px;
    font-weight: 700;
    color: #e74c3c;
}

.bag-sidebar-footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-buttons {
    display: flex;
    gap: 10px;
}

.sidebar-continue-btn {
    flex: 1;
    padding: 12px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-continue-btn:hover {
    background: #f5f5f5;
}

.sidebar-checkout-btn {
    flex: 1;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-checkout-btn:hover {
    background: #333;
}

.main-bag {
    flex: 1;
    margin-top: 56px;
    padding: 40px 20px 60px;
}

.bag-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bag-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-align: center;
}

.bag-content {
    display: flex;
    gap: 40px;
}

.bag-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bag-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.bag-item-image {
    flex: 0 0 120px;
    background: #f5f5f5;
}

.bag-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bag-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bag-item-name {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bag-item-options {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.bag-price-original {
    text-decoration: line-through;
    color: #bbb;
    font-size: 12px;
    margin-right: 2px;
}

.bag-price-discount {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
}

.bag-price-final {
    font-weight: 600;
}

.bag-item-price {
    font-size: 12px;
    color: #000;
}

.bag-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    font-size: 12px;
    border: 1px solid #000;
    background: transparent;
    padding: 0;
    outline: none;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #000;
}

.bag-item-total {
    flex: 0 0 100px;
    text-align: right;
    font-size: 14px;
}

.bag-summary {
    flex: 0 0 350px;
    border: 1px solid #e5e5e5;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 86px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 15px;
}

.summary-row.total {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.checkout-btn:hover {
    background: #333;
}

.bag-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.bag-empty p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.continue-shopping:hover {
    background: #333;
}

.footer {
    background: #fff;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
}

.footer-newsletter {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-newsletter:hover {
    opacity: 0.6;
}

.footer-brand {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
}

.footer-policy-wrapper {
    border-top: 1px solid #e5e5e5;
    padding: 12px 20px;
    text-align: center;
}

.footer-policy-link {
    font-size: 11px;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.footer-policy-link--bold {
    font-weight: 700;
}

.footer-policy-link:hover {
    opacity: 0.5;
}

.footer-policy-sep {
    font-size: 11px;
    color: #ccc;
    margin: 0 10px;
}

.footer-info-wrapper {
    padding: 8px 20px 14px;
    max-width: 1400px;
    margin: 0 auto;
    /* Step 2: 하단 safe-area 보정 (iPhone 홈 인디케이터) */
    padding-bottom: calc(14px + var(--mtv-safe-bottom, 0px));
}

.footer-info {
    font-size: 10px;
    line-height: 1.4;
    color: #000000;
    text-align: center;
    /* Step 2: 한국어 단어 단위 줄바꿈 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Step 2: 모바일 footer 정책 영역 줄바꿈 허용 */
@media (max-width: 480px) {
    .footer-policy-wrapper {
        padding: 12px 14px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 0;
    }
    .footer-policy-link {
        padding: 6px 0;
        min-height: var(--mtv-touch-min);
        display: inline-flex;
        align-items: center;
    }
    .footer-policy-sep {
        margin: 0 8px;
    }
    .footer-info-wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }
    .footer-info {
        font-size: 9px;
        text-align: left;
    }
}

.footer-biz-link {
    color: #999;
    text-decoration: underline;
}

.footer-biz-link:hover {
    color: #666;
}

.admin-link-inline {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-link-inline:hover {
    color: #666;
}

.main-checkout {
    flex: 1;
    margin-top: 56px;
    padding: 40px 20px 60px;
    background: #fafafa;
}

.checkout-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-left {
    flex: 1;
    max-width: 600px;
}

.checkout-right {
    flex: 0 0 400px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.checkout-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    font-size: 12px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #000;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-input {
    flex: 1;
}

.shipping-method {
    padding: 15px;
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
}

.radio-label span {
    font-size: 12px;
}

.payment-notice {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-method-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-btn:hover {
    border-color: #000;
}

.payment-method-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.payment-info {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.payment-info p {
    font-size: 11px;
    color: #666;
}

.complete-order-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.complete-order-btn:hover {
    background: #333;
}

.order-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    position: sticky;
    top: 57px;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item-image {
    flex: 0 0 60px;
    background: #f5f5f5;
}

.summary-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 5px;
}

.summary-item-options {
    font-size: 10px;
    color: #666;
}

.summary-item-price {
    font-size: 11px;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 14px;
    font-weight: 700;
    margin-top: 15px;
}

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

    .detail-container {
        flex-direction: column;
        align-items: center;
    }

    .detail-left {
        flex: 1;
        width: 100%;
        max-width: 600px;
    }

    .detail-right {
        position: static;
        flex: 1;
        width: 100%;
        max-width: 600px;
        height: auto;
    }

    .detail-info-sticky {
        min-height: auto;
    }

    .checkout-container {
        flex-direction: column;
    }

    .checkout-right {
        flex: 1;
    }

    .order-summary {
        position: static;
    }
}

/* Nav Splash Overlay */
.nav-splash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-splash-overlay.open {
    display: flex;
    animation: nav-splash-reveal 0.25s ease forwards;
}
@keyframes nav-splash-reveal {
    from { opacity: 0.65; }
    to   { opacity: 1; }
}

.nav-splash-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.4);
}

.nav-splash-overlay .splash-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: dgFadeIn 0.4s ease;
}

.nav-splash-overlay .splash-logo {
    font-family: 'DailyMoody', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 12px;
    margin-bottom: 8px;
}

.nav-splash-overlay .splash-sub {
    font-family: 'DailyMoody', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 6px;
}

/* ===================================================
   Responsive — 768px 이하 햄버거 전환
   =================================================== */

@media (max-width: 768px) {

    /* 데스크탑 nav, 우측 버튼들 숨김 */
    .header-center   { display: none; }
    .header-right    { display: none; }

    /* 햄버거 버튼 표시 */
    .hamburger-btn   { display: flex; }

    /* 나머지 기존 모바일 스타일 */
    .main            { padding: 20px 10px; }
    .main-list       { padding: 20px 15px 40px; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-detail     { padding: 20px 15px 40px; }
    .detail-container { gap: 20px; }

    .bag-content     { flex-direction: column; }
    .bag-summary     { position: static; flex: 1; }
    .bag-item        { flex-direction: column; }
    .bag-item-total  { text-align: left; }

    .cart-added-popup { width: calc(100% - 40px); right: 20px; }
    .bag-sidebar     { width: 100%; }
    .add-to-bag-btn  { font-size: 11px; padding: 12px; }

    .footer-row          { padding: 16px 15px; }
    .footer-info-wrapper { padding: 16px 15px; }
    .footer-info         { font-size: 9px; }
}

/* ===================================================
   Live Chat — Floating Bubble & Chat Window
   =================================================== */

.chat-bubble {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    transition: transform 0.2s, background 0.2s;
    border: none;
}
.chat-bubble:hover { transform: scale(1.08); background: #333; }
.chat-bubble svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }

.chat-bubble-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    display: none;
}
.chat-bubble-badge.show { display: flex; }

.chat-window {
    position: fixed;
    bottom: 154px;
    right: 28px;
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 9001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-win-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #111;
    color: #fff;
    flex-shrink: 0;
}
.chat-win-avatar {
    width: 32px; height: 32px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-win-avatar img { width: 20px; height: auto; border-radius: 50%; }
.chat-win-title { flex: 1; }
.chat-win-title strong { font-size: 13px; display: block; }
.chat-win-title span { font-size: 10px; color: rgba(255,255,255,0.6); }
.chat-win-close {
    background: none; border: none; color: rgba(255,255,255,0.7);
    font-size: 20px; cursor: pointer; padding: 0; line-height: 1;
}
.chat-win-close:hover { color: #fff; }

.chat-win-body {
    flex: 1; overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex; flex-direction: column; gap: 10px;
    scroll-behavior: smooth;
}
.chat-win-body::-webkit-scrollbar { width: 4px; }
.chat-win-body::-webkit-scrollbar-track { background: transparent; }
.chat-win-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.chat-msg { display: flex; max-width: 80%; gap: 8px; }
.chat-msg.user  { align-self: flex-end;  flex-direction: column; align-items: flex-end; }
.chat-msg.admin { align-self: flex-start; flex-direction: row;    align-items: flex-end; }

.chat-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: #111;
    flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-msg-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.chat-msg-bubble {
    padding: 9px 13px; border-radius: 14px; font-size: 13px;
    line-height: 1.5; word-break: break-word; font-weight: normal;
}
.chat-msg.user  .chat-msg-bubble { background: #111; color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.admin .chat-msg-bubble { background: #f3f3f3; color: #111; border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 10px; color: #bbb; margin-top: 3px; font-weight: normal; }
.chat-date-divider { text-align: center; font-size: 10px; color: #bbb; font-weight: normal; margin: 4px 0; }
.chat-system-msg { text-align: center; font-size: 11px; color: #aaa; font-weight: normal; padding: 6px 0; }

.chat-win-footer {
    border-top: 1px solid #f0f0f0; padding: 10px 12px;
    display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
}
.chat-win-input {
    flex: 1; border: 1px solid #e8e8e8; border-radius: 20px;
    padding: 9px 14px; font-size: 13px; font-family: inherit; font-weight: normal;
    outline: none; resize: none; min-height: 38px; max-height: 90px;
    line-height: 1.4; overflow-y: auto; transition: border-color 0.15s;
}
.chat-win-input:focus { border-color: #111; }
.chat-win-send {
    width: 36px; height: 36px; background: #111; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: background 0.15s;
}
.chat-win-send:hover { background: #333; }
.chat-win-send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.chat-win-send:disabled { background: #ccc; cursor: default; }

.chat-login-prompt {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 20px; text-align: center;
}
.chat-login-prompt p { font-size: 13px; color: #555; font-weight: normal; line-height: 1.6; }
.chat-login-prompt a {
    display: inline-block; padding: 9px 24px; background: #111; color: #fff;
    font-size: 12px; text-decoration: none; border-radius: 6px; font-weight: normal; transition: background 0.15s;
}
.chat-login-prompt a:hover { background: #333; }

.chat-guest-btn-primary {
    display: block; width: 100%; padding: 11px 0; background: #111; color: #fff !important;
    font-size: 13px; font-weight: 600 !important; text-align: center; text-decoration: none;
    border-radius: 8px; transition: background 0.15s;
}
.chat-guest-btn-primary:hover { background: #333 !important; }
.chat-guest-btn-secondary {
    display: block; width: 100%; padding: 11px 0; background: #fff !important; color: #111 !important;
    font-size: 13px; font-weight: 600 !important; text-align: center; text-decoration: none;
    border-radius: 8px; border: 1px solid #ddd !important; transition: background 0.15s, border-color 0.15s;
}
.chat-guest-btn-secondary:hover { background: #f5f5f5 !important; border-color: #bbb !important; }

.chat-closed-notice {
    padding: 10px 14px; text-align: center; font-size: 12px;
    color: #aaa; background: #fafafa; border-top: 1px solid #f0f0f0; font-weight: normal;
}

/* chat 동적 마크업 (header.jsp innerHTML 사용) — 인라인 스타일 분리 */
.chat-load-more-wrap {
    text-align: center;
    padding: 6px 0;
}
.chat-load-more-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 4px 14px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
}
.chat-new-room-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 0;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}
.chat-login-prompt-icon {
    width: 32px;
    height: 32px;
    stroke: #ccc;
    fill: none;
    stroke-width: 1.5;
}
.chat-login-prompt-title {
    font-size: 14px;
    color: #111;
}

@media (max-width: 480px) {
    .chat-window {
        right: 0; bottom: 0; width: 100vw;
        /* iOS Safari 100vh 버그 회피 — dvh 우선, fallback vh */
        height: 70vh;
        height: 70dvh;
        border-radius: 14px 14px 0 0; transform-origin: bottom center;
    }
    .chat-bubble { bottom: 20px; right: 20px; }
}

/* ===================================================
   Header Inline Search
   =================================================== */

.header-search-wrap {
    overflow: hidden;
    width: 0;
    max-width: 0;
    opacity: 0;
    transition: width 0.3s ease, max-width 0.3s ease, opacity 0.22s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.header-search-wrap.open {
    width: 220px;
    max-width: 220px;
    opacity: 1;
}

@media (max-width: 1024px) {
    .header-search-wrap.open { width: 160px; max-width: 160px; }
}

.header-search-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #111;
    background: transparent;
    font-family: 'UMOFont', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #111;
    padding: 2px 4px;
    outline: none;
    letter-spacing: 0.3px;
}
.header-search-input::placeholder {
    color: #bbb;
    font-weight: normal;
    font-size: 11px;
}

.header-search-clear {
    background: none;
    border: none;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.header-search-clear:hover { color: #111; }
