/* ============================================================
   오오커머스 (OO COMMERCE) - 프리미엄 라이프스타일 디자인 시스템
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0F1B2E;
    --primary-dark: #091220;
    --primary-soft: #F5F2EC;
    --accent-color: #C9A56A;
    --accent-hover: #B59054;
    --accent-soft: rgba(201, 165, 106, 0.14);
    --secondary-color: #6B6257;
    --success-color: #2E6F5E;
    --danger-color: #B84A4A;
    --text-dark: #0F1B2E;
    --text-light: #6B6257;
    --bg-light: #E9E4DB;
    --bg-soft: #F5F2EC;
    --border-color: #D8D0C3;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(15, 27, 46, 0.05);
    --shadow-md: 0 10px 28px rgba(15, 27, 46, 0.08);
    --shadow-lg: 0 18px 42px rgba(15, 27, 46, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(201, 165, 106, 0.55);
    outline-offset: 2px;
}

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

/* 헤더 - 딥 네이비 & 샴페인 골드 */
.header {
    background: rgba(15, 27, 46, 0.97);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 165, 106, 0.25);
    box-shadow: 0 4px 20px rgba(9, 18, 32, 0.18);
    isolation: isolate;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.02);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo-mark {
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #F5F2EC;
    margin-bottom: 1px;
    line-height: 1.2;
}

.logo p {
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-buttons,
.user-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #E9E4DB;
    font-size: 14px;
}

.btn-text {
    text-decoration: none;
    color: #E9E4DB;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.btn-text:hover {
    color: var(--accent-color);
    background: rgba(201, 165, 106, 0.12);
}

.cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: #F5F2EC;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 165, 106, 0.28);
    text-decoration: none;
    transition: all 0.25s ease;
}

.cart-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 네비게이션 */
.nav {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav ul::-webkit-scrollbar {
    display: none;
}

.nav li {
    flex: 0 0 auto;
}

.nav a {
    display: inline-block;
    text-decoration: none;
    color: rgba(233, 228, 219, 0.85);
    font-weight: 500;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nav a:hover {
    color: var(--accent-color);
    background: rgba(201, 165, 106, 0.14);
}

/* 에디토리얼 히어로 쇼케이스 */
.hero-editorial {
    background:
        radial-gradient(760px 440px at 85% 20%, rgba(201, 165, 106, 0.16), transparent 65%),
        radial-gradient(640px 380px at 8% 92%, rgba(107, 98, 87, 0.22), transparent 60%),
        linear-gradient(135deg, #091220 0%, #0F1B2E 58%, #162640 100%);
    color: #F5F2EC;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 165, 106, 0.22);
}

.hero-editorial-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 48px;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--accent-color);
    margin-bottom: 22px;
}

.eyebrow-bar {
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background: var(--accent-color);
}

.hero-copy h2 {
    font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero-copy h2 em {
    font-style: normal;
    color: var(--accent-color);
}

.hero-subcopy {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(233, 228, 219, 0.84);
    max-width: 480px;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 42px;
}

.btn-gold-solid {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(201, 165, 106, 0.24);
}

.btn-gold-solid:hover {
    background: #DFC18A;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 165, 106, 0.34);
}

.btn-editorial-link {
    color: #F5F2EC;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(201, 165, 106, 0.55);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-editorial-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.hero-metrics {
    display: flex;
    gap: 36px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-item strong {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: -0.01em;
}

.metric-item span {
    font-size: 12px;
    color: rgba(233, 228, 219, 0.68);
}

/* 우측 플래그십 비대칭 쇼케이스 */
.hero-showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    align-items: stretch;
}

.showcase-sub-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 165, 106, 0.28);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    backdrop-filter: blur(8px);
}

.showcase-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.09);
}

.showcase-img-wrap {
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
    flex: 1;
    min-height: 120px;
}

.showcase-main .showcase-img-wrap {
    min-height: 290px;
}

.showcase-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-img-wrap img {
    transform: scale(1.05);
}

.showcase-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 27, 46, 0.86);
    color: var(--accent-color);
    border: 1px solid rgba(201, 165, 106, 0.45);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.showcase-meta {
    padding: 12px 14px;
    background: rgba(9, 18, 32, 0.65);
}

.showcase-meta h4 {
    font-size: 13px;
    font-weight: 500;
    color: #F5F2EC;
    line-height: 1.38;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-main .showcase-meta h4 {
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.showcase-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

/* 넘버링 브랜드 필라 스트립 */
.brand-pillars {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-color);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pillar-item {
    padding: 30px 24px;
    border-right: 1px solid var(--border-color);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pillar-item:last-child {
    border-right: none;
}

.pillar-num {
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-hover);
    letter-spacing: 0.06em;
}

.pillar-en {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pillar-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.pillar-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
}

/* 섹션 타이틀 */
.section-title {
    font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 14px auto 0;
}

/* 카테고리 그리드 (8개 카테고리 4x2) */
.product-categories {
    padding: 76px 20px 68px;
    background: #FFFFFF;
}

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

.category-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
    background: #FFFFFF;
}

.category-image {
    height: 175px;
    background: #FFFFFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.category-card:hover .category-image img {
    transform: scale(1.06);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 18px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card h3 i {
    color: var(--accent-hover);
    font-size: 15px;
}

.category-card p {
    margin: 0 18px 18px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.45;
}

/* 상품 그리드 */
.featured-products {
    padding: 68px 20px 80px;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 20px auto 40px;
}

.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.28s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    overflow: hidden;
    border-bottom: 1px solid #EFEAE1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-size: 15px;
    line-height: 1.48;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.95em;
}

.product-card .product-description {
    display: none;
}

.product-price {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-top: auto;
    margin-bottom: 4px;
}

.product-origin {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-soft);
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.product-badge.badge-seller {
    background: #F3EFE8;
    color: var(--secondary-color);
}

.product-badge.badge-origin {
    background: rgba(46, 111, 94, 0.1);
    color: #2E6F5E;
}

.product-badge.badge-unit {
    background: var(--accent-soft);
    color: #8C6A33;
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    color: #E9E4DB;
    padding: 56px 20px 28px;
    border-top: 2px solid rgba(201, 165, 106, 0.35);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto 32px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.footer-section p {
    font-size: 13.5px;
    color: rgba(233, 228, 219, 0.8);
    margin-bottom: 7px;
}

.phone-number {
    font-size: 17px !important;
    font-weight: 700;
    color: #FFFFFF !important;
    margin: 8px 0 10px !important;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(233, 228, 219, 0.8);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.25s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
}

.company-info {
    margin-bottom: 14px;
}

.company-info p {
    font-size: 12.5px;
    color: rgba(233, 228, 219, 0.72);
    margin-bottom: 4px;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 12.5px;
    color: rgba(233, 228, 219, 0.55);
}

/* 버튼 및 폼 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

.btn-primary-solid {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #FFFFFF;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(201, 165, 106, 0.16);
}

/* 반응형 */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .hero-editorial-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-item:nth-child(2n) {
        border-right: none;
    }

    .pillar-item:nth-child(1),
    .pillar-item:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 12px 0;
        gap: 10px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-mark {
        width: 38px;
        height: 22px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo p {
        font-size: 9px;
        letter-spacing: 0.18em;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-text {
        padding: 6px 10px;
        font-size: 13px;
    }

    .nav ul {
        padding: 8px 0;
    }

    .nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-editorial {
        padding: 44px 0 52px;
    }

    .hero-metrics {
        gap: 24px;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-main .showcase-img-wrap {
        min-height: 220px;
    }

    .showcase-sub-stack {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 8px;
    }

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

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

    .category-image {
        height: 130px;
    }

    .category-card h3 {
        font-size: 14px;
        margin: 12px 12px 2px;
    }

    .category-card p {
        margin: 0 12px 14px;
        font-size: 12px;
    }

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

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
