/* Vape Taiwan — sitewide tokens (ink forest / calm retail) */

:root {
  --color-background: #e8ecef;
  --color-surface: #f5f7f8;
  --color-panel: rgba(255, 255, 255, 0.78);
  --color-primary: #0a5c47;
  --color-primary-hover: #084a39;
  --color-secondary: #1b3330;
  --color-success: #0a5c47;
  --color-alert: #a33b32;
  --color-base: #3a424c;
  --color-headline: #121417;
  --color-divider: #d0d6dc;
  --color-muted: #6b7280;
  --color-link: #0a5c47;
  --color-link-hover: #084a39;
  --color-widget-link: #3a424c;
  --color-widget-link-hover: #0a5c47;
  --color-tooltip: #ffffff;
  --color-tooltip-bg: #121417;
  --color-btn-cart: #0a5c47;
  --color-bubble-sale: #121417;
  --color-bubble-new: #0a5c47;
  --color-bubble-custom: #0a5c47;
  --color-review-stars: #b8860b;
  --color-price-regular: #6b7280;
  --color-price-sale: #0a5c47;
  --color-on-primary: #ffffff;

  /* CJK-first: one family sitewide for 美观大方 */
  --font-display: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
  --radius-card: 14px;
  --radius-btn: 6px;
  --max-w: 1120px;
  --row-padding: 16px;
  --section-gap: 72px;
  --accent-soft: rgba(10, 92, 71, 0.12);
  --shadow-product: 0 12px 32px rgba(18, 20, 23, 0.08);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-base);
  background-color: var(--color-background);
  background-image:
    radial-gradient(980px 520px at 88% -8%, rgba(10, 92, 71, 0.12), transparent 58%),
    radial-gradient(820px 480px at -6% 18%, rgba(70, 95, 120, 0.1), transparent 52%),
    radial-gradient(700px 420px at 50% 110%, rgba(10, 92, 71, 0.07), transparent 55%),
    linear-gradient(180deg, #e2e7eb 0%, #eaeff2 40%, #f0f3f5 100%);
  -webkit-font-smoothing: antialiased;
}

/* Soften Flatsome default white slabs */
#wrapper,
#main,
.page-wrapper,
.content-area,
.section,
.section-content,
.row-container,
.banner-layers,
.is-well {
  background-color: transparent !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: var(--noise);
  background-size: 180px 180px;
}

#wrapper,
#main,
.page-wrapper {
  position: relative;
  z-index: 1;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-headline);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  line-height: 1.7;
}

.tw-section-band {
  width: 100%;
  box-sizing: border-box;
}

.tw-row,
.tw-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--row-padding);
  box-sizing: border-box;
}

.tw-section {
  padding: var(--section-gap) 0;
}

.tw-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
}

.tw-section-title {
  margin-bottom: 36px;
}

.tw-section-title p {
  color: var(--color-base);
  opacity: 0.85;
  margin-top: 8px;
  font-size: 1rem;
  max-width: 36rem;
}

.tw-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 36px;
}

.tw-section-head .tw-section-title {
  margin-bottom: 0;
}

.tw-link-more {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.tw-link-more:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.tw-btn:active {
  transform: translateY(1px);
}

.tw-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.tw-btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.tw-btn-outline {
  background: transparent;
  color: var(--color-headline);
  border-color: var(--color-divider);
}

.tw-btn-outline:hover {
  border-color: var(--color-headline);
  color: var(--color-headline);
}

/* Flatsome chrome: header / top bar / footer toward redesign */
:root {
  --primary-color: #0a5c47 !important;
  --fs-color-primary: #0a5c47 !important;
  --fs-color-secondary: #1b3330 !important;
  --fs-color-success: #0a5c47 !important;
  --fs-color-alert: #a33b32 !important;
}

.header-top,
.header-wrapper,
#header,
#top-bar,
#masthead {
  --fs-color-primary: var(--color-primary);
  --primary-color: var(--color-primary);
}

/* Top announcement bar */
#top-bar.header-top,
.header-top {
  background: linear-gradient(90deg, #063528 0%, #0a5c47 48%, #0f6b53 100%) !important;
  border: 0 !important;
  min-height: 2.35rem;
  overflow: hidden;
  position: relative;
}

#top-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: tw-topbar-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}

#top-bar .nav > li > a,
#top-bar .html,
#top-bar .top-bar-nav a,
#top-bar .header-button a {
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-transform: none !important;
  animation: tw-topbar-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Main header */
.header-wrapper,
#masthead.header-main,
.header-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 250, 0.88)) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(18, 20, 23, 0.06) !important;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.sticky-jump .header-wrapper,
.stuck .header-wrapper,
.header-wrapper.stuck {
  box-shadow: 0 12px 32px rgba(18, 20, 23, 0.08) !important;
}

.header-inner {
  min-height: 4.35rem;
  animation: tw-header-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo hierarchy */
#logo {
  margin-right: 0.35rem;
}

#logo img.header-logo,
#logo .header_logo {
  max-height: 34px !important;
  width: auto !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  transform-origin: left center;
}

#logo a:hover img.header-logo,
#logo a:hover .header_logo {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.header .logo-text {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  font-size: 1.35rem !important;
  color: var(--color-headline) !important;
}

/* Primary nav — stronger type distinction */
.header-nav-main.nav > li > a {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: #3a424c !important;
  text-transform: none !important;
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease !important;
}

.header-nav-main.nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-main.nav > li > a:hover,
.header-nav-main.nav > li:hover > a,
.header-nav-main.nav > li.active > a,
.header-nav-main.nav > li.current-menu-item > a,
.header-nav-main.nav > li.current_page_item > a {
  color: var(--color-headline) !important;
}

.header-nav-main.nav > li > a:hover::after,
.header-nav-main.nav > li:hover > a::after,
.header-nav-main.nav > li.active > a::after,
.header-nav-main.nav > li.current-menu-item > a::after,
.header-nav-main.nav > li.current_page_item > a::after {
  width: 1.35rem;
}

.header-nav-main.nav > li.active > a,
.header-nav-main.nav > li.current-menu-item > a,
.header-nav-main.nav > li.current_page_item > a {
  font-weight: 700 !important;
  color: var(--color-primary) !important;
}

.header-nav-main.nav > li > a .icon-angle-down,
.header-nav-main .nav-dropdown-toggle {
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.header-nav-main.nav > li:hover > a .icon-angle-down {
  opacity: 0.9;
  transform: translateY(1px);
}

/* Dropdown */
.nav-dropdown.nav-dropdown-default,
.header-nav .nav-dropdown {
  border: 1px solid rgba(18, 20, 23, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(18, 20, 23, 0.12) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: tw-dropdown-in 0.22s ease both;
}

.header-nav .nav-dropdown > li > a {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--color-base) !important;
  text-transform: none !important;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease !important;
}

.header-nav .nav-dropdown > li > a:hover {
  background: var(--accent-soft) !important;
  color: var(--color-primary) !important;
  padding-left: 1.15em !important;
}

/* Right utilities — quieter than main nav */
.header-nav-main.nav-right > li > a,
.header-nav.nav-right > li > a,
.header-nav .account-link > a,
.header-nav .cart-item > a,
.header-nav .header-search-form-wrapper > a,
.header-nav .header-search-dropdown > a {
  font-family: var(--font-display) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #66707c !important;
  text-transform: none !important;
}

.header-nav.nav-right > li > a:hover,
.header-nav .account-link > a:hover,
.header-nav .cart-item > a:hover {
  color: var(--color-headline) !important;
}

.header-nav .cart-item .cart-icon strong,
.header-cart-link .cart-icon strong,
.cart-icon strong,
.header-cart-title {
  font-family: var(--font-display) !important;
}

.header-nav .cart-icon strong,
.cart-icon strong,
.cart-icon .cart-count,
.header-cart-link .cart-count {
  background: var(--color-primary) !important;
  color: #fff !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav .cart-item:hover .cart-icon strong,
.header-nav .cart-item:hover .cart-count {
  transform: scale(1.08);
}

.header-button .button,
.header .button.primary,
li html .button.primary,
.button.primary,
.button.alt,
.button.checkout,
.single_add_to_cart_button,
.product-small .button,
ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
a.checkout-button,
.wp-block-button__link {
  background-color: var(--color-primary) !important;
  background-image: none !important;
  border-color: var(--color-primary) !important;
  color: var(--color-on-primary) !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.header-button .button:hover,
.header .button.primary:hover,
.button.primary:hover,
.button.alt:hover,
.product-small .button:hover,
ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--color-primary-hover) !important;
  border-color: var(--color-primary-hover) !important;
  color: var(--color-on-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 92, 71, 0.22) !important;
}

.button.primary.is-outline,
.button.is-outline,
.is-outline.primary {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary) !important;
}

.button.primary.is-outline:hover,
.button.is-outline:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

@keyframes tw-topbar-shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes tw-topbar-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tw-header-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tw-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top-bar::before,
  #top-bar .nav > li > a,
  .header-inner,
  .nav-dropdown {
    animation: none !important;
  }
}

#footer,
.footer-wrapper {
  background: #16191d !important;
  color: rgba(245, 247, 248, 0.72);
}

#footer a,
.footer-wrapper a {
  color: rgba(245, 247, 248, 0.72);
}

#footer a:hover,
.footer-wrapper a:hover {
  color: #fff;
}

#footer .widget-title,
.footer-wrapper .widget-title {
  color: #fff !important;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.absolute-footer {
  background: #121417 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 247, 248, 0.55);
}

/* Product tiles — elevated, clearer hierarchy */
.product-small.box,
.product-small .box-text,
ul.products li.product {
  background: transparent;
}

ul.products {
  gap: 1.75rem 1.25rem !important;
}

ul.products li.product .box-image,
.product-small .box-image {
  border: 1px solid rgba(18, 20, 23, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(10, 92, 71, 0.07), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f5f7f8 100%);
  box-shadow: var(--shadow-product);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

ul.products li.product:hover .box-image,
.product-small:hover .box-image {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(18, 20, 23, 0.14);
}

ul.products li.product .box-image img,
.product-small .box-image img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

ul.products li.product:hover .box-image img,
.product-small:hover .box-image img {
  transform: scale(1.04);
}

ul.products li.product .box-text,
.product-small .box-text {
  padding-top: 0.85rem !important;
}

ul.products li.product .product-title,
ul.products li.product .woocommerce-loop-product__title,
.product-small .product-title a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem !important;
  line-height: 1.35;
  color: var(--color-headline) !important;
}

ul.products li.product .price,
.product-small .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem !important;
  color: var(--color-primary) !important;
}

ul.products li.product .price del,
.product-small .price del {
  color: var(--color-muted) !important;
  font-weight: 600;
}

ul.products li.product .price ins,
.product-small .price ins {
  color: var(--color-primary) !important;
  text-decoration: none;
}

.badge,
.onsale,
.badge-container .badge {
  background: var(--color-headline) !important;
  color: #fff !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}

/* Kill residual Flatsome purple/pink from dynamic CSS */
body,
button,
input,
select,
textarea,
.nav > li > a,
.mobile-sidebar,
.off-canvas .nav-vertical > li > a {
  font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.product-title,
.woocommerce-loop-product__title,
.widget-title,
.section-title span {
  font-family: var(--font-display) !important;
}

a,
.widget a,
.nav-vertical a,
.category-page-row a,
.woocommerce-breadcrumb a,
.product-page-price .amount,
.price .amount,
.woocommerce-Price-amount {
  color: inherit;
}

.star-rating span:before,
.woocommerce-product-rating .star-rating span:before {
  color: var(--color-review-stars) !important;
}

/* Keyboard focus — visible without fighting mouse clicks */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Floating contact (AECSF): icons only, inset from edge so browsing stays clear */
#aecsf-fc.aecsf-fc--right {
  right: 18px !important;
}

#aecsf-fc.aecsf-fc--left {
  left: 18px !important;
}

#aecsf-fc .aecsf-fc__tab {
  display: none !important;
}

#aecsf-fc .aecsf-fc__panel-inner {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#aecsf-fc .aecsf-fc__list {
  gap: 10px !important;
}

#aecsf-fc .aecsf-fc__btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(18, 20, 23, 0.14) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#aecsf-fc .aecsf-fc__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(18, 20, 23, 0.18) !important;
}

#aecsf-fc .aecsf-fc__btn--whatsapp {
  background: #128c7e !important;
}

#aecsf-fc .aecsf-fc__btn--line {
  background: #06c755 !important;
}

#aecsf-fc .aecsf-fc__line-mark {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
}

@media (max-width: 549px) {
  #aecsf-fc.aecsf-fc--right {
    right: 12px !important;
  }

  #aecsf-fc.aecsf-fc--va-center {
    top: auto !important;
    bottom: 88px !important;
    transform: none !important;
  }
}
