/* assets/css/pages/apple-lineup.css */

.lineup-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #1d1d1f;
    background-color: #fbfbfd;
    padding-bottom: 120px;
    padding-top: var(--header-height, 80px);
}

/* 1. Mini Navigation (Ribbon) */
.lineup-nav-ribbon {
    background-color: #fff;
    border-bottom: 1px solid #d2d2d7;
    padding: 12px 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.lineup-nav-ribbon::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.lineup-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1d1d1f;
    min-width: 70px;
    transition: opacity 0.2s;
}
.lineup-nav-item:hover {
    opacity: 0.7;
}

.lineup-nav-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 12px;
}

.lineup-nav-text {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 600;
    letter-spacing: -.01em;
    text-align: center;
}
.lineup-nav-new {
    font-size: 10px;
    color: #bf4800;
    margin-top: 2px;
}

/* 2. Hero Section */
.lineup-hero {
    width: 100%;
    margin: 40px 0;
    padding: 0 40px 20px;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.lineup-hero::-webkit-scrollbar {
    height: 6px;
}
.lineup-hero::-webkit-scrollbar-track {
    background: transparent;
}
.lineup-hero::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}

.hero-banner {
    flex: 0 0 calc(90% - 20px);
    scroll-snap-align: center;
    background-color: #000;
    color: #fff;
    border-radius: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 450px;
}

@media (min-width: 768px) {
    .hero-banner {
        flex: 0 0 600px;
    }
}

.hero-banner.light {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.hero-banner.light h2 {
    color: #1d1d1f !important;
}

.hero-banner h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 8px;
    z-index: 2;
    color: #ffffff !important;
}

.hero-banner p {
    font-size: 21px;
    line-height: 1.19048;
    font-weight: 400;
    letter-spacing: .011em;
    z-index: 2;
}

.hero-banner-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 2;
}

.hero-banner img {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-height: 220px;
    object-fit: contain;
    z-index: 1;
}

/* 3. Explore Grid */
.lineup-explore {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 20px;
}

.explore-title {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -.003em;
    margin: 0;
}

.compare-link {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}
.compare-link:hover {
    text-decoration: underline;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Product Card */
.lineup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(180deg, #e8e8ed 0%, #f5f5f7 100%);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card-img-wrap:hover {
    transform: scale(1.02);
}

.card-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Colored Dots */
.color-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.card-new {
    font-size: 10px;
    color: #bf4800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.card-title {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: .009em;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 24px;
    min-height: 40px;
}

.card-spec {
    font-size: 12px;
    line-height: 1.33337;
    color: #86868b;
    margin-bottom: 24px;
    border-top: 1px solid #d2d2d7;
    padding-top: 16px;
    width: 80%;
}

/* Action Buttons */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.btn-blue-pill {
    background: linear-gradient(90deg, #00B7B3 0%, #4CE06E 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 183, 179, 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}
.btn-blue-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 183, 179, 0.4);
    color: #fff;
}

.btn-link-blue {
    color: #0066cc;
    font-size: 14px;
    text-decoration: none;
}
.btn-link-blue:hover {
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lineup-nav-ribbon {
        justify-content: flex-start;
        gap: 20px;
    }
    .lineup-nav-icon {
        width: 56px;
        height: 56px;
    }
    .lineup-nav-text {
        font-size: 11px;
        font-weight: 600;
    }
    .lineup-hero {
        padding: 0 20px 20px;
        gap: 16px;
    }
    .hero-banner {
        flex: 0 0 calc(90% - 16px);
        padding: 30px 24px;
        min-height: 400px;
    }
    .hero-banner h2 {
        font-size: 32px !important;
    }
    .hero-banner p {
        font-size: 18px;
        line-height: 1.3;
    }
    .explore-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .explore-title {
        font-size: 32px;
    }
}
