/* === OmegaNetwork 공개 페이지 스타일 === */

:root {
    --pub-primary: #0a1628;
    --pub-accent: #2563eb;
    --pub-accent-light: #3b82f6;
    --pub-bg: #f8fafc;
    --pub-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--pub-bg);
    color: #1e293b;
}

/* === Navbar === */
.pub-navbar {
    background: var(--pub-primary);
    padding: 0.8rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.pub-navbar .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.pub-navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}
.pub-navbar .nav-link:hover {
    color: var(--pub-accent-light) !important;
}

/* === Hero === */
.hero-section {
    background: linear-gradient(135deg, var(--pub-primary) 0%, #1e3a5f 50%, #0a1628 100%);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 500px;
    line-height: 1.6;
}
.hero-img {
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* === Section Titles === */
.section-title {
    font-weight: 700;
    color: var(--pub-primary);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* === Product Card === */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--pub-card-shadow);
    background: white;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: #f1f5f9;
}
.product-card .card-body {
    padding: 1.25rem;
}
.product-card .product-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pub-accent);
    margin-bottom: 0.4rem;
}
.product-card .product-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--pub-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pub-primary);
}
.product-card .product-pv {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.product-card .btn-view {
    border: 1.5px solid var(--pub-accent);
    color: var(--pub-accent);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.product-card .btn-view:hover {
    background: var(--pub-accent);
    color: white;
}

/* placeholder 이미지 (상품 이미지 없을 때) */
.product-card .img-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

/* === Category Card === */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--pub-card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: inherit;
}
.category-card .cat-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--pub-accent);
}
.category-card .cat-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.category-card .cat-count {
    font-size: 0.8rem;
    color: #64748b;
}

/* === CTA Banner === */
.cta-section {
    background: linear-gradient(135deg, var(--pub-accent) 0%, #1d4ed8 100%);
    padding: 4rem 0;
    color: white;
}
.cta-section h2 {
    font-weight: 700;
}

/* === Filter Tabs === */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.filter-tabs .filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.filter-tabs .filter-tab:hover {
    border-color: var(--pub-accent);
    color: var(--pub-accent);
}
.filter-tabs .filter-tab.active {
    background: var(--pub-accent);
    border-color: var(--pub-accent);
    color: white;
}

/* === Product Detail === */
.detail-gallery .main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
}
.detail-gallery .thumb-list {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}
.detail-gallery .thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.detail-gallery .thumb-item:hover,
.detail-gallery .thumb-item.active {
    border-color: var(--pub-accent);
}
.detail-info .product-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pub-primary);
}
.detail-info .price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pub-primary);
}
.detail-info .pv-tag {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}
.detail-info .spec-table th {
    color: #64748b;
    font-weight: 500;
    width: 120px;
}
.stock-badge {
    font-size: 0.8rem;
    font-weight: 600;
}

/* === Pagination === */
.pub-pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--pub-primary);
    border: 1.5px solid #e2e8f0;
    font-weight: 500;
}
.pub-pagination .page-item.active .page-link {
    background: var(--pub-accent);
    border-color: var(--pub-accent);
}

/* === Footer === */
.pub-footer {
    background: var(--pub-primary);
    color: #94a3b8;
}
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover {
    color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .hero-img {
        max-height: 250px;
        margin-top: 2rem;
    }
    .product-card .card-img-top,
    .product-card .img-placeholder {
        height: 160px;
    }
}
