/* Food Page Styles */

/* Food Hero Banner */
.food-hero {
    background-color: #4f3f38;
    /* matched to reference image */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.food-hero h1 {
    font-size: 3.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: normal;
}

.food-hero p {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin: 0;
}

/* General and Helpers */
.food-section {
    padding: 80px 0;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}

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

/* Typography */
.food-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.food-subtitle {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.food-subtitle-center {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: bold;
}

.food-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.food-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Section 1: Background Image Box */
.food-section-1 {
    position: relative;
    background: url('https://placehold.co/1920x1080/eee/999?text=Background') no-repeat center center/cover;
}

.food-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Section 3: Features */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--color-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.feature-img {
    flex: 0 0 300px;
}

.feature-img img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.feature-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-num {
    font-size: 4rem;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 1;
}

.feature-text h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1.4;
}

/* Section 6: Tabs */
.food-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    list-style: none;
    padding: 0;
}

.tab-item {
    flex: 1;
    max-width: 300px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tab-item img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.tab-item span {
    display: block;
    font-weight: bold;
    color: var(--color-text);
    box-shadow: none;
}

.tab-item:hover {
    border-color: var(--color-secondary);
}

.tab-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.tab-item.active span {
    color: var(--color-primary);
}

.tab-content-container {
    background: #eae2d6;
    /* Matching lineup background from image */
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    /* Slight inset for depth */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icons Grid */
.food-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.food-icon-item {
    background: #fcfcfc;
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
}

.food-icon-item img {
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.food-icon-item h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.food-icon-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Rotation Image */
.rotation-img {
    max-width: 100%;
    border-radius: 10px;
}

/* LINEUP Banners & Layout matching the image */
.lineup-banner {
    grid-column: 1 / -1;
    background: linear-gradient(to right, #ccc, #e0e0e0, #ccc);
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #bbb;
}

.lineup-banner span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.lineup-banner.gold-line {
    background: linear-gradient(to right, #d4af37, #f3e5ab, #d4af37);
    border-color: #c5a017;
}

.lineup-banner.platinum-line {
    background: linear-gradient(to right, #b0b0b0, #e5e4e2, #b0b0b0);
    border-color: #a0a0a0;
}

/* Lineup Grid updated */
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.lineup-item {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.lineup-title {
    font-size: 1.15rem;
    color: #4a3c31;
    /* Brownish color matching the image vibe */
    border-bottom: 1px solid #999;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: serif;
    /* Elegant title matching image */
}

.lineup-content {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.lineup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
    padding: 0;
    border: none;
}

.lineup-tags {
    margin-bottom: 15px;
    text-align: center;
}

.tag-age {
    display: block;
    background: #cfc5b8;
    color: #555;
    padding: 5px;
    font-size: 0.75rem;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.tag-ingredients {
    display: flex;
    gap: 5px;
}

.tag-ingredient {
    flex: 1;
    background: #e8ded2;
    color: #555;
    padding: 5px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.lineup-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    flex-grow: 1;
}

.lineup-btn {
    background: #372a24;
    color: #fff !important;
    text-align: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    text-decoration: none;
    margin-top: auto;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.lineup-btn:hover {
    background: #5c4538;
}

.lineup-btn span {
    font-size: 0.8em;
}

.lineup-thumb {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.lineup-thumb img.product-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.15));
}

.icon-flag {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: auto;
    z-index: 2;
    background: #fff;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

/* Specific section adjust */
#tab-dry,
#tab-wet,
#tab-high {
    background-color: transparent;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-img {
        flex: auto;
        width: 100%;
    }

    .feature-text {
        flex-direction: column;
    }

    .food-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-item {
        width: 100%;
        max-width: 100%;
    }

    .food-icons-grid {
        grid-template-columns: 1fr;
    }

    .lineup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .food-box {
        padding: 30px 20px;
    }

    .tab-content-container {
        padding: 20px;
    }

    .lineup-content {
        flex-direction: column;
    }

    .lineup-thumb {
        width: auto;
        max-width: 200px;
        margin: 0 auto 20px;
        order: -1;
    }

    /* Image on top on mobile */
    .icon-flag {
        bottom: 0;
    }
}

/* --- Common Layout for New Food Pages --- */
.food-brand-banner { width: 100%; height: 350px; margin-top: 130px; display: flex; justify-content: center; align-items: center; background-size: cover; background-position: center; position: relative; }
.food-brand-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.45); }
.food-brand-banner h1 { color: #fff; font-size: 3.5rem; font-family: 'Noto Serif JP', serif; letter-spacing: 0.1em; position: relative; z-index: 2; margin: 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.food-page-wrapper { max-width: 1200px; margin: 60px auto 100px; padding: 0 20px; display: flex; gap: 50px; align-items: flex-start; }
.food-sidebar { width: 240px; flex-shrink: 0; min-width: 240px; position: sticky; top: 180px; margin-top: 0; }
.sidebar-title { font-size: 1.1rem; color: #3b2a26; border-bottom: 2px solid #5a423d; padding-bottom: 10px; margin-bottom: 20px; font-weight: bold; }
.sidebar-brand-list, .sidebar-guide-list { list-style: none; padding: 0; margin: 0 0 40px; }
.sidebar-brand-list > li { margin-bottom: 15px; }
.sidebar-brand-list > li > a { font-size: 1.05rem; color: #3b2a26; font-weight: bold; display: block; margin-bottom: 10px; transition: color 0.3s; }
.sidebar-brand-list > li > a:hover { color: #00aeee; }
.sub-brand-list { list-style: none; padding-left: 20px; margin: 0; border-left: 1px solid #ccc; }
.sub-brand-list li { position: relative; margin-bottom: 8px; }
.sub-brand-list li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 10px; height: 1px; background-color: #ccc; }
.sub-brand-list a { font-size: 0.9rem; color: #555; transition: color 0.3s; }
.sub-brand-list a:hover { color: #3b2a26; font-weight: bold; }
.sidebar-guide-list li { margin-bottom: 15px; }
.sidebar-guide-list a { font-size: 0.95rem; color: #3b2a26; transition: color 0.3s; }
.sidebar-guide-list a:hover { color: #00aeee; }
.mobile-sidebar-toggle { display: none; }

.food-main { flex-grow: 1; min-width: 0; }
.sec-title-en { font-family: 'Noto Serif JP', serif; font-size: 2.5rem; color: #41322a; text-align: center; letter-spacing: 0.1em; margin-bottom: 5px; }
.sec-title-ja { font-size: 0.9rem; color: #555; text-align: center; letter-spacing: 0.2em; margin-bottom: 40px; }
.food-top-kv { margin-bottom: 60px; }
.food-top-img { width: 100%; height: auto; border-radius: 4px; }

.about-section { margin-bottom: 80px; text-align: center; }
.about-catch { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; color: #41322a; margin-bottom: 20px; line-height: 1.5; }
.about-desc { font-size: 0.95rem; color: #444; line-height: 1.8; margin-bottom: 50px; text-align: center; }
.about-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.about-card { flex: 1 1 calc(25% - 20px); min-width: 150px; background: #fff; padding: 30px 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; }
.about-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 15px; }
.about-card h4 { font-size: 0.95rem; color: #41322a; line-height: 1.5; }

.rotation-section { margin-bottom: 80px; text-align: center; padding: 50px 0; border-top: 1px dashed #ccc; border-bottom: 1px dashed #ccc; }
.rotation-img-wrap { max-width: 600px; margin: 40px auto 0; }
.rotation-img-wrap img { width: 100%; height: auto; }

/* LINEUP Shared */
.lineup-section { margin-bottom: 80px; }
.brand-sub-heading { grid-column: 1 / -1; font-family: 'Noto Serif JP', serif; font-size: 1.5rem; color: #41322a; border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-top: 50px; margin-bottom: 20px; }

/* Petkind line headings */
.line-heading-petkind { grid-column: 1 / -1; background: linear-gradient(to bottom, #d6ddd9, #8faca1); color: #fff; padding: 8px 20px; font-size: 1.1rem; font-weight: bold; text-align: center; letter-spacing: 0.1em; margin-top: 20px; margin-bottom: 20px; border-radius: 4px; }
.line-heading-petkind.gold { background: linear-gradient(to bottom, #f2db89, #c19c36); }
.line-heading-petkind.platinum { background: linear-gradient(to bottom, #ececec, #c3c7cb); color: #555; }

/* Empire line headings */
.line-heading-empire { grid-column: 1 / -1; font-family: 'Noto Serif JP', serif; font-size: 1.25rem; font-weight: bold; color: #41322a; border-bottom: 2px solid #41322a; padding-bottom: 8px; margin-top: 40px; margin-bottom: 20px; }

.product-item { display: flex; align-items: flex-start; gap: 20px; }
.product-info { flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.1rem; font-weight: bold; color: #41322a; margin-bottom: 10px; line-height: 1.4; }
.product-price { font-size: 1.1rem; color: #b12c1b; font-weight: bold; margin-bottom: 12px; background: rgba(177,44,27,0.05); display: inline-block; padding: 5px 12px; border-radius: 4px; }
.product-tags { margin-bottom: 15px; }
.product-tag-age, .product-tag-ing { display: inline-block; background: #d4c8b8; color: #333; font-size: 0.8rem; padding: 4px 8px; border-radius: 2px; margin-bottom: 5px; margin-right: 5px; }
.product-tag-ing { background: #f0ebd8; }
.product-desc { font-size: 0.85rem; color: #555; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.btn-buy { display: inline-block; background: #41322a; color: #fff; padding: 10px 20px; font-size: 0.9rem; font-weight: bold; text-align: center; border-radius: 30px; transition: all 0.3s; text-decoration: none; width: fit-content; }
.btn-buy:hover { background: #2a1f19; transform: translateY(-2px); }
.product-image { width: 140px; flex-shrink: 0; text-align: center; }
.product-image img { max-width: 100%; height: auto; filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.1)); }
.badge-new { background-color: #e54c5e; color: white; font-size: 0.75rem; padding: 3px 8px; border-radius: 20px; font-weight: bold; margin-left: 10px; vertical-align: middle; }

@media screen and (max-width: 768px) {
    .food-brand-banner { height: 200px; margin-top: 70px; } /* Header is smaller on mobile */
    .food-brand-banner h1 { font-size: 2.2rem; }
    .food-page-wrapper { flex-direction: column; margin-top: 40px; gap: 20px; }
    .food-sidebar { width: 100%; position: static; border-bottom: 1px solid #ccc; padding-bottom: 20px; margin-bottom: 20px; }
    .sidebar-title { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .sidebar-title::after { content: '▼'; font-size: 0.8rem; }
    .sidebar-title.active::after { content: '▲'; }
    .sidebar-brand-list, .sidebar-guide-list { display: none; }
    .food-main { width: 100%; }
    .lineup-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-item { flex-direction: column-reverse; align-items: center; text-align: center; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .product-image { margin-bottom: 20px; }
    .btn-buy { width: 100%; }
}
