/* =====================================================
   Movador Dokan Products
   Product list, add product, and product edit surfaces.
   ===================================================== */

body.movador-dokan-dashboard .dokan-react-products > div,
body.movador-dokan-dashboard .dokan-product-listing,
body.movador-dokan-dashboard .product-edit-new-container,
body.movador-dokan-dashboard .dokan-form-container,
body.dokan-dashboard-fullwidth-template .dokan-react-products > div {
  background: #ffffff !important;
  border: 1px solid var(--mv-dokan-line) !important;
  border-radius: var(--mv-dokan-radius) !important;
  box-shadow: var(--mv-dokan-shadow-soft) !important;
}

body.movador-dokan-dashboard .dokan-product-listing .dokan-product-listing-area,
body.movador-dokan-dashboard .dokan-product-listing-area,
body.movador-dokan-dashboard .dokan-new-product-area,
body.movador-dokan-dashboard .dokan-product-edit-area {
  color: var(--mv-dokan-text) !important;
}

body.movador-dokan-dashboard .dokan-add-new-product,
body.movador-dokan-dashboard a.dokan-add-new-product,
body.movador-dokan-dashboard .dokan-dashboard-layout a[href*="product"] button,
body.movador-dokan-dashboard .dokan-dashboard-layout button:has(svg) {
  border-radius: 999px !important;
}

body.movador-dokan-dashboard .dokan-product-listing .dokan-product-date-filter,
body.movador-dokan-dashboard .dokan-product-listing .dokan-product-search-form,
body.movador-dokan-dashboard .dokan-product-listing .dokan-form-inline {
  gap: 10px !important;
}

body.movador-dokan-dashboard .dokan-dashboard-layout .dataviews-wrapper .dataviews__view-actions,
body.movador-dokan-dashboard .dokan-dashboard-layout .dataviews-wrapper .dataviews-filters__container {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.movador-dokan-dashboard .dokan-dashboard-layout .dataviews-view-table tr:hover td,
body.dokan-dashboard-fullwidth-template .dokan-dashboard-layout .dataviews-view-table tr:hover td {
  background: rgba(37, 99, 235, 0.035) !important;
}

body.movador-dokan-dashboard .dokan-dashboard-layout .dataviews-title-field a,
body.movador-dokan-dashboard .dokan-product-listing .product-title a {
  color: var(--mv-dokan-ink) !important;
  font-weight: 800 !important;
}

body.movador-dokan-dashboard .dokan-dashboard-layout .dataviews-title-field a:hover,
body.movador-dokan-dashboard .dokan-product-listing .product-title a:hover {
  color: var(--mv-dokan-blue) !important;
}

body.movador-dokan-dashboard .dokan-product-gallery,
body.movador-dokan-dashboard .dokan-feat-image-upload,
body.movador-dokan-dashboard .dokan-product-image {
  border-color: rgba(148, 163, 184, 0.32) !important;
  border-radius: 18px !important;
}

body.movador-dokan-dashboard .dokan-product-edit-form label,
body.movador-dokan-dashboard .dokan-form-container label {
  color: var(--mv-dokan-ink) !important;
  font-weight: 750 !important;
}

body.movador-dokan-dashboard .dokan-product-edit-form .dokan-section-heading,
body.movador-dokan-dashboard .dokan-form-container .dokan-section-heading {
  border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}

/* =====================================================
   Movador Products header cleanup
   Scope: Dokan Products list only.
   Purpose: remove the large blue header block and style the real Add product button.
   ===================================================== */

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-dashboard-layout,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-dashboard-layout {
  padding: 0 !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-title,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-title,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-title,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-title {
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-actions,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin-left: auto !important;
  gap: 10px !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section h1,
body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section h2,
body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section h3,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section h1,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section h2,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section h3,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section h1,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section h2,
body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section h3,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section h1,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section h2,
body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(21px, 1.45vw, 25px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  text-transform: none !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button,
body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a,
body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-size: 0 !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.20) !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button::after,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button::after,
body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a::after,
body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a::after {
  content: "Add product" !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button svg,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button svg,
body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a i,
body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a i {
  display: none !important;
}

body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button:hover,
body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button:focus-visible,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button:hover,
body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button:focus-visible,
body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a:hover,
body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a:focus-visible,
body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a:hover,
body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a:focus-visible {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25) !important;
  outline: none !important;
}

@media (max-width: 720px) {
  body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section,
  body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section,
  body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-title,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-title,
  body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-title,
  body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions,
  body.movador-dokan-dashboard:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-actions,
  body.dokan-dashboard-fullwidth-template:has(.dokan-product-listing) .dokan-header-title-section .dokan-header-actions {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button,
  body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a,
  body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a {
    min-height: 38px !important;
    padding: 0 15px !important;
  }

  body.movador-dokan-dashboard:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button::after,
  body.dokan-dashboard-fullwidth-template:has(.dokan-react-products) .dokan-header-title-section .dokan-header-actions button::after,
  body.movador-dokan-dashboard .dokan-product-listing .dokan-add-product-link > a::after,
  body.dokan-dashboard-fullwidth-template .dokan-product-listing .dokan-add-product-link > a::after {
    font-size: 12.5px !important;
  }
}
