/* =============================================================
   MilySource Custom Styles - SEO & Conversion Improvements
   ============================================================= */

/* ---------- Breadcrumbs ---------- */
.ms-breadcrumb { margin: 15px 0 10px; font-size: 13px; color: #888; }
.ms-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.ms-breadcrumb li { display: flex; align-items: center; }
.ms-breadcrumb li:not(:last-child)::after { content: '\f105'; font-family: FontAwesome; margin-left: 6px; color: #ccc; }
.ms-breadcrumb a { color: #888; text-decoration: none; }
.ms-breadcrumb a:hover { color: #333; }
.ms-breadcrumb li.active { color: #333; }

/* ---------- Product Header ---------- */
.ms-product-header { padding: 20px 0 10px; }
.ms-category-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.ms-product-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 8px 0 12px;
  line-height: 1.3;
}
.ms-product-meta-line { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }
.ms-star-rating { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.ms-platform-tags { display: flex; gap: 8px; }
.ms-tag {
  background: #eaf4ff;
  color: #2a7ae2;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}
.ms-tag .fa { margin-right: 4px; }

/* ---------- Product Body ---------- */
.ms-product-body { margin-top: 20px; }

/* ---------- Screenshots ---------- */
.ms-screenshots-wrap { margin-bottom: 25px; }
.ms-main-screenshot img { border-radius: 6px; width: 100%; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

/* ---------- Section Titles ---------- */
.ms-section { margin-bottom: 35px; }
.ms-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* ---------- What's Included Checklist ---------- */
.ms-checklist { list-style: none; padding: 0; margin: 0; }
.ms-checklist li {
  padding: 9px 0 9px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-checklist li:last-child { border-bottom: none; }
.ms-checklist .fa-check-circle { color: #27ae60; font-size: 16px; flex-shrink: 0; }

/* ---------- Technical Specs Table ---------- */
.ms-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ms-specs-table tr { border-bottom: 1px solid #f0f0f0; }
.ms-specs-table tr:last-child { border-bottom: none; }
.ms-specs-table td { padding: 10px 8px; vertical-align: top; color: #444; }
.ms-specs-table td:first-child { width: 40%; color: #222; }

/* ---------- FAQ ---------- */
.ms-faq-item { border-bottom: 1px solid #eee; }
.ms-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.ms-faq-question:hover { color: #2a7ae2; }
.ms-faq-question .fa { font-size: 12px; color: #aaa; transition: transform 0.2s; }
.ms-faq-question[aria-expanded="true"] .fa { transform: rotate(180deg); }
.ms-faq-answer { display: none; padding: 0 0 14px; font-size: 14px; color: #555; line-height: 1.7; }

/* ---------- Purchase Sidebar ---------- */
.ms-purchase-sidebar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.ms-price-box { text-align: center; margin-bottom: 16px; }
.ms-price-amount { font-size: 36px; font-weight: 800; color: #1a1a1a; line-height: 1; }
.ms-price-note { font-size: 12px; color: #999; margin-top: 4px; }

/* EDD Buy Button Override */
.ms-buy-btn-wrap { margin-bottom: 20px; }
.ms-buy-btn-wrap .edd-submit,
.ms-buy-btn-wrap .button {
  width: 100%;
  padding: 14px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-align: center;
}

/* ---------- Trust Badges ---------- */
.ms-trust-badges {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
  margin-bottom: 16px;
}
.ms-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
  padding: 6px 0;
}
.ms-trust-item .fa {
  color: #27ae60;
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* ---------- Sidebar Checklist ---------- */
.ms-sidebar-checklist {
  background: #f8fdf9;
  border: 1px solid #d4edda;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ms-sidebar-checklist-title { font-weight: 700; font-size: 13px; color: #333; margin: 0 0 8px; }
.ms-sidebar-checklist ul { list-style: none; padding: 0; margin: 0; }
.ms-sidebar-checklist li { font-size: 13px; color: #444; padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.ms-sidebar-checklist .fa-check { color: #27ae60; font-size: 12px; }

/* ---------- Sidebar Meta ---------- */
.ms-sidebar-meta { font-size: 13px; color: #666; border-top: 1px solid #f0f0f0; padding-top: 14px; }
.ms-meta-row { margin-bottom: 6px; }
.ms-meta-row strong { color: #333; }
.ms-meta-row a { color: #2a7ae2; text-decoration: none; }
.ms-meta-row a:hover { text-decoration: underline; }

/* ---------- Related Products ---------- */
.ms-related-section { margin-top: 40px; border-top: 2px solid #f0f0f0; padding-top: 30px; }
.ms-related-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 20px; transition: box-shadow 0.2s; }
.ms-related-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); }
.ms-related-card img { width: 100%; display: block; }
.ms-related-info { padding: 14px; }
.ms-related-info h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.ms-related-info h3 a { color: #1a1a1a; text-decoration: none; }
.ms-related-info h3 a:hover { color: #2a7ae2; }
.ms-related-price { font-size: 18px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.ms-related-btn {
  display: inline-block;
  background: #2a7ae2;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.ms-related-btn:hover { background: #1a5fba; }

/* ---------- Category Page ---------- */
.ms-category-header { padding: 25px 0 20px; }
.ms-category-title { font-size: 30px; font-weight: 800; color: #1a1a1a; margin: 0 0 12px; }
.ms-category-description { font-size: 15px; color: #555; line-height: 1.8; max-width: 800px; margin-bottom: 12px; }
.ms-category-count { font-size: 13px; color: #888; }
.ms-category-count .fa { margin-right: 5px; }

/* Trust bar on category page */
.ms-cat-trust-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 20px;
  margin-bottom: 25px;
  font-size: 13px;
  color: #555;
}
.ms-cat-trust-bar span { display: flex; align-items: center; gap: 6px; }
.ms-cat-trust-bar .fa { color: #27ae60; }

/* Bottom why-buy section */
.ms-cat-bottom-text { margin-top: 50px; border-top: 2px solid #f0f0f0; padding-top: 35px; }
.ms-cat-bottom-text h2 { font-size: 22px; font-weight: 700; margin-bottom: 25px; color: #1a1a1a; }
.ms-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ms-why-item { text-align: center; padding: 20px 15px; border: 1px solid #f0f0f0; border-radius: 8px; }
.ms-why-item .fa { color: #2a7ae2; margin-bottom: 12px; display: block; }
.ms-why-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #1a1a1a; }
.ms-why-item p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }
.ms-no-products { text-align: center; padding: 40px; color: #888; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ms-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ms-product-title { font-size: 22px; }
  .ms-category-title { font-size: 22px; }
  .ms-why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ms-cat-trust-bar { gap: 10px; }
  .ms-purchase-sidebar { margin-top: 25px; }
}
@media (max-width: 480px) {
  .ms-why-grid { grid-template-columns: 1fr; }
}
