:root {
    --green: #2D6A4F; --green-light: #E1F5EE; --text: #1A1A1A;
    --sub: #666; --muted: #AAA; --border: #E8E4DF; --card: #fff;
    --bg: #F5F3EF; --radius: 14px;
  }
  *, *::before, *::after { box-sizing: border-box; }

  .service-page { padding: 1.5rem 0; }

  /* ── گرید اصلی ── */
  .product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
  }
  @media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; }
  }

  /* ── بخش تصویر/ویدیو ── */
  .img-section { display: flex; flex-direction: column; gap: 10px; }

  .main-img {
    width: 100%; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border); background: var(--bg);
  }
  .main-img img {
    width: 100%; height: auto; max-height: 480px;
    object-fit: contain; display: block;
  }
  .main-img video {
    width: 100%; height: auto; max-height: 480px;
    display: block; background: #000; border-radius: var(--radius);
  }

  .thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
  .thumbnails img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s;
  }
  .thumbnails img:hover { border-color: var(--green); }

  .video-wrap {
    position: relative; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: var(--radius);
  }
  .video-wrap iframe {
    position: absolute; top: 0; right: 0;
    width: 100%; height: 100%; border: none;
  }

  /* ── بخش اطلاعات ── */
  .info-section { display: flex; flex-direction: column; gap: 14px; }
  .info-section h1 { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.6; }

  /* لایک/دیسلایک/بازدید */
  .meta-row { display: flex;flex-wrap:wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--sub); }
  .like-container { display: flex; gap: 8px; }
  .like-btn, .dislike-btn {
    background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
    padding: 5px 12px; font-size: 12px; cursor: pointer; font-family: inherit;
  }

  /* قیمت */
  .price-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
  }
  .price-new { font-size: 20px; font-weight: 700; color: var(--green); }
  .price-free {
    font-size: 18px; font-weight: 700; color: var(--green);
    background: var(--green-light); padding: 8px 16px; border-radius: 10px; display: inline-block;
  }
  .price-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

  /* تگ‌ها */
  .service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .tag {
    font-size: 12px; padding: 5px 12px; border-radius: 10px;
    background: var(--bg); color: var(--sub); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 4px;
  }
  .tag.online { background: #E6F1FB; color: #185FA5; border-color: #B3D4F5; }
  .tag.inperson { background: var(--green-light); color: var(--green); border-color: #B7E4C7; }

  /* غرفه */
  .store-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
  }
  .store-box img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .store-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--green-light);
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
  }
  .store-name { font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; display: block; }
  .store-phone { font-size: 12px; color: var(--sub); margin-top: 2px; }

  /* دکمه */
  .contact-btn {
    background: var(--green); color: #fff; border: none; border-radius: var(--radius);
    padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer;
    font-family: inherit; width: 100%; display: flex; align-items: center;
    justify-content: center; gap: 8px; transition: background 0.15s;
  }
  .contact-btn:hover { background: #40916C; }

  .aparat-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--green); text-decoration: none; font-size: 13px; padding: 10px;
    border: 1px dashed var(--border); border-radius: var(--radius); transition: background 0.15s;
  }
  .aparat-link:hover { background: var(--green-light); }

  /* توضیحات */
  .description-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem;
  }
  .description-box h3 {
    font-size: 15px; font-weight: 600; color: var(--text);
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  }
  .description-box p { font-size: 14px; color: var(--sub); line-height: 1.9; }

  /* مودال */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; align-items: center; justify-content: center; padding: 1rem;
  }
  .modal-overlay.open { display: flex; }
  .modal-box {
    background: var(--card); border-radius: 18px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; animation: slideUp .25s ease;
  }
  @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .modal-header { background: var(--green); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
  .modal-header h3 { font-size: 15px; font-weight: 600; }
  .modal-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
  .modal-body { padding: 18px; }
  .modal-desc { font-size: 13px; color: var(--sub); margin-bottom: 16px; line-height: 1.8; }
  .contact-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: var(--green-light); border-radius: 12px; margin-bottom: 10px;
    text-decoration: none; transition: background .15s;
  }
  .contact-item:hover { background: #c8e6d8; }
  .contact-icon { width: 38px; height: 38px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .contact-info { flex: 1; min-width: 0; }
  .contact-label { font-size: 11px; color: var(--sub); display: block; margin-bottom: 2px; }
  .contact-value { font-size: 14px; font-weight: 600; color: var(--text); }
  .contact-badge { font-size: 10px; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
  .divider { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--sub); font-size: 12px; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  @media (max-width: 480px) {
    .main-img img { max-height: 320px; }
    .info-section h1 { font-size: 17px; }
  }
