/* channel.css */

.channel-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.channel-hero {
    padding: 3rem 0;
    background-color: #fff;
    text-align: center;
}

.channel-main-title {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000;
}

.channel-intro-text {
    font-size: 1.2rem;
    color: #334155;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: left;
}

/* Quick Nav */
.channel-quick-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    background-color: #fff;
    min-width: 280px;
}

.quick-nav-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-brand);
}

.quick-nav-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
}

.quick-nav-icon img {
    height: 48px;
    width: 48px;
}

@media (min-width: 1024px) {
    .channel-quick-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }

    .quick-nav-item {
        min-width: unset;
        justify-content: flex-start;
    }

    .quick-nav-icon img {
        height: 57.6px;
        width: 57.6px;
    }
}

.arrow-right {
    font-size: 1.2rem;
    color: #94a3b8;
}

.quick-nav-label {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

/* Detail Sections */
.channel-detail-section {
    padding: 0.1rem 0;
    scroll-margin-top: 150px;
    margin-top: 55px;
}

.channel-detail-section--alt {
    background-color: #f8fafc;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
    width: fit-content;
    font-family: var(--font-serif);
}

.section-header__icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
}

.section-header__icon img {
    height: 48px;
    width: 48px;
}

@media (min-width: 1024px) {
    .section-header__icon img {
        height: 57.6px;
        width: 57.6px;
    }
}

.section-header__title {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0;
}

.section-header__title span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #475569;
    margin-left: 0.5rem;
}

/* Section Content */
.content-headline {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: #333;
}

.content-description {
    font-size: 18px;
    color: #333;
    line-height: 2;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    font-family: var(--font-serif);
}

.content-note {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* External Links */
.external-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.external-link-wrap {
    flex: 1;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.external-card {
    width: 100%;
    padding: 2.5rem 2rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.external-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.external-card__icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.external-card__icon svg,
.external-card__icon img {
    width: 75px;
    height: 75px;
    color: #334155;
    object-fit: contain;
}

.external-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.external-card__label {
    font-size: clamp(14px, 1.5vw, 21px);
    font-weight: 700;
    font-family: var(--font-serif);
    white-space: nowrap;
}

.external-card__arrow {
    width: 36px;
    height: 36px;
    background-color: var(--color-brand);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.external-card__arrow::after {
    content: '>';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
}

.external-card__sub {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: #64748b;
    text-align: center;
    font-weight: 500;
}

/* BtoB Trade Methods */
.trade-methods {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0 5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trade-method-wrap {
    flex: 1;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trade-method-card {
    width: 100%;
    padding: 2.5rem 2rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.trade-method-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.trade-method-card__icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8fafc;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trade-method-card__icon svg,
.trade-method-card__icon img {
    width: 75px;
    height: 75px;
    color: #334155;
    object-fit: contain;
}

.trade-method-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.trade-method-card__title {
    font-size: clamp(14px, 1.5vw, 21px);
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0;
    white-space: nowrap;
}

.trade-method-card__arrow {
    width: 36px;
    height: 36px;
    background-color: var(--color-brand);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.trade-method-card__arrow::after {
    content: '>';
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
}

/* BtoB Sub Sections */
.btob-sub-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px dashed #e2e8f0;
    scroll-margin-top: 150px;
}

.sub-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: #333;
}

.sub-section-title svg,
.sub-section-title img {
    width: 40px;
    height: 40px;
    color: #64748b;
    object-fit: contain;
}

.sub-section-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.flow-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    border-bottom: 1px solid #000;
    width: fit-content;
    padding-bottom: 0.5rem;
}

/* BtoB Flow */
.btob-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.btob-flow-step {
    display: flex;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    min-height: 120px;
    transition: all 0.3s ease;
}

.btob-flow-step:hover {
    border-color: var(--color-brand);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-num {
    width: 90px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-serif);
    line-height: 1.2;
    text-align: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.step-icon {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding: 1.5rem;
    flex-shrink: 0;
}

.step-icon svg,
.step-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.step-body {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-body h6 {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0 0 0.5rem 0;
}

.step-body p {
    font-size: 1rem;
    color: #475569;
    margin: 0;
}

.step-btn-pill {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 2rem;
    border: 1px solid var(--color-brand);
    color: var(--color-brand);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
}

.step-btn-pill:hover {
    background-color: var(--color-brand);
    color: #fff;
}

/* Contact Footer in Step 04 */
.btob-contact-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.footer-social-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.line-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #06c755;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.line-badge:hover {
    opacity: 0.85;
}

.line-badge img,
.line-btn img {
    height: 31px;
    width: 31px;
    object-fit: contain;
}

.social-text {
    font-size: 1rem;
    line-height: 1.4;
}

.footer-other-methods {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #475569;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
}

.contact-icons img {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

/* Restaurant Specific Styles */
.restaurant-line-banner {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.restaurant-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-family: var(--font-serif);
    color: #000;
}

.restaurant-logo img {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #06c755;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    border: none;
}

.line-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.line-btn img {
    height: 31px;
    width: 31px;
}

.line-message {
    flex: 1;
    min-width: 300px;
}

.message-badge {
    color: var(--color-brand);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 20px;
}

.message-badge::before {
    content: '/';
    position: absolute;
    left: 0;
    transform: rotate(20deg);
}

.line-message p {
    font-size: 1rem;
    color: #475569;
    margin: 0;
}

.shop-info-block,
.access-block {
    margin-top: 5rem;
}

.shop-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
}

.shop-info-table th,
.shop-info-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.shop-info-table tr:last-child th,
.shop-info-table tr:last-child td {
    border-bottom: none;
}

.shop-info-table th {
    width: 220px;
    background-color: #f8fafc;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.shop-info-table td {
    color: #0f172a;
    line-height: 1.6;
    background-color: #fff;
}



.shop-info-table td span {
    font-size: 0.7rem;
    color: #64748b;
}

.access-text {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.map-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

/* Responsive */
@media (max-width: 1023px) {
    .channel-main-title {
        font-size: 2.5rem;
    }

    .quick-nav-item {
        min-width: 100%;
    }

    .trade-method-wrap,
    .external-link-wrap {
        min-width: 100%;
    }

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

@media (max-width: 767px) {
    .channel-hero {
        padding: 2.5rem 0;
    }

    .section-header__title {
        font-size: 1.5rem;
    }

    .section-header__title span {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    /* Vertical Flow for Mobile */
    .footer-social-line {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .btob-flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .step-num {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        background: transparent;
    }

    .step-icon {
        width: 100%;
        padding: 0 0 1rem 0;
    }

    .step-body {
        padding: 0;
    }

    .step-btn-pill {
        margin: 1rem auto 0;
    }

    /* Table Mobile */
    .shop-info-table th,
    .shop-info-table td {
        display: block;
        width: 100%;
    }

    .shop-info-table th {
        background-color: #f8fafc;
        border-bottom: none;
        padding-bottom: 0.8rem;
        text-align: center;
    }

    .shop-info-table td {
        border-top: none;
        padding-top: 0.8rem;
    }

    /* Restaurant Line Banner Mobile */
    .restaurant-line-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .line-message {
        min-width: 0;
    }

    .message-badge {
        padding-left: 0;
        display: inline-block;
    }

    .message-badge::before {
        display: none;
    }

    .footer-other-methods {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Additional Responsive Typography & Layout */
    .channel-intro-text {
        font-size: 14px;
        margin-bottom: 2rem;
    }

    .channel-main-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .quick-nav-item {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .quick-nav-label {
        font-size: 1.2rem;
    }

    .quick-nav-icon {
        font-size: 1.5rem;
    }

    .content-headline {
        font-size: 21px;
    }

    .content-description {
        font-size: 14px;
    }

    .content-note {
        font-size: 14px;
        margin-bottom: 2rem;
    }

    .sub-section-title {
        font-size: 21px;
    }

    .sub-section-desc {
        font-size: 14px;
        margin-bottom: 2rem;
    }

    .flow-title {
        font-size: 18px;
    }

    .external-card,
    .trade-method-card {
        padding: 2rem 1rem 1rem;
    }

    .external-card__icon svg,
    .trade-method-card__icon svg {
        width: 36px;
        height: 36px;
    }

    .section-header {
        margin-bottom: 2rem;
        gap: 1rem;
    }

    .section-header__icon img {
        height: 36px;
    }
}

/* Scale up BtoB & BtoC icons for optical alignment with restaurant icon */
.quick-nav-icon img[src*="icon_top_btob"],
.quick-nav-icon img[src*="icon_top_btoc"],
.section-header__icon img[src*="icon_top_btob"],
.section-header__icon img[src*="icon_top_btoc"],
.channel-detail-header__icon img[src*="icon_top_btob"],
.channel-detail-header__icon img[src*="icon_top_btoc"],
.channel-page .page-header__icon img[src*="icon_top_btob"],
.channel-page .page-header__icon img[src*="icon_top_btoc"] {
    transform: scale(1.4);
}

/* Scale up Official Online Shop icon for optical alignment */
.channel-detail-section img[src*="icon_link_onlineshop"] {
    transform: scale(1.4);
}