/* =========================
   FORM CARD
========================= */
.custom-form-card {
    border-radius: 10px;
    padding: 30px 30px 26px;
    box-sizing: border-box;
}

/* 如果背景色在 Elementor 已经设置了，可保留；
   如果没设置，就取消下面注释 */
/*
.custom-form-card {
    background: #d7ad86;
}
*/

/* 容器清理 */
.custom-form-card .wpforms-container {
    margin-bottom: 0 !important;
}

.custom-form-card .wpforms-form {
    margin: 0 !important;
}

/* =========================
   FIELD LAYOUT
========================= */
.custom-form-card .wpforms-field-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
}

.custom-form-card .wpforms-field {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* 两列字段 */
.custom-form-card .wpforms-field.half-left,
.custom-form-card .wpforms-field.half-right {
    width: calc(50% - 10px) !important;
}

/* =========================
   LABELS
========================= */
.custom-form-card .wpforms-field-label {
    display: block;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #2f1f16 !important;
    margin-bottom: 10px !important;
}

.custom-form-card .wpforms-required-label {
    color: #d46d3b !important;
    margin-left: 2px;
}

/* =========================
   INPUTS
========================= */
.custom-form-card .wpforms-field input,
.custom-form-card .wpforms-field select,
.custom-form-card .wpforms-field textarea {
    width: 100% !important;
    background: #f7f4ef !important;
    border: 1px solid #eadccf !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #3b2a20 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    padding: 14px 16px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    appearance: none;
    -webkit-appearance: none;
}

/* textarea */
.custom-form-card .wpforms-field textarea {
    min-height: 130px !important;
    resize: vertical;
    padding-top: 16px !important;
}

/* placeholder */
.custom-form-card .wpforms-field input::placeholder,
.custom-form-card .wpforms-field textarea::placeholder {
    color: #b7afa8 !important;
    opacity: 1 !important;
}

/* select 右侧箭头空间 */
.custom-form-card .wpforms-field select {
    padding-right: 42px !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #7b6657 50%),
        linear-gradient(135deg, #7b6657 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* focus */
.custom-form-card .wpforms-field input:focus,
.custom-form-card .wpforms-field select:focus,
.custom-form-card .wpforms-field textarea:focus {
    border-color: #9c6848 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(156, 104, 72, 0.12) !important;
}

/* =========================
   SPACING BY FIELD TYPE
========================= */
.custom-form-card .wpforms-field-name,
.custom-form-card .wpforms-field-email,
.custom-form-card .wpforms-field-text,
.custom-form-card .wpforms-field-select,
.custom-form-card .wpforms-field-textarea {
    margin-bottom: 0 !important;
}

/* =========================
   BUTTON
========================= */
.custom-form-card .wpforms-submit-container {
    text-align: center !important;
    padding-top: 8px !important;
    margin-top: 8px !important;
}

.custom-form-card .wpforms-submit {
    background: #4a2f25 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 38px !important;
    min-width: 174px !important;
    height: 54px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.custom-form-card .wpforms-submit:hover {
    background: #3a241c !important;
    transform: translateY(-1px);
}

/* =========================
   REMOVE UNWANTED SMALL TEXT
========================= */
/* 隐藏 phone 字段长度提示、帮助文字等 */
.custom-form-card .wpforms-field-description,
.custom-form-card .wpforms-field-limit-text,
.custom-form-card .wpforms-character-limit {
    display: none !important;
}

/* =========================
   ERROR / VALIDATION
========================= */
.custom-form-card .wpforms-error {
    font-size: 12px !important;
    margin-top: 6px !important;
}

/* =========================
   WP ARMOUR BOX
========================= */
/* 如果你只想弱化，不隐藏 */
.custom-form-card .wparmor,
.custom-form-card .wp-armour,
.custom-form-card .wpforms-field-hp {
    font-size: 13px !important;
}

/* 你当前截图里的蓝色提示块，直接弱化 */
.custom-form-card .wpforms-field.wpforms-field-hp {
    background: #d9eaf2 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin-top: 4px !important;
}

/* 如果你想前台直接隐藏蓝色提示块，打开下面这段 */
/*
.custom-form-card .wpforms-field.wpforms-field-hp {
    display: none !important;
}
*/

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
    .custom-form-card {
        padding: 22px 18px 20px;
    }

    .custom-form-card .wpforms-field.half-left,
    .custom-form-card .wpforms-field.half-right {
        width: 100% !important;
    }

    .custom-form-card .wpforms-field-container {
        gap: 16px;
    }

    .custom-form-card .wpforms-submit {
        width: 100% !important;
        min-width: auto !important;
    }
}


/* 关键：统一所有字段“可视宽度”为100%容器宽度 */
.custom-form-card .wpforms-field-container{
    display:flex;
    flex-wrap:wrap;
    column-gap:20px;
    row-gap:22px;
}

/* Name + Country 两列平分，总宽 = Message */
.custom-form-card .wpforms-field.half-left,
.custom-form-card .wpforms-field.half-right{
    width:calc(50% - 10px) !important;
}

/* Email / Phone / Message 强制占满整行（= Message宽度） */
.custom-form-card .wpforms-field-email,
.custom-form-card .wpforms-field-text,
.custom-form-card .wpforms-field-textarea{
    width:100% !important;
}

/* 防止内部 input 被限制宽度（核心修复点） */
.custom-form-card .wpforms-field input,
.custom-form-card .wpforms-field select,
.custom-form-card .wpforms-field textarea{
    width:100% !important;
    max-width:100% !important;
    display:block;
}

/* 修复 Name / Country 内部输入框不对齐 */
.custom-form-card .wpforms-field.half-left input,
.custom-form-card .wpforms-field.half-right select{
    width:100% !important;
}

/* 去掉可能的内部容器限制（某些主题会加） */
.custom-form-card .wpforms-field-row,
.custom-form-card .wpforms-field-row-block{
    width:100% !important;
    max-width:100% !important;
}

/* textarea 和其他字段视觉对齐 */
.custom-form-card .wpforms-field-textarea textarea{
    width:100% !important;
}

/* 确保没有额外 padding 影响对齐 */
.custom-form-card .wpforms-field{
    box-sizing:border-box !important;
}

/* （可选）如果还不齐，强制容器统一宽度 */
.custom-form-card .wpforms-form{
    width:100% !important;
}



/*按钮样式*/
.woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #795548;
  color: #fff;
}

.woocommerce ul.products li.product .button:hover {
  background: #DF8C55;
  border-color: #c46a2b;
  color: #fff;
}


/*多语言*/
/* 1. 强行把 WPML 切换器的内边距彻底榨干，缩小左右留白 */
.wpml-ls-legacy-dropdown .wpml-ls-item-toggle,
.wpml-ls-legacy-dropdown a,
div[class*="wpml-ls-"] .wpml-ls-item-toggle {
    padding: 2px 4px !important; /* 上下2px，左右只留4px */
    line-height: 1.5 !important;
}

/* 2. 把倒三角箭头尺寸缩小，并强行拉近它与文字的距离 */
.wpml-ls-legacy-dropdown .wpml-ls-item-toggle::after,
div[class*="wpml-ls-"] .wpml-ls-item-toggle::after {
    margin-left: 2px !important; /* 箭头紧贴文字 */
    border-width: 4px 4px 0 5px !important; /* 将三角形边长从 5px 缩减到 3px，变小变窄 */
    vertical-align: middle !important;
}

/* 3. 强行限制整个多语言组件包裹层的总宽度，不让它撑开 */
.wpml-ls-wrapper, 
.wpml-ls-legacy-dropdown {
    width: auto !important;
    min-width:100px !important; /* 强制缩减最小宽度 */
    max-width: 120px !important; /* 锁死最大宽度 */
}

/弹窗cart/
/* Astra 右侧购物车抽屉宽度 */
.astra-cart-drawer {
  width: 520px;
}

/* 抽屉内容区域 */
.astra-cart-drawer .astra-cart-drawer-content {
  padding-top: 56px;
}

/* 商品列表滚动区域 */
.astra-cart-drawer .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 商品列表 */
.astra-cart-drawer .elementor-menu-cart__products {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

/* 单个商品行 */
.astra-cart-drawer .elementor-menu-cart__product {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

/* 商品图片 */
.astra-cart-drawer .elementor-menu-cart__product-image img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

/* 商品标题 */
.astra-cart-drawer .elementor-menu-cart__product-name a {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

/* SKU */
.astra-cart-drawer .product-sku {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* 价格 */
.astra-cart-drawer .elementor-menu-cart__product-price {
  font-size: 13px;
  white-space: nowrap;
}

/* 小计区域 */
.astra-cart-drawer .elementor-menu-cart__subtotal,
.astra-cart-drawer .woocommerce-mini-cart__total {
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fff;
}

/* 底部按钮 */
.astra-cart-drawer .elementor-menu-cart__footer-buttons,
.astra-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
  background: #fff;
}

/* 按钮样式 */
.astra-cart-drawer .elementor-button,
.astra-cart-drawer .woocommerce-mini-cart__buttons .button {
  width: 100%;
  text-align: center;
  border-radius: 4px;
  padding: 13px 16px;
}
@media (max-width: 544px) {
  .astra-cart-drawer,
  .astra-cart-drawer.active {
    width: 85vw;
    max-width: 85vw;
  }
}

  .astra-cart-drawer .elementor-menu-cart__product {
    grid-template-columns: 72px 1fr;
  }

  .astra-cart-drawer .elementor-menu-cart__product-price {
    grid-column: 2;
  }

  .astra-cart-drawer .elementor-menu-cart__product-image img {
    width: 72px;
    height: 72px;
  }
}












/* Robotime USA - WooCommerce category sidebar polish
   Paste into WordPress > Appearance > Customize > Additional CSS.
*/
:root {
  --rt-sidebar-ink: #111827;
  --rt-sidebar-muted: #6b7280;
  --rt-sidebar-line: #e5e7eb;
  --rt-sidebar-panel: #ffffff;
  --rt-sidebar-soft: #f6f7f9;
  --rt-sidebar-brand: #c96d2d;
  --rt-sidebar-brand-dark: #9f4f1b;
  --rt-sidebar-radius: 10px;
}
.woocommerce .widget-area,
.woocommerce-page .widget-area,
.woocommerce .sidebar,
.woocommerce-page .sidebar,
.woocommerce aside[class*="sidebar"] {
  color: var(--rt-sidebar-ink);
}
.woocommerce .widget_price_filter,
.woocommerce .widget_product_categories,
.woocommerce .widget_layered_nav,
.woocommerce .widget_rating_filter,
.woocommerce-page .widget_price_filter,
.woocommerce-page .widget_product_categories,
.woocommerce-page .widget_layered_nav,
.woocommerce-page .widget_rating_filter {
  margin: 0 0 22px;
  padding: 22px 22px 20px;
  background: var(--rt-sidebar-panel);
  border: 1px solid var(--rt-sidebar-line);
  border-radius: var(--rt-sidebar-radius);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}
.woocommerce .widget_price_filter + .widget_product_categories,
.woocommerce-page .widget_price_filter + .widget_product_categories {
  margin-top: 18px;
}
.woocommerce .widget-title,
.woocommerce-page .widget-title,
.woocommerce .widget h2,
.woocommerce-page .widget h2,
.woocommerce .widget h3,
.woocommerce-page .widget h3 {
  margin: 0 0 16px;
  padding: 0;
  color: var(--rt-sidebar-ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}
.woocommerce .widget_price_filter .price_slider_wrapper,
.woocommerce-page .widget_price_filter .price_slider_wrapper {
  padding-top: 4px;
}
.woocommerce .widget_price_filter .price_slider,
.woocommerce-page .widget_price_filter .price_slider {
  margin: 0 0 16px;
  height: 4px;
  background: #d9dde5;
  border-radius: 99px;
}
.woocommerce .widget_price_filter .ui-slider-range,
.woocommerce-page .widget_price_filter .ui-slider-range {
  background: var(--rt-sidebar-ink);
}
.woocommerce .widget_price_filter .ui-slider-handle,
.woocommerce-page .widget_price_filter .ui-slider-handle {
  top: -6px;
  width: 16px;
  height: 16px;
  background: var(--rt-sidebar-ink);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
}
.woocommerce .widget_price_filter .price_slider_amount,
.woocommerce-page .widget_price_filter .price_slider_amount {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--rt-sidebar-muted);
  font-size: 13px;
  line-height: 1.4;
}
.woocommerce .widget_price_filter .button,
.woocommerce-page .widget_price_filter .button {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--rt-sidebar-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-transform: none;
}
.woocommerce .widget_product_categories ul,
.woocommerce-page .widget_product_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce .widget_product_categories li,
.woocommerce-page .widget_product_categories li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--rt-sidebar-muted);
  font-size: 14px;
  line-height: 1.25;
}
.woocommerce .widget_product_categories li + li,
.woocommerce-page .widget_product_categories li + li {
  margin-top: 1px;
}
.woocommerce .widget_product_categories li a,
.woocommerce-page .widget_product_categories li a {
  display: block;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--rt-sidebar-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.woocommerce .widget_product_categories li a:hover,
.woocommerce-page .widget_product_categories li a:hover {
  background: var(--rt-sidebar-soft);
  color: var(--rt-sidebar-brand-dark);
  transform: translateX(2px);
}
.woocommerce .widget_product_categories .count,
.woocommerce-page .widget_product_categories .count {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--rt-sidebar-soft);
  color: var(--rt-sidebar-muted);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}
.woocommerce .widget_product_categories .current-cat > a,
.woocommerce .widget_product_categories .current-cat-parent > a,
.woocommerce-page .widget_product_categories .current-cat > a,
.woocommerce-page .widget_product_categories .current-cat-parent > a {
  background: rgba(201, 109, 45, 0.12);
  color: var(--rt-sidebar-brand-dark);
  font-weight: 700;
}
.woocommerce .widget_product_categories .current-cat > .count,
.woocommerce-page .widget_product_categories .current-cat > .count {
  background: var(--rt-sidebar-brand);
  color: #fff;
}
.woocommerce .widget_product_categories .children,
.woocommerce-page .widget_product_categories .children {
  grid-column: 1 / -1;
  margin: 0 0 3px 8px;
  padding-left: 10px;
  border-left: 1px solid var(--rt-sidebar-line);
}
.woocommerce .widget_product_categories .children li,
.woocommerce-page .widget_product_categories .children li {
  grid-template-columns: minmax(0, 180px) auto;
  align-items: start;
  font-size: 13px;
  line-height: 1.22;
}
.woocommerce .widget_product_categories .children li a,
.woocommerce-page .widget_product_categories .children li a {
  max-width: 200px;
  padding-top: 5px;
  padding-bottom: 6px;
  color: #374151;
  white-space: nowrap;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
@media (min-width: 1025px) {
  .woocommerce .widget-area,
  .woocommerce-page .widget-area,
  .woocommerce .sidebar,
  .woocommerce-page .sidebar,
  .woocommerce aside[class*="sidebar"] {
    max-width: 310px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .woocommerce .widget_price_filter,
  .woocommerce .widget_product_categories,
  .woocommerce .widget_layered_nav,
  .woocommerce .widget_rating_filter,
  .woocommerce-page .widget_price_filter,
  .woocommerce-page .widget_product_categories,
  .woocommerce-page .widget_layered_nav,
  .woocommerce-page .widget_rating_filter {
    padding: 18px;
  }
  .woocommerce .widget-title,
  .woocommerce-page .widget-title,
  .woocommerce .widget h2,
  .woocommerce-page .widget h2,
  .woocommerce .widget h3,
  .woocommerce-page .widget h3 {
    font-size: 16px;
  }
  .woocommerce .widget_product_categories li,
  .woocommerce-page .widget_product_categories li {
    font-size: 13px;
  }
}
@media (max-width: 767px) {
  body.rt-filter-open {
    overflow: hidden;
  }
  body.rt-filter-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(17, 24, 39, 0.45);
  }
  .woocommerce .widget-area,
  .woocommerce-page .widget-area,
  .woocommerce .sidebar,
  .woocommerce-page .sidebar,
  .woocommerce aside[class*="sidebar"] {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: min(86vw, 390px);
    max-width: 390px;
    height: 100vh;
    margin: 0;
    padding: 56px 0 28px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 18px 0 40px rgba(17, 24, 39, 0.18);
    transform: translateX(-104%);
    transition: transform 240ms ease;
    -webkit-overflow-scrolling: touch;
  }
  body.rt-filter-open .woocommerce .widget-area,
  body.rt-filter-open .woocommerce-page .widget-area,
  body.rt-filter-open .woocommerce .sidebar,
  body.rt-filter-open .woocommerce-page .sidebar,
  body.rt-filter-open .woocommerce aside[class*="sidebar"] {
    transform: translateX(0);
  }
  .woocommerce .widget_price_filter,
  .woocommerce .widget_product_categories,
  .woocommerce .widget_layered_nav,
  .woocommerce .widget_rating_filter,
  .woocommerce-page .widget_price_filter,
  .woocommerce-page .widget_product_categories,
  .woocommerce-page .widget_layered_nav,
  .woocommerce-page .widget_rating_filter {
    margin: 0;
    padding: 18px;
    border: 0;
    border-bottom: 1px solid var(--rt-sidebar-line);
    border-radius: 0;
    box-shadow: none;
  }
  .woocommerce .widget-title,
  .woocommerce-page .widget-title,
  .woocommerce .widget h2,
  .woocommerce-page .widget h2,
  .woocommerce .widget h3,
  .woocommerce-page .widget h3 {
    position: relative;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 750;
  }
  .woocommerce .widget-title::after,
  .woocommerce-page .widget-title::after,
  .woocommerce .widget h2::after,
  .woocommerce-page .widget h2::after,
  .woocommerce .widget h3::after,
  .woocommerce-page .widget h3::after {
    content: "^";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--rt-sidebar-muted);
    font-size: 14px;
    font-weight: 500;
  }
  .woocommerce .widget_product_categories ul,
  .woocommerce-page .widget_product_categories ul {
    display: block;
    overflow: visible;
    padding: 0;
  }
  .woocommerce .widget_product_categories li,
  .woocommerce-page .widget_product_categories li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
  }
  .woocommerce .widget_product_categories li + li,
  .woocommerce-page .widget_product_categories li + li {
    margin-top: 2px;
  }
  .woocommerce .widget_product_categories li a,
  .woocommerce-page .widget_product_categories li a {
    overflow: hidden;
    padding: 6px 0;
    background: transparent;
    color: #3f4651;
    text-overflow: ellipsis;
  }
  .woocommerce .widget_product_categories .children,
  .woocommerce-page .widget_product_categories .children {
    display: block;
    margin: 0 0 4px 8px;
    padding-left: 10px;
  }
  .woocommerce .widget_price_filter .price_slider_amount,
  .woocommerce-page .widget_price_filter .price_slider_amount {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .woocommerce .widget_price_filter .button,
  .woocommerce-page .widget_price_filter .button {
    width: 100%;
  }
}



/* Robotime product card button color - managed 2026-09-08 */
body .woocommerce .products div.product .tp-add-to-cart .button,
body .woocommerce .products div.product a.button,
body.woocommerce .products div.product .tp-add-to-cart .button,
body.woocommerce .products div.product a.button {
  border-color: #775749 !important;
  background: #775749 !important;
  color: #fff !important;
}

body .woocommerce .products div.product .tp-add-to-cart .button:hover,
body .woocommerce .products div.product a.button:hover,
body.woocommerce .products div.product .tp-add-to-cart .button:hover,
body.woocommerce .products div.product a.button:hover,
body .woocommerce .products div.product .tp-add-to-cart .button:focus,
body .woocommerce .products div.product a.button:focus,
body.woocommerce .products div.product .tp-add-to-cart .button:focus,
body.woocommerce .products div.product a.button:focus {
  border-color: #775749 !important;
  background: #775749 !important;
  color: #fff !important;
}
/* End Robotime product card button color */

/* Robotime mobile product card icons - managed 2026-09-08 */
@media (max-width: 767px) {
  body .woocommerce .products div.product .astra-shop-thumbnail-wrap,
  body.woocommerce .products div.product .astra-shop-thumbnail-wrap {
    padding: 10px 48px 0 10px !important;
  }

  body .woocommerce .products div.product .shopengine-wishlist,
  body .woocommerce .products div.product .shopengine-quickview-trigger,
  body .woocommerce .products div.product .shopengine-comparison,
  body.woocommerce .products div.product .shopengine-wishlist,
  body.woocommerce .products div.product .shopengine-quickview-trigger,
  body.woocommerce .products div.product .shopengine-comparison {
    right: 10px !important;
    left: auto !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .woocommerce .products div.product .shopengine-wishlist,
  body.woocommerce .products div.product .shopengine-wishlist {
    top: 12px !important;
  }

  body .woocommerce .products div.product .shopengine-quickview-trigger,
  body.woocommerce .products div.product .shopengine-quickview-trigger {
    top: 50px !important;
  }

  body .woocommerce .products div.product .shopengine-comparison,
  body.woocommerce .products div.product .shopengine-comparison {
    top: 88px !important;
  }
}
/* End Robotime mobile product card icons */

/* Robotime mobile off-canvas filter - managed 2026-09-08 */
@media (max-width: 767px) {
  body.woocommerce.archive,
  body.post-type-archive-product,
  body.tax-product_cat {
    overflow-x: hidden;
  }

  body.woocommerce.archive .woocommerce-result-count,
  body.post-type-archive-product .woocommerce-result-count,
  body.tax-product_cat .woocommerce-result-count {
    display: none !important;
  }

  .robotime-mobile-shop-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 14px !important;
    width: 100%;
  }

  .robotime-mobile-shop-actions button,
  .robotime-mobile-shop-actions select {
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #d8d4d0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  .robotime-filter-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
  }

  .robotime-sort-control {
    position: relative !important;
  }

  .robotime-sort-control::before {
    content: "Sort";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
  }

  .robotime-sort-control .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .robotime-sort-control select.orderby {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0 34px 0 56px !important;
    text-align: right !important;
    background-image: linear-gradient(45deg, transparent 50%, #111827 50%), linear-gradient(135deg, #111827 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
  }

  #secondary.robotime-filter-drawer,
  .ast-left-sidebar #secondary.robotime-filter-drawer,
  .ast-right-sidebar #secondary.robotime-filter-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 80vw !important;
    max-width: 360px !important;
    height: 100dvh !important;
    z-index: 100001 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #fff !important;
    padding: 18px 16px 28px !important;
    box-shadow: 14px 0 34px rgba(15, 23, 42, .22) !important;
    transform: translateX(-104%) !important;
    transition: transform .28s ease !important;
  }

  body.robotime-filter-open #secondary.robotime-filter-drawer {
    transform: translateX(0) !important;
  }

  body.robotime-filter-open {
    overflow: hidden !important;
  }

  .robotime-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 24, 39, .45);
  }

  body.robotime-filter-open .robotime-filter-overlay {
    display: block;
  }

  .robotime-filter-close {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 0 14px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
  }

  .robotime-filter-close span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .robotime-mobile-shop-actions,
  .robotime-filter-overlay,
  .robotime-filter-close {
    display: none !important;
  }
}
/* End Robotime mobile off-canvas filter */

@media (max-width:767px){
  .robotime-filter-drawer{
    position:fixed!important;top:0!important;left:0!important;bottom:0!important;
    width:80vw!important;max-width:360px!important;height:100dvh!important;
    z-index:100001!important;overflow-y:auto!important;background:#fff!important;
    padding:18px 16px 28px!important;box-shadow:14px 0 34px rgba(15,23,42,.22)!important;
    transform:translateX(-104%)!important;transition:transform .28s ease!important;
  }
  body.robotime-filter-open .robotime-filter-drawer{transform:translateX(0)!important}
  body.robotime-filter-open{overflow:hidden!important}
  .robotime-filter-overlay{display:none;position:fixed;inset:0;z-index:100000;background:rgba(17,24,39,.45)}
  body.robotime-filter-open .robotime-filter-overlay{display:block}
  .robotime-mobile-shop-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px!important}
  .robotime-filter-toggle,.robotime-sort-control select{width:100%!important;min-height:44px!important;border:1px solid #d8d4d0!important;border-radius:6px!important;background:#fff!important;color:#111827!important;font-weight:600!important}
}
@media (min-width:768px){
  .robotime-mobile-shop-actions,.robotime-filter-overlay,.robotime-filter-close{display:none!important}
}

/* Fix Rolife mobile filter drawer hidden by Elementor */
@media (max-width: 767px) {
  .robotime-filter-drawer.elementor-hidden-mobile {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 80vw !important;
    max-width: 360px !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    background: #fff !important;
    z-index: 100001 !important;
    padding: 18px 16px 28px !important;
    transform: translateX(-104%) !important;
    transition: transform .28s ease !important;
  }

  body.robotime-filter-open .robotime-filter-drawer.elementor-hidden-mobile {
    transform: translateX(0) !important;
  }
}


/* Remove empty mobile filter placeholder above Filter button */
@media (max-width: 767px) {
  body.woocommerce.archive .elementor-element:has(.robotime-filter-drawer):not(:has(.products)),
  body.post-type-archive-product .elementor-element:has(.robotime-filter-drawer):not(:has(.products)),
  body.tax-product_cat .elementor-element:has(.robotime-filter-drawer):not(:has(.products)) {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce.archive .robotime-mobile-shop-actions,
  body.post-type-archive-product .robotime-mobile-shop-actions,
  body.tax-product_cat .robotime-mobile-shop-actions {
    margin-top: 0 !important;
  }
}









/* 普通分页按钮 */
.woocommerce nav.woocommerce-pagination ul li a {
    color: #111827;
    background-color: #ffffff;
    border-color: #111827;
}

/* 当前页：黑底白字 */
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #111322 !important;
    color: #ffffff !important;
}

/* 悬停：黑底白字 */
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #111322 !important;
    color: #ffffff !important;
}










/* Robotime info bar desktop archive fix - managed 2026-09-10 */
@media (min-width: 1200px) {
  #masthead .ast-above-header-bar .ast-builder-grid-row,
  #masthead .ast-above-header .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  }

  #masthead .ast-above-header-bar .site-header-above-section-center,
  #masthead .ast-above-header .site-header-above-section-center,
  #masthead .ast-above-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-1"],
  #masthead .ast-above-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;
  }

  #masthead .ast-above-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-1"] .widget,
  #masthead .ast-above-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] .widget,
  #masthead .ast-above-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-1"] .textwidget,
  #masthead .ast-above-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] .textwidget,
  #masthead .ast-above-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-1"] p,
  #masthead .ast-above-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] p {
    width: auto !important;
    max-width: none !important;
  }

  #masthead .ast-above-header-bar .header-widget-area[data-section="sidebar-widgets-header-widget-1"] p,
  #masthead .ast-above-header .header-widget-area[data-section="sidebar-widgets-header-widget-1"] p {
    white-space: nowrap !important;
    margin: 0 !important;
  }
}





/* Robotime product card structure compatibility - managed 2026-09-14 */
body .woocommerce ul.products,
body.woocommerce ul.products,
body .woocommerce .products,
body.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: stretch !important;
  list-style: none !important;
}

body .woocommerce ul.products li.product,
body.woocommerce ul.products li.product,
body .woocommerce .products div.product,
body.woocommerce .products div.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 430px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body .woocommerce .products div.product .astra-shop-thumbnail-wrap,
body.woocommerce .products div.product .astra-shop-thumbnail-wrap {
  padding: 16px 16px 0 !important;
  margin: 0 !important;
}

body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body .woocommerce .products div.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.woocommerce .products div.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  color: #111827 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

body .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
body.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
body .woocommerce .products div.product img.attachment-woocommerce_thumbnail,
body.woocommerce .products div.product img.attachment-woocommerce_thumbnail {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
}

body .woocommerce ul.products li.product .astra-shop-summary-wrap,
body.woocommerce ul.products li.product .astra-shop-summary-wrap,
body .woocommerce .products div.product .astra-shop-summary-wrap,
body.woocommerce .products div.product .astra-shop-summary-wrap {
  padding: 8px 16px 16px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 178px !important;
}

body .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body .woocommerce .products div.product .woocommerce-loop-product__title,
body.woocommerce .products div.product .woocommerce-loop-product__title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  min-height: 46px !important;
  max-height: 46px !important;
  color: #111827 !important;
  font-size: 16px !important;
  line-height: 23px !important;
  font-weight: 500 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

body .woocommerce ul.products li.product .price,
body.woocommerce ul.products li.product .price,
body .woocommerce .products div.product .price,
body.woocommerce .products div.product .price {
  min-height: 32px !important;
  margin: 0 0 14px !important;
  color: #111827 !important;
  font-size: 21px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
}

body .woocommerce ul.products li.product .price del,
body.woocommerce ul.products li.product .price del,
body .woocommerce .products div.product .price del,
body.woocommerce .products div.product .price del {
  color: #8f98a3 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
  margin-right: 6px !important;
}

body .woocommerce ul.products li.product .price ins,
body.woocommerce ul.products li.product .price ins,
body .woocommerce .products div.product .price ins,
body.woocommerce .products div.product .price ins {
  color: #111827 !important;
  text-decoration: none !important;
}

body .woocommerce ul.products li.product .tp-add-to-cart,
body.woocommerce ul.products li.product .tp-add-to-cart,
body .woocommerce .products div.product .tp-add-to-cart,
body.woocommerce .products div.product .tp-add-to-cart {
  width: 100% !important;
  margin: auto 0 0 !important;
}

body .woocommerce ul.products li.product .tp-add-to-cart .button,
body .woocommerce ul.products li.product a.button,
body.woocommerce ul.products li.product .tp-add-to-cart .button,
body.woocommerce ul.products li.product a.button,
body .woocommerce .products div.product .tp-add-to-cart .button,
body .woocommerce .products div.product a.button,
body.woocommerce .products div.product .tp-add-to-cart .button,
body.woocommerce .products div.product a.button {
  width: 100% !important;
  min-height: 42px !important;
  padding: 11px 14px !important;
  border-radius: 6px !important;
  border: 1px solid #775749 !important;
  background: #775749 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

body .woocommerce ul.products li.product .ast-on-card-button,
body.woocommerce ul.products li.product .ast-on-card-button,
body .woocommerce .products div.product .ast-on-card-button,
body.woocommerce .products div.product .ast-on-card-button {
  display: none !important;
}

body .woocommerce ul.products li.product .shopengine-wishlist,
body .woocommerce ul.products li.product .shopengine-quickview-trigger,
body .woocommerce ul.products li.product .shopengine-comparison,
body.woocommerce ul.products li.product .shopengine-wishlist,
body.woocommerce ul.products li.product .shopengine-quickview-trigger,
body.woocommerce ul.products li.product .shopengine-comparison,
body .woocommerce .products div.product .shopengine-wishlist,
body .woocommerce .products div.product .shopengine-quickview-trigger,
body .woocommerce .products div.product .shopengine-comparison,
body.woocommerce .products div.product .shopengine-wishlist,
body.woocommerce .products div.product .shopengine-quickview-trigger,
body.woocommerce .products div.product .shopengine-comparison {
  position: absolute !important;
  z-index: 3 !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.96) !important;
  color: #111827 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .woocommerce ul.products li.product .shopengine-wishlist,
body.woocommerce ul.products li.product .shopengine-wishlist,
body .woocommerce .products div.product .shopengine-wishlist,
body.woocommerce .products div.product .shopengine-wishlist {
  top: 18px !important;
  right: 58px !important;
}

body .woocommerce ul.products li.product .shopengine-quickview-trigger,
body.woocommerce ul.products li.product .shopengine-quickview-trigger,
body .woocommerce .products div.product .shopengine-quickview-trigger,
body.woocommerce .products div.product .shopengine-quickview-trigger {
  top: 18px !important;
  right: 18px !important;
}

body .woocommerce ul.products li.product .shopengine-comparison,
body.woocommerce ul.products li.product .shopengine-comparison,
body .woocommerce .products div.product .shopengine-comparison,
body.woocommerce .products div.product .shopengine-comparison {
  top: 58px !important;
  right: 18px !important;
}

@media (max-width: 1024px) {
  body .woocommerce ul.products,
  body.woocommerce ul.products,
  body .woocommerce .products,
  body.woocommerce .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 767px) {
  body .woocommerce ul.products,
  body.woocommerce ul.products,
  body .woocommerce .products,
  body.woocommerce .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body .woocommerce ul.products li.product,
  body.woocommerce ul.products li.product,
  body .woocommerce .products div.product,
  body.woocommerce .products div.product {
    min-height: 360px !important;
  }

  body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
  body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
  body .woocommerce .products div.product .astra-shop-thumbnail-wrap,
  body.woocommerce .products div.product .astra-shop-thumbnail-wrap {
    padding: 10px 48px 0 10px !important;
  }

  body .woocommerce ul.products li.product .astra-shop-summary-wrap,
  body.woocommerce ul.products li.product .astra-shop-summary-wrap,
  body .woocommerce .products div.product .astra-shop-summary-wrap,
  body.woocommerce .products div.product .astra-shop-summary-wrap {
    padding: 8px 10px 12px !important;
    min-height: 160px !important;
  }

  body .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body .woocommerce .products div.product .woocommerce-loop-product__title,
  body.woocommerce .products div.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 20px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  body .woocommerce ul.products li.product .price,
  body.woocommerce ul.products li.product .price,
  body .woocommerce .products div.product .price,
  body.woocommerce .products div.product .price {
    font-size: 18px !important;
    line-height: 28px !important;
    min-height: 28px !important;
  }

  body .woocommerce ul.products li.product .shopengine-wishlist,
  body.woocommerce ul.products li.product .shopengine-wishlist,
  body .woocommerce .products div.product .shopengine-wishlist,
  body.woocommerce .products div.product .shopengine-wishlist {
    top: 12px !important;
    right: 10px !important;
  }

  body .woocommerce ul.products li.product .shopengine-quickview-trigger,
  body.woocommerce ul.products li.product .shopengine-quickview-trigger,
  body .woocommerce .products div.product .shopengine-quickview-trigger,
  body.woocommerce .products div.product .shopengine-quickview-trigger {
    top: 52px !important;
    right: 10px !important;
  }
}
/* End Robotime product card structure compatibility */


/* Robotime homepage / Elementor 5-column product rows - managed 2026-09-14 */
@media (min-width: 1025px) {
  body .woocommerce ul.products.columns-5,
  body.woocommerce ul.products.columns-5,
  body .woocommerce ul.products.elementor-grid.columns-5,
  body.woocommerce ul.products.elementor-grid.columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
/* End Robotime homepage / Elementor 5-column product rows */

/* Robotime WooCommerce archive responsive layout fix - 2026-09-16 */
@media (min-width: 922px) {
  body.woocommerce.archive #content .ast-container,
  body.post-type-archive-product #content .ast-container,
  body.tax-product_cat #content .ast-container,
  body.search-results.woocommerce-page #content .ast-container {
    display: flex !important;
    align-items: flex-start !important;
  }

  body.woocommerce.archive.ast-left-sidebar #secondary,
  body.post-type-archive-product.ast-left-sidebar #secondary,
  body.tax-product_cat.ast-left-sidebar #secondary,
  body.search-results.woocommerce-page #secondary.robotime-filter-drawer {
    flex: 0 0 clamp(230px, 20vw, 250px) !important;
    width: clamp(230px, 20vw, 250px) !important;
    min-width: 230px !important;
    max-width: 250px !important;
    padding-right: 24px !important;
  }

  body.woocommerce.archive #primary,
  body.post-type-archive-product #primary,
  body.tax-product_cat #primary,
  body.search-results.woocommerce-page #primary {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
  body.woocommerce.archive #primary ul.products,
  body.post-type-archive-product #primary ul.products,
  body.tax-product_cat #primary ul.products,
  body.search-results.woocommerce-page #primary ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (min-width: 922px) and (max-width: 1199px) {
  body.woocommerce.archive #primary ul.products,
  body.post-type-archive-product #primary ul.products,
  body.tax-product_cat #primary ul.products,
  body.search-results.woocommerce-page #primary ul.products {
    gap: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 921px) {
  body.woocommerce.archive #primary ul.products,
  body.post-type-archive-product #primary ul.products,
  body.tax-product_cat #primary ul.products,
  body.search-results.woocommerce-page #primary ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

body.woocommerce.archive ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.search-results.woocommerce-page ul.products li.product {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.woocommerce.archive ul.products li.product .astra-shop-thumbnail-wrap,
body.post-type-archive-product ul.products li.product .astra-shop-thumbnail-wrap,
body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap,
body.search-results.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce.archive ul.products li.product .astra-shop-summary-wrap,
body.post-type-archive-product ul.products li.product .astra-shop-summary-wrap,
body.tax-product_cat ul.products li.product .astra-shop-summary-wrap,
body.search-results.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
  min-width: 0 !important;
}

body.woocommerce.archive ul.products li.product img.attachment-woocommerce_thumbnail,
body.post-type-archive-product ul.products li.product img.attachment-woocommerce_thumbnail,
body.tax-product_cat ul.products li.product img.attachment-woocommerce_thumbnail,
body.search-results.woocommerce-page ul.products li.product img.attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

body.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.search-results.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  line-height: 1.35 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
}

@media (min-width: 768px) {
  body.woocommerce.archive #secondary .widget_product_categories li,
  body.post-type-archive-product #secondary .widget_product_categories li,
  body.tax-product_cat #secondary .widget_product_categories li,
  body.search-results.woocommerce-page #secondary .widget_product_categories li {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    column-gap: 8px !important;
    align-items: start !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.woocommerce.archive #secondary .widget_product_categories li > a,
  body.post-type-archive-product #secondary .widget_product_categories li > a,
  body.tax-product_cat #secondary .widget_product_categories li > a,
  body.search-results.woocommerce-page #secondary .widget_product_categories li > a {
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: manual !important;
  }

  body.woocommerce.archive #secondary .widget_product_categories li > .count,
  body.post-type-archive-product #secondary .widget_product_categories li > .count,
  body.tax-product_cat #secondary .widget_product_categories li > .count,
  body.search-results.woocommerce-page #secondary .widget_product_categories li > .count {
    justify-self: end !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  body.woocommerce.archive #secondary .widget_product_categories .children,
  body.post-type-archive-product #secondary .widget_product_categories .children,
  body.tax-product_cat #secondary .widget_product_categories .children,
  body.search-results.woocommerce-page #secondary .widget_product_categories .children {
    grid-column: 1 / -1 !important;
  }
}


/* Robotime WooCommerce Theme Builder archive grid fix - 2026-09-16 */
@media (min-width: 1024px) and (max-width: 1440px) {
  body.woocommerce.archive ul.products.elementor-grid,
  body.tax-product_cat ul.products.elementor-grid,
  body.post-type-archive-product ul.products.elementor-grid,
  body.search-results.woocommerce-page ul.products.elementor-grid,
  body.woocommerce-shop ul.products.elementor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (min-width: 922px) and (max-width: 1199px) {
  body.woocommerce.archive ul.products.elementor-grid,
  body.tax-product_cat ul.products.elementor-grid,
  body.post-type-archive-product ul.products.elementor-grid,
  body.search-results.woocommerce-page ul.products.elementor-grid,
  body.woocommerce-shop ul.products.elementor-grid {
    gap: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 921px) {
  body.woocommerce.archive ul.products.elementor-grid,
  body.tax-product_cat ul.products.elementor-grid,
  body.post-type-archive-product ul.products.elementor-grid,
  body.search-results.woocommerce-page ul.products.elementor-grid,
  body.woocommerce-shop ul.products.elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (min-width: 768px) {
  body.woocommerce.archive .widget_product_categories li,
  body.tax-product_cat .widget_product_categories li,
  body.post-type-archive-product .widget_product_categories li,
  body.search-results.woocommerce-page .widget_product_categories li,
  body.woocommerce-shop .widget_product_categories li {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    column-gap: 8px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.woocommerce.archive .widget_product_categories li > a,
  body.tax-product_cat .widget_product_categories li > a,
  body.post-type-archive-product .widget_product_categories li > a,
  body.search-results.woocommerce-page .widget_product_categories li > a,
  body.woocommerce-shop .widget_product_categories li > a {
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: manual !important;
  }

  body.woocommerce.archive .widget_product_categories li > .count,
  body.tax-product_cat .widget_product_categories li > .count,
  body.post-type-archive-product .widget_product_categories li > .count,
  body.search-results.woocommerce-page .widget_product_categories li > .count,
  body.woocommerce-shop .widget_product_categories li > .count {
    justify-self: end !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  body.woocommerce.archive .widget_product_categories .children,
  body.tax-product_cat .widget_product_categories .children,
  body.post-type-archive-product .widget_product_categories .children,
  body.search-results.woocommerce-page .widget_product_categories .children,
  body.woocommerce-shop .widget_product_categories .children {
    grid-column: 1 / -1 !important;
  }
}


/* Robotime WooCommerce Theme Builder filter column width fix - 2026-09-16 */
@media (min-width: 768px) {
  body.woocommerce.archive .elementor-location-archive .elementor-element-a5fa95c {
    flex: 0 0 clamp(230px, 20vw, 250px) !important;
    width: clamp(230px, 20vw, 250px) !important;
    min-width: 230px !important;
    max-width: 250px !important;
  }

  body.woocommerce.archive .elementor-location-archive .elementor-element-a5fa95c .robotime-filter-drawer,
  body.woocommerce.archive .elementor-location-archive .elementor-element-a5fa95c .elementor-widget-container,
  body.woocommerce.archive .elementor-location-archive .elementor-element-a5fa95c .ast-filter-wrap,
  body.woocommerce.archive .elementor-location-archive .elementor-element-a5fa95c .widget_product_categories {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce.archive .elementor-location-archive .elementor-element-fbc3a2f {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}


/* Robotime All Products archive desktop width reset - 2026-09-16 */
@media (min-width: 922px) {
  body.post-type-archive-product .elementor-15551.elementor-location-archive,
  body.post-type-archive-product .elementor-15551.elementor-location-archive > .e-con,
  body.post-type-archive-product .elementor-15551 .elementor-element-6209d122,
  body.post-type-archive-product .elementor-15551 .elementor-element-54f120f1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }

  body.post-type-archive-product .elementor-15551 .elementor-element-6209d122 > .e-con-inner,
  body.post-type-archive-product .elementor-15551 .elementor-element-54f120f1 > .e-con-inner {
    width: min(calc(100% - 40px), 1200px) !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  body.post-type-archive-product .elementor-15551 .elementor-element-54f120f1 > .e-con-inner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  body.post-type-archive-product .elementor-15551 .elementor-element-edff576 {
    flex: 0 0 clamp(230px, 20vw, 250px) !important;
    width: clamp(230px, 20vw, 250px) !important;
    min-width: 230px !important;
    max-width: 250px !important;
  }

  body.post-type-archive-product .elementor-15551 .elementor-element-06051d3 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body.post-type-archive-product .elementor-15551 .elementor-background-slideshow,
  body.post-type-archive-product .elementor-15551 .swiper-wrapper,
  body.post-type-archive-product .elementor-15551 .swiper-slide,
  body.post-type-archive-product .elementor-15551 .elementor-background-slideshow__slide__image {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }
}

/* Robotime: keep the Related Products wrapper out of the product grid.
   Product details only; archive/category layouts remain unchanged. 2026-10-15 */
body.single-product.woocommerce .related.products {
  display: block !important;
}


/* BEGIN Robotime USA search groups — 2026-10-22 */
body.search #content > .ast-container { max-width:1240px!important; padding:0 20px!important; margin:auto!important; }
body.search #primary { width:100%!important; max-width:1200px!important; margin:28px auto 48px!important; padding:0!important; }
body.search #primary .ast-archive-description { padding:24px!important; margin:0 0 24px!important; min-height:0!important; }
body.search #primary .ast-archive-title { font-size:28px!important; line-height:1.3; margin:0!important; }
body.search #main > .ast-row { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:24px!important; margin:0!important; align-items:stretch; }
body.search #main > .ast-row::before,body.search #main > .ast-row::after { display:none; grid-column:1/-1; font-size:24px; line-height:1.3; font-weight:600; color:#222; }
body.search #main > .ast-row:has(> article.type-product)::before { content:"Products"; display:block; order:0; padding:0 0 12px; border-bottom:2px solid #e58b36; }
body.search #main > .ast-row:has(> article:not(.type-product))::after { content:"Articles & Pages"; display:block; order:2; padding:20px 0 12px; border-bottom:1px solid #ddd; }
body.search #main > .ast-row > article.ast-article-post { width:auto!important; min-width:0; float:none!important; margin:0!important; padding:16px!important; background:#fff; border:1px solid #e9e9e9; box-sizing:border-box; }
body.search #main > .ast-row > article.type-product { order:1; }
body.search #main > .ast-row > article:not(.type-product) { order:3; grid-column:1/-1; }
body.search #main article .post-content { padding:0!important; width:100%!important; float:none!important; }
body.search #main article.type-product .ast-blog-featured-section { padding:0!important; margin:0 0 14px!important; width:100%!important; float:none!important; }
body.search #main article.type-product .post-thumb-img-content a { display:block; aspect-ratio:1/1; background:#fff; }
body.search #main article.type-product .post-thumb-img-content img { display:block; width:100%!important; height:100%!important; aspect-ratio:1/1; object-fit:contain!important; margin:0!important; }
body.search #main article .entry-title { font-size:16px!important; line-height:1.45!important; margin:0!important; overflow-wrap:anywhere; }
body.search #main article .entry-title a { color:#222; text-decoration:none; }
body.search #main article .entry-title a:hover { color:#d87925; }
body.search #main article.type-product .entry-header { margin:0!important; }
body.search #main article.type-product .entry-header::before { content:none!important; display:none!important; }
body.search #main article.type-product .rtusa-search-sku { display:block; color:#b4611b; font-size:11px; font-weight:600; letter-spacing:.04em; margin-bottom:6px; overflow-wrap:anywhere; }
body.search #main article.type-product .entry-content { display:none!important; }
body.search #main article:is(.type-post,.type-page) .entry-header::before { display:block; color:#777; font-size:11px; font-weight:600; letter-spacing:.08em; margin-bottom:6px; }
body.search #main article.type-post .entry-header::before { content:"ARTICLE"; }
body.search #main article.type-page .entry-header::before { content:"PAGE"; }
body.search #main article:not(.type-product) .post-content { display:grid; grid-template-columns:200px minmax(0,1fr); gap:10px 24px; }
body.search #main article:not(.type-product) .entry-header,body.search #main article:not(.type-product) .entry-content { grid-column:2; margin:0; }
body.search #main article:not(.type-product) .ast-blog-featured-section { grid-column:1; grid-row:1/3; width:200px!important; max-width:100%; padding:0!important; margin:0!important; float:left!important; }
body.search #main article:not(.type-product) .post-thumb-img-content img { width:100%!important; height:auto!important; aspect-ratio:16/10; object-fit:cover; }
body.search #main article:not(.type-product) .entry-content p:not(.read-more) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:14px; line-height:1.6; }
body.search #primary .navigation { margin-top:32px; }
@media(max-width:767px) {
 body.search #content > .ast-container { padding:0 16px!important; }
 body.search #main > .ast-row { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:16px!important; }
 body.search #main > .ast-row > article.ast-article-post { padding:12px!important; }
 body.search #main article.type-product .entry-title { font-size:14px!important; }
 body.search #main article:not(.type-product) .post-content { display:block; }
 body.search #main article:not(.type-product) .ast-blog-featured-section { float:none!important; width:100%!important; max-width:100%; margin:0 0 14px!important; }
 body.search #main > .ast-row::before,body.search #main > .ast-row::after { font-size:22px!important; }
}
/* END Robotime USA search groups — 2026-10-22 */
