/*
Theme Name: CORLINK Child
Theme Slug: corlink-child
Template: storefront
Description: CORLINK Pickleball commercial child theme — navy & lime sporty design
Author: CORLINK
Version: 1.0.0
*/

:root {
  --cl-navy: #0f2440;
  --cl-navy-2: #16325a;
  --cl-navy-3: #0a1a2e;
  --cl-lime: #c9f73a;
  --cl-lime-d: #9fcf14;
  --cl-ink: #13233d;
  --cl-mute: #5b6b84;
  --cl-gray: #f5f7fa;
  --cl-line: #e3e9f2;
}

body {
  color: var(--cl-ink);
}

/* ====== 顶部公告条 ====== */
.cl-announce {
  background: var(--cl-navy);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 9px 16px;
}
.cl-announce b { color: var(--cl-lime); font-weight: 700; }

/* ====== Header:sticky + 阴影 ====== */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--cl-line);
  transition: box-shadow .25s ease;
}
#masthead.is-scrolled { box-shadow: 0 8px 28px rgba(15, 36, 64, .13); }

.site-branding .site-title a {
  color: var(--cl-navy);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.site-branding .site-title a:hover { color: var(--cl-navy-2); }
.site-branding .site-description {
  color: var(--cl-mute);
  font-size: 12.5px;
  margin-top: 2px;
  letter-spacing: .2px;
}

/* 主导航 */
.storefront-primary-navigation {
  background: #fff;
}
.main-navigation ul.menu > li > a,
.main-navigation ul.menu > li > span {
  color: var(--cl-navy) !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13.5px;
  letter-spacing: .6px;
  padding: 16px 18px 13px !important;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
  color: #7fae00 !important;
  border-bottom-color: var(--cl-lime);
}

/* 购物车 */
.site-header-cart .cart-contents { color: var(--cl-navy) !important; font-weight: 700; }
.site-header-cart .cart-contents:hover { color: #7fae00 !important; }
.site-header-cart .cart-contents-count {
  background: var(--cl-lime) !important;
  color: var(--cl-navy) !important;
  font-weight: 800;
}

/* 头部搜索框 */
.widget_product_search input[type="search"] {
  border: 2px solid var(--cl-line);
  border-radius: 24px;
  padding: 10px 18px;
  background: var(--cl-gray);
  transition: border-color .2s;
  min-width: 220px;
}
.widget_product_search input[type="search"]:focus {
  border-color: var(--cl-lime-d);
  outline: none;
  background: #fff;
}
.widget_product_search button {
  background: var(--cl-navy) !important;
  color: #fff !important;
  border-radius: 24px;
  padding: 10px 16px;
}

/* ====== 全局按钮(荧光绿运动风)====== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
button,
input[type="submit"] {
  background: var(--cl-lime);
  color: var(--cl-navy) !important;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--cl-lime-d);
  color: var(--cl-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(159, 207, 20, .35);
}

/* ====== 商品卡片 ====== */
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  padding: 16px 16px 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 36, 64, .15);
  border-color: transparent;
}
.woocommerce ul.products li.product img {
  border-radius: 10px;
  transition: transform .4s ease;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.045);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--cl-navy);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
}
.woocommerce ul.products li.product .price {
  color: var(--cl-ink);
  font-weight: 700;
}
.woocommerce ul.products li.product .price del { color: #98a5b8; }
.woocommerce ul.products li.product .price ins { color: #e8611e; font-weight: 800; }
.woocommerce span.onsale {
  background: var(--cl-lime);
  color: var(--cl-navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 6px;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  padding: 7px 12px;
  z-index: 2;
}

/* ====== 页脚 ====== */
.site-footer,
.storefront-breadcrumb + .site-footer {
  background: var(--cl-navy);
  color: #b9c6da;
}
.site-footer .widget-title,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
  color: #fff !important;
}
.site-footer a { color: #d3def0; }
.site-footer a:hover { color: var(--cl-lime); }
.site-footer .widget .widget-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 800;
}
.site-info {
  background: var(--cl-navy-3);
  color: #8da2c0;
}
.site-info a { color: #8da2c0; }

/* ====== 回到顶部 ====== */
.cl-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cl-navy);
  color: var(--cl-lime);
  border: 2px solid var(--cl-lime);
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 998;
}
.cl-top.show { opacity: 1; pointer-events: auto; }
.cl-top:hover { transform: translateY(-3px); }

/* ====== 滚动浮现动效 ====== */
.cl-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.cl-reveal.in-view { opacity: 1; transform: none; }

/* ====== 移动端 ====== */
@media (max-width: 768px) {
  .site-branding .site-title a { font-size: 21px; }
  .cl-announce { font-size: 11.5px; padding: 8px 10px; }
}
