/*
 * Static pages: Contact, About, FAQ, Search results, 404
 * Enqueued only on the pages that need it (see mshop_enqueue_conditional_styles()
 * in functions.php) to keep the CSS payload smaller on the rest of the site.
 * Loads after main.css, so it can safely build on the shared base styles.
 */

/* Static pages — Contact, About, FAQ, Search, 404, Compare */
.mshop-contact-page,
.mshop-about-page,
.mshop-faq-page,
.mshop-search-page,
.mshop-compare-page {
  padding-top: 28px;
  padding-bottom: 60px;
}

.mshop-page-hero {
  max-width: 720px;
  margin-bottom: 34px;
}

.mshop-page-hero h1 {
  margin: 8px 0 12px;
  color: #202838;
  font-size: 32px;
  font-weight: 950;
}

.mshop-page-hero p,
.mshop-page-hero__intro {
  color: #667085;
  font-size: 14px;
  line-height: 2;
}

.mshop-page-hero__intro p {
  margin: 0 0 12px;
}

/* Contact page */
.mshop-contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  gap: 26px;
}

.mshop-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mshop-contact-card--block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.mshop-contact-card--block:hover {
  border-color: var(--mshop-accent);
  box-shadow: 0 14px 28px rgba(22, 31, 50, 0.08);
}

.mshop-contact-card--block .mshop-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--mshop-accent);
}

.mshop-contact-card--block small {
  display: block;
  margin-bottom: 2px;
  color: #9298a5;
  font-size: 10.5px;
}

.mshop-contact-card--block strong {
  display: block;
  color: #222a3a;
  font-size: 13px;
}

.mshop-contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.mshop-contact-socials a {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  color: #4a5164;
  place-items: center;
}

.mshop-contact-socials a:hover {
  border-color: var(--mshop-accent);
  color: var(--mshop-accent);
}

.mshop-contact-form-wrap {
  padding: 28px;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
}

.mshop-contact-form-wrap .woocommerce-message,
.mshop-contact-form-wrap .woocommerce-error {
  margin-bottom: 18px;
}

.mshop-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mshop-form-row {
  margin-bottom: 16px;
}

.mshop-form-row label {
  display: block;
  margin-bottom: 7px;
  color: #343b4b;
  font-size: 12.5px;
  font-weight: 750;
}

.mshop-form-row input,
.mshop-form-row textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
  background: #fff;
  color: #202838;
  font-size: 13px;
}

.mshop-form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.mshop-form-row input:focus,
.mshop-form-row textarea:focus {
  border-color: var(--mshop-accent);
  outline: none;
}

.mshop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mshop-form button[type="submit"] {
  border: 0;
  cursor: pointer;
}

/* About page */
.mshop-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 46px;
}

.mshop-about-stat {
  padding: 22px 16px;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.mshop-about-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--mshop-accent);
  font-size: 26px;
  font-weight: 950;
}

.mshop-about-stat span {
  color: #667085;
  font-size: 12px;
}

.mshop-about-values {
  padding-inline: 0;
}

.mshop-about-cta {
  margin-top: 46px;
}

/* FAQ page */
.mshop-faq-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 860px;
}

.mshop-faq-group h2 {
  margin: 0 0 14px;
  color: #202838;
  font-size: 18px;
  font-weight: 900;
}

.mshop-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mshop-faq-item {
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  background: #fff;
}

.mshop-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #222a3a;
  font-size: 13.5px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.mshop-faq-item summary::-webkit-details-marker {
  display: none;
}

.mshop-faq-item__icon {
  display: grid;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f6f7fb;
  color: #4a5164;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mshop-faq-item__icon .mshop-icon {
  width: 14px;
  height: 14px;
}

.mshop-faq-item[open] .mshop-faq-item__icon {
  background: var(--mshop-accent);
  color: #fff;
  transform: rotate(-90deg);
}

.mshop-faq-item__answer {
  padding: 0 18px 18px;
  color: #5f6676;
  font-size: 13px;
  line-height: 2;
}

.mshop-faq-item__answer p {
  margin: 0;
}

.mshop-faq-cta {
  margin-top: 40px;
}

/* Search results page */
.mshop-search-count {
  margin: 4px 0 0;
  color: #9298a5;
  font-size: 12.5px;
}

.mshop-search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.mshop-search-tabs a {
  padding: 9px 16px;
  border: 1px solid #e8eaf0;
  border-radius: 999px;
  color: #4a5164;
  font-size: 12.5px;
  font-weight: 750;
}

.mshop-search-tabs a.is-active {
  border-color: var(--mshop-accent);
  background: var(--mshop-accent);
  color: #fff;
}

.mshop-search-section {
  margin-bottom: 36px;
}

.mshop-search-section h2 {
  margin: 0 0 16px;
  color: #202838;
  font-size: 17px;
  font-weight: 900;
}

.mshop-search--empty-state {
  max-width: 420px;
  margin: 0 auto 20px;
}

/* 404 page */
.mshop-404-search {
  max-width: 420px;
  margin: 0 auto 22px;
}

.mshop-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mshop-404-categories {
  margin-top: 34px;
}

.mshop-404-categories__label {
  display: block;
  margin-bottom: 12px;
  color: #9298a5;
  font-size: 12px;
}

.mshop-404-categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mshop-404-categories__list a {
  padding: 9px 16px;
  border: 1px solid #e8eaf0;
  border-radius: 999px;
  color: #4a5164;
  font-size: 12.5px;
  font-weight: 750;
}

.mshop-404-categories__list a:hover {
  border-color: var(--mshop-accent);
  color: var(--mshop-accent);
}

/* Compare page */
.mshop-compare-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
}

.mshop-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.mshop-compare-table th,
.mshop-compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f4;
  text-align: center;
  vertical-align: middle;
}

.mshop-compare-table tbody th {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.mshop-compare-table tbody tr:last-child th,
.mshop-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.mshop-compare-table__label-col {
  width: 160px;
}

.mshop-compare-table__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 4px;
}

.mshop-compare-table__image img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mshop-compare-table__title {
  display: -webkit-box;
  overflow: hidden;
  color: #202838;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mshop-compare-table__price {
  font-size: 13px;
  font-weight: 900;
}

.mshop-compare-table__cart {
  padding: 9px 16px;
  font-size: 11.5px;
}

.mshop-compare-page__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.mshop-compare-page__actions button {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mshop-contact-layout {
    grid-template-columns: 1fr;
  }

  .mshop-about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mshop-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Guest order tracking */
.mshop-order-tracking-form {
  max-width: 480px;
  padding: 26px;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
}

.mshop-order-tracking-form .form-row {
  margin-bottom: 16px;
}

.mshop-order-tracking-form label {
  display: block;
  margin-bottom: 7px;
  color: #343b4b;
  font-size: 12.5px;
  font-weight: 750;
}

.mshop-order-tracking-form input.input-text {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
  background: #fff;
  color: #202838;
  font-size: 13px;
}

.mshop-order-tracking-form input.input-text:focus {
  border-color: var(--mshop-accent);
  outline: none;
}

.mshop-order-tracking-form .description {
  display: block;
  margin-top: 6px;
  color: #9298a5;
  font-size: 11px;
}

.mshop-order-tracking-form button[type="submit"] {
  border: 0;
  cursor: pointer;
}

.mshop-order-tracking-result .woocommerce-order-overview {
  margin-bottom: 26px;
}

.mshop-order-tracking-again {
  margin-top: 22px;
}

/* Wishlist page reuses .mshop-products-grid / .mshop-empty-state as-is. */

@media (max-width: 620px) {
  .mshop-page-hero h1 {
    font-size: 25px;
  }

  .mshop-contact-form-wrap {
    padding: 18px;
  }

  .mshop-search-tabs {
    overflow-x: auto;
  }

  .mshop-order-tracking-form {
    padding: 18px;
  }
}

