/* Kill leftover Shofy / old-theme look when Sea is active */

body.sea-body {
  --tp-theme-primary: var(--primary) !important;
  --tp-theme-secondary: var(--secondary) !important;
  --tp-text-body: var(--foreground) !important;
  --tp-common-white: #fff !important;
  --tp-ff-body: var(--font-sans) !important;
  --tp-ff-heading: var(--font-heading) !important;
  background: var(--background) !important;
  font-family: var(--font-sans) !important;
  color: var(--foreground) !important;
}

/* Neutralize classic Shofy section wrappers */
body.sea-body .tp-page-area,
body.sea-body .tp-shop-area,
body.sea-body .tp-product-details-area,
body.sea-body .tp-blog-area,
body.sea-body .tp-login-area,
body.sea-body .tp-cart-area {
  background: transparent !important;
  padding-top: 0.5rem !important;
}

body.sea-body .tp-section-title,
body.sea-body .tp-section-title-pre,
body.sea-body .section-title {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  color: var(--foreground) !important;
}

body.sea-body .tp-btn,
body.sea-body .tp-btn-2,
body.sea-body .tp-btn-border,
body.sea-body a.tp-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.85rem !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgb(0 119 182 / 25%) !important;
}
body.sea-body .tp-btn-white,
body.sea-body .tp-btn-2.tp-btn-white {
  background: var(--secondary) !important;
  color: #000 !important;
}

/* Old product cards → Sea card feel */
body.sea-body .tp-product-item,
body.sea-body .tp-product-item-2,
body.sea-body .tp-product-item-3,
body.sea-body .tp-product-item-4,
body.sea-body .bb-product-item {
  background: var(--card) !important;
  border: 1px solid rgb(203 213 225 / 45%) !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgb(15 23 42 / 5%) !important;
}
body.sea-body .tp-product-thumb,
body.sea-body .tp-product-thumb img {
  border-radius: 1rem !important;
  background: rgb(241 245 249 / 55%) !important;
}
body.sea-body .tp-product-title a,
body.sea-body .tp-product-title {
  font-weight: 800 !important;
  color: var(--foreground) !important;
  font-family: var(--font-sans) !important;
}
body.sea-body .tp-product-price {
  color: var(--primary) !important;
  font-weight: 900 !important;
}

/* Hide decorative Shofy shapes / sticky header chrome */
body.sea-body .tp-slider-shape,
body.sea-body .tp-hero-shape,
body.sea-body .tp-product-banner-shape,
body.sea-body .mean-bar,
body.sea-body .mean-nav,
body.sea-body .back-to-top-wrapper,
body.sea-body .tp-header-top-area:not(.sea-header *),
body.sea-body .tp-header-bottom-area:not(.sea-header *) {
  display: none !important;
}

/* If any old header somehow renders, hide it — Sea header is .sea-header */
body.sea-body .tp-header-area {
  display: none !important;
}
body.sea-body header.sea-header,
body.sea-body .sea-header {
  display: block !important;
}

/* Neutralize legacy sticky header shrink / padding jump */
body.sea-body #header-sticky,
body.sea-body .tp-header-sticky,
body.sea-body .header-sticky {
  position: static !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transform: none !important;
}
body.sea-body.tp-header-sticky-open,
body.sea-body.header-sticky {
  padding-top: 0 !important;
}

/* Filters */
body.sea-body .bb-filter-offcanvas-sidebar,
body.sea-body .tp-shop-sidebar,
body.sea-body .bb-product-filter {
  background: var(--card) !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgb(203 213 225 / 45%) !important;
  font-family: var(--font-sans) !important;
}
body.sea-body .bb-filter-group-title,
body.sea-body .tp-shop-widget-title {
  font-weight: 900 !important;
  font-size: 0.95rem !important;
}

/* Tables / account leftovers */
body.sea-body .table {
  --bs-table-bg: transparent;
  font-family: var(--font-sans) !important;
}
body.sea-body .table > :not(caption) > * > * {
  border-bottom-color: rgb(203 213 225 / 45%) !important;
}

/* Forms */
body.sea-body .form-control,
body.sea-body .form-select,
body.sea-body input.form-control {
  border-radius: 0.75rem !important;
  border-color: var(--border) !important;
  background: var(--muted) !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
}
body.sea-body .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgb(0 119 182 / 15%) !important;
  background: #fff !important;
}

/* Pagination */
body.sea-body .pagination .page-link {
  border-radius: 0.65rem !important;
  font-weight: 800 !important;
  color: var(--foreground) !important;
}
body.sea-body .pagination .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Breadcrumb area leftover */
body.sea-body .breadcrumb__area {
  display: none !important;
}
body.sea-body .sea-breadcrumb {
  display: flex !important;
}
@media (max-width: 767.98px) {
  body.sea-body .sea-breadcrumb,
  body.sea-body nav.sea-breadcrumb,
  body.sea-body .home-section.sea-breadcrumb {
    display: none !important;
  }
}

/* Force home shortcode spacing */
body.page-home .home-main > section,
body.page-home .home-main > .home-section,
body.page-home .home-main > .home-hero {
  margin-bottom: 1.25rem;
}

/* Testimonials / about still using old wrappers */
body.sea-body .tp-testimonial-item,
body.sea-body .tp-about-wrapper {
  background: var(--card) !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgb(203 213 225 / 45%) !important;
  padding: 1rem !important;
}
