/* Page Load Animation Targets */
body.loading header,
body.loading .page-header,
body.loading .content-section,
body.loading footer {
    opacity: 0;
    filter: blur(20px);
}

body.loading header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

body.loading .page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
}

body.loading .content-section,
body.loading .tab-cta-section,
body.loading footer {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(135deg,
            rgba(255, 87, 64, 0.85) 0%,
            rgba(255, 138, 101, 0.6) 100%
        ),
        var(--page-header-bg-image, none) center/cover;
}

/* Content Section - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #fafafa;
}

/* Use explicit class to keep alternation stable after section removal */
.content-section.section-alt {
    background: #fafafa;
}

.section-title {
    margin-bottom: 1rem;
}

/* Brand Logo */
.brand-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo h2 {
    color: #FF5740;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.brand-logo p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-top: 4px solid #FF5740;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-image.has-photo {
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f5f7fa;
}

.product-image.has-photo img {
    background: #fff;
}

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-details h3 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.product-type {
    color: #FF5740;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-specs {
    list-style: none;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
}

.product-specs li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 1.5rem;
    color: #FF5740;
    font-weight: bold;
    margin: 1rem 0;
}

/* Page-specific btn override */
.btn {
    margin-top: 1rem;
}

/* Product plan CTA: keep button at card bottom-center */
.product-plan-btn {
    width: 100%;
    margin-top: auto;
    align-self: center;
    text-align: center;
}

/* CTA Section with background image */
.tab-cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.tab-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.tab-cta-section .container {
    position: relative;
    z-index: 2;
}

.tab-cta-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
}

.tab-cta-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.btn-secondary {
    background: #1a1a1a;
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background: #333;
}

/* Info Box - page-specific override */
.info-box {
    padding: 2.5rem;
}

.machine-quality-box {
    border-radius: 16px;
}

.machine-quality-title {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.machine-quality-desc {
    font-size: 1.06rem;
    line-height: 1.85;
    margin: 0;
    color: #1a1a1a;
}

.machine-quality-highlights {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.machine-quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(245, 158, 11, 0.32);
    background: linear-gradient(180deg, #fff8eb 0%, #ffefcf 100%);
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

.machine-quality-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

/* Catalog desktop-model CTA: keep a visible gap above button */
.info-box.catalog-cta-gap > .btn {
    margin-top: 1rem;
}

/* Brand Tab Switcher */
.brand-tab-switcher {
    display: flex;
    justify-content: center;
    margin: 0.5rem auto 1rem;
    max-width: 600px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-tab {
    flex: 1;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.brand-tab:hover {
    color: #333;
}

.brand-tab.active {
    color: white;
    transform: scale(1.05);
}

.tab-indicator {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: calc(50% - 8px);
    height: calc(100% - 16px);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.tab-indicator.fujifilm {
    transform: translateX(calc(100% + 8px));
    background: linear-gradient(135deg, #ff6b35, #ff8a65);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Brand Content Wrapper */
.brand-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.brand-content-wrapper.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

/* ==========================================================================
   Responsive - Page-specific
   ========================================================================== */

@media (max-width: 768px) {
    /* Product cards grid */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.35rem;
    }

    .machine-quality-box {
        padding: 1.8rem 1.5rem;
    }

    .machine-quality-title {
        font-size: 1.45rem;
    }

    .machine-quality-desc {
        font-size: 1rem;
    }

    /* CTA section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    /* Brand Tab Switcher */
    .brand-tab {
        padding: 14px 20px;
        font-size: 1.1rem;
    }
}
