/* ============================================================
   Soojip Mobile ??? Home Style
   /mobile/_css/mobile_style.css
   ============================================================ */

:root {
    --primary-deep: #222;
    --accent-color: #ff385c;
    --bg-light: #f7f7f7;
    --text-main: #222;
    --text-muted: #717171;
    --white: #ffffff;
    --border-color: #ebebeb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* --- TOAST --- */
.toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    white-space: nowrap;
}

.toast.show {
    top: 30px;
}

/* --- STATUS BAR --- */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.status-bar .time {
    font-weight: 600;
    font-size: 14px;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.status-icons svg {
    width: 18px;
    height: 18px;
    stroke: #000;
    stroke-width: 2;
    fill: none;
}

/* --- HEADER --- */
.header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    position: sticky;
    top: 40px;
    /* Exact height of notice-banner */
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.header .logo img {
    height: 32px;
    width: auto;
}

.header .logo span {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

/* --- NOTICE BANNER --- */
.notice-banner {
    background: linear-gradient(135deg, #2D6A4F 0%, #1B3A2A 100%);
    color: #F5F1EC;
    text-align: center;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(27, 58, 42, 0.2);
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1001;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slide-notice 3s infinite;
}

@keyframes slide-notice {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 50%;
    cursor: pointer;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #222;
    stroke-width: 2;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* --- SEARCH --- */
.search-wrap {
    padding: 10px 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-radius: 12px;
    padding: 10px 15px;
    gap: 10px;
}

.search-bar svg {
    width: 18px;
    height: 18px;
    stroke: #888;
    stroke-width: 2.5;
    fill: none;
}

.search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
    color: #222;
}

.hero-cta:active {
    transform: scale(0.95);
}

.hero-cta svg {
    stroke: #fff;
}

/* --- HERO SLIDER --- */
.hero-wrapper {
    position: relative;
    margin: 15px 20px;
    height: auto;
    aspect-ratio: 1 / 1.1;
    /* 모바? ?? 비율 */
    border-radius: 20px;
    overflow: hidden;
    background: #F0EBE0;
    /* 밝?? ?? 배경 */
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 36%;
    /* ?미??? ?? 64% ??? 차?? */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #F0EBE0;
    /* ?미?? ?? 배경 */
    transition: transform 1.2s ease;
}

.hero-slide:active .hero-grid {
    transform: scale(1.05);
}

.hero-content {
    position: absolute;
    inset: 0;
    /* ?? ??? ?? 분리 ??? 밝?? 배경 */
    background: linear-gradient(
        to top,
        #FFFFFF 36%,
        rgba(240, 235, 224, 0.85) 50%,
        rgba(240, 235, 224, 0) 65%
    );
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1A1A1A;
    /* ??? ??? ??? ?? */
    z-index: 2;
}

.hero-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: none;
    color: #1A1A1A;
    font-weight: 700;
    word-break: break-word;
}

.hero-sub {
    font-size: 15px;
    opacity: 1;
    color: #555555;
    font-weight: 400;
}

.hero-tag {
    display: inline-block;
    background: rgba(139, 105, 20, 0.12);
    color: #8B6914;
    border: 1px solid rgba(139, 105, 20, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-cta {
    margin-top: 20px;
    background: #1A1A1A;
    color: #fff;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.hero-dots {
    position: absolute;
    right: 20px;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.hero-dots span.active {
    height: 16px;
    border-radius: 4px;
    background: #fff;
}

/* --- SECTIONS --- */
.section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- CATEGORIES --- */
.cats-scroll {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cats-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 64px;
    cursor: pointer;
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f8f8f8;
    transition: all 0.2s;
}

.cat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.cat-chip.active .cat-icon {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}

.cat-chip.active .cat-label {
    color: #000;
    font-weight: 700;
}

/* --- FLASH SALE --- */
.flash-banner {
    margin: 30px 20px;
    background: #000;
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.flash-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
}

.flash-icon {
    font-size: 24px;
    color: var(--accent-color);
}

.flash-text h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blink {
    background: var(--accent-color);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.flash-text p {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 2px;
}

.flash-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.timer-block {
    background: #333;
    padding: 5px 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}

.num {
    font-size: 14px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}

.lbl {
    font-size: 8px;
    opacity: 0.6;
}

.timer-sep {
    font-weight: 700;
    opacity: 0.4;
    margin-bottom: 12px;
}

/* --- BRANDS --- */
.brands-scroll {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.brand-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #eee;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.brand-pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* --- SORT CHIPS --- */
.sort-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 5px 20px 15px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sort-scroll::-webkit-scrollbar {
    display: none;
}

.sort-chip {
    padding: 6px 14px;
    font-size: 12px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
    font-weight: 500;
}

.sort-chip.active {
    background: var(--primary-deep);
    color: #fff;
    border-color: var(--primary-deep);
    font-weight: 700;
}

.load-more-products-btn {
    width: 90%;
    margin: 10px auto 30px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    transition: background 0.2s;
}

.load-more-products-btn:active {
    background: #f8f8f8;
}

/* --- PRODUCTS GRID --- */
.products-section {
    margin-top: 40px;
}

.tab-btn {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #000;
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
    padding: 20px;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.product-img {
    position: relative;
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-bg {
    font-size: 60px;
    opacity: 0.8;
    transition: transform 0.4s;
}

.product-card:active .product-img-bg {
    transform: scale(1.1);
}

.product-tag-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-tag-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-fav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #000;
    stroke-width: 2;
}

.product-fav.liked svg {
    fill: var(--accent-color);
    stroke: var(--accent-color);
}

.product-info {
    padding: 8px 4px;
}

.product-brand {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    font-family: 'DM Sans', sans-serif;
}

.product-price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.product-discount {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-color);
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.stars {
    font-size: 10px;
    color: #ffcc00;
}

.review-count {
    font-size: 10px;
    color: var(--text-muted);
}

/* --- FEATURED --- */
.featured-row {
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.feat-card {
    position: relative;
    flex: 1;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.feat-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.feat1 {
    background-image: url('https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&q=80&w=400');
}

.feat2 {
    background-image: url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&q=80&w=400');
}

.feat-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.feat-emoji {
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.feat-label {
    font-size: 10px;
    font-weight: 800;
    opacity: 0.8;
    letter-spacing: 1px;
}

.feat-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

/* --- RECENTLY VIEWED --- */
.recent-scroll {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.recent-card {
    flex-shrink: 0;
    width: 100px;
    cursor: pointer;
}

.recent-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.recent-price {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.recent-name {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- NOTICES --- */
.notice-strip {
    margin: 40px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 24px 20px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notice-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-deep);
}

.notice-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.notice-item {
    padding: 14px 0;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:active {
    opacity: 0.7;
}

.notice-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* --- SUBMENUS --- */
.submenu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: all 0.3s;
}

.submenu-overlay.show {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.submenu-drawer {
    position: fixed;
    bottom: -85vh;
    left: 0;
    right: 0;
    height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 1200;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 25px;
    overflow-y: auto;
}

.submenu-drawer.show {
    transform: translateY(-85vh);
}

.submenu-handle {
    width: 40px;
    height: 5px;
    background: #eee;
    border-radius: 3px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.submenu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.submenu-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.submenu-header-text h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.submenu-header-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.submenu-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.submenu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.submenu-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s;
}

.submenu-item:active .submenu-item-icon {
    transform: scale(0.9);
}

.submenu-item-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #444;
    line-height: 1.2;
}

.submenu-item.highlight .submenu-item-label {
    font-weight: 700;
    color: #000;
}

.submenu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 25px 0;
}

.submenu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
}

.submenu-list-item:last-child {
    border: none;
}

.submenu-list-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.submenu-list-icon,
.submenu-list-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
    background: #f8f8f8;
}

.submenu-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.submenu-list-name {
    font-size: 15px;
    font-weight: 600;
}

.submenu-list-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.submenu-list-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-hot {
    background: #fff0f0;
    color: #ff385c;
}

.badge-new {
    background: #f0f9ff;
    color: #0084ff;
}

.badge-live {
    background: #000;
    color: #fff;
}

/* --- SUB CATEGORY BUTTONS --- */
.sub-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sub-cat-btn {
    padding: 8px 15px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.sub-cat-btn:active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    /* 고정 ?? ?? ? padding?? ?? */
    min-height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #eee;
    display: flex;
    padding-top: 8px;
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
    /* ?/?? 모두 ??? ?? 보장 */
    z-index: 2000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 4px 0;
    position: relative;
    cursor: pointer;
}

.nav-chevron {
    position: absolute;
    top: 12px;
    font-size: 8px;
    color: #ddd;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-chevron {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.nav-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: #888;
    stroke-width: 2;
    fill: none;
    transition: all 0.2s;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    color: #888;
    transition: all 0.2s;
}

.nav-item.active .nav-icon svg {
    stroke: #000;
    stroke-width: 2.5;
}

.nav-item.active .fill-on {
    fill: #000;
    stroke: #000;
}

.nav-item.active .nav-label {
    color: #000;
    font-weight: 700;
}

.nav-icon-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 1.5px solid #fff;
}

.bottom-spacer {
    height: calc(60px + max(env(safe-area-inset-bottom), 8px) + 8px);
}

.mypage-sidebar {
    display: none !important;
}


/* ===== Footer Mobile CSS ===== */

@media (max-width: 768px) {

    footer {
      background-color: #1a1a1a;
      padding: 32px 20px 24px;
    }
  
    /* ̾ƿ:   ÷ */
    .footer__wrap {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
  
    /* PC    */
    .cell_area.pc {
      display: none;
    }
  
    /* Ͽ   ǥ */
    .cell_area.mobile {
      display: block;
    }
  
    /*  notice_area  */
    .notice_area {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
  
    /* ΰ */
    .notice_area h1 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
    }
  
    .notice_area h1 img {
      width: 28px;
      height: auto;
    }
  
    .notice_area h1 span {
      font-size: 16px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 0.02em;
    }
  
    /*  ũ  (ȸҰ / óħ / ̿) */
    .notice_area__list {
      display: flex;
      flex-wrap: wrap;
      gap: 0;
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .notice_area__list--item {
      display: flex;
      align-items: center;
    }
  
    .notice_area__list--item + .notice_area__list--item::before {
      content: '|';
      color: #555;
      margin: 0 8px;
      font-size: 11px;
    }
  
    .notice_area__list--item a {
      font-size: 12px;
      color: #aaaaaa;
      text-decoration: none;
      white-space: nowrap;
    }
  
    .notice_area__list--item a:hover {
      color: #ffffff;
    }
  
    /* óħ   */
    .notice_area__list--item:nth-child(2) a {
      color: #cccccc;
      font-weight: 600;
    }
  
    /*    (cell_area.mobile)  */
    .cell_area.mobile {
      background-color: #242424;
      border-radius: 8px;
      padding: 16px;
      margin-top: 4px;
    }
  
    .cell_area--tit {
      font-size: 11px;
      color: #888888;
      font-weight: 500;
      margin: 0 0 6px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
  
    .cell_area--cell {
      font-size: 22px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 0.04em;
      margin: 0 0 8px;
    }
  
    .cell_area--cell i {
      font-style: normal;
      color: #666666;
      margin: 0 1px;
    }
  
    .cell_area.mobile > p:nth-of-type(1) {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin: 0 0 12px;
    }
  
    .cell_area.mobile > p:nth-of-type(1) span {
      font-size: 12px;
      color: #999999;
    }
  
    .cell_area.mobile > p:nth-of-type(1) span strong {
      color: #cccccc;
      font-weight: 600;
      margin-right: 6px;
      min-width: 48px;
      display: inline-block;
    }
  
    .cell_area--escrow {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #333333;
    }
  
    .cell_area--escrow img {
      height: 28px;
      width: auto;
      opacity: 0.7;
    }
  
    /*    ܶ  */
    .notice_area > p:not(.notice_area--txt_wrap):not(.notice_area--copyright) {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin: 0;
    }
  
    .notice_area > p:not(.notice_area--txt_wrap):not(.notice_area--copyright) span {
      font-size: 11px;
      color: #888888;
      line-height: 1.5;
    }
  
    .notice_area > p:not(.notice_area--txt_wrap):not(.notice_area--copyright) span strong {
      color: #bbbbbb;
      font-weight: 600;
      margin-right: 5px;
    }
  
    /*   Ұ   */
    .notice_area--txt_wrap {
      margin: 0;
      padding-top: 12px;
      border-top: 1px solid #2e2e2e;
    }
  
    .notice_area--txt_wrap span {
      font-size: 12px;
      color: #777777;
      line-height: 1.7;
    }
  
    .notice_area--txt_wrap span strong {
      color: #aaaaaa;
      font-weight: 600;
      margin-right: 4px;
    }
  
    /*  ۱  */
    .notice_area--copyright {
      font-size: 11px;
      color: #555555;
      margin: 0;
      letter-spacing: 0.02em;
    }
  
  }


  @charset "utf-8";

/* ==========================================================================
   1. CSS Variables (⺻   -   ٸ fallback ۵)
   ========================================================================== */
:root {
    --primary-color: #b8902c; /*  / 迭  */
    --primary-dark: #8c6d20;
    --primary-mid: #d4a736;
    --primary-gradient: linear-gradient(135deg, #b8902c 0%, #8c6d20 100%);
    --accent-gold: #e5b338;
    --bg-gray: #f8f9fa;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-radius: 16px; /* ֽ Ʈ忡  ձ 𼭸 */
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 8px 25px rgba(184, 144, 44, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. Base Layout & Container
   ========================================================================== */
.company-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) 20px;
    box-sizing: border-box;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-primary);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: clamp(20px, 4vw, 30px);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   3. Navigation (  Ʈ )
   ========================================================================== */
.company-nav {
    background: #ffffff;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: clamp(30px, 5vw, 40px);
}

.company-nav-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    /*  ȯ   ũ  */
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    justify-content: flex-start;
}

.company-nav-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.company-nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px; /* Pill  */
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap; /* ؽƮ ٹٲ  */
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid transparent;
}

.company-nav-list a:hover {
    background: rgba(184, 144, 44, 0.05);
    color: var(--primary-color);
}

.company-nav-list a.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(184, 144, 44, 0.3);
}

/* ũž ߾     */
@media (min-width: 769px) {
    .company-nav-list {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

/* ==========================================================================
   4. Hero Section (  ̹ )
   ========================================================================== */
.company-hero {
    text-align: center;
    padding: clamp(40px, 8vw, 60px) 20px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--border-radius);
    margin-bottom: clamp(30px, 5vw, 50px);
    box-shadow: var(--box-shadow);
}

.company-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    word-break: keep-all;
}

.company-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.5;
    word-break: keep-all;
}

/* ==========================================================================
   5. Content Sections & Typography
   ========================================================================== */
.company-section { /*  .company-intro, .contact-section, .history-section տ Ŭ */
    background: #ffffff;
    padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.company-section h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    word-break: keep-all;
}

/* ==========================================================================
   6. Grid Layouts (Auto-fit   ̵    )
   ========================================================================== */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 3vw, 25px);
}

/* ٽ ġ &  ī (about.php, partner.php) */
.card-item {
    background: var(--bg-gray);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card-item:hover {
    background: #ffffff;
    border-color: rgba(184, 144, 44, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(184, 144, 44, 0.1);
    border-radius: 50%;
}

.card-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.card-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. Contact & Map (contactus.php)
   ========================================================================== */
.contact-item {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #eaeaea;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.contact-item .contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 144, 44, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.map-container {
    width: 100%;
    height: clamp(300px, 50vw, 450px);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid #eaeaea;
}

/* ==========================================================================
   8. Timeline (history.php)
   ========================================================================== */
.history-timeline {
    position: relative;
    padding-left: clamp(20px, 4vw, 40px);
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-gray);
}

.history-item {
    position: relative;
    padding: 0 0 30px 20px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(184, 144, 44, 0.1);
}

.history-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: inline-block;
}

.history-content {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-gray);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   9. Forms (partner.php) -  ġ  iOS   ȭ
   ========================================================================== */
.contact-form-wrap {
    background: var(--bg-gray);
    padding: clamp(20px, 5vw, 40px);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label .required {
    color: #ff4757;
    margin-left: 4px;
}

/* iOS Safari  Ȯ   font-size 16px  */
.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdde1;
    border-radius: var(--border-radius-sm);
    font-size: 16px; 
    font-family: inherit;
    background: #ffffff;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(184, 144, 44, 0.15);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-submit:active {
    transform: scale(0.98);
}

/* ==========================================================================
   10. Media Tabs (media.php)
   ========================================================================== */
.media-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-gray);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.media-tabs::-webkit-scrollbar { display: none; }

.media-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.media-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ==========================================================================
   11. Tables for Policies (privacy.php, terms.php)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid #eaeaea;
}

.policy-table {
    width: 100%;
    min-width: 600px; /* Ͽ ǥ  ʵ ּ ʺ  */
    border-collapse: collapse;
}

.policy-table th,
.policy-table td {
    border-bottom: 1px solid #eaeaea;
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
}

.policy-table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-primary);
}
