/* ========================================
   Broiling Roasting - Custom Brand Styles
======================================== */

/* ---- Brand Typography ---- */
.bc-brand-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bc-brand-ko {
    font-family: 'Pretendard', -apple-system, sans-serif;
}

/* ---- Header Overrides ---- */
.fc-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(78, 52, 46, 0.08);
}

/* Navigation list (horizontal menu) */
.fc-nav .fc-nav-list,
.fc-nav .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--fc-spacing-xs, 8px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-nav .fc-nav-list li,
.fc-nav .menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-nav .fc-nav-list li a,
.fc-nav .menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    font-weight: 500;
    color: var(--fc-primary, #4E342E);
    position: relative;
    white-space: nowrap;
}

.fc-nav .fc-nav-list li a::after,
.fc-nav .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--fc-accent, #D4A574);
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.fc-nav .fc-nav-list li a:hover,
.fc-nav .menu li a:hover {
    color: var(--fc-accent-dark, #B8895A);
}

.fc-nav .fc-nav-list li a:hover::after,
.fc-nav .menu li a:hover::after {
    width: 100%;
}

.fc-header.scrolled {
    box-shadow: 0 2px 20px rgba(78, 52, 46, 0.1);
}

.bc-logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fc-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.bc-logo-text small {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--fc-gray);
    font-weight: 400;
    margin-top: 2px;
}

/* ---- Header → Hero gap fix (fixed header overlaps hero) ---- */
.home .fc-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ---- Hero Section ---- */
.bc-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--fc-primary-dark);
    margin-top: -80px;
    padding-top: 80px;
}

/* Slider slides */
.bc-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease, transform 8s ease;
    z-index: 0;
}

.bc-hero-slide.active {
    opacity: 0.6;
    z-index: 1;
}

.bc-hero:hover .bc-hero-slide.active {
    transform: scale(1.03);
}

/* Slider dots */
.bc-hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 5;
}

.bc-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.bc-hero-dot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.bc-hero-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.bc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(62, 39, 35, 0.85) 0%,
        rgba(78, 52, 46, 0.5) 50%,
        rgba(62, 39, 35, 0.7) 100%
    );
}

.bc-hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    color: #fff;
}

.bc-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bc-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bc-hero-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.bc-hero-title em {
    font-style: normal;
    color: var(--bc-gold);
}

.bc-hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.bc-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--fc-radius-sm);
    text-decoration: none;
    transition: var(--fc-transition);
    cursor: pointer;
    border: none;
}

.bc-btn-primary {
    background: var(--bc-flame);
    color: #fff;
}

.bc-btn-primary:hover {
    background: var(--bc-flame-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(121, 85, 72, 0.3);
}

.bc-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.bc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ---- Category Portal ---- */
.bc-portal-section {
    padding: var(--fc-spacing-xxl) 0;
    background: var(--fc-cream);
}

.bc-section-header {
    text-align: center;
    margin-bottom: var(--fc-spacing-xl);
}

.bc-section-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bc-flame);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bc-section-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fc-primary);
}

.bc-section-desc {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: var(--fc-gray, #888);
    font-weight: 400;
}

.bc-portal-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--bc-flame, #795548);
    font-weight: 600;
}

.bc-portal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.bc-portal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: var(--fc-radius-lg);
    text-decoration: none;
    color: var(--fc-primary);
    transition: var(--fc-transition);
    border: 1px solid transparent;
}

.bc-portal-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--fc-shadow-lg);
    border-color: var(--bc-gold);
}

.bc-portal-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fc-radius-full);
    background: var(--fc-cream);
    margin-bottom: 1.2rem;
    transition: var(--fc-transition);
}

.bc-portal-item:hover .bc-portal-icon {
    background: var(--bc-flame);
    color: #fff;
}

.bc-portal-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.bc-portal-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.bc-portal-desc {
    font-size: 0.8rem;
    color: var(--fc-gray);
    text-align: center;
}

/* ---- Featured Products ---- */
.bc-products-section {
    padding: var(--fc-spacing-xxl) 0;
    background: #fff;
}

.bc-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--fc-spacing-xl);
    flex-wrap: wrap;
    gap: 1rem;
}

.bc-tab-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bc-tab-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--fc-gray-light);
    background: #fff;
    color: var(--fc-gray-dark);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--fc-transition-fast);
}

.bc-tab-btn:hover,
.bc-tab-btn.active {
    background: var(--fc-primary);
    color: #fff;
    border-color: var(--fc-primary);
}

/* ---- Product Grid ---- */
.bc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.bc-product-card {
    background: #fff;
    border-radius: var(--fc-radius-md);
    overflow: hidden;
    transition: var(--fc-transition);
    border: 1px solid var(--fc-gray-light, #eee);
}

.bc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-shadow-md);
}

.bc-product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--fc-cream);
}

.bc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bc-product-card:hover .bc-product-img img {
    transform: scale(1.05);
}

.bc-product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.bc-badge {
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.bc-badge-new {
    background: var(--bc-flame);
    color: #fff;
}

.bc-badge-sale {
    background: #e53935;
    color: #fff;
}

.bc-badge-best {
    background: var(--bc-gold);
    color: #fff;
}

.bc-product-actions {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    z-index: 2;
}

.bc-product-card:hover .bc-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.bc-product-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--fc-radius-full);
    box-shadow: var(--fc-shadow-sm);
    color: var(--fc-primary);
    transition: var(--fc-transition-fast);
}

.bc-product-action-btn:hover {
    background: var(--bc-flame);
    color: #fff;
}

.bc-product-content {
    padding: 1rem;
}

.bc-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bc-product-name a {
    color: var(--fc-primary);
    text-decoration: none;
}

.bc-product-name a:hover {
    color: var(--bc-flame);
}

.bc-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fc-primary);
}

.bc-product-price del {
    color: var(--fc-gray);
    font-weight: 400;
    font-size: 0.85rem;
}

.bc-product-price ins {
    text-decoration: none;
    color: var(--bc-flame);
}

.bc-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--fc-gray);
}

/* ---- Brand Story Banner ---- */
.bc-story-section {
    padding: var(--fc-spacing-xxl) 0;
    background: var(--fc-primary-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bc-story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bc-story-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bc-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.bc-story-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.bc-story-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.bc-story-image {
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

/* ---- Service Bar ---- */
.bc-service-bar {
    padding: var(--fc-spacing-xl) 0;
    background: var(--fc-cream);
    border-top: 1px solid var(--fc-gray-light);
}

.bc-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.bc-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bc-service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fc-radius-full);
    background: #fff;
    color: var(--bc-flame);
    flex-shrink: 0;
}

.bc-service-icon svg {
    width: 22px;
    height: 22px;
}

.bc-service-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fc-primary);
    margin-bottom: 0.15rem;
}

.bc-service-desc {
    font-size: 0.78rem;
    color: var(--fc-gray);
}

/* ---- Marketplace Link ---- */
.bc-marketplace-link {
    background: #fff;
    border-top: 1px solid var(--fc-gray-light);
}

/* ---- Footer Overrides ---- */
.bc-footer {
    background: var(--fc-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.bc-footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.bc-footer-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.bc-footer-info {
    font-size: 0.85rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
}

.bc-footer-links-group {
    display: flex;
    gap: 4rem;
    justify-content: flex-end;
}

.bc-footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.bc-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bc-footer-col li {
    margin-bottom: 0.6rem;
}

.bc-footer-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.bc-footer-col a:hover {
    color: var(--bc-gold);
}

.bc-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.bc-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Old JS-based toggle (hidden) ---- */
.fc-mobile-toggle {
    display: none !important;
}

/* ---- CSS-Only Mobile Menu ---- */
.bc-menu-checkbox {
    display: none;
}

.bc-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 10002;
    position: relative;
}

.bc-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fc-primary, #4E342E);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation when checked */
.bc-menu-checkbox:checked ~ .bc-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.bc-menu-checkbox:checked ~ .bc-hamburger span:nth-child(2) {
    opacity: 0;
}
.bc-menu-checkbox:checked ~ .bc-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel (outside header, hidden by default) */
.bc-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99999;
    padding-top: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

/* Show mobile nav when checkbox is checked (using :has on body) */
body:has(.bc-menu-checkbox:checked) .bc-mobile-nav {
    display: flex;
}

/* Close button inside mobile nav */
.bc-mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--fc-primary, #4E342E);
    line-height: 1;
    z-index: 100000;
}

.bc-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.bc-mobile-nav ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(78, 52, 46, 0.08);
}

.bc-mobile-nav ul li a {
    display: block;
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fc-primary, #4E342E);
    text-decoration: none;
}

.bc-mobile-nav ul li a:hover {
    background: var(--fc-cream, #FBF6F0);
    color: var(--bc-flame, #795548);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .bc-portal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bc-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .bc-hero-title { font-size: 2.5rem; }
    .bc-story-inner { grid-template-columns: 1fr; gap: 2rem; }
    .bc-service-grid { grid-template-columns: repeat(2, 1fr); }
    .bc-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .bc-footer-links-group { justify-content: flex-start; }
    .bc-product-grid { grid-template-columns: repeat(2, 1fr); }

    /* Show CSS-only hamburger, hide desktop nav */
    .bc-hamburger {
        display: flex;
    }

    #fc-header .fc-nav,
    .fc-header nav.fc-nav {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 10001;
        padding-top: 80px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
    }

    #fc-header .fc-nav.active,
    .fc-header nav.fc-nav.active {
        display: flex !important;
    }

    .fc-nav.active .fc-nav-list,
    .fc-nav.active .menu {
        flex-direction: column;
        gap: 0;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .fc-nav.active .fc-nav-list li,
    .fc-nav.active .menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(78, 52, 46, 0.08);
    }

    .fc-nav.active .fc-nav-list li a,
    .fc-nav.active .menu li a {
        padding: 20px 24px;
        justify-content: center;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--fc-primary, #4E342E);
    }

    .fc-nav.active .fc-nav-list li a:hover,
    .fc-nav.active .menu li a:hover {
        background: var(--fc-cream, #FBF6F0);
        color: var(--bc-flame, #795548);
    }

    /* Keep header above mobile nav */
    .fc-header {
        z-index: 10000;
    }
}

@media (max-width: 768px) {
    .bc-hero { height: 70vh; min-height: 500px; }
    .bc-hero-title { font-size: 2rem; }
    .bc-hero-desc { font-size: 0.95rem; }
    .bc-portal-grid { grid-template-columns: repeat(2, 1fr); }
    .bc-products-header { flex-direction: column; align-items: flex-start; }
    .bc-footer-links-group { flex-wrap: wrap; gap: 2rem; }
    .bc-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .bc-hero { height: 60vh; min-height: 400px; }
    .bc-hero-title { font-size: 1.75rem; }
    .bc-portal-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .bc-portal-item { padding: 1.5rem 1rem; }
    .bc-service-grid { grid-template-columns: 1fr; }
    .bc-hero-buttons { flex-direction: column; }
    .bc-btn { width: 100%; justify-content: center; }
    .bc-hero-dots { bottom: 1rem; }
    .bc-hero-dot { width: 10px; height: 10px; }
    .bc-product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
