/* =========================================================
   PURE&CLEAN MOBILE — PRODUCT DETAILS DIALOG MODULE
   Add after assets/css/style.css
   ========================================================= */

.phone-dialog {
  width: min(1180px, calc(100% - 36px));
  max-height: min(92svh, 930px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--body, #4d5360);
  box-shadow: 0 22px 70px rgba(19, 22, 29, .27);
}

.phone-dialog::backdrop {
  background: rgba(17, 20, 26, .68);
  backdrop-filter: blur(3px);
}

.phone-dialog__close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 20;
  width: 44px;
  height: 44px;
  margin: 16px 16px -60px 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e5ec;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink, #252525);
  font-size: 1.55rem;
  line-height: 1;
}

.phone-dialog__close:hover {
  background: #f5f5f8;
}

.phone-dialog__content {
  padding: clamp(1.2rem, 3vw, 2.25rem);
}

.phone-dialog__notice {
  display: none;
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #fff5e8;
  color: #633700;
  font-size: .9rem;
}

.phone-dialog__notice.is-visible {
  display: block;
}

.phone-dialog__grid {
  display: grid;
  grid-template-columns: minmax(360px, .98fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(1.7rem, 4vw, 3.1rem);
}

.phone-gallery__stage {
  position: relative;
  min-height: clamp(400px, 44vw, 500px);
  padding: 3rem 1.35rem 1.45rem;
  display: grid;
  place-items: center;
  border: 1px solid #e9ebf1;
  border-radius: 17px;
  background: #fff;
}

.phone-gallery__image {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 420px;
  object-fit: contain;
}

.phone-gallery__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .42rem;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  padding: .36rem .7rem;
  border: 1px solid #ffbd80;
  border-radius: 999px;
  background: #fff7ee;
  color: #db641d;
  font-size: .75rem;
  font-weight: 750;
  line-height: 1;
}

.phone-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.phone-badge--danger {
  border-color: #ffc1c3;
  background: #fff3f4;
  color: #d92e33;
}

.phone-gallery__thumbs {
  display: flex;
  gap: .65rem;
  margin-top: .7rem;
  overflow-x: auto;
  padding-bottom: .15rem;
}

.phone-gallery__thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: .35rem;
  display: grid;
  place-items: center;
  border: 1px solid #e3e6ee;
  border-radius: 11px;
  background: #fff;
}

.phone-gallery__thumb[aria-current="true"] {
  border: 2px solid var(--ink, #252525);
}

.phone-gallery__thumb img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.phone-summary {
  padding-top: .15rem;
}

.phone-summary__category {
  margin: 0 0 .8rem;
  color: var(--teal, #128b83);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.phone-summary__title {
  max-width: calc(100% - 48px);
  margin: 0 0 .85rem;
  color: var(--ink, #252525);
  font-size: clamp(1.78rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}

.phone-summary__description {
  margin: 0 0 1.3rem;
  color: var(--body, #4d5360);
  font-size: 1rem;
  line-height: 1.7;
}

.phone-summary__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .85rem;
  margin-bottom: 1.12rem;
}

.phone-summary__price strong {
  color: var(--ink, #252525);
  font-size: clamp(2.05rem, 3.3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.phone-summary__price del {
  color: #989fab;
  font-size: 1.15rem;
  font-weight: 700;
}

.phone-summary__saving {
  flex-basis: 100%;
  margin: .2rem 0 0;
  color: #eb6318;
  font-size: .88rem;
  font-weight: 750;
}

.phone-summary__actions {
  display: grid;
  gap: .7rem;
}

.phone-summary__actions .button {
  min-height: 55px;
  font-weight: 750;
}

.phone-summary__file {
  min-height: 54px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border: 2px solid #e1e4eb;
  border-radius: 15px;
  color: var(--ink, #252525);
  font-weight: 700;
}

.phone-summary__file:hover {
  text-decoration: none;
  border-color: #c5cad4;
  background: #fafafd;
}

.phone-summary__file svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  list-style: none;
  margin: 1.45rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line, #e7e8ee);
}

.phone-assurances li {
  display: grid;
  justify-items: center;
  gap: .45rem;
  text-align: center;
  color: var(--body, #4d5360);
  font-size: .73rem;
  line-height: 1.4;
}

.phone-assurances svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--ink, #252525);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-details {
  margin-top: clamp(1.65rem, 3vw, 2.35rem);
  padding-top: clamp(1.3rem, 2.6vw, 1.8rem);
  border-top: 1px solid var(--line, #e7e8ee);
}

.phone-details h3 {
  margin: 0 0 1rem;
  color: var(--ink, #252525);
  font-size: 1.38rem;
}

.phone-details__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-details__list li {
  position: relative;
  padding-left: 1rem;
  font-size: .94rem;
}

.phone-details__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .63em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal, #128b83);
}

/* Product selected inside the existing enquiry form */
.form-product-context {
  display: grid;
  gap: .18rem;
  margin: 0 0 .9rem;
  padding: .8rem .92rem;
  border-radius: 10px;
  background: var(--panel, #f6f6fb);
  color: var(--muted, #697180);
  font-size: .82rem;
}

.form-product-context strong {
  color: var(--ink, #252525);
  font-size: .95rem;
}

.form-product-context__type {
  color: var(--teal, #128b83);
  font-weight: 700;
}

@media (max-width: 820px) {
  .phone-dialog {
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    margin: 0;
    border-radius: 0;
  }

  .phone-dialog__content {
    padding: .95rem 1rem 1.5rem;
  }

  .phone-dialog__grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .phone-gallery__stage {
    min-height: clamp(275px, 72vw, 355px);
    padding-top: 2.5rem;
  }

  .phone-gallery__image {
    max-height: clamp(222px, 57vw, 300px);
  }

  .phone-summary__title {
    max-width: none;
    padding-right: 48px;
    font-size: clamp(1.58rem, 7vw, 1.9rem);
  }

  .phone-summary__description {
    font-size: .93rem;
    line-height: 1.58;
  }

  .phone-details__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .phone-dialog__close {
    top: 10px;
    margin: 10px 10px -54px 0;
    width: 42px;
    height: 42px;
  }

  .phone-gallery__thumb {
    flex-basis: 59px;
    width: 59px;
    height: 59px;
  }

  .phone-summary__actions .button,
  .phone-summary__file {
    min-height: 50px;
    font-size: .9rem;
  }

  .phone-assurances {
    gap: .25rem;
  }

  .phone-assurances li {
    font-size: .67rem;
  }
}
/* =========================================================
   EXTENDED PRODUCT DESCRIPTION
   ========================================================= */

.phone-about {
  max-width: 980px;
  margin-bottom: 2rem;
}

.phone-about__title {
  margin: 0 0 1rem;
  color: var(--ink, #252525);
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.phone-about__intro {
  max-width: 900px;
  margin: 0 0 1.7rem;
  color: var(--body, #4d5360);
  font-size: .98rem;
  line-height: 1.72;
}

.phone-about__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2rem;
}

.phone-about__section {
  padding: 1.05rem 1.1rem;
  border-radius: 12px;
  background: var(--panel, #f6f6fb);
}

.phone-about__section h5 {
  margin: 0 0 .45rem;
  color: var(--ink, #252525);
  font-size: .98rem;
  line-height: 1.35;
}

.phone-about__section p {
  margin: 0;
  color: var(--body, #4d5360);
  font-size: .9rem;
  line-height: 1.65;
}

.phone-about__closing {
  max-width: 900px;
  margin: 1.55rem 0 0;
  color: var(--body, #4d5360);
  font-size: .96rem;
  line-height: 1.7;
}

.phone-features {
  margin-top: 1.7rem;
}

.phone-details__subtitle {
  margin: 0 0 1rem;
  color: var(--ink, #252525);
  font-size: 1.12rem;
  line-height: 1.35;
}

.phone-features--additional {
  margin-top: 1.8rem;
  padding: 1.35rem;
  border-radius: 13px;
  background: #fffaf0;
}

.phone-features--additional .phone-details__list li::before {
  background: var(--yellow-strong, #f7c600);
}

@media (max-width: 820px) {
  .phone-about {
    margin-bottom: 1.5rem;
  }

  .phone-about__sections {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .phone-about__section {
    padding: .9rem .95rem;
  }

  .phone-about__intro,
  .phone-about__closing {
    font-size: .92rem;
    line-height: 1.62;
  }

  .phone-features--additional {
    padding: 1rem;
  }
}