/* ===== iPhone Hero ===== */
.iphone-hero {
    padding: 120px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, #f5f5f7 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #1d1d1f;
    margin: 0 0 8px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 20px;
    color: #86868b;
    font-weight: 400;
    margin: 0;
}

/* ===== Model Showcase ===== */
.model-showcase {
    padding: 40px 0 60px;
    background: #fff;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.model-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 113, 227, 0.2);
}

.model-card--hero {
    background: linear-gradient(160deg, #1d1d1f 0%, #2d2d30 100%);
}

.model-card--hero .model-card__title,
.model-card--hero .model-card__desc {
    color: #fff;
}

.model-card--hero .model-card__price {
    color: #64acff;
}

.model-card--featured {
    background: linear-gradient(160deg, #f0f4ff 0%, #e8ecf5 100%);
}

.model-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.badge--blue {
    background: linear-gradient(135deg, #007aff, #0051d5);
}

.badge--green {
    background: linear-gradient(135deg, #34c759, #28a745);
}

.model-card__img {
    width: 140px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover .model-card__img {
    transform: scale(1.08);
}

.model-card__info {
    text-align: center;
    width: 100%;
}

.model-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px;
    line-height: 1.3;
}

.model-card__desc {
    font-size: 13px;
    color: #86868b;
    margin: 0 0 10px;
    line-height: 1.4;
}

.model-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #0071e3;
    display: block;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: #1d1d1f;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: #86868b;
    font-size: 16px;
    margin: 0 0 40px;
}

/* ===== Catalog Section ===== */
.catalog-section {
    padding: 60px 0 40px;
    background: #f5f5f7;
}

.catalog-page {
    min-height: calc(100vh - 180px);
    padding: 100px 0 40px;
}

.catalog-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

/* ===== Category Sections ===== */
.cat-section {
    padding: 32px 0;
    max-width: 1200px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cat-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
}

.note-box {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.1);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.product-item {
    background: #f9f9fb;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 113, 227, 0.15);
}

.product-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}

.product-item-info {
    flex: 1;
    min-width: 0;
}

.product-item-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item-desc {
    font-size: 11px;
    color: #86868b;
}

.product-item-price {
    font-weight: 700;
    color: #0071e3;
    font-size: 14px;
    margin-top: 2px;
    white-space: nowrap;
}

.product-item-price.deficit {
    color: #ff3b30;
    font-size: 11px;
}

.product-item .btn {
    padding: 6px 12px;
    font-size: 11px;
    flex-shrink: 0;
}

/* ===== Page Header (common) ===== */
.page-header {
    padding: 100px 0 40px;
    background: linear-gradient(180deg, rgba(245, 245, 247, .95), rgba(255, 255, 255, .9));
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.page-header p {
    text-align: center;
    color: var(--gray);
}

/* ===== Back Link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    background: rgba(0, 113, 227, 0.15);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .model-card {
        padding: 20px 14px 18px;
        border-radius: 16px;
    }

    .model-card__img {
        width: 100px;
        height: 130px;
    }

    .model-card__title {
        font-size: 14px;
    }

    .model-card__desc {
        font-size: 11px;
        display: none;
    }

    .model-card__price {
        font-size: 13px;
    }

    .model-card__badge {
        font-size: 8px;
        padding: 3px 7px;
        top: 8px;
        right: 8px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-list {
        grid-template-columns: 1fr;
    }

    .iphone-hero {
        padding: 100px 0 30px;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .model-card__img {
        width: 80px;
        height: 100px;
    }

    .model-card {
        padding: 16px 10px 14px;
    }
}