:root {
    --primary: #98292b;
    --primary-dark: #7a2122;
    --primary-light: #f5e8e8;
    --primary-lighter: #faf3f3;
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #8896ab;
    --border-color: #e2ddd8;
    --border-light: #f5efef;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }
  html {
    overflow-x: clip;
  }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff; color: var(--text-primary); overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
  }
  a { text-decoration:none; color:inherit; transition:color .18s ease; }
  button { cursor:pointer; border:none; background:none; font-family:inherit; }

  /* ===== Utility Bar ===== */
  .utility-bar {
    background: var(--primary);
    padding: 7px 0;
    font-size: 12px;
    position: relative; z-index: 102;
  }
  .utility-inner {
    max-width: 1320px; margin: 0 auto; padding: 0 0px;
    display: flex; justify-content: flex-end; align-items: center;
  }
  .utility-menu { list-style:none; display:flex; align-items:center; gap:0; margin:0; padding:0; }
  .utility-menu li + li::before {
    content:"";
    display:inline-block;
    width:1px; height:12px;
    background:rgba(255,255,255,.25);
    margin:0 14px; vertical-align:middle;
  }
  .utility-menu a { color:rgba(255,255,255,.85); text-decoration:none; padding:4px 0; transition:color .18s ease; }
  .utility-menu a:hover { color:#fff; }
  .utility-link { color: rgba(255,255,255,.85); letter-spacing:.15px; line-height:1; }
  .utility-link:hover { color: #fff; }
  .util-divider { width:1px; height:12px; background:rgba(255,255,255,.25); }

  /* ===== Main Header ===== */
  .main-header {
    background: #fff;
    position: sticky; top: 0; z-index: 10;
    border-bottom: 1px solid var(--border-color);
  }
  .header-inner {
    max-width: 1320px; margin: 0 auto; padding: 0 0px;
    display: flex; align-items: center; justify-content: space-between;
    height: 96px; gap: 40px;
    min-width: 0;
  }
  .header-actions {
    display:flex; align-items:center; flex-shrink:0; margin-left:auto; gap:12px;
    min-width: 0;
  }

  /* Logo */
  .logo { display:flex; align-items:center; gap:10px; flex-shrink:0; }
  .logo-icon {
    width:38px; height:38px; background:var(--primary); border-radius:8px;
    display:flex; align-items:center; justify-content:center;
  }
  .logo-icon svg { width:20px; height:20px; fill:#fff; }
  .logo-text-group { display:flex; flex-direction:column; line-height:1.15; }
  .logo-name { font-size:18px; font-weight:800; letter-spacing:-.4px; color:var(--text-primary); text-transform:uppercase; }
  .logo-tagline { font-size:10.5px; font-weight:500; color:var(--text-muted); letter-spacing:.25px; }
  
  /* WordPress Custom Logo Styles */
  .custom-logo {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Navigation Items */
  .main-nav { display:flex; align-items:center; gap:4px; flex-shrink:0; }
  .nav-trigger {
    display:block; padding:9px 18px;
    color: var(--text-secondary); font-size:14.5px; font-weight:500;
    border-radius:6px; transition:all .2s ease;
    letter-spacing:-.05px; white-space:nowrap; cursor:pointer;
    background:none; border:none; font-family:inherit;
    text-decoration:none;
  }
  .nav-trigger:hover { color:var(--primary); background:var(--primary-lighter); }

  /* Right Action Bar */
  .header-actions { display:flex; align-items:center; flex-shrink:0; margin-left:auto; gap:12px; }

  /* Search Wrapper — Philips-style standalone pill input */
  .search-wrapper {
    position:relative;
    display:flex; align-items:center;
    min-width: 0;
    flex: 0 1 auto;
  }
  .search-input {
    width:300px; height:48px;
    min-width: 0;
    max-width: 100%;
    padding:12px 48px 12px 24px;
    border:2px solid rgba(152,41,43,.06);
    border-radius:25px;
    background:#fff;
    font-size:16px; font-family:inherit;
    color:var(--text-primary);
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease;
  }
  .search-input::placeholder { color:var(--text-muted); font-size:16px; }
  .search-input:focus {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(152,41,43,.08);
  }
  .search-icon {
    position:absolute; top:12px; right:16px;
    width:24px; height:24px;
    stroke:var(--text-primary); fill:none;
    pointer-events:none;
  }
  .search-input[readonly] { cursor:pointer; }

  /* ============================================================
     SEARCH OVERLAY — Philips-style full-page search panel
     Dark backdrop + white panel, back button, search input, popular categories
     ============================================================ */
  .search-overlay {
    position:fixed; inset:0; z-index:1000;
    display:none;
    flex-direction:column;
    justify-content:flex-start;
  }
  .search-overlay.open {
    display:flex;
  }

  /* Dark semi-transparent backdrop */
  .so-backdrop {
    position:absolute; inset:0;
    background:rgba(0,0,0,.5);
    opacity:0; transition:opacity .25s ease;
  }
  .search-overlay.open .so-backdrop { opacity:1; }

  /* White panel slides down from top */
  .so-panel {
    position:relative; z-index:1;
    background:#fff;
    transform:translateY(-100%);
    transition:transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 8px 40px rgba(0,0,0,.12);
  }
  .search-overlay.open .so-panel { transform:translateY(0); }

  /* Search Row: back arrow + input + icon */
  .so-search-row {
    border-bottom:1px solid var(--border-color);
  }
  .so-search-inner {
    max-width:1320px; margin:0 auto;
    padding:20px 32px;
    display:flex; align-items:center; gap:16px;
  }
  .so-back-btn {
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    color:var(--text-secondary);
    transition:background .18s ease, color .18s ease;
  }
  .so-back-btn:hover { background:var(--primary-lighter); color:var(--primary); }
  .so-back-btn svg { width:24px; height:24px; stroke:currentColor; }

  .so-input-wrap {
    position:relative; flex:1;
  }
  .so-search-input {
    width:100%; height:48px;
    padding:12px 48px 12px 24px;
    border:2px solid rgba(152,41,43,.06);
    border-radius:25px;
    background:#fff;
    font-size:16px; font-family:inherit;
    color:var(--text-primary);
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease;
  }
  .so-search-input::placeholder { color:var(--text-muted); font-size:16px; }
  .so-search-input:focus {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(152,41,43,.08);
  }
  .so-search-icon {
    position:absolute; top:12px; right:16px;
    width:24px; height:24px;
    stroke:var(--text-primary); fill:none;
    pointer-events:none;
  }

  /* Autocomplete Dropdown (inside overlay) */
  .so-input-wrap .search-autocomplete {
    position:absolute; top:56px; left:0; right:0;
    background:#fff;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
    display:none;
    z-index:10;
    overflow:hidden;
  }
  .so-input-wrap .search-autocomplete.open { display:block; }
  .sa-loading {
    padding:14px 18px;
    font-size:13px; color:var(--text-muted);
    display:none;
  }
  .sa-loading.show { display:block; }
  .sa-list {
    list-style:none; margin:0; padding:4px 0;
    max-height:360px; overflow-y:auto;
  }
  .sa-item {
    display:flex; align-items:center; gap:12px;
    padding:10px 18px;
    cursor:pointer;
    transition:background .12s;
  }
  .sa-item:hover,
  .sa-item.active {
    background:rgba(152,41,43,.05);
  }
  .sa-item-thumb {
    width:36px; height:36px;
    border-radius:6px;
    background:#f0f2f5;
    flex-shrink:0;
    overflow:hidden;
    display:flex; align-items:center; justify-content:center;
  }
  .sa-item-thumb img {
    width:100%; height:100%;
    object-fit:contain;
  }
  .sa-item-thumb .sa-no-img {
    width:16px; height:16px;
    stroke:var(--primary); fill:none;
    opacity:.35;
  }
  .sa-item-title {
    font-size:14px; font-weight:500;
    color:var(--text-primary);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .sa-empty {
    padding:24px 18px;
    text-align:center;
    font-size:13px; color:var(--text-muted);
  }
  .sa-view-all {
    display:block;
    padding:12px 18px;
    font-size:13px; font-weight:600;
    color:var(--primary);
    text-align:center;
    text-decoration:none;
    border-top:1px solid #eef0f4;
    transition:background .12s;
  }
  .sa-view-all:hover { background:rgba(152,41,43,.05); }

  /* Content Row: Popular Categories */
  .so-content-row {
    padding:24px 0 40px;
  }
  .so-content-inner {
    max-width:1320px; margin:0 auto; padding:0 32px;
  }
  .so-categories-header {
    font-size:16px; font-weight:350;
    color:#8f8f8f;
    margin-bottom:20px;
  }
  .so-categories-list {
    list-style:none; padding:0; margin:0;
  }
  .so-categories-list li {
    margin-bottom:2px;
  }
  .so-categories-list li a {
    display:flex; align-items:center;
    padding:10px 12px; border-radius:8px;
    font-size:16px; color:var(--text-primary);
    transition:all .15s ease;
  }
  .so-categories-list li a:hover {
    background:var(--primary-lighter);
    color:var(--primary);
    padding-left:16px;
  }
  .so-categories-list li a strong { font-weight:600; }

  /* User / Account Icon Button */
  .cart-btn {
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:50%; flex-shrink:0;
    transition:background .18s ease; position:relative;
    text-decoration:none;
  }
  .cart-btn:hover { background:var(--primary-lighter); }
  .cart-btn svg { width:19px; height:19px; stroke:var(--text-secondary); fill:none; }
  .cart-btn:hover svg { stroke:var(--primary); }

  /* Hamburger Menu Button */
  .menu-btn {
    display:flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:50%; flex-shrink:0;
  }
  .menu-btn:hover { background:var(--primary-lighter); }
  .menu-lines { display:flex; flex-direction:column; gap:4.5px; width:18px; }
  .menu-line { display:block; width:100%; height:2px; background:var(--text-secondary); border-radius:2px; transition:all .25s ease; }
  .menu-btn:hover .menu-line { background:var(--primary); }

@media (max-width:900px) {
    .main-nav { display:none; }
    /* === Header mobile adaptations (≤900px) === */
    .header-inner { height:80px; gap:16px; padding:0 16px; }
    .footer-inner { padding: 36px 16px 0; }
    .logo-icon { width:32px; height:32px; border-radius:6px; }
    .logo-icon svg { width:17px; height:17px; }
    .logo-name { font-size:15px; letter-spacing:-.3px; }
    .logo-tagline { font-size:9px; display:none; }
    .custom-logo { max-height: 64px; }
    .fh-logo .custom-logo { max-height: 72px; }
    .header-actions { gap:8px; }
    .search-input { width:200px; height:42px; padding:10px 40px 10px 18px; font-size:16px; }
    .search-input::placeholder { font-size:16px; }
    .search-icon { width:20px; height:20px; top:11px; right:12px; }

    /* Search overlay responsive ≤900px */
    .so-search-inner { padding:16px 16px; gap:12px; }
    .so-content-inner { padding:0 16px; }
    .so-search-row { border-bottom:1px solid var(--border-color); }
    .cart-btn { width:32px; height:32px; }
    .cart-btn svg { width:17px; height:17px; }
    .menu-btn { width:32px; height:32px; }
    .menu-lines { width:16px; gap:3.5px; }

    /* Utility bar on small screens */
    .utility-bar { font-size:11px; padding:5px 0; }
    .utility-inner { padding:0 16px; gap:12px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .util-divider { height:10px; }
    .utility-link { white-space:nowrap; }
  }

@media (max-width:600px) {
    /* === Header extra-small mobile (≤600px) === */
    .header-inner { height:70px; gap:10px; padding:0 12px; }
    .logo-icon { width:28px; height:28px; border-radius:6px; }
   .logo-icon svg { width:15px; height:15px; }
   .logo-name { font-size:13.5px; letter-spacing:-.2px; }
   .logo-tagline { display:none; }
    .custom-logo { max-height: 52px; }
    .fh-logo .custom-logo { max-height: 60px; }
   .header-actions { gap:6px; }
   .search-input { width:140px; height:38px; padding:8px 36px 8px 14px; font-size:16px; border-radius:19px; }
   .search-input::placeholder { font-size:16px; }
    .search-icon { width:18px; height:18px; top:10px; right:10px; }

    /* Search overlay responsive ≤600px */
    .so-search-inner { padding:12px 12px; gap:10px; }
    .so-content-inner { padding:0 12px; }
    .so-search-input { height:42px; font-size:16px; padding:10px 40px 10px 16px; }
    .so-search-input::placeholder { font-size:16px; }
    .so-search-icon { width:20px; height:20px; top:11px; right:12px; }
    .so-back-btn { width:40px; height:40px; }
    .so-back-btn svg { width:22px; height:22px; }
    .so-categories-header { font-size:14px; }
    .so-categories-list li a { font-size:14px; padding:8px 10px; }

    /* Overlay autocomplete — full width on mobile */
    .so-input-wrap .search-autocomplete { left:-12px; right:-12px; border-radius:10px; }
    .sa-item { padding:10px 14px; }
    .cart-btn { width:30px; height:30px; flex-shrink:0; }
    .cart-btn svg { width:16px; height:16px; }
    .menu-btn { width:30px; height:30px; flex-shrink:0; }
    .menu-lines { width:15px; gap:3px; }
    .menu-line { height:1.75px; }

    /* Utility bar — hide on very small screens or make scrollable */
    .utility-bar { display:none; }
  }

@media (max-width:420px) {
    /* === Ultra-small mobile fallback (≤420px, e.g. iPhone SE, small Androids) === */
    .header-inner { height:62px; gap:8px; padding:0 10px; }
   .logo-icon { width:26px; height:26px; border-radius:5px; }
   .logo-icon svg { width:14px; height:14px; }
   .logo-name { font-size:12.5px; letter-spacing:-.15px; }
    .custom-logo { max-height: 44px; }
    .fh-logo .custom-logo { max-height: 52px; }
   .logo-text-group { gap:6px; }
   .header-actions { gap:4px; }
   .search-input { width:100px; height:34px; padding:6px 32px 6px 10px; font-size:16px; border-radius:17px; }
    .search-input::placeholder { font-size:16px; }
    .search-icon { width:16px; height:16px; top:9px; right:8px; }

    /* Search overlay responsive ≤420px */
    .so-search-inner { padding:10px 10px; gap:8px; }
    .so-content-inner { padding:0 10px; }
    .so-search-input { height:38px; font-size:16px; padding:8px 36px 8px 14px; border-radius:19px; }
    .so-search-input::placeholder { font-size:16px; }
    .so-search-icon { width:18px; height:18px; top:10px; right:10px; }
    .so-back-btn { width:36px; height:36px; }
    .so-back-btn svg { width:20px; height:20px; }
    .so-categories-header { font-size:13px; margin-bottom:16px; }
    .so-categories-list li a { font-size:13px; padding:7px 10px; }
    .so-content-row { padding:20px 0 32px; }
    .cart-btn { width:28px; height:28px; }
    .cart-btn svg { width:15px; height:15px; }
    .menu-btn { width:28px; height:28px; }
    .menu-lines { width:14px; gap:3px; }
/* Category icons — even smaller on tiny screens */
    .cat-icon-item { padding:12px 14px 10px; }
    .cii-icon { width:26px; height:26px; }
    .cii-icon svg { width:21px; height:21px; }
    .cii-label { font-size:10px; max-width:54px; }
  }

/* ============================================================
     FOOTER — Apple / Stripe style (Logo top + intro + links)
     ============================================================ */
  .site-footer {
    background: #0d111a;
    color: #9ca3b8;
    font-size: 14px;
    line-height: 1.7;
    padding: 0;
    margin: 0;
  }

  /* Footer inner container: align with header */
  .footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 32px 0;
  }

  /* --- Footer Hero: Logo + Company Intro --- */
  .footer-hero {
    max-width: 1320px; margin: 0 auto; padding: 64px 0px 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    overflow: hidden;
  }
  .fh-inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    justify-content: space-between;
  }
  .fh-brand {
    flex-shrink: 0;
  }
  .fh-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 18px;
    transition: opacity .18s ease;
  }
  .fh-logo:hover { opacity: .85; }
  .fh-logo-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(152,41,43,.3);
  }
  .fh-logo-icon svg { width: 22px; height: 22px; fill: #fff; }
  .fh-logo-text {
    font-size: 20px; font-weight: 800; letter-spacing: -.4px;
    line-height: 1.15; text-transform: uppercase;
  }
  /* Footer custom logo styles */
  .fh-logo .custom-logo {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .fh-tagline {
    font-size: 13px; color: #6b7280; letter-spacing: .02em; line-height: 1.5; max-width: 320px;
  }

  .fh-intro {
    flex: 1; max-width: 580px;
  }
  .fh-intro p {
    font-size: 14.5px; color: #8892a6; line-height: 1.75; margin-bottom: 20px;
  }
  .fh-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
  }
  .fh-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px; border-radius: 10px;
    font-size: 13.5px; font-weight: 600; transition: all .2s ease;
    cursor: pointer; text-decoration: none;
  }
  .fh-btn--primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(152,41,43,.25);
  }
  .fh-btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(152,41,43,.35); }
  .fh-btn--outline {
    background: transparent; color: #c8cdd8; border: 1.5px solid rgba(255,255,255,.14);
  }
  .fh-btn--outline:hover { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
  .fh-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

  .fh-social {
    display: flex; gap: 10px; flex-shrink: 0; justify-content: flex-end;
  }
  .fh-social-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    transition: all .2s ease; color: #8892a6;
  }
  .fh-social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
  .fh-social-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }

  /* Right column: social + region */
  .fh-right {
    display: flex; flex-direction: column; gap: 14px;
    align-items: flex-end; flex-shrink: 0;
  }
  .fr-link {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    font-size: 12px; color: #5a6378; text-decoration: none;
    transition: color .15s ease;
  }
  .fr-link:hover { color: #9ca3b8; }
  .fr-link svg { flex-shrink: 0; }
  .fr-row {
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
  }
  .fr-label { color: #4a5268; }
  .fr-divider { width: 1px; height: 10px; background: rgba(255,255,255,.08); }
  .fr-value { font-weight: 500; }

  /* Video badge under language selector */
  .fh-video-badge {
    display: block;
    margin-top: 4px;
    align-self: flex-end;
  }
  .fh-video-badge img {
    display: block;
    max-height: 56px;
    width: auto;
    opacity: .95;
    transition: opacity .2s ease;
  }
  .fh-video-badge:hover img { opacity: 1; }

  /* --- Footer Link Grid (clean 4-col) --- */
  .footer-links {
    max-width: 1320px; margin: 0 auto;
    padding: 52px 40px 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 28px;
  }
  .fl-col h5 {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: #555f78; margin-bottom: 18px;
  }
  .fl-col ul { list-style: none; padding: 0; margin: 0; }
  .fl-col li { margin-bottom: 8px; }
  .fl-col li a {
    font-size: 14px; color: #8892a6; transition: all .15s ease; display: block; padding: 2px 0;
  }
  .fl-col li a:hover { color: #fff; transform: translateX(3px); }
  .fl-col li a sup { font-size: 9px; opacity: .7; }

  /* --- Footer Bottom Bar --- */
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    background: #080b12;
    padding:0;
  }
  .fb-inner {
    max-width: 1320px; margin: 0 auto; padding: 24px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .fb-copy {
    font-size: 12px; color: #4a5268;
  }
  .fb-links {
    display: flex; flex-wrap: wrap; gap: 0;
  }
  .fb-links li {
    list-style: none;
    display: flex;
    align-items: center;
  }
  .fb-links li:not(:first-child)::before {
    content: "|";
    margin: 0 14px;
    color: #4a5268;
    font-size: 11px;
  }
  .fb-links a {
    font-size: 12px; color: #5a6378; transition: color .15s ease;
  }
  .fb-links a:hover { color: #9ca3b8; }

  /* --- Translate.js 自动生成的语言选择器：彻底隐藏 --- */
  .translate-language-select,
  .translate-select,
  #translate-select,
  #translate,
  .translate,
  body > select[translate],
  body > div > select[translate],
  .translate > select,
  select[class*="translate"],
  div[class*="translate"] > select,
  iframe[name="goog"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
  }

  @media (max-width: 700px) {
    .fr-link { gap: 6px; }
  }

  /* Footer responsive */
  @media (max-width:1024px) {
    .fh-inner { flex-direction: column; gap: 36px; }
    .fh-intro { max-width: 100%; }
    .fh-right { position: static; align-items: flex-start; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  }
  @media (max-width:768px) {
    .footer-links { display: none;}
  }
  @media (max-width:700px) {
    .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 36px 24px 32px; }
    .footer-hero { padding: 44px 24px 36px; }
    .fb-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .fh-right { position: static; align-items: flex-start; }
  }
  @media (max-width:500px) {
    .footer-links { grid-template-columns: 1fr; }
    .fh-actions { flex-direction: column; }
    .fh-btn { justify-content: center; }
  }

/* ============================================================
   SHARED BREADCRUMB — cp-breadcrumb
   Matching products.html style, used across all subpages
   ============================================================ */
.cp-breadcrumb {
  background: #f8f9fb;
  border-bottom: 1px solid #eef0f4;
  padding: 0;
}
.cp-breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.cp-breadcrumb-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.cp-breadcrumb-inner a:hover {
  color: var(--primary);
}
@media (max-width: 480px) {
  .cp-breadcrumb-inner { padding: 14px 18px; }
}
.cp-bc-sep {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4c7cc;
}
.cp-bc-sep svg {
  width: 12px;
  height: 12px;
}
.cp-bc-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Breadcrumb --- */
.p-breadcrumb { background: #f8f9fb; border-bottom: 1px solid #eef0f4; padding: 0; }
.p-breadcrumb-inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.p-breadcrumb-inner a { color: var(--text-secondary); text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; gap: 2px; }
.p-breadcrumb-inner a:hover { color: var(--primary); }
.p-breadcrumb-icon { flex-shrink: 0; }
.p-breadcrumb-sep { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; color: #c4c7cc; }
.p-breadcrumb-sep svg { width: 12px; height: 12px; }
.p-breadcrumb-current { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   RIGHT-SIDE NAVIGATION DRAWER (hamburger) — Philips-style
   MUST be above everything when open (header, modals, etc.)
   ============================================================ */
.drawer-overlay {
  position:fixed; inset:0; background:rgba(26,31,54,.45);
  z-index:99999 !important; opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
}
.drawer-overlay.visible { opacity:1; visibility:visible; z-index:99999 !important; }

/* Drawer panel — HIDDEN by default */
.drawer-panel {
  position:fixed; top:0; left:-420px !important;
  width:400px; max-width:90vw; height:100vh; background:#fff;
  z-index:99999 !important; overflow:hidden;
  transition:left .38s cubic-bezier(.4,0,.2,1);
  box-shadow:-10px 0 50px rgba(0,0,0,.18);
  display:none !important; flex-direction:column;
  pointer-events:none !important;
}
.drawer-panel.open { display:flex !important; left:0 !important; pointer-events:auto !important; z-index:99999 !important; }

/* --- Drawer Header --- */
.drawer-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 28px; border-bottom:1px solid var(--border-light);
  flex-shrink:0; background:#fff; z-index:5;
}
.drawer-logo { display:flex; align-items:center; gap:10px; }
.drawer-logo-icon { width:30px; height:30px; background:var(--primary); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.drawer-logo-icon svg { width:17px; height:17px; fill:#fff; }
.drawer-logo-text { font-size:16px; font-weight:800; letter-spacing:-.2px; color:var(--text-primary); text-transform:uppercase; }
.drawer-logo-img { max-height:44px; max-width:220px; width:auto; height:auto; object-fit:contain; display:block; }
.drawer-close { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; transition:background .18s ease; }
.drawer-close:hover { background:var(--primary-lighter); }
.drawer-close svg { width:18px; height:18px; stroke:var(--text-secondary); stroke-width:2; fill:none; }

/* --- Drawer Body --- */
.drawer-body {
  flex:1; position:relative; overflow:hidden;
}

/* Fixed top area */
.drawer-top-fixed {
  position:absolute;
  top:0; left:0; right:0;
  background:#fff;
  z-index:15;
  padding-bottom:8px;
}

/* Each "page" is a full-size sliding panel */
.drawer-page {
  position:absolute; top:0; left:0; right:0; bottom:0;
  overflow-y:auto; padding:0;
  background:#fff !important;
  transform: translateX(100%);
  opacity:0;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .28s ease;
  pointer-events:none;
  display:flex; flex-direction:column;
  padding-top:155px;
}

/* Active page — visible */
.drawer-page.active {
  transform: translateX(0);
  opacity:1;
  pointer-events:auto;
  background:#fff !important;
}

/* Slide in from right */
.drawer-page.slide-in-right {
  transform: translateX(100%);
  opacity:0;
  pointer-events:none;
}
.drawer-page.slide-in-right.active {
  transform: translateX(0);
  opacity:1;
  pointer-events:auto;
  background:#fff !important;
}

/* Slide out to left */
.drawer-page.slide-out-left {
  transform: translateX(-30%);
  opacity:.4;
  pointer-events:none;
}

  /* ===== Level 1 Content ===== */
  .dp-lang-label { font-size:11px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; padding:20px 28px 8px; }
  .dp-region-link { display:flex; align-items:center; gap:10px; padding:10px 28px; font-size:14px; font-weight:500; color:var(--text-secondary); transition:color .18s ease; cursor:pointer; }
  .dp-region-link:hover { color:var(--primary); }
  .dp-region-link svg { width:18px; height:18px; stroke:var(--text-muted); fill:none; stroke-width:1.5; flex-shrink:0; }

  /* Language page items — inherit dp-subcat-list li a style (red dot) */
  .dp-lang-item.active {
    color: var(--primary);
    font-weight: 600;
  }
  .dp-subcat-list .dp-lang-item.active::before {
    background: var(--primary);
    width: 7px;
    height: 7px;
  }

  .dp-search-wrap { padding:4px 28px 14px; position:relative; }
  .dp-search { display:flex; align-items:center; gap:8px; border:1.5px solid var(--border-color); border-radius:9999px; padding:10px 16px; transition:border-color .2s ease; position:relative; }
  .dp-search:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(152,41,43,.08); }
  .dp-search-input { border:none; outline:none; background:transparent; flex:1; font-size:16px; color:var(--text-primary); font-family:inherit; }
  .dp-search-input::placeholder { color:var(--text-muted); }
  .dp-search-icon svg { width:18px; height:18px; stroke:var(--text-muted); fill:none; stroke-width:2; }

  /* Drawer autocomplete */
  .dp-search .search-autocomplete {
    position:absolute; top:calc(100% + 8px); left:0; right:0;
    background:#fff;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
    display:none;
    z-index:100;
    overflow:hidden;
  }
  .dp-search .search-autocomplete.open { display:block; }

  .dp-section-title { font-size:13px; font-weight:700; color:var(--text-primary); padding:20px 28px 12px; border-top:1px solid var(--border-light); }

  /* Nav items in level 1 */
  .dp-nav-item {
    display:flex; align-items:center; justify-content:space-between;
    margin:0 20px; padding:14px 12px;
    font-size:15px; font-weight:500; color:var(--text-secondary);
    cursor:pointer; border-radius:8px;
    transition:all .18s ease; position:relative;
  }
  .dp-nav-item::after {
    content:''; position:absolute; bottom:0; left:24px; right:24px;
    height:1px; background:var(--border-light);
  }
  .dp-nav-item:last-child::after { display:none; }
  .dp-nav-item:hover { color:var(--primary); background:var(--primary-lighter); }
  .dp-nav-item .dp-arrow {
    width:18px; height:18px; stroke:var(--text-muted); fill:none;
    stroke-width:2; transition:transform .2s ease, stroke .2s ease;
    flex-shrink:0; margin-left:8px;
  }
  .dp-nav-item:hover .dp-arrow { stroke:var(--primary); transform: translateX(3px); }

  /* ===== Level 2 Content (Submenu) ===== */
  /* Back bar at top of L2 */
  .dp-back-bar {
    display:flex; align-items:center; gap:6px;
    padding:16px 28px;
    border-bottom:1px solid var(--border-light);
    flex-shrink:0; cursor:pointer;
    transition:background .15s ease;
  }
  .dp-back-bar:hover { background:var(--primary-lighter); }
  .dp-back-icon {
    width:20px; height:20px; stroke:var(--text-secondary); fill:none;
    stroke-width:2; flex-shrink:0; transition:stroke .15s ease;
  }
  .dp-back-bar:hover .dp-back-icon { stroke:var(--primary); }
  .dp-back-text { font-size:16px; font-weight:600; color:var(--text-secondary); }
  .dp-back-bar:hover .dp-back-text { color:var(--primary); }

  /* Submenu header title */
  .dp-sub-header {
    padding:22px 28px 14px;
    flex-shrink:0;
  }
  .dp-sub-title { font-size:17px; font-weight:700; color:var(--text-primary); letter-spacing:-.15px; }

  /* Subcategory groups — 精致分组 */
  .dp-subcat-group {
    padding: 0 20px 20px;
    margin-bottom: 12px;
  }

  /* 二级分类标题 — 大标题 + 细线分隔 + 圆角箭头 */
  .dp-subcat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 14px 0 10px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
    transition: all .2s ease;
    text-decoration: none;
    letter-spacing: -0.3px;
  }
  .dp-subcat-title:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
  .dp-subcat-title::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background: var(--border-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
  }
  .dp-subcat-title:hover::after {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    transform: translateX(3px);
  }

  /* 三级子项列表 — 浅色卡片背景 */
  .dp-subcat-list { list-style: none; padding: 6px 0 0 0; margin: 0; }
  .dp-subcat-list li {
    margin-bottom: 1px;
    border-radius: 8px;
    overflow: hidden;
  }
  .dp-subcat-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    border-radius: 8px;
    transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
  }
  .dp-subcat-list li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d0d7e0;
    flex-shrink: 0;
    margin-left: 4px;
    transition: all .18s ease;
  }
  .dp-subcat-list li a:hover {
    color: var(--primary);
    background: #f5f7fa;
    padding-left: 12px;
  }
  .dp-subcat-list li a:hover::before {
    background: var(--primary);
    width: 7px;
    height: 7px;
  }

  /* Page body placeholder */
  .page-body { max-width:1320px; margin:0 auto; padding:80px 32px 80px; }
  .section-label { font-size:11px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:8px; }
  .section-title { font-size:22px; font-weight:700; color:var(--text-primary); margin-bottom:12px; letter-spacing:-.3px; }
  .section-desc { font-size:14px; color:var(--text-secondary); line-height:1.65; max-width:650px; margin-bottom:24px; }
  .demo-hint {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--primary-lighter); border:1.5px dashed var(--primary);
    padding:12px 20px; border-radius:10px; font-size:13.5px; font-weight:500; color:var(--primary-dark);
  }
  .demo-hint svg { width:18px; height:18px; animation:bounce 1.6s infinite; }

  @keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

  /* ========== Zigzag Content Block (图文交错模板) ========== */
  .zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 80px 0;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
  }
  .zigzag-row.right-image {
    flex-direction: row-reverse;
  }
  .zigzag-text {
    flex: 1;
    min-width: 0;
  }
  .zigzag-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }
  .zigzag-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
  }
  .zigzag-image {
    flex: 1;
    min-width: 0;
  }
  .zigzag-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  /* Zigzag responsive */
  @media (max-width: 900px) {
    .zigzag-row,
    .zigzag-row.right-image {
      flex-direction: column;
      gap: 32px;
      margin: 48px 0;
      padding: 0 20px;
    }
    .zigzag-text h2 {
      font-size: 24px;
    }
    .zigzag-text p {
      font-size: 15px;
    }
  }

/* ============================================================
   MOBILE OVERFLOW SAFETY NET
   Prevents horizontal scrollbar on all mobile devices
   ============================================================ */
@media (max-width: 900px) {
  /* === FINAL OVERFLOW GUARD — must be first === */
  html { overflow-x: clip !important; }
  body { overflow-x: clip !important; max-width: 100% !important; }

  /* Core containers */
  .hero-banner,
  .content-section,
  .site-footer,
  .footer-hero,
  .footer-inner,
  .section-container {
    overflow-x: clip;
  }

  /* Ensure all images and media scale properly */
  img, video, svg, canvas {
    max-width: 100%;
    height: auto;
  }

  /* Flex children safety */
  .header-inner,
  .fh-inner,
  .layer1-grid,
  .layer2-layout > * {
    min-width: 0;
  }

  /* Search input — allow shrinking on small screens */
  .search-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }
  .search-input {
    width: 100%;
    max-width: 200px;
  }

  /* News grid single column */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Info cards */
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
  .info-cards-small-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .search-input {
    max-width: 140px;
  }

  /* Extra safety for ultra-narrow screens */
  .hero-content {
    padding: 0 16px;
  }
  .section-container {
    padding: 0 16px;
  }
}

/* ========== Page Content — Gutenberg Block Typography (global) ========== */
.page-content .wp-block-paragraph {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 16px;
}
.page-content .wp-block-paragraph:first-child { margin-top: 0; }

.page-content .wp-block-paragraph strong {
  color: var(--text-primary);
  font-weight: 700;
}

.page-content .wp-block-list {
  padding-left: 24px;
  margin-top: 16px;
  list-style: disc;
}
.page-content .wp-block-list li {
  margin-top: 8px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.page-content .wp-block-list li:first-child { margin-top: 0; }
.page-content .wp-block-list .wp-block-list {
  margin-top: 8px;
  list-style: circle;
}

.page-content .wp-block-heading {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 32px;
}
.page-content .wp-block-heading:first-child { margin-top: 0; }
.page-content h1.wp-block-heading { font-size: 32px; }
.page-content h2.wp-block-heading { font-size: 26px; }
.page-content h3.wp-block-heading { font-size: 22px; }
.page-content h4.wp-block-heading { font-size: 20px; }
.page-content h5.wp-block-heading { font-size: 18px; }
.page-content h6.wp-block-heading { font-size: 16px; }

.page-content hr.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
  opacity: 1;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 768px) {
  .page-content .wp-block-paragraph { font-size: 15px; line-height: 1.7; margin-top: 14px; }
  .page-content .wp-block-list { padding-left: 20px; margin-top: 14px; }
  .page-content .wp-block-list li { line-height: 1.65; }
  .page-content .wp-block-heading { margin-top: 26px; }
  .page-content h1.wp-block-heading { font-size: 28px; }
  .page-content h2.wp-block-heading { font-size: 23px; }
  .page-content h3.wp-block-heading { font-size: 20px; }
  .page-content h4.wp-block-heading { font-size: 18px; }
  .page-content h5.wp-block-heading { font-size: 16px; }
  .page-content h6.wp-block-heading { font-size: 15px; }
  .page-content hr.wp-block-separator { margin: 26px 0; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 480px) {
  .page-content { padding-left: 10px; padding-right: 10px; }
  .page-content .wp-block-paragraph { font-size: 15px; margin-top: 12px; }
  .page-content .wp-block-list { padding-left: 18px; margin-top: 12px; }
  .page-content .wp-block-heading { margin-top: 22px; }
  .page-content h1.wp-block-heading { font-size: 24px; }
  .page-content h2.wp-block-heading { font-size: 21px; }
  .page-content h3.wp-block-heading { font-size: 18px; }
  .page-content h4.wp-block-heading { font-size: 17px; }
  .page-content h5.wp-block-heading { font-size: 15px; }
  .page-content h6.wp-block-heading { font-size: 14px; }
  .page-content hr.wp-block-separator { margin: 22px 0; }
}
