/* ============================================================
   LastingSail — 站点视觉优化层 (colors & styles only)
   叠加在 Vantage/MegaMenu 之上, 不改任何 DOM 结构
   配色源自 logo: 品牌蓝 #0071c5 / 帆蓝 #5aa9e6 / 墨色 #2f3033
   ============================================================ */

:root {
  --ls-navy: #0d334f;      /* 深海军蓝: 导航/主区块 */
  --ls-navy-deep: #0a2940; /* 更深: footer */
  --ls-blue: #0071c5;      /* 品牌蓝: 链接/按钮/hover */
  --ls-sky: #5aa9e6;       /* 帆蓝: 强调线/次级 hover */
  --ls-bg: #f4f7fa;        /* 冷浅灰蓝: 区块底 */
  --ls-text: #2f3033;
  --ls-muted: #64748b;
  --ls-line: #e4eaf1;
}

/* ---------- 基础排版 ---------- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  color: var(--ls-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: 0.01em; }
a { transition: color .18s ease; }

/* ---------- 顶栏 (logo + 搜索) ---------- */
#masthead.site-header {
  border-bottom: 1px solid var(--ls-line);
  box-shadow: 0 1px 0 rgba(13, 51, 79, .04);
}
#masthead .full-container { padding-top: 14px; padding-bottom: 14px; }
#masthead form.woocommerce-product-search input.search-field,
#header-sidebar input.search-field {
  border: 1px solid var(--ls-line);
  border-radius: 8px;
  padding: 7px 14px;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#masthead input.search-field:focus {
  outline: none;
  border-color: var(--ls-sky);
  box-shadow: 0 0 0 3px rgba(90, 169, 230, .18);
}

/* ---------- 主导航 (深海军蓝) ---------- */
.main-navigation,
nav.site-navigation { background-color: var(--ls-navy) !important; }
.main-navigation ul li:hover > a,
.main-navigation ul li.focus > a,
#search-icon #search-icon-icon:hover,
#search-icon #search-icon-icon:focus { background-color: #164a70 !important; }
.main-navigation ul ul li:hover > a,
.main-navigation ul ul li.focus > a,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a { background-color: #123c5e !important; }

#mega-menu-wrap-primary { background: transparent !important; }
#mega-menu-wrap-primary #mega-menu-primary,
#mega-menu-wrap-primary #mega-menu-primary.mega-stuck,
#mega-menu-wrap-primary.mega-stuck #mega-menu-primary { background: transparent !important; }
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  color: #eaf2f9 !important;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px !important;
  padding: 0 22px !important;
  line-height: 48px !important;
  transition: background-color .18s ease, color .18s ease;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item:hover > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
  background: #164a70 !important;
  box-shadow: inset 0 -3px 0 var(--ls-sky);
}
/* 下拉面板: 白卡片 + 柔和阴影 */
#mega-menu-wrap-primary ul.mega-sub-menu {
  background: #fff !important;
  border-top: 3px solid var(--ls-sky) !important;
  box-shadow: 0 14px 34px rgba(10, 41, 64, .16) !important;
  border-radius: 0 0 8px 8px;
  padding: 14px 0 !important;
}
#mega-menu-wrap-primary ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
  color: #42566b !important;
  font-size: 13px !important;
  padding: 7px 26px !important;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 5px;
  margin: 0 10px !important;
  width: auto !important;
}
#mega-menu-wrap-primary ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover {
  background: #eef5fb !important;
  color: var(--ls-blue) !important;
}

/* ---------- What's new 蓝条 → 海军蓝渐变横幅 ---------- */
.panel-row-style-for-454-0 {
  background: linear-gradient(135deg, #0d334f 0%, #114a72 55%, #0d334f 100%) !important;
  position: relative;
}
.panel-row-style-for-454-0::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ls-sky) 50%, transparent);
  opacity: .85;
}
.panel-row-style-for-454-0 .sow-headline-container { text-align: center; }
.panel-row-style-for-454-0 h1,
.panel-row-style-for-454-0 h2,
.panel-row-style-for-454-0 h3,
.panel-row-style-for-454-0 .sow-headline {
  color: #fff !important;
  font-weight: 300 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.panel-row-style-for-454-0 .sow-headline-sub-heading { color: #b9d4ea !important; letter-spacing: .08em; }

/* ---------- 产品区底色 ---------- */
.panel-row-style-for-454-1 { background-color: var(--ls-bg) !important; }

/* ---------- 产品网格对齐 (CSS Grid: 列宽统一/间距统一/同行等高) ---------- */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  align-items: stretch;
}
ul.products::before,
ul.products::after { content: none !important; display: none !important; }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
}
/* 链接区撑满剩余高度, 把 Model # 压到卡片底部 */
ul.products li.product > a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
ul.products li.product h2.woocommerce-loop-product__title {
  flex: 1 0 auto;
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
}

/* ---------- 产品卡片 ---------- */
ul.products li.product {
  background: #fff;
  border: 1px solid var(--ls-line);
  border-radius: 12px;
  padding: 18px 16px 20px !important;
  box-shadow: 0 1px 3px rgba(13, 51, 79, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: #cfe2f2;
  box-shadow: 0 14px 30px rgba(13, 51, 79, .13);
}
ul.products li.product img {
  border-radius: 8px;
  transition: transform .25s ease;
}
ul.products li.product:hover img { transform: scale(1.03); }
ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product h3 {
  color: var(--ls-text);
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.45;
  padding: 12px 2px 4px !important;
}
ul.products li.product .woocommerce-loop-product__title:hover { color: var(--ls-blue); }
/* Model # 行 */
ul.products li.product .product-meta {
  color: var(--ls-muted);
  font-size: 12px;
  letter-spacing: .04em;
}
ul.products li.product .product-meta strong,
ul.products li.product .product-meta b { color: #3d5266; font-weight: 600; }

/* ---------- 按钮 ---------- */
a.button, button, input[type="submit"],
.woocommerce a.button, .woocommerce button.button {
  background: var(--ls-blue) !important;
  border-radius: 8px !important;
  font-weight: 500;
  transition: background-color .18s ease, transform .18s ease;
}
a.button:hover, button:hover, input[type="submit"]:hover { background: #005eaa !important; }

/* ---------- 页脚 ---------- */
#colophon.site-footer {
  background: var(--ls-navy-deep);
  border-top: 3px solid var(--ls-sky);
  color: #b9cddd;
}
#colophon h1, #colophon h2, #colophon h3, #colophon h4, #colophon h5, #colophon h6 {
  color: #e8f1f8 !important;
  letter-spacing: .05em;
}
#colophon a { color: #cfe2f2 !important; text-decoration: none; }
#colophon a:hover { color: #fff !important; }
#colophon #site-info span { color: #9db8cc; }
#colophon input, #colophon textarea {
  background: #10334d;
  border: 1px solid #2a5170;
  color: #e8f1f8;
}

/* ---------- 导航与首页保持一致: 隐藏 CATALOG / RESOURCES(死链) / BECOME A DEALER ---------- */
#mega-menu-item-619,
#mega-menu-item-7462,
#mega-menu-item-310 { display: none !important; }

/* ---------- 移动端菜单按钮 ---------- */
#mobile-navigation .mobile-navigation-entry,
.main-navigation .mobile-navigation-entry { background: var(--ls-navy); }
