﻿
.send-msg {
  position: relative;
  right: 20px;
  text-align: center;
  display: block;
  min-width: 136px;
  padding: 13px 6px;
  background-color: #383375;
  color: #fff;
  border-radius: 30px;
  max-height: 42px;
  float: right;
}

.adid-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  /* gap: 270px; */
  justify-content: space-between !important;
  /* width: 482px; */
  height: 50px;
  flex: none;
  order: 0;
  flex-grow: 0;
  margin-bottom: 10px;
}


.adid-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 0px;
  /* width: 482px; */
  height: 50px;
  flex: none;
  order: 0;
  flex-grow: 0;
  margin-bottom: 10px;
  width: auto;
}

.product-details-page-body .master-wrapper-content {
  padding-top: 35px
}

.overview .breadcrumb {
  margin-left: 3%;
  margin-bottom: 0
}

.overview .middle {
  margin: auto;
  margin-left: 0%;
}

.breadcrumb ul {
  padding-bottom: 0;
  margin-bottom: 0;
}
/* ========== MOBILE-FIRST RESPONSIVE FIXES ========== */
@media (max-width: 768px) {
  /* Main layout: stack gallery & overview vertically */
  .master-wrapper-content {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .overview .breadcrumb {
    padding: 0 0 15px;
    text-align: left !important;
    background: none !important;
    border: 0 !important;
    font-weight: 400 !important;
    margin-left: 5%;
    position: absolute;
    top: 107px;
    margin-top: 13px;
  }

  .product-essential {
    display: flex;
    flex-direction: column;
  }

  .gallery, .overview {
    width: 93% !important;
    max-width: 100%;
    margin-top: 26px;
  }
  /* Breadcrumb spacing */
  .breadcrumb {
    padding: 0 16px;
  }
  /* Ad ID & Report */
  .adid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
  }

  .ad-wrapper {
    display: flex;
    flex-direction: column;
  }

  .ad-label {
    font-size: 12px;
    color: #666;
  }

  .ad-id {
    font-size: 16px;
    font-weight: bold;
  }

  .report-wrapper {
    font-size: 14px;
    padding: 6px 12px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    text-decoration: none;
  }
  /* Title & Buttons */
  .product-title {
    padding: 0 16px;
  }

  .title-txt {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .overview-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .share-url, .button-2 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Price */
  .product-name {
    padding: 0 16px;
    margin: 16px 0;
  }

  .product-price {
    font-size: 20px !important;
  }
  /* Contact Buttons */
  .contact-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
    margin: 20px 0;
  }

  .contact-btn {
    padding: 14px;
    font-size: 15px;
    justify-content: center;
  }

    .contact-btn img {
      width: 20px;
      height: 20px;
    }
  /* Location */
  .loc {
    padding: 0 16px;
    margin-top: 16px;
    font-weight: 600;
    color: #333;
  }

  .city {
    padding: 0 16px;
  }

  .hittin-riyadh {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
  }

    .hittin-riyadh img {
      width: 18px;
      height: 18px;
    }

  .map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .logosgoogle-maps-icon {
    width: 20px;
    height: 20px;
  }
  /* Advertiser Section */
  .advertiser {
    padding: 16px;
  }

  .about-the-advertiser {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
  }

  .profile-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
  }

  .profile-picture-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  .profile-info {
    flex: 1;
  }

  .salem-elmosalamani {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .send-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #383375;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
  }
  /* Response Info - stack vertically */
  .response-info {
    margin-top: 16px;
  }

  .response-details {
    display: flex;
    gap: 16px;
  }

  .response-elements,
  .response-elements2,
  .response-elements4 {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
  }

  .listing-link {
    margin-top: 16px;
  }

  .link-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .view-13-listing a {
    display: block;
    padding: 12px;
    background: #f1f8e9;
    border-radius: 6px;
    text-align: center;
    color: #33691e;
    font-weight: 600;
  }
  /* Product Collateral */
  .product-collateral {
    padding: 0 16px 24px;
  }

  .title {
    font-size: 18px;
    margin: 24px 0 12px;
  }

  .full-description,
  .product-specs-box {
    font-size: 15px;
    line-height: 1.6;
  }
  /* Ensure no horizontal overflow */
  body, .page, .page-body {
    overflow-x: hidden;
  }
  /* RTL Support */
  [dir="rtl"] .profile-container {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .hittin-riyadh,
  [dir="rtl"] .rating-container,
  [dir="rtl"] .response-elements {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .adid-wrapper {
    flex-direction: row-reverse;
  }
}

/* ========== TABLET MEDIA (768px – 1024px) ========== */
@media (min-width: 768px) and (max-width: 1200px) {
  .product-essential {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .gallery {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .overview {
    flex: 0 0 42%;
    max-width: 42%;
  }

  /* 2. Ad ID & Report — inline, compact */
  .adid-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 20px;
  }

  .ad-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .ad-label {
    font-size: 13px;
    color: #666;
  }

  .ad-id {
    font-size: 16px;
    font-weight: 600;
  }


  .report-wrapper {
    font-size: 13px;
    padding: 4px 10px;
  }

  /* 3. Product title — slightly smaller */
  .title-txt {
    font-size: 24px;
    line-height: 1.3;
  }

  /* 4. Overview buttons — compact row */
  .overview-buttons {
    gap: 6px;
  }

  .share-url, .button-2 {
    width: 32px;
    height: 32px;
  }

  /* 5. Price — adjust size */
  .product-price {
    font-size: 24px !important;
  }

  /* 6. Contact buttons — side-by-side (if space allows) */
  .contact-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .contact-btn {
    flex: 1;
    min-width: 150px;
    font-size: 14px;
    padding: 10px;
  }

  /* 7. Location & Map — clean inline */
  .loc {
    font-size: 15px;
    margin: 16px 0 8px;
  }

  .hittin-riyadh {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
  }

  .city {
    display: flex;
    /* gap: 145px; */
    flex-direction: column;
    gap: 15px;
  }

  .profile-container {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .hittin-riyadh img {
    width: 16px;
    height: 16px;
  }

  .map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 6px 12px;
    margin-top: 6px;
  }

  .logosgoogle-maps-icon {
    width: 16px;
    height: 16px;
  }

  /* 8. Advertiser section — compact layout */
  .advertiser {
    font-size: 14px;
  }

  .about-the-advertiser {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .profile-container {
    display: flex;
    gap: 12px;
    padding: 12px 0;
  }

  .profile-picture-icon {
    width: 50px;
    height: 50px;
  }

  .salem-elmosalamani {
    font-size: 16px;
  }

  .rating-container {
    gap: 6px;
  }

  .response-details {
    gap: 12px;
  }

  .response-elements,
  .response-elements2,
  .response-elements4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
    border: none;
  }

  .hrs, .div, .years {
    font-weight: 600;
    text-wrap: nowrap !important;
  }

  .avg-reply, .reply-rate, .member-since {
    font-size: 12px;
    color: #666;
  }

  .listing-link .view-13-listing a {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* 9. Collateral — tighter spacing */
  .product-collateral {
    padding: 0;
  }

  .title {
    font-size: 18px;
  }

  /* Prevent horizontal scroll */
  body, .page, .page-body {
    overflow-x: hidden;
  }

  /* RTL Support */
  [dir="rtl"] .product-essential {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .adid-wrapper,
  [dir="rtl"] .profile-container,
  [dir="rtl"] .hittin-riyadh,
  [dir="rtl"] .rating-container {
    flex-direction: row-reverse;
  }

  [dir="rtl"] .response-details {
    grid-template-columns: 1fr 1fr; /* stays 2-col, but order flips */
  }

  .master-wrapper-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .overview .middle {
    margin-left: 0 !important;
    margin: auto !important;
  }
}

.picture-thumbs .thumb-item.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #383375;
  border-radius: 13px;
}

.login-to-view-contact {
  background: #f8f9fa;
  border: 1px dashed #383375;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  margin: 10px 0;
}

.login-msg-card p {
  margin: 10px 0 0 0;
  font-weight: 600;
  color: #383375;
}

.login-msg-card a {
  color: #007bff;
  text-decoration: underline !important;
  font-weight: bold;
}

/* لضمان تناسق أيقونة الاتصال الرمادية في رسالة التسجيل */
.login-msg-card img {
  width: 30px;
  margin-bottom: 5px;
}
