/* =========================
   Device model detail page
========================= */

.iphone-model-page .inner-page-content {
  padding-top: 0;
  padding-bottom: 54px;
  background: #ffffff;
}

.iphone-model-detail {
  max-width: 1120px;
  margin: 0 auto;
}

.iphone-model-detail--empty,
.ipad-model-detail--empty,
.macbook-model-detail--empty,
.watch-model-detail--empty,
.airpods-model-detail--empty {
  padding-top: 28px;
}

/* Breadcrumbs */

.iphone-model-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 22px 0 18px;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1.4;
}

.iphone-model-breadcrumbs a {
  color: #8a8f98;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iphone-model-breadcrumbs a:hover {
  color: #0b7cff;
}

.iphone-model-breadcrumbs span {
  color: #c5c9d0;
}

.iphone-model-breadcrumbs strong {
  color: #1f2937;
  font-weight: 700;
}

/* Hero */

.iphone-model-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 44px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 245, 0.95);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(19, 52, 86, 0.075);
}

.iphone-model-hero::before,
.iphone-model-hero__media::before,
.iphone-model-eyebrow,
.iphone-model-hero__actions,
.iphone-model-link {
  display: none;
}

.iphone-model-hero__content,
.iphone-model-hero__media {
  position: relative;
  z-index: 2;
}

.iphone-model-hero h1 {
  max-width: 620px;
  margin: 0 0 16px;
  color: #111827;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.iphone-model-hero__lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.55;
}

.iphone-model-specs {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.iphone-model-specs__item {
  min-height: 78px;
  padding: 15px 17px;
  border: 1px solid rgba(221, 232, 246, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.035);
}

.iphone-model-specs dt {
  margin: 0 0 6px;
  color: #7b8492;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.iphone-model-specs dd {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.iphone-model-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  background: #0b7cff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(11, 124, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.iphone-model-btn:hover {
  transform: translateY(-2px);
  background: #006ee8;
  box-shadow: 0 18px 38px rgba(11, 124, 255, 0.3);
}

.iphone-model-hero__media {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-model-hero__media img {
  position: relative;
  z-index: 2;
  width: min(330px, 100%);
  max-height: 360px;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

/* Description */

.iphone-model-description {
  margin-top: 26px;
  padding: 30px 34px;
  border: 1px solid rgba(205, 225, 247, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 20%, rgba(11, 124, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 85%, rgba(80, 180, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #f6fbff 0%, #eef7ff 52%, #f8fbff 100%);
  box-shadow: 0 18px 52px rgba(19, 52, 86, 0.055);
}

.iphone-model-description h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.iphone-model-description p {
  max-width: 920px;
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
}

/* Prices */

.iphone-model-prices {
  margin-top: 34px;
  padding: 42px 0 0;
}

.iphone-model-prices__header {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.iphone-model-prices__header h2 {
  margin: 0;
  color: #111827;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.iphone-model-prices__header p {
  display: none;
}

.iphone-price-list {
  display: grid;
  gap: 12px;
}

.iphone-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid #e7edf5;
  border-radius: 24px;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.iphone-price-row:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 124, 255, 0.28);
  background: #f8fbff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.075);
}

.iphone-price-row.is-selected {
  border-color: rgba(11, 124, 255, 0.55);
  background: #f4f9ff;
  box-shadow: 0 18px 44px rgba(11, 124, 255, 0.12);
}

.iphone-price-row__main {
  min-width: 0;
}

.iphone-price-row__top {
  width: auto;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
}

.iphone-price-row__top h3,
.iphone-price-row__main h3 {
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  margin: 0;
  color: #111827;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.iphone-price-row__main p {
  max-width: 760px;
  margin: 0 0 10px;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.55;
}

.iphone-price-row__badges {
  width: auto;
  max-width: none;
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 0;
  white-space: normal;
}

.iphone-price-row__badge,
.iphone-price-row__time {
  min-height: 22px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.iphone-price-row__badge--time,
.iphone-price-row__time {
  color: #075985;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.iphone-price-row__badge--warranty {
  color: #166534;
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.iphone-price-row__seo {
  display: block;
  max-width: 760px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.iphone-price-row__price {
  align-self: center;
  justify-self: end;
  min-width: 140px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.iphone-price-list--empty .iphone-price-row {
  grid-template-columns: 1fr;
  cursor: default;
}

.iphone-model-empty-card {
  padding: 44px;
  border: 1px solid #e8eef6;
  border-radius: 30px;
  background: #f8fafc;
}

.iphone-model-empty-card h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.iphone-model-empty-card p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 1024px) {
  .iphone-model-hero {
    grid-template-columns: 1fr 300px;
    gap: 28px;
    padding: 38px 34px;
  }

  .iphone-model-hero h1 {
    font-size: 40px;
  }

  .iphone-model-hero__media img {
    width: min(280px, 100%);
  }
}

@media (max-width: 900px) {
  .iphone-price-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
  }

  .iphone-price-row__top {
    align-items: flex-start;
    flex-direction: row;
  }

  .iphone-price-row__top h3,
  .iphone-price-row__main h3 {
    font-size: 18px;
  }

  .iphone-price-row__badges {
    display: flex;
  }

  .iphone-price-row__seo {
    max-width: none;
    font-size: 13px;
    line-height: 1.5;
  }

  .iphone-price-row__price {
    align-self: flex-start;
    justify-self: start;
    min-width: 0;
    font-size: 22px;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .iphone-model-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .iphone-model-hero__content,
  .iphone-model-hero__lead,
  .iphone-model-specs {
    margin-left: auto;
    margin-right: auto;
  }

  .iphone-model-hero__media {
    order: -1;
    min-height: 250px;
  }

  .iphone-model-hero__media img {
    width: min(250px, 100%);
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .iphone-model-page .inner-page-content {
    padding-bottom: 42px;
  }

  .iphone-model-breadcrumbs {
    padding-top: 18px;
    font-size: 13px;
  }

  .iphone-model-hero {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 26px;
  }

  .iphone-model-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .iphone-model-hero__lead {
    font-size: 15px;
  }

  .iphone-model-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .iphone-model-specs__item {
    min-height: auto;
    padding: 13px 15px;
  }

  .iphone-model-description {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .iphone-model-description h2 {
    font-size: 24px;
  }

  .iphone-model-description p {
    font-size: 15px;
  }

  .iphone-model-prices {
    margin-top: 26px;
    padding-top: 30px;
  }

  .iphone-model-prices__header h2 {
    font-size: 28px;
  }

  .iphone-price-row {
    border-radius: 20px;
  }

  .iphone-price-row__badge,
  .iphone-price-row__time {
    white-space: normal;
  }
}
