/* =========================================================
   theme-modern.css  —  全新主题覆盖层
   配色：深海军蓝 + 珊瑚橙  /  布局：flexbox（不使用 CSS grid）
   仅覆盖外观与排版，不影响模板渲染标签
   ========================================================= */

:root {
  --tm-ink:        #142643;   /* 深海军蓝 主色 */
  --tm-ink-2:      #0d1b33;   /* 更深的海军蓝 */
  --tm-ink-3:      #1e3458;   /* 次级海军蓝 */
  --tm-accent:     #ff5a2c;   /* 珊瑚橙 强调色 */
  --tm-accent-2:   #ff7a52;   /* 珊瑚橙 hover */
  --tm-accent-soft:#fff1eb;   /* 珊瑚橙 浅底 */
  --tm-bg:         #f5f2ec;   /* 暖米白 页面背景 */
  --tm-card:       #ffffff;   /* 卡片背景 */
  --tm-text:       #2a2f3a;   /* 正文 */
  --tm-muted:      #7b8597;   /* 次要文字 */
  --tm-line:       #e6e1d8;   /* 分割线 */
  --tm-radius:     14px;
  --tm-shadow:     0 10px 30px rgba(20,38,67,.10);
  --tm-shadow-sm:  0 4px 14px rgba(20,38,67,.08);
}

/* ---------- 全局基础 ---------- */
body {
  background-color: var(--tm-bg);
  color: var(--tm-text);
  font-family: "Segoe UI","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

a { color: var(--tm-ink); transition: color .25s ease; }
a:hover { color: var(--tm-accent); text-decoration: none; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--tm-ink); }

.container { max-width: 1280px; }

/* =========================================================
   顶部公告栏 topheader
   ========================================================= */
.topheader {
  background: var(--tm-ink-2);
  border-bottom: none;
  padding: 8px 0;
}
.topheader a,
.topheader p,
.topheader span,
.topheader .default-msg,
.topheader .customer-links a,
.topheader .language-dd,
.topheader .selected-currency {
  color: #c7d2e0 !important;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: none;
}
.topheader a:hover,
.topheader .customer-links a:hover {
  color: var(--tm-accent) !important;
}
.topheader .default-msg { font-weight: 600; color: #fff !important; }
.topheader .customer-links li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #324a73;
  margin: 0 8px;
  vertical-align: middle;
}
.topheader .customer-links li span { display: none !important; }
.topheader .text-right { text-align: right; }

/* 顶部左侧小信息条 */
.tm-topinfo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #c7d2e0;
  font-size: 12px;
}
.tm-topinfo i { color: var(--tm-accent); margin-right: 5px; }

/* =========================================================
   主头部 header-3
   ========================================================= */
.header.header-3 {
  background: #fff;
  box-shadow: 0 2px 18px rgba(20,38,67,.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-3 .row.d-flex { padding-top: 16px !important; padding-bottom: 16px !important; }

/* Logo */
.logo a { float: none; display: inline-block; }
.logo img {
  max-width: 168px;
  max-height: 56px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* 搜索框 */
.header-search { width: 100%; }
.header-search .input-box {
  display: flex;
  align-items: center;
  background: var(--tm-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0 6px 0 18px;
  transition: border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.header-search .input-box:hover,
.header-search .input-box:focus-within {
  border-color: var(--tm-accent);
  background: #fff;
}
.header-search .input-text {
  border: 0 !important;
  background: transparent !important;
  height: 44px;
  flex: 1 1 auto;
  font-size: 14px;
  padding: 0 10px !important;
}
.header-search .search {
  background: var(--tm-accent) !important;
  color: #fff !important;
  border: 0 !important;
  width: 46px;
  height: 36px;
  border-radius: 999px;
  right: 5px;
  top: 4px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-search .search:hover { background: var(--tm-accent-2) !important; opacity: 1; }

/* 右侧图标 */
.icons-col .iconset {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}
.icons-col .iconset > a { color: var(--tm-ink); }
.icons-col .iconset .icon { font-size: 24px; transition: transform .25s ease, color .25s ease; }
.icons-col .iconset:hover .icon,
.icons-col .iconset:hover > a { color: var(--tm-accent); }
.icons-col .iconset:hover .icon { transform: translateY(-2px); }
.icons-col .iconset .label {
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}
.header-cart .icon-in { display: inline-flex !important; align-items: center; }
.header-3 .site-cart-count,
.header-3 .wishlist-count,
.header-3 .compare-count {
  /*background: var(--tm-accent) !important;*/
  color: #f97316;
  border-radius: 999px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 5px;
  right: -8px;
  top: -8px;
}

/* =========================================================
   主导航 main-menu
   ========================================================= */
.header-3 .main-menu {
  background: var(--tm-ink);
  padding: 0;
  border-radius: 0;
  position: relative;
}
.index-demo3 .header-3 .main-menu { background: var(--tm-ink); }

.header-3 #siteNav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-3 #siteNav > li.lvl1 {
  position: relative;
}
.header-3 #siteNav > li.lvl1 > a {
  display: inline-flex;
  align-items: center;
  color: #e9eef6 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 16px 22px;
  line-height: 1.2;
  position: relative;
  transition: color .25s ease, background .25s ease;
}
.header-3 #siteNav > li.lvl1 > a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  height: 2px;
  background: var(--tm-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.header-3 #siteNav > li.lvl1 > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.05);
}
.header-3 #siteNav > li.lvl1 > a:hover::after { transform: scaleX(1); }
.header-3 #siteNav > li.lvl1 > a:hover,
.index-demo3 #siteNav > li > a:hover { color: #fff !important; }

/* 导航右侧登录链接 */
.header-3 .store-l-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9eef6 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  transition: all .25s ease;
}
.header-3 .store-l-link:hover {
  background: var(--tm-accent);
  border-color: var(--tm-accent);
  color: #fff !important;
}
.header-3 .store-l-link i { margin-right: 4px; }

/* =========================================================
   首页 Hero 横幅
   ========================================================= */
.tm-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  box-shadow: var(--tm-shadow);
  background: linear-gradient(120deg, var(--tm-ink) 0%, var(--tm-ink-3) 100%);
  min-height: 360px;
}
.tm-hero img { display: block; width: 100%; height: auto; }
.tm-hero > .col-12 { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
.tm-hero-slide { position: relative; }
.tm-hero-cap {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 46%;
  z-index: 3;
}
.tm-hero-cap .eyebrow {
  display: inline-block;
  background: var(--tm-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.tm-hero-cap h2 {
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.tm-hero-cap p {
  color: #f1f4f9;
  font-size: 15px;
  margin: 0 0 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.tm-hero-cap .btn { background: var(--tm-accent); color: #fff; border: 0; }
.tm-hero-cap .btn:hover { background: var(--tm-accent-2); color: #fff; }

/* =========================================================
   信任 / 服务条 tm-services
   ========================================================= */
.tm-services {
  background: #fff;
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-sm);
  margin: 32px auto;
  padding: 22px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 18px;
}
.tm-services .svc {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 22%;
  min-width: 220px;
}
.tm-services .svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tm-accent-soft);
  color: var(--tm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 46px;
}
.tm-services .svc-t { font-weight: 700; color: var(--tm-ink); font-size: 14px; line-height: 1.2; }
.tm-services .svc-s { font-size: 12px; color: var(--tm-muted); }

/* =========================================================
   区块标题 section-header
   ========================================================= */
.section { padding-top: 36px; padding-bottom: 36px; }
.products-grid-section { padding-top: 12px; }
.section-header { text-align: center; margin-bottom: 26px; position: relative; }
.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0 0 8px;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--tm-accent);
  transform: translateX(-50%);
  border-radius: 3px;
}
.index-demo3 .section-header h2 { color: var(--tm-ink); }
.section-header p { color: var(--tm-muted); margin: 0; }

/* =========================================================
   产品卡片 grid-products
   ========================================================= */
.grid-products .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.grid-products .row .item {
  padding: 0 10px;
  margin-bottom: 24px;
}
.products-grid-section .grid-products .row .item {
  display: flex;
  flex-direction: column;
}

.grid-products .item {
  background: var(--tm-card);
  border-radius: var(--tm-radius);
  box-shadow: var(--tm-shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--tm-line);
}
.grid-products .item:hover {
  transform: translateY(-6px);
  box-shadow: var(--tm-shadow);
  border-color: transparent;
}

.grid-products .item .product-image {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: var(--tm-radius) var(--tm-radius) 0 0;
}
.grid-products .item .product-image > a { display: block; }
.grid-products .item .product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease;
}
.grid-products .item:hover .product-image img.primary {
  transform: scale(1.06);
}
.grid-products .item .product-image .hover { display: none !important; }

.grid-products .item .product-details {
  padding: 14px 16px 6px;
  text-align: center;
}
.grid-products .item .product-name a {
  color: var(--tm-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  min-height: 38px;
}
.grid-products .item .product-name a:hover { color: var(--tm-accent); }
.grid-products .item .product-review { margin-bottom: 8px; }
.grid-products .item .product-review .an { color: var(--tm-accent); font-size: 14px; }
.grid-products .item .product-review .an-star-o { color: #d8dde6; }

.grid-products .item .product-price { margin: 4px 0 10px; }
.grid-products .item .product-price .price {
  color: var(--tm-accent);
  font-size: 18px;
  font-weight: 800;
}

/* 按钮区 */
.grid-products .item .button-set { padding: 0 16px 16px; }
.button-set.style3 ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.grid-products .item .button-set.style3 .btn-icon {
  background: var(--tm-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .25s ease;
}
.grid-products .item .button-set.style3 .btn-icon i {
  font-style: normal;
  font-size: 13px;
}
.grid-products .item .button-set.style3 .btn-icon:hover {
  background: var(--tm-accent);
  color: #fff;
}
.index-demo3 .button-set li .btn-icon { color: #fff; }
.index-demo3 .button-set li .btn-icon .btn:hover { color: #fff; }

/* =========================================================
   横幅区 collection-banners
   ========================================================= */
.collection-banners.style1 { padding-top: 8px; padding-bottom: 24px; }
.collection-banners .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.collection-banners .row .banner-item { padding: 0 10px; margin-bottom: 20px; }

.collection-banners .collection-grid-item {
  position: relative;
  border-radius: var(--tm-radius);
  overflow: hidden;
  box-shadow: var(--tm-shadow-sm);
  background: var(--tm-ink);
}
.collection-banners .collection-grid-item img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, opacity .4s ease;
}
.collection-banners .collection-grid-item:hover img { transform: scale(1.05); opacity: .65; }

.collection-banners .details {
  position: absolute;
  /*inset: 0;*/
  width: 100% !important;
  background: linear-gradient(90deg, rgba(20,38,67,.85) 0%, rgba(20,38,67,.25) 100%);
  border: 0 !important;
  display: flex !important;
  align-items: center;
}
.collection-banners .details.rightMiddle { right: 0; }
.collection-banners .details .inner {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  padding: 0 36px;
  max-width: 60%;
}
.collection-banners .details .title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}
.collection-banners .details p {
  color: #e9eef6;
  font-size: 13px;
  margin: 0 0 16px;
}
.collection-banners .details .btn {
  background: var(--tm-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 600;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  letter-spacing: .4px;
  transition: background .25s ease;
}
.collection-banners .details .btn:hover { background: var(--tm-accent-2) !important; color: #fff !important; }
.index-demo3 .collection-banners .details .btn { color: #fff !important; }

/* =========================================================
   通用按钮 btn
   ========================================================= */
.index-demo3 .btn,
.index-demo3 .button-set.style4 .btn-icon,
.index-demo3 #site-scroll {
  background: var(--tm-accent);
  color: #fff;
  border-radius: 999px;
}
.index-demo3 .btn:hover,
.index-demo3 .button-set.style4 .btn-icon:hover,
.index-demo3 #site-scroll:hover {
  background: var(--tm-accent-2);
  color: #fff;
}
.index-demo3 .btn-secondary { background: var(--tm-ink); color: #fff; }
.index-demo3 .btn-secondary:hover { background: var(--tm-ink-3); color: #fff; }

/* =========================================================
   底部 footer-3
   ========================================================= */
.footer.footer-3 { margin-top: 50px; }

/* 服务条 */
.tm-footer-services {
  background: var(--tm-ink);
  color: #d8e0ec;
  padding: 26px 0;
}
.tm-footer-services .tm-svc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 18px;
  align-items: center;
}
.tm-footer-services .svc {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 22%;
  min-width: 220px;
}
.tm-footer-services .svc-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,90,44,.16);
  color: var(--tm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 42px;
}
.tm-footer-services .svc-t { font-weight: 700; color: #fff; font-size: 14px; }
.tm-footer-services .svc-s { font-size: 12px; color: #aebbd0; }

/* footer 主体 */
.footer-3.footer .footer-top {
  background: var(--tm-ink-2);
  border-top: 3px solid var(--tm-accent);
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-3.footer .footer-top .h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: .6px;
  margin: 0 0 20px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}
.footer-3.footer .footer-top .h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--tm-accent);
  border-radius: 2px;
}
.footer-links li { margin: 8px 0; }
.footer-links a,
.footer-3.footer a {
  color: #b8c3d6 !important;
  font-size: 13px;
  transition: color .25s ease, padding-left .25s ease;
}
.footer-links a::before { display: none !important; }
.footer-links a:hover,
.footer-3.footer a:hover {
  color: var(--tm-accent) !important;
  padding-left: 6px;
}
.footer-3.footer .social-icons li { margin-bottom: 8px; }
.footer-3.footer .social-icons li a { color: #b8c3d6 !important; }
.footer-3.footer .social-icons li a i { color: var(--tm-accent); }

/* 联系信息块 */
.tm-contact-list { list-style: none; padding: 0; margin: 0; }
.tm-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #b8c3d6;
  font-size: 13px;
  margin-bottom: 12px;
}
.tm-contact-list i { color: var(--tm-accent); margin-top: 3px; }

/* 底部版权 */
.footer-3.footer .footer-bottom {
  background: #0a1525;
  border-top: 1px solid #1c2c47;
  padding: 18px 0;
  color: #8794ac;
}
.footer-3.footer .footer-bottom .copytext { color: #8794ac; float: none; text-align: center; }
.footer-3.footer .footer-bottom .copytext a { color: #cfd8e8 !important; }
.footer-3.footer .footer-bottom .copytext a:hover { color: var(--tm-accent) !important; }

/* 返回顶部 */
#site-scroll {
  background: var(--tm-accent) !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: var(--tm-shadow-sm);
}
#site-scroll:hover { background: var(--tm-accent-2) !important; }

/* =========================================================
   迷你购物车抽屉
   ========================================================= */
.minicart-right-drawer .modal-content { border-radius: 14px 0 0 14px; }
#cart-drawer h4 { color: var(--tm-ink); font-weight: 700; }
.minicart-bottom .subtotal { color: var(--tm-text); }
.minicart-bottom .btn.proceed-to-checkout {
  background: var(--tm-accent);
  color: #fff;
  border-radius: 999px;
  width: 100%;
  padding: 12px;
  font-weight: 600;
}
.minicart-bottom .btn.proceed-to-checkout:hover { background: var(--tm-accent-2); color: #fff; }

/* =========================================================
   响应式微调（flexbox，不使用 grid）
   ========================================================= */
@media (max-width: 991px) {
  .header-3 .header-search .input-box { height: 40px; }
  .header-search .input-text { height: 38px; }
  .tm-hero-cap { max-width: 70%; }
  .tm-hero-cap h2 { font-size: 26px; }
}
@media (max-width: 575px) {
  .tm-hero-cap { left: 5%; max-width: 90%; }
  .tm-hero-cap h2 { font-size: 20px; }
  .tm-hero-cap p { font-size: 13px; }
  .section-header h2 { font-size: 20px; }
  .tm-services .svc,
  .tm-footer-services .svc { flex: 1 1 100%; }
  .collection-banners .collection-grid-item img { height: 200px !important; }
  .collection-banners .details .inner { padding: 0 18px; max-width: 90%; }
}
