/* ============================================
   NXTCORE Pro — Apple-Style Cinematic Product Page
   ============================================ */

/* --- Reset for apple page --- */
.apple-hidden-form { display: none !important; }

/* Hide entire site header wrapper when apple nav takes over */
.container-custom-header-hostx-wrapper {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 200px;
    position: relative;
    z-index: 100;
}
.container-custom-header-hostx-wrapper.apple-header-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================
   STICKY NAV
   ============================================ */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.apple-nav.visible {
    transform: translateY(0);
}
.apple-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.apple-nav__name {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.apple-nav__links {
    display: flex;
    gap: 28px;
    flex: 1;
}
.apple-nav__links a {
    font-size: 15px;
    color: #424245;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 500;
}
.apple-nav__links a:hover,
.apple-nav__links a.active {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
}
.apple-nav__right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.apple-nav__price {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}
.apple-nav__buy {
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 14px 64px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}
.apple-nav__buy:hover {
    background: #333336;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Hero Intro — text block above video */
.apple-hero-intro {
    background: #000;
    text-align: center;
    padding: 80px 24px 48px;
    /* Break out of Bootstrap .container */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.apple-hero-intro__text {
    max-width: 680px;
    margin: 0 auto;
}
.apple-hero-intro .apple-hero__title {
    color: #f5f5f7;
}
.apple-hero-intro .apple-hero__sub {
    color: rgba(245,245,247,0.7);
}
.apple-hero-intro .apple-hero__tagline {
    color: #f5f5f7;
}
.apple-hero-intro .apple-hero__price {
    color: rgba(245,245,247,0.8);
    margin-bottom: 0;
}


/* Sticky nav star rating */
.apple-nav__stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}
.apple-nav__stars .stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}
.apple-nav__stars .stars i {
    color: #ffc300;
    font-size: 12px;
}
.apple-nav__stars .review-count {
    color: #86868b;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
.apple-nav__stars .review-count:hover {
    color: #0071e3;
}
@media (max-width: 768px) {
    .apple-nav__stars {
        display: none;
    }
}
/* Hero Video — full-width cinematic video below text */
.apple-hero-video {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    /* Break out of Bootstrap .container */
    left: 50%;
    margin-left: -50vw;
}
.apple-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apple-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}
.apple-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #f5f5f7;
    padding: 0 24px;
}
.apple-hero__title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 8px;
}
.apple-hero__sub {
    font-size: 24px;
    font-weight: 400;
    color: rgba(245,245,247,0.7);
    margin: 0 0 16px;
}
.apple-hero__tagline {
    font-size: 21px;
    font-weight: 500;
    color: #f5f5f7;
    margin: 0 0 12px;
}
.apple-hero__price {
    font-size: 17px;
    font-weight: 400;
    color: rgba(245,245,247,0.8);
    margin: 0 0 24px;
}
.apple-hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.apple-hero__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.apple-hero__btn--primary {
    background: #0071e3;
    color: #fff;
}
.apple-hero__btn--primary:hover {
    background: #0077ed;
    color: #fff;
}
.apple-hero__btn--secondary {
    background: transparent;
    color: #f5f5f7;
    border: 1px solid rgba(245,245,247,0.5);
}
.apple-hero__btn--secondary:hover {
    background: rgba(245,245,247,0.1);
    color: #fff;
}
.apple-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(245,245,247,0.6);
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: apple-bounce 2s infinite;
}
@keyframes apple-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
.apple-section {
    padding: 120px 24px;
    overflow: hidden;
    /* Break out of Bootstrap .container */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}
.apple-section__inner {
    max-width: 780px;
    margin: 0 auto;
}
.apple-section__inner--wide {
    max-width: 1200px;
}
.apple-section--dark {
    background: #1d1d1f;
    color: #f5f5f7;
}
/* Performance section: white background */
#apple-performance {
    background: #fff;
    color: #1d1d1f;
    overflow: visible;
}
#apple-performance .apple-section__eyebrow {
    color: #2997ff;
}
#apple-performance .apple-section__headline {
    color: #1d1d1f;
}
#apple-performance .apple-numbers__label {
    color: #86868b;
}
/* Alternate dark shade for adjacent dark sections */
.apple-section--dark + .apple-section--dark {
    border-top: 1px solid rgba(255,255,255,0.06);
}
.apple-section--light {
    background: #fff;
    color: #1d1d1f;
}
.apple-section--gray {
    background: #f5f5f7;
    color: #1d1d1f;
}
.apple-section__eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    text-align: center;
}
.apple-section--dark .apple-section__eyebrow {
    color: #2997ff;
}
.apple-section__headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-align: center;
    margin: 0 0 24px;
}
.apple-section--dark .apple-section__headline {
    color: #f5f5f7;
}
.apple-section__headline--dark {
    color: #1d1d1f;
}
.apple-section__body {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    color: #86868b;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.apple-section__caption {
    font-size: 14px;
    color: #86868b;
    text-align: center;
    margin-top: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.apple-section__footer--light {
    background: #fff;
    padding: 48px 24px;
    text-align: center;
}
.apple-section__footer--light .apple-section__caption {
    color: #1d1d1f;
    margin-top: 0;
}
.apple-section--dark .apple-section__caption {
    color: #6e6e73;
}

/* ============================================
   BIG NUMBERS
   ============================================ */
.apple-numbers {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 56px 0;
    flex-wrap: wrap;
}
.apple-numbers--compact {
    gap: 40px;
    margin: 40px 0;
}
.apple-numbers__item {
    text-align: center;
    min-width: 0;
}
.apple-numbers__value {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
}
.apple-numbers--compact .apple-numbers__value {
    font-size: 48px;
}
.apple-numbers__unit {
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: baseline;
}
.apple-numbers__label {
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    margin-top: 8px;
    display: block;
}
.apple-section--dark .apple-numbers__label {
    color: #6e6e73;
}

/* ============================================
   MEDIA / VIDEO BLOCKS
   ============================================ */
.apple-media {
    margin: 48px auto;
    border-radius: 20px;
    overflow: hidden;
    max-width: 780px;
    background: #fff;
}
.apple-media--wide {
    max-width: 100%;
}

/* Full-bleed section — breaks out of Bootstrap .container */
.apple-section--fullbleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.apple-media--fullbleed {
    max-width: none;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    margin-top: 48px;
    margin-bottom: 48px;
}
.apple-section-video--fullbleed {
    width: 100%;
    border-radius: 0;
    max-height: 80vh;
    object-fit: cover;
}
.apple-section-video {
    width: 100%;
    display: block;
    border-radius: 20px;
}
/* Showcase video — hero-style edge-to-edge */
.apple-showcase__video-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
.apple-showcase__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apple-display-hero {
    margin: 48px auto;
    text-align: center;
}
.apple-display-hero__img {
    width: 100%;
    max-width: 780px;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* Ports image overlay — hides manufacturer labels */
.apple-ports-hero {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 20px;
}
.apple-ports-hero .apple-display-hero__img {
    border-radius: 20px;
}
.apple-ports-hero__overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        linear-gradient(to bottom,
            transparent 0%,
            transparent 65%,
            rgba(29,29,31,0.85) 75%,
            rgba(29,29,31,1) 82%,
            rgba(29,29,31,1) 100%);
    pointer-events: none;
}

/* ============================================
   PORTS GRID
   ============================================ */
.apple-ports {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.apple-ports__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    text-align: center;
}
.apple-ports__item svg {
    opacity: 0.7;
}
.apple-ports__item span {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
}

/* ============================================
   CONFIGURE SECTION
   ============================================ */
/* ============================================
   RIGHT-SIDE DRAWER CONFIGURATOR
   ============================================ */
.apple-drawer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.apple-drawer__backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.apple-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: 480px;
    max-width: 100vw;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
.apple-drawer.open {
    transform: translateX(0);
}
.apple-drawer__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8ed;
    flex-shrink: 0;
}
.apple-drawer__close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #86868b;
    transition: color 0.2s;
    display: flex;
}
.apple-drawer__close:hover { color: #1d1d1f; }
.apple-drawer__title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    flex: 1;
}
.apple-drawer__price {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
}
.apple-drawer__steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 8px;
    gap: 4px;
    flex-shrink: 0;
    border-bottom: 1px solid #e8e8ed;
}
.apple-drawer__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}
.apple-drawer__step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7;
    transition: background 0.3s, transform 0.3s;
}
.apple-drawer__step--visited .apple-drawer__step-dot {
    background: #0071e3;
}
.apple-drawer__step--active .apple-drawer__step-dot {
    background: #0071e3;
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.2);
}
.apple-drawer__step-name {
    font-size: 10px;
    font-weight: 500;
    color: #86868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s;
}
.apple-drawer__step--active .apple-drawer__step-name {
    color: #0071e3;
    font-weight: 600;
}
.apple-drawer__step--visited .apple-drawer__step-name {
    color: #1d1d1f;
}
.apple-drawer__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}
.apple-drawer__slide {
    position: absolute;
    inset: 0;
    padding: 24px;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}
.apple-drawer__slide--active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.apple-drawer__slide--exit-left {
    opacity: 0;
    transform: translateX(-40%);
    pointer-events: none;
}
.apple-drawer__slide-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 6px;
}
.apple-drawer__slide-desc {
    font-size: 14px;
    color: #86868b;
    margin: 0 0 20px;
}
.apple-drawer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e8e8ed;
    flex-shrink: 0;
    background: #fff;
}
.apple-drawer__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #0071e3;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}
.apple-drawer__back:hover { text-decoration: underline; }
.apple-drawer__back.hidden { visibility: hidden; }
.apple-drawer__next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.apple-drawer__next:hover { background: #0077ed; }
.apple-drawer__next.hidden { display: none; }

/* Summary in drawer */
.apple-summary {
    margin-bottom: 24px;
}
.apple-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8ed;
    font-size: 14px;
    gap: 12px;
}
.apple-summary__label {
    color: #86868b;
    font-weight: 500;
    flex-shrink: 0;
}
.apple-summary__value {
    color: #1d1d1f;
    font-weight: 600;
    text-align: right;
}

/* Mobile drawer full-screen */
@media (max-width: 768px) {
    .apple-drawer { width: 100vw; }
}

.apple-config-group {
    margin-bottom: 48px;
}
.apple-config-group__title {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
}
.apple-config-group__desc {
    font-size: 14px;
    color: #86868b;
    margin: 0 0 20px;
}
.apple-config-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.apple-config-cards--os {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.apple-config-card {
    background: #fff;
    border: 2px solid #d2d2d7;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.apple-config-card:hover {
    border-color: #86868b;
}
.apple-config-card--selected {
    border-color: #0071e3;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #0071e3;
}
.apple-config-card__label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.4;
}
.apple-config-card--selected .apple-config-card__label {
    color: #0071e3;
}

/* Default/Recommended config — green highlight */
.apple-config-card--default {
    border-color: #34c759;
    background: #f0faf2;
    position: relative;
}
.apple-config-card--default:hover {
    border-color: #30a14e;
}
.apple-config-card--default.apple-config-card--selected {
    border-color: #30a14e;
    background: #e6f9eb;
    box-shadow: 0 0 0 1px #30a14e;
}
.apple-config-card--default.apple-config-card--selected .apple-config-card__label {
    color: #1a7f37;
}
.apple-config-card__badge {
    display: inline-block;
    background: #34c759;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
    width: fit-content;
}
.apple-config-card--os {
    text-align: center;
    align-items: center;
}

/* --- Color Swatches --- */
.apple-color-swatches {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.apple-color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    padding: 3px;
    cursor: pointer;
    transition: border-color 0.2s;
    background: none;
}
.apple-color-swatch:hover {
    border-color: #86868b;
}
.apple-color-swatch--selected {
    border-color: #0071e3;
}
.apple-color-swatch__circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* --- Addons --- */
.apple-addon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: 2px solid #d2d2d7;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.apple-addon-card:hover {
    border-color: #86868b;
}
.apple-addon-card--selected {
    border-color: #0071e3;
    background: #f0f7ff;
}
.apple-addon-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.apple-addon-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}
.apple-addon-card__desc {
    font-size: 13px;
    color: #86868b;
}
.apple-addon-card__right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.apple-addon-card__price {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}
.apple-addon-card__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.apple-addon-card__check svg {
    opacity: 0;
    transition: opacity 0.2s;
}
.apple-addon-card--selected .apple-addon-card__check {
    background: #0071e3;
    border-color: #0071e3;
}
.apple-addon-card--selected .apple-addon-card__check svg {
    opacity: 1;
    stroke: #fff;
}

/* ============================================
   CHECKOUT BLOCK
   ============================================ */
.apple-checkout {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}
.apple-checkout__price-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.apple-checkout__price {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}
.apple-checkout__original {
    font-size: 18px;
    color: #86868b;
    text-decoration: line-through;
}
.apple-checkout__badge {
    background: #bf4800;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 980px;
}
.apple-checkout__delivery {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.apple-checkout__delivery svg {
    color: #34c759;
}
.apple-checkout__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.apple-checkout__btn:hover {
    background: #0077ed;
}
.apple-checkout__btn svg {
    stroke: #fff;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.apple-gallery {
    margin-top: 48px;
}
.apple-gallery__swiper {
    border-radius: 20px;
    overflow: hidden;
}
.apple-gallery__swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 24px 0;
}
.apple-gallery__swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}
.apple-gallery__swiper .swiper-button-next,
.apple-gallery__swiper .swiper-button-prev {
    color: #1d1d1f;
    background: rgba(255,255,255,0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}
.apple-gallery__swiper .swiper-button-next::after,
.apple-gallery__swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}
.apple-gallery__swiper .swiper-pagination-bullet {
    background: #1d1d1f;
}
.apple-gallery__swiper .swiper-pagination-bullet-active {
    background: #0071e3;
}

/* ============================================
   SPECS TABLE
   ============================================ */
.apple-specs {
    margin-top: 48px;
    border-top: 1px solid #d2d2d7;
}
.apple-specs__row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #d2d2d7;
    gap: 24px;
}
.apple-specs__label {
    width: 200px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    text-transform: capitalize;
}
.apple-specs__value {
    font-size: 14px;
    color: #424245;
    flex: 1;
    line-height: 1.5;
}
.apple-specs__actions {
    margin-top: 24px;
    text-align: center;
}
.apple-specs__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
}
.apple-specs__download:hover {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}
.apple-specs__download:hover svg {
    stroke: #fff;
}

/* ============================================
   REVIEWS — uses product-detail.css classes
   ============================================ */

/* ============================================
   Q&A — uses product-detail.css classes
   ============================================ */

/* ============================================
   HELP SECTION
   ============================================ */
.apple-help {
    padding: 80px 24px;
}
.apple-help__content {
    text-align: center;
}
.apple-help__content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px;
}
.apple-help__content p {
    font-size: 17px;
    color: #86868b;
    margin: 0 0 20px;
}
.apple-help__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    font-weight: 500;
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s;
}
.apple-help__link:hover {
    color: #0077ed;
    text-decoration: underline;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.apple-bottom-nav {
    display: none; /* Hidden on desktop */
}
@media (max-width: 768px) {
    .apple-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: rgba(255,255,255,0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid rgba(0,0,0,0.08);
        padding: 6px 0 env(safe-area-inset-bottom, 4px);
        justify-content: space-around;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    .apple-bottom-nav.visible {
        transform: translateY(0);
    }
    /* Push chat widget above bottom nav on mobile */
    body.apple-page #nova-chat-widget {
        bottom: 72px !important;
        transition: bottom 0.3s ease;
    }
    .apple-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: #86868b;
        font-size: 10px;
        font-weight: 500;
        padding: 4px 8px;
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .apple-bottom-nav__item.active {
        color: #0071e3;
    }
    .apple-bottom-nav__item--primary {
        color: #0071e3;
        font-weight: 600;
    }
    .apple-bottom-nav__item--primary svg {
        stroke: #0071e3;
    }
    .apple-bottom-nav__item svg {
        stroke: currentColor;
    }
    /* Add bottom padding to page so content isn't hidden behind nav */
    .apple-help {
        padding-bottom: 100px;
    }
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .apple-hero__title {
        font-size: 40px;
    }
    .apple-hero__sub {
        font-size: 18px;
    }
    .apple-hero__tagline {
        font-size: 17px;
    }
    .apple-hero__btn {
        padding: 10px 22px;
        font-size: 15px;
    }
    .apple-section {
        padding: 80px 20px;
    }
    .apple-section__headline {
        font-size: 32px;
    }
    .apple-section__body {
        font-size: 17px;
    }
    .apple-numbers {
        gap: 20px;
    }
    .apple-numbers__item {
        flex: 1;
        min-width: 0;
    }
    .apple-numbers__value {
        font-size: 40px;
    }
    .apple-numbers__label {
        font-size: 13px;
        overflow-wrap: break-word;
    }
    .apple-numbers--compact .apple-numbers__value {
        font-size: 32px;
    }
    .apple-nav__inner {
        height: 60px;
        padding: 0 16px;
        gap: 16px;
    }
    .apple-nav__name {
        font-size: 16px;
        flex: 1;
    }
    .apple-nav__links {
        display: none;
    }
    .apple-nav__price {
        font-size: 16px;
    }
    .apple-nav__buy {
        padding: 12px 32px;
        font-size: 15px;
    }
    .apple-ports {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .apple-config-cards {
        grid-template-columns: 1fr;
    }
    .apple-config-cards--os {
        grid-template-columns: 1fr 1fr;
    }
    .apple-checkout {
        padding: 28px 20px;
    }
    .apple-checkout__price {
        font-size: 28px;
    }
    .apple-specs__row {
        flex-direction: column;
        gap: 4px;
    }
    .apple-specs__label {
        width: auto;
    }
    .apple-gallery__swiper .swiper-slide img {
        max-height: 60vh;
    }
    .apple-gallery__swiper .swiper-slide {
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .apple-hero-video {
        min-height: unset;
    }
    .apple-hero__title {
        font-size: 32px;
    }
    .apple-hero__ctas {
        flex-direction: column;
        align-items: center;
    }
    .apple-section__headline {
        font-size: 28px;
    }
    /* Numbers: 2-col grid on small screens to prevent overflow */
    .apple-numbers {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        justify-items: center;
    }
    /* Center last item when odd count (e.g. 3 items: 2 on top, 1 centered) */
    .apple-numbers__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    .apple-numbers__value {
        font-size: 32px;
    }
    .apple-numbers__label {
        font-size: 12px;
        word-break: break-word;
    }
    .apple-numbers--compact .apple-numbers__value {
        font-size: 24px;
    }
    .apple-ports {
        grid-template-columns: repeat(2, 1fr);
    }
    .apple-config-cards--os {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE: video hero adjustments
   ============================================ */
@media (max-width: 768px) {
    .apple-hero__video {
        /* Video plays on mobile with muted+playsinline — poster attr is fallback */
    }
    /* Videos play on mobile — poster fallback not needed */
    .apple-section-video {
        border-radius: 12px;
    }
    .apple-showcase-video {
        max-height: 280px;
    }
    /* Stepper labels smaller on mobile */
    .apple-stepper__labels {
        font-size: 11px;
    }
    .apple-stepper {
        max-width: 100%;
    }
    /* Slides need overflow visible for transitions */
    .apple-slides {
        min-height: 280px;
    }
    /* Nav: prevent overflow */
    .apple-nav__right {
        flex-shrink: 0;
    }
    .apple-nav__buy {
        padding: 10px 20px;
        font-size: 14px;
    }
    .apple-nav__price {
        font-size: 14px;
    }
    .apple-nav__name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .apple-nav,
    .apple-hero-video .apple-hero__video,
    .apple-hero__scroll,
    .apple-hero__ctas,
    .apple-checkout__btn,
    .apple-gallery-section,
    .apple-showcase,
    .apple-help,
    .apple-specs__actions {
        display: none !important;
    }
    .apple-hero-video
        height: auto;
        min-height: 0;
        padding: 40px;
    }
    .apple-section {
        padding: 40px 24px;
        break-inside: avoid;
    }
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Config card price labels */
.apple-config-card__price {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0071e3;
    margin-top: 4px;
}
.apple-config-card__price--included {
    color: #86868b;
    font-weight: 500;
}

/* Spec Info Button & Tooltip */
.apple-specs__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-height: 18px !important;
    max-height: 18px;
    margin-left: 6px;
    padding: 0;
    border: 1.5px solid #86868b;
    border-radius: 50%;
    background: transparent;
    color: #86868b;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}
.apple-specs__info:hover {
    color: #0071e3;
    border-color: #0071e3;
    background: rgba(0,113,227,0.06);
}
.apple-specs__tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 320px;
    padding: 16px 20px;
    background: #1d1d1f;
    color: #f5f5f7;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.24);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.apple-specs__tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.apple-specs__tooltip-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #fff;
}
.apple-specs__tooltip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #86868b;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.apple-specs__tooltip-close:hover { color: #fff; }

/* ---- Mobile hero intro separation ---- */
@media (max-width: 768px) {
    .apple-hero-intro {
        padding: 60px 20px 32px !important;
    }
    .apple-hero-intro .apple-hero__title {
        font-size: 40px !important;
    }
    .apple-hero-intro .apple-hero__sub {
        font-size: 18px !important;
    }
    .apple-hero-intro .apple-hero__tagline {
        font-size: 17px !important;
    }
    .apple-hero-intro .apple-hero__price {
        font-size: 15px !important;
    }
    .apple-hero-video {
        aspect-ratio: auto;
        height: auto;
        min-height: unset;
    }
    .apple-hero__video {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ============================================
   COMPARE CTA (specs section)
   ============================================ */
.apple-compare-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-compare-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2997ff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.apple-compare-cta__link:hover {
    color: #6cb4ff;
    text-decoration: none;
}

.apple-compare-cta__link i {
    font-size: 15px;
}

.apple-compare-cta__link svg {
    transition: transform 0.2s ease;
}

.apple-compare-cta__link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   IMAGE FALLBACK (products without video)
   ============================================ */
.apple-hero-video--image {
    /* Override base .apple-hero-video breakout — use same technique */
    left: 50%;
    margin-left: -50vw;
    height: 70vh;
    max-height: 640px;
    aspect-ratio: auto;
    background: linear-gradient(180deg, #e8e8ed 0%, #f5f5f7 60%, #fff 100%);
}

.apple-hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 32px 10%;
    box-sizing: border-box;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.10));
}

.apple-section-image {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Prevent horizontal scroll from 100vw breakout elements */
body.apple-page {
    overflow-x: hidden;
}

/* ============================================
   MOBILE FIXES — Image fallback + layout
   ============================================ */
@media (max-width: 768px) {
    /* Counter global section overflow-x: hidden */
    .apple-hero-intro,
    .apple-hero-video,
    .apple-hero-video--image,
    .apple-section--fullbleed {
        overflow: visible !important;
    }

    /* Image hero mobile sizing */
    .apple-hero-video--image {
        height: 50vh;
        max-height: 420px;
        min-height: 280px;
    }
    .apple-hero__image {
        padding: 20px 5%;
    }

    /* Section images need height cap */
    .apple-section-image {
        max-height: 50vh;
        border-radius: 16px;
    }
    .apple-media--wide .apple-section-image {
        max-height: 40vh;
    }

    /* Ports hero full-width on mobile */
    .apple-ports-hero {
        width: 100%;
        display: block;
    }
    .apple-display-hero__img {
        max-width: 100%;
    }
    .apple-ports__item {
        padding: 16px 12px;
    }

    /* Drawer safe-area for iPhone X+ home indicator */
    .apple-drawer__footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .apple-hero-video--image {
        height: 45vh;
        min-height: 240px;
        max-height: 360px;
    }
    .apple-hero__image {
        padding: 16px 4%;
    }
    .apple-section-image {
        max-height: 40vh;
        border-radius: 12px;
    }
    /* Spec tooltip full-width on tiny screens */
    .apple-specs__tooltip {
        left: 12px !important;
        right: 12px !important;
        max-width: calc(100vw - 24px);
    }
}


/* ── Connectivity Ports Slideshow (Ken Burns crossfade) ── */
.apple-ports-slideshow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 24px;
}

/* Connectivity section video */
.apple-ports-video {
    position: relative;
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: 24px;
    overflow: hidden;
}
.apple-ports-video__player {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.apple-ports-slideshow__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.apple-ports-slideshow__img--a {
    animation-name: none;
}
.visible .apple-ports-slideshow__img--a {
    animation-name: portsSlideA;
}

.apple-ports-slideshow__img--b {
    animation-name: none;
}
.visible .apple-ports-slideshow__img--b {
    animation-name: portsSlideB;
}

@keyframes portsSlideA {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 1; transform: scale(1.06); }
    50%  { opacity: 0; transform: scale(1.06); }
    90%  { opacity: 0; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes portsSlideB {
    0%   { opacity: 0; transform: scale(1.06); }
    40%  { opacity: 0; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1); }
    90%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.06); }
}

@media (max-width: 768px) {
    .apple-ports-slideshow {
        border-radius: 16px;
        max-width: 100%;
    }
}
