/*
Theme Name: MWSELL Static
Theme URI: https://mwsell.shop/
Author: Guangzhou Hongwei Electromechanical Technology Co., Ltd.
Author URI: https://mwsell.shop/
Description: A faithful WordPress port of the mwsell.shop static site (industrial-parts theme v18): light header, full-bleed photo hero, case showcase carousel, and the 9-language switcher. Works with Polylang for translated content.
Version: 1.0.58
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://mwsell.shop/
Text Domain: mwsell-static
Tags: industrial, ecommerce, multilingual, responsive
*/

/*
 * MWSELL Static — WordPress compatibility rules only.
 * The static site's visual styles live in the enqueued stylesheets
 * (assets/css/base.css, storefront.css, ... industrial-theme.css),
 * loaded in the same order as the static site.
 */

/* WordPress admin bar must not cover the sticky header. */
body.admin-bar header.header,
body.admin-bar header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.header,
  body.admin-bar header { top: 46px; }
}

/* WordPress content helpers. */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #5a6b7d; }
img { max-width: 100%; height: auto; }

/* Screen-reader text (the static .sr class is defined in base.css;
   keep the WordPress class identical). */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}

/* Pagination (product / case archives). */
.mwsell-pagination { margin: 32px 0; text-align: center; }
.mwsell-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 3px;
  border: 1px solid #c6cfd5; background: #fff; color: #16242e;
  font-weight: 700; font-size: 13px; border-radius: 2px;
}
.mwsell-pagination .page-numbers.current,
.mwsell-pagination .page-numbers:hover {
  background: #d76632; border-color: #d76632; color: #fff;
}

/* Product photo placeholder (products without a featured image). */
.productphoto-placeholder,
.mwsell-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 220px; background: #f4f6f7;
  background-image: linear-gradient(#e6eaec 1px, transparent 1px),
    linear-gradient(90deg, #e6eaec 1px, transparent 1px);
  background-size: 22px 22px;
  color: #5a6b7d; font-weight: 700; font-size: 13px;
  border: 1px solid #c6cfd5; border-radius: 2px; text-align: center;
  padding: 24px;
}
/* Placeholders inside fixed-height containers must match the image box. */
.productvisual .mwsell-thumb-placeholder { min-height: 0; height: 100%; }
.case-card-media .mwsell-thumb-placeholder { min-height: 0; aspect-ratio: 16/10; }
.home-directory-card .mwsell-thumb-placeholder { min-height: 210px; }
@media (max-width: 600px) {
  .home-directory-card .mwsell-thumb-placeholder { min-height: 140px; }
}

/* Brand tiles without logo files: styled text, never shrunk. */
.reference-brand-text {
  font-size: 24px; font-weight: 700; color: #24649a;
  letter-spacing: .02em; text-align: center;
}
.reference-brand-text.delta { color: #087aa4; }
.reference-brand-text.honeywell { color: #c32928; }
.reference-brand-text.mornsun { color: #24649a; }

/* Header logo fallback (when no site icon is set): HW monogram. */
.hw-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 49px; height: 49px; border-radius: 8px; flex: none;
  background: #d76632; color: #fff; font-weight: 800; font-size: 18px;
  letter-spacing: .02em;
}
@media (max-width: 700px) {
  .hw-logo-fallback { width: 42px; height: 42px; font-size: 15px; }
}

/* Case article cover figure (single-mwsell_case.php). */
.case-cover { margin: 0 0 28px; }
.case-cover img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Listing-page search + result count (page.php / archive). */
.listing-search { display: flex; gap: 8px; margin: 18px 0; }
.listing-search input { flex: 1; }
.results-count { color: #60717a; font-size: 12px; margin: 0 0 14px; }

/* Category browser cards (archive-mwsell_product.php). */
.category-browser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.category-browser-card { display: block; padding: 18px; background: #fff; border: 1px solid #e1e5e8; border-radius: 6px; font-weight: 700; color: #1a2b33; text-align: center; }
.category-browser-card:hover { border-color: #d76632; color: #d76632; }

/* WordPress default pagination output (.nav-links from the_posts_pagination). */
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 28px 0; }
.nav-links a, .nav-links span { border: 1px solid #d9e0e2; padding: 9px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #1a2b33; background: #fff; text-decoration: none; }
.nav-links .current { color: #d76632; border-color: #d76632; background: #fff6f1; }
