:root {
      --bg:        #0d0d0d;
      --surface:   #161616;
      --border:    #2a2a2a;
      --accent:    #FEB612E0;
      --accent2:   #e8c992;
      --text:      #fff;
      --muted:     #888;
      --radius:    5px;
      --gap:       20px;
    }
 
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
 
    /* ── Grid ── */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 20px;
    }
 
    .field-full { grid-column: 1 / -1; }
 
    /* ── Field ── */
    .field {
      display: flex;
      flex-direction: column;
    }
 
    .field input,
    .field textarea {
      width: 100%;
      background: #222;
      border-radius: var(--radius);
      padding: 14px 16px;
      font-size: 15px;
      color: var(--text);
      outline: none;
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
      -webkit-appearance: none;
    }
 
    .field input::placeholder,
    .field textarea::placeholder {
      color: #444;
    }
 
    .field input:focus,
    .field textarea:focus {
      border-color: var(--accent) !important;
      background: #141414;
    }
 
    .field textarea {
      resize: vertical;
      min-height: 130px;
      line-height: 1.6;
    }
 
    /* ── Submit ── */
    .btn-wrap { margin-top: 4px; }
 
 
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

.wpml-lang-dropdown {
    position: relative;
    width: max-content;
    cursor: pointer;
}
.wpml-current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
.wpml-current-lang img {
    width: 20px;
}
.wpml-lang-list {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 8px 15px 10px 15px;
    margin: 6px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    font-size: 12px;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.wpml-lang-dropdown:hover .wpml-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wpml-lang-list li {
    padding: 5px 10px;
}
.wpml-lang-list li a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}
.wpml-lang-list li img {
    width: 18px;
}
.wpml-chevron {
    transition: transform 0.2s ease;
}
.wpml-lang-dropdown:hover .wpml-chevron {
    transform: rotate(180deg);
}

.search .page-content h2 {
    font-size: 20px;
}

.search .page-content h2.entry-title a {
    color: #333;
}

.search .page-content article.post {
    border-bottom: 1px dashed;
    margin-bottom: 20px;
    padding: 10px;
}
.search .page-content {
    margin: 20px 0 100px;
}

/* admin panel product column table hide */

table.wp-list-table .column-taxonomy-product_brand {
    display: none;
}
th#wpseo-title {
    width: 10%;
}
table.wp-list-table .column-product_tag {
    display: none;
}
table.wp-list-table .column-is_in_stock {
    display: none;
}
table.wp-list-table .column-global_unique_id {
    display: none;
}
table.wp-list-table .column-sku {
    display: none;
}
/*产品类目 Product Sidebar */
/* ================================
   Product Category Sidebar
================================ */

.product-sidebar {
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 20px;
}

/* Reset list */
.product-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 每一项 */
.cat-item {
    border-bottom: 1px dashed #ddd;
}

/* -------------------------------
   一行结构：左文字 + 右按钮
-------------------------------- */
.cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

/* 分类文字 */
.cat-link {
    flex: 1;
    font-size: 16px;
    color: #222;
    text-decoration: none;
}

.cat-link:hover {
    color: #18a84a;
}

/* ================================
   ✅ 关键修复：只高亮当前这一行
   （不影响子分类）
================================ */
.cat-item.active > .cat-row {
    background: #18a84a;
}

.cat-item.active > .cat-row .cat-link {
    color: #fff;
}

/* -------------------------------
   右侧折叠按钮
-------------------------------- */
.cat-toggle {
    width: 32px;
    height: 32px;
    margin-left: 12px;
    background: #f2f2f2;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.cat-toggle::before {
    content: "˄";
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 32px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

.cat-toggle:hover {
    background: #18a84a;
}

.cat-toggle:hover::before {
    color: #fff;
}

/* -------------------------------
   子分类区域
-------------------------------- */
.cat-children {
    display: block;           /* 默认展开 */
    background: #fafafa;
    padding-left: 16px;
}

/* 折叠状态 */
.cat-item.closed > .cat-children {
    display: none;
}

.cat-item.closed .cat-toggle::before {
    content: "˅";
}

/* -------------------------------
   子分类字体稍小一点（层级更清楚）
-------------------------------- */
.cat-children .cat-link {
    font-size: 14px;
    font-weight: 400;
}
/* 20-05-2026 */
.tax-product_cat  main#main {
    padding-top: 50px;
}
.tax-product_cat h1.woocommerce-products-header__title.page-title {
    font-size: 25px;
}
.tax-product_cat ul.products .woocommerce-loop-product__title {
    line-height: normal;
    color: #333;
}
.tax-product_cat ul.products li.product {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}
.single .elementor-location-single h5 {
    font-size: 20px;
    font-weight: 600;
}
.single .elementor-location-single h6 {
    font-size: 18px;
}
/* Responsive Search button css */
@media (max-width: 767px) {
.elementor-element.elementor-element-5e9b8aa .e-search-input{
    width: 100px;
}
.search .page-content p {
    font-size: 14px;
}
.post .wp-post-image {
    max-height: 200px;
}
.tax-product_cat  main#main {
    padding-top: 30px;
}
}

/* ── Responsive ── */
@media (max-width: 600px) {

  .form-grid {
    grid-template-columns: 1fr;
  }
.cat-row {
   padding: 5px 10px;
}
.cat-children .cat-link {
    font-size: 13px;
}
.cat-link {
    font-size: 14px;
}
}