/* ──────────────────────────────────────────────────────────
   ASTRO — صفحة المنتج
   ──────────────────────────────────────────────────────────
   الصور والمعرض والتفاصيل والمواصفات واختيار الكمية وعرض الصورة الكاملة.
────────────────────────────────────────────────────────── */

        /* ══ صفحة المنتج ══ */
    #productPage {
      display: none;
      min-height: 100vh;
      padding-top: 80px;
      position: relative;
      z-index: 1;
    }
    .product-page-inner {
      max-width: 1080px;
      margin: 0 auto;
      padding: 40px 60px;
    }
    .product-page-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: flex-start;
    }
    /* الصور */
    .product-images {
      position: sticky;
      top: 100px;
    }
    .product-main-img {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 12px;
      border: 1px solid rgba(138,77,255,0.2);
      cursor: zoom-in;
      transition: border-color 0.2s;
    }
    .product-main-img:hover { border-color: rgba(138,77,255,0.5); }
    .product-main-placeholder {
      width: 100%;
      aspect-ratio: 1;
      background: linear-gradient(135deg, rgba(80,20,160,0.3), rgba(20,10,40,0.8));
      border-radius: 12px;
      border: 1px solid rgba(138,77,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 6rem;
    }
    /* تفاصيل المنتج */
    .product-page-tag {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.6rem;
      letter-spacing: 4px;
      color: var(--pm);
      margin-bottom: 12px;
    }
    .product-page-name {
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      font-weight: 900;
      background: linear-gradient(135deg, #fff, var(--pl));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 20px;
      line-height: 1.3;
    }
    .product-page-price {
      font-family: 'Orbitron', sans-serif;
      font-size: 2rem;
      font-weight: 900;
      color: var(--pl);
      filter: drop-shadow(0 0 10px rgba(192,132,252,0.4));
      margin-bottom: 24px;
    }
    .product-page-desc {
      font-size: 0.9rem;
      color: rgba(242,242,247,0.65);
      line-height: 1.9;
      margin-bottom: 28px;
      padding-bottom: 28px;
      border-bottom: 1px solid rgba(138,77,255,0.12);
    }
    /* المواصفات */
    .specs-title {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.7rem;
      letter-spacing: 3px;
      color: var(--pm);
      margin-bottom: 14px;
    }
    .specs-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 28px;
      padding-bottom: 28px;
      border-bottom: 1px solid rgba(138,77,255,0.12);
    }
    .spec-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.86rem;
      color: rgba(242,242,247,0.7);
    }
    .spec-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--pm);
      flex-shrink: 0;
      box-shadow: 0 0 6px var(--pm);
    }
    /* اختيار الكمية */
    .qty-label {
      font-family: 'Orbitron', sans-serif;
      font-size: 0.65rem;
      letter-spacing: 3px;
      color: var(--pm);
      margin-bottom: 12px;
    }
    .qty-control {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }
    .qty-btn {
      width: 40px; height: 40px;
      background: rgba(138,77,255,0.15);
      border: 1px solid rgba(138,77,255,0.3);
      border-radius: 8px;
      color: var(--pl);
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      font-weight: 700;
    }
    .qty-btn:hover { background: rgba(138,77,255,0.3); }
    .qty-num {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
      min-width: 30px;
      text-align: center;
    }
    .product-page-order-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--pd), var(--pm));
      border: none;
      border-radius: 8px;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 2px;
      cursor: pointer;
      box-shadow: 0 0 24px rgba(138,77,255,0.4);
      transition: box-shadow 0.25s, transform 0.2s;
      margin-bottom: 12px;
    }
    .product-page-order-btn:hover { box-shadow: 0 0 40px rgba(138,77,255,0.7); transform: translateY(-2px); }

    /* lightbox للصورة الكبيرة */
    .img-lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.92);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
    }
    .img-lightbox.open { display: flex; }
    .img-lightbox img {
      max-width: 92vw;
      max-height: 92vh;
      object-fit: contain;
      border-radius: 8px;
    }
    .lightbox-close {
      position: absolute;
      top: 20px; left: 20px;
      background: rgba(138,77,255,0.2);
      border: 1px solid rgba(138,77,255,0.3);
      border-radius: 50%;
      width: 40px; height: 40px;
      color: #fff;
      font-size: 1rem;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }

    @media(max-width: 768px) {
      .product-page-grid { grid-template-columns: 1fr; gap: 30px; }
      .product-images { position: static; }
      .product-page-inner { padding: 20px 18px; }
    }

