/*
Theme Name: Elysia_first_web
Theme URI:
Author:
Author URI:
Description: A custom WordPress theme for Elysia_first_web.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elysia_first_web
Tags:
*/

/* ==========================================================================
   1. CSS Variables & Custom Properties
   ========================================================================== */
:root {
  /* 全局标题大小 */
  --elysia-h1-font-size: 48px;

  /* WordPress Presets - Based on common defaults and existing theme patterns */
  --wp--preset--color--black: #000000;
  --wp--preset--color--cyan-bluish-gray: #abb8c3;
  --wp--preset--color--white: #ffffff;
  --wp--preset--color--pale-pink: #f78da7;
  --wp--preset--color--vivid-red: #cf2e2e;
  --wp--preset--color--luminous-vivid-orange: #ff6900;
  --wp--preset--color--luminous-vivid-amber: #fcb900;
  --wp--preset--color--light-green-cyan: #7bdcb5;
  --wp--preset--color--vivid-green-cyan: #00d084;

  /* Theme Specific Colors */
  --elysia-primary-color: #0073aa;
  --elysia-secondary-color: #23282d;
  --elysia-text-color: var(--theme-palette-color-3, #3a4f66);
  --elysia-background-color: var(--theme-palette-color-8, #ffffff);

  --e-global-color-blocksy_palette_1: var(
      --wp--preset--color--palette-color-1
  );
  --e-global-color-blocksy_palette_2: var(
      --wp--preset--color--palette-color-2
  );
  --e-global-color-blocksy_palette_3: var(
      --wp--preset--color--palette-color-3
  );
  --e-global-color-blocksy_palette_5: var(
      --wp--preset--color--palette-color-5
  );
  --e-global-color-blocksy_palette_8: var(
      --wp--preset--color--palette-color-8
  );


  /* Typography */
  --elysia-font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
  Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --elysia-font-family-heading: inherit;
  --elysia-line-height-base: 1.5;
  --elysia-line-height-heading: 1.2;

  /* Spacing */
  --elysia-spacing-unit: 1rem;
  --elysia-container-width: 1200px;
}

/* ==========================================================================
   2. Reset & Normalize
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--elysia-font-family-base);
  font-size: 1rem;
  line-height: var(--elysia-line-height-base);
  color: #3a4f66;
  background-color: var(--elysia-background-color);
  /* background-color: #f9f9f9; */
  /* user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none; */
}

.elysia-home-bg {
  background-color: #f9f9f9 !important;
}

.copyable {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  cursor: pointer;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1 {
  color: #fff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--elysia-font-family-heading);
  line-height: var(--elysia-line-height-heading);
  margin-top: 0;
  margin-bottom: var(--elysia-spacing-unit);
  color: var(--elysia-secondary-color);
}
h1 {
  color: #fff;
}
p {
  margin-top: 0;
  margin-bottom: var(--elysia-spacing-unit);
}

a {
  color: #3a4f66;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: var(--elysia-secondary-color);
  text-decoration: underline;
}

a.button:hover,
a.ct-button:hover,
a.wp-block-button__link:hover,
.elementor-button,
.elementor-button-link,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.btn:hover,
.woocommerce button.button:hover,
.woocommerce-message .showlogin:hover,
.woocommerce-message .restore-item:hover,
.forminator-ui[data-design="none"] .forminator-button:hover,
.fluentform .ff-el-group button.ff-btn:hover,
button.regform-button:hover,
button[class*="ajax"]:hover,
.added_to_cart:hover {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  --theme-text-decoration: none !important;
  box-shadow: none !important;
}

a.button:hover,
a.ct-button:hover,
a.wp-block-button__link:hover,
.elementor-button:hover,
.elementor-button-link:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.btn:hover,
.woocommerce button.button:hover,
.woocommerce-message .showlogin:hover,
.woocommerce-message .restore-item:hover,
.forminator-ui[data-design="none"] .forminator-button:hover,
.fluentform .ff-el-group button.ff-btn:hover,
button.regform-button:hover,
button[class*="ajax"]:hover,
.added_to_cart:hover {
  box-shadow: none !important;
}

[data-link="type-2"] .entry-content a {
  --theme-text-decoration: none !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
}


/* ==========================================================================
   4. Layout & Responsive
   ========================================================================== */
.elysia-container {
  width: 100%;
  max-width: var(--elysia-container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--elysia-spacing-unit);
  padding-left: var(--elysia-spacing-unit);
}

/* ==========================================================================
   5. Media Queries
   ========================================================================== */
/* Mobile Devices */
@media (max-width: 576px) {
  :root {
    --elysia-spacing-unit: 0.875rem;
  }
}

/* Tablets */
@media (min-width: 768px) {
  /* Tablet specific styles */
}

/* Desktops */
@media (min-width: 992px) {
  /* Desktop specific styles */
}

/* Large Desktops */
@media (min-width: 1200px) {
  /* Large desktop specific styles */
}

/* ==========================================================================
   6. WordPress Accessibility & Alignments
   ========================================================================== */
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}

.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   7. Electric & Energy Archive – Layout Overrides
   ========================================================================== */
/* 产品卡片整体样式（来自 swforming Electric & Energy 页面） */
.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product {
  text-align: center;
  --button-align-display: flex;
  --button-align-direction: column;
  --button-align-justify: space-between;
  padding: 0 0 25px 0;
}

.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products {
  grid-column-gap: 40px;
  grid-row-gap: 40px;
}

.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product
  .woocommerce-loop-product__title,
.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product
  .woocommerce-loop-category__title {
  font-size: 22px;
}

.woocommerce-loop-product__title
  a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  font-size: 22px;
  color: #1c1a30;
  text-decoration: none;
}

.woocommerce-loop-product__title
  a.woocommerce-LoopProduct-link.woocommerce-loop-product__link:hover,
.woocommerce-loop-product__title
  a.woocommerce-LoopProduct-link.woocommerce-loop-product__link:focus {
  color: #ee0000;
  text-decoration: none;
}

.eael-adv-accordion
  .eael-accordion-list
  .eael-accordion-header
  .eael-accordion-tab-title {
  /* color: #3A4F66 !important; */
}

.eael-adv-accordion
  .eael-accordion-list
  .eael-accordion-header.is-open
  .eael-accordion-tab-title,
.eael-adv-accordion
  .eael-accordion-list
  .eael-accordion-header.active
  .eael-accordion-tab-title {
  color: #ad1c13 !important;
}

.eael-adv-accordion .eael-accordion-list .eael-accordion-content {
  color: #3a4f66 !important;
}

.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product
  .button {
  text-transform: uppercase;
}

.elementor-1206
  .elementor-element.elementor-element-f4e2646
  .elementor-heading-title.elementor-size-default {
  font-size: 24px;
}

.elementor-1206
  .elementor-element.elementor-element-d75091e
  .elementor-heading-title.elementor-size-default {
  font-size: 26px;
}

.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product:hover {
  box-shadow: 0 0 10px 0 rgba(209.25, 209.25, 209.25, 0.5);
}

.elementor-525
  .elementor-element.elementor-element-55bd102.elementor-wc-products
  ul.products
  li.product
  span.onsale {
  display: block;
}

.h-btn .elementor-button {
  background-color: transparent;
  border: none;
  padding: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--elysia-secondary-color);
}

.h-btn .elementor-button:hover,
.h-btn .elementor-button:focus {
  background-color: transparent;
  color: var(--elysia-primary-color);
  text-decoration: none;
}

.elementor-1206
  .elementor-element.elementor-element-5dafbf5
  .elementor-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.elementor-1206
  .elementor-element.elementor-element-5dafbf5
  .elementor-wrapper
  iframe,
.elementor-1206
  .elementor-element.elementor-element-5dafbf5
  .elementor-wrapper
  video,
.elementor-1206
  .elementor-element.elementor-element-5dafbf5
  .elementor-wrapper
  .elementor-video
  iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 两个 CTA 按钮样式（CONTACT US / Download cataloge） */
.elementor-525 .elementor-element.elementor-element-f90cfd5 .elementor-button {
  background-color: var(--e-global-color-blocksy_palette_1);
  text-transform: uppercase;
  fill: var(--e-global-color-blocksy_palette_8);
  color: var(--e-global-color-blocksy_palette_8);
  border-style: solid;
  border-width: 1px;
  border-color: var(--e-global-color-blocksy_palette_1);
}

.elementor-525
  .elementor-element.elementor-element-f90cfd5
  .elementor-button:hover,
.elementor-525
  .elementor-element.elementor-element-f90cfd5
  .elementor-button:focus {
  background-color: var(--e-global-color-blocksy_palette_2);
  color: var(--e-global-color-blocksy_palette_8);
  border-color: var(--e-global-color-blocksy_palette_8);
}

.elementor-525 .elementor-element.elementor-element-f90cfd5 {
  width: auto;
  max-width: auto;
  z-index: 20;
}

.elementor-525
  .elementor-element.elementor-element-f90cfd5
  > .elementor-widget-container {
  margin: 0;
}

.elementor-525 .elementor-element.elementor-element-9c037d2 .elementor-button {
  background-color: var(--e-global-color-blocksy_palette_2);
  text-transform: uppercase;
  fill: var(--e-global-color-blocksy_palette_8);
  color: var(--e-global-color-blocksy_palette_8);
  border-style: solid;
  border-width: 1px;
}

.elementor-525
  .elementor-element.elementor-element-9c037d2
  .elementor-button:hover,
.elementor-525
  .elementor-element.elementor-element-9c037d2
  .elementor-button:focus {
  background-color: #1c1a3000;
  color: var(--e-global-color-blocksy_palette_1);
  border-color: var(--e-global-color-blocksy_palette_1);
}

.elementor-525 .elementor-element.elementor-element-9c037d2 {
  width: auto;
  max-width: auto;
  z-index: 20;
}

.elementor-525
  .elementor-element.elementor-element-9c037d2
  > .elementor-widget-container {
  margin: 0 0 0 60px;
}

/* READ MORE 按钮（Why Sunway 区块） */
.elementor-525 .elementor-element.elementor-element-92ab000 .elementor-button {
  background-color: var(--e-global-color-blocksy_palette_1);
  text-transform: uppercase;
  fill: var(--e-global-color-blocksy_palette_8);
  color: var(--e-global-color-blocksy_palette_8);
}

.elementor-525
  .elementor-element.elementor-element-92ab000
  .elementor-button:hover,
.elementor-525
  .elementor-element.elementor-element-92ab000
  .elementor-button:focus {
  background-color: var(--e-global-color-blocksy_palette_2);
  color: var(--e-global-color-blocksy_palette_8);
  border-color: var(--e-global-color-blocksy_palette_8);
}

.elementor-525
  .elementor-element.elementor-element-92ab000
  > .elementor-widget-container {
  margin: 30px 0 0 0;
}

.product-archive-page .elementor-element-1b0fce5d,
.elementor-element-1b0fce5d {
    top: 0 !important;
}
.elementor-525 .elementor-element.elementor-element-92ab000 {
  z-index: 20;
  clear: both;
  /* 确保按钮不与浮动元素重叠 */
  display: block;
  /* 确保它是块级元素 */
  position: relative;
  /* 相对定位 */
}

/* Why Sunway 内层区块：正常文档流间距，避免与上方简介重叠 */
.elementor-525 .elementor-element.elementor-element-1b0fce5d {
  margin-top: 24px;
  margin-bottom: 30px;
}

/* Why Sunway 优势列表文字样式 */
.elementor-element-62c5a81e .elementor-icon-list-text {
  font-family: "Barlow Semi Condensed", Sans-serif;
  font-size: 18px;
  color: #3a4f66;
}

/* Why Sunway 统计说明文字样式 */
.elementor-element-3a630d04 .elementor-icon-box-description,
.elementor-element-30bd3ab .elementor-icon-box-description {
  color: #3a4f66;
}

/* FAQ 问题文字样式 (产品详情页 & 常见问题页) */
.eael-adv-accordion
  .eael-accordion-list
  .eael-accordion-header
  .eael-accordion-tab-title,
.eael-adv-accordion .eael-accordion-list .eael-accordion-header {
  color: #1c1a30;
  font-weight: bold;
}

/* 强制显示相关产品区域的 Read more 按钮 */
.related.products .ct-woo-card-actions {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  margin-top: auto;
}

/* Contact Us Now 区块布局与背景 */
.elementor-525
  .elementor-element.elementor-element-f127fb3:not(
    .elementor-motion-effects-element-type-background
  ),
.elementor-525
  .elementor-element.elementor-element-f127fb3
  > .elementor-motion-effects-container
  > .elementor-motion-effects-layer {
  background-color: #f6f6f6;
}

.elementor-525
  .elementor-element.elementor-element-f127fb3
  > .elementor-background-overlay {
  background-image: url("../../static/image/4cac2854-04d4-4faf-92b4-5c27f0ebff36.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.25;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.elementor-525
  .elementor-element.elementor-element-f127fb3
  > .elementor-container {
  max-width: 900px;
}

.elementor-525 .elementor-element.elementor-element-f127fb3 {
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  margin-top: 100px;
  margin-bottom: 0;
  padding: 50px 0;
}

.elementor-525 .elementor-element.elementor-element-ab45d48 {
  text-align: center;
}

/* ==========================================================================
   8. Article Content Tables (Solution / Blog Detail)
   ========================================================================== */
.elysia-article-content .wp-block-table,
.elysia-article-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 15px;
  line-height: 1.5;
}

.elysia-article-content .wp-block-table table {
  width: 100%;
}

.elysia-article-content table thead {
  background-color: #f5f7fb;
}

.elysia-article-content table th,
.elysia-article-content table td {
  border: 1px solid #dde2eb;
  padding: 12px 16px;
  vertical-align: top;
}

.elysia-article-content table th {
  font-weight: 600;
  text-align: left;
  color: #1c1f2a;
}

.elysia-article-content table td {
  color: #4b5065;
}

.elysia-article-content table strong {
  font-weight: 600;
}

/* 小屏幕时允许横向滚动，避免表格挤压 */
.elysia-article-content .wp-block-table,
.elysia-article-content .table-scroll {
  overflow-x: auto;
}

.elysia-article-content .wp-block-table > table {
  min-width: 600px;
}

/* Blog sidebar share buttons spacing (reuse archive page layout on detail page) */
.elementor-element.elementor-element-9d4bb6d {
  --grid-side-margin: 10px;
  --grid-column-gap: 10px;
  --grid-row-gap: 10px;
  --grid-bottom-margin: 10px;
}

.elysia-detail-share-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.elysia-detail-share-inline .elementor-heading-title {
  margin-bottom: 0;
}

.elementor-525
  .elementor-element.elementor-element-9517402
  > .elementor-widget-container {
  margin: -30px -20px 0 -20px;
}

@media (max-width: 1024px) {
  .elementor-element-1b0fce5d .elementor-container{
    flex-direction: row;
  }
  .elementor-525
    .elementor-element.elementor-element-55bd102.elementor-wc-products
    ul.products {
    grid-column-gap: 20px;
    grid-row-gap: 40px;
  }

  .elementor-525
    .elementor-element.elementor-element-f127fb3
    > .elementor-background-overlay {
    background-position: center left;
  }

  .elementor-525 .elementor-element.elementor-element-f127fb3,
  .elementor-525
    .elementor-element.elementor-element-f127fb3
    > .elementor-background-overlay {
    border-radius: 50px 0 50px 50px;
  }

  .elementor-525 .elementor-element.elementor-element-f127fb3 {
    padding: 50px;
  }
}

@media (max-width: 767px) {
  .elementor-525
    .elementor-element.elementor-element-9c037d2
    > .elementor-widget-container {
    margin: 30px 0 0 0;
  }
  .elementor-element-1b0fce5d .elementor-container{
    flex-direction: column;
  }
  .elementor-525
    .elementor-element.elementor-element-55bd102.elementor-wc-products
    ul.products {
    grid-column-gap: 20px;
    grid-row-gap: 40px;
  }

  .elementor-525 .elementor-element.elementor-element-f127fb3,
  .elementor-525
    .elementor-element.elementor-element-f127fb3
    > .elementor-background-overlay {
    border-radius: 30px 0 30px 30px;
  }

  .elementor-525 .elementor-element.elementor-element-f127fb3 {
    padding: 15px;
  }
}

/* ==========================================================================
   Single Product Template (#598) Layout & Styling
   ========================================================================== */

.elementor-598
  .elementor-element.elementor-element-44565186
  > .elementor-container,
.elementor-598
  .elementor-element.elementor-element-6c1ac67b
  > .elementor-container {
  max-width: 1300px;
}

.elementor-598 .elementor-element.elementor-element-44565186 {
  /* margin-top: 30px; */
  margin-bottom: 0;
}

.elementor-598
  .elementor-element.elementor-element-308036dc
  > .elementor-element-populated {
  margin: 0 50px 0 0;
  --e-column-margin-right: 50px;
  --e-column-margin-left: 0;
}

.elementor-598
  .elementor-element.elementor-element-30371618
  .elementor-heading-title {
  font-size: 40px;
  line-height: 1.1em;
}

.elementor-598 .elementor-element.elementor-element-7f56f53 {
  color: #00173c;
}

/* Product Hero Summary Links (Categories & Short Description) */
.elementor-598 .elementor-element.elementor-element-7f56f53 a,
.elementor-598 .elementor-element.elementor-element-7c13a617 a {
  color: #ad1c13 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.elementor-598 .elementor-element.elementor-element-7f56f53 a:hover,
.elementor-598 .elementor-element.elementor-element-7c13a617 a:hover {
  color: rgb(205, 14, 10) !important;
}

/* Breadcrumbs Styling */
.woocommerce-breadcrumb a {
  color: #ad1c13 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
  color: rgb(205, 14, 10) !important;
}

.elementor-598 .elementor-element.elementor-element-14872236 {
  margin-top: 0;
  margin-bottom: 20px;
}

.elementor-598
  .elementor-element.elementor-element-1e2cba0c
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-19c0b908
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-6faad96b
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-1e2cba0c
  > .elementor-element-populated
  > .elementor-background-overlay,
.elementor-598
  .elementor-element.elementor-element-19c0b908
  > .elementor-element-populated
  > .elementor-background-overlay,
.elementor-598
  .elementor-element.elementor-element-6faad96b
  > .elementor-element-populated
  > .elementor-background-overlay,
.elementor-598
  .elementor-element.elementor-element-1e2cba0c
  > .elementor-background-slideshow,
.elementor-598
  .elementor-element.elementor-element-19c0b908
  > .elementor-background-slideshow,
.elementor-598
  .elementor-element.elementor-element-6faad96b
  > .elementor-background-slideshow {
  border-radius: 15px;
}

.elementor-598
  .elementor-element.elementor-element-1e2cba0c
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-19c0b908
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-6faad96b
  > .elementor-element-populated {
  box-shadow: 0 0 10px 0 rgba(231, 231, 231, 0.5);
  margin: 10px;
  --e-column-margin-right: 10px;
  --e-column-margin-left: 10px;
  padding: 20px 10px;
}

.elementor-598
  .elementor-element.elementor-element-1e2cba0c:hover
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-19c0b908:hover
  > .elementor-element-populated,
.elementor-598
  .elementor-element.elementor-element-6faad96b:hover
  > .elementor-element-populated {
  box-shadow: 0 0 20px 12px rgba(231, 231, 231, 0.5);
}

.elementor-598 .elementor-element.elementor-element-5e3969d5 {
  --icon-box-icon-margin: 5px;
}

.elementor-598 .elementor-element.elementor-element-5e3969d5 .elementor-icon {
  font-size: 75px;
}

.elementor-598
  .elementor-element.elementor-element-50344f32:not(
    .elementor-motion-effects-element-type-background
  ),
.elementor-598
  .elementor-element.elementor-element-50344f32
  > .elementor-motion-effects-container
  > .elementor-motion-effects-layer {
  background-color: var(--e-global-color-blocksy_palette_2);
}

.elementor-598 .elementor-element.elementor-element-50344f32,
.elementor-598
  .elementor-element.elementor-element-50344f32
  > .elementor-background-overlay {
  border-radius: 10px;
}

.elementor-598 .elementor-element.elementor-element-50344f32 {
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  padding: 30px 15px;
  z-index: 1;
  margin-top: 5px;
  text-align: center;
  position: -webkit-sticky;
  position: sticky;
  top: 106px;
}

.elementor-598
  .elementor-element.elementor-element-5d95fd79
  .elementor-heading-title {
  font-size: 30px;
  color: #ffffff;
}

.elementor-598
  .elementor-element.elementor-element-2ecac36b
  .elementor-icon-wrapper {
  text-align: center;
}

/* Product Sidebar Categories */
.widget_product_categories ul.product-categories li a {
  color: #ad1c13;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget_product_categories ul.product-categories li a:hover,
.widget_product_categories ul.product-categories li a:focus {
  color: #ee0000;
  text-decoration: none;
}

/* ==========================================================================
   15. Header & Menu Styling (Matching swforming theme)
   ========================================================================== */

/* Logo Styles */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container {
  --logo-max-height: 56px;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
  --theme-font-weight: 700;
  --theme-font-size: 25px;
  --theme-line-height: 1.5;
  --theme-link-initial-color: var(--theme-palette-color-4);
}

/* Main Menu Styles */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  --theme-font-weight: 700;
  --theme-text-transform: uppercase;
  --theme-font-size: 14px;
  --theme-line-height: 1.3;
  --theme-link-initial-color: var(--theme-text-color);
}

/* Dropdown Menu Styles */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
  --theme-link-initial-color: #ffffff;
  --theme-link-hover-color: var(--theme-palette-color-1);
  --theme-font-weight: 500;
  --theme-font-size: 15px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
  --dropdown-width: 300px;
  --dropdown-divider: 1px dashed rgba(255, 255, 255, 0.1);
  --theme-box-shadow: 0px 10px 20px rgba(41, 51, 61, 0.1);
  --theme-border-radius: 0px 0px 2px 2px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .menu > li {
  position: relative;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .menu > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: var(--dropdown-width);
  z-index: 9999;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .sub-menu
  > li {
  position: relative;
}
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .sub-menu
  > li
  > a
  > span{
  color:#fff;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .sub-menu
  > li:hover{
  background-color:#fff;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .sub-menu
  > li:hover
  > a
  > span{
  color:#3A4F66;
}




[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .sub-menu
  > li
  > .sub-menu,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: var(--dropdown-width);
  z-index: 9999;
}

[data-header*="type-1"] .ct-header nav[data-id="menu"][data-responsive="no"] {
  overflow: visible;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  [class*="animated-submenu"]
  > .sub-menu {
  overflow: visible !important;
  max-height: none !important;
}

/* Transparent Row Menu Styles */
[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"]
  [data-id="menu"]
  > ul
  > li
  > a {
  --theme-link-initial-color: var(--theme-palette-color-8);
  --theme-link-hover-color: var(--theme-palette-color-1);
}

[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"]
  [data-id="menu"] {
  --menu-indicator-active-color: var(--theme-palette-color-1);
}

/* Sticky Row Menu Styles */
[data-header*="type-1"]
  .ct-header
  [data-sticky*="yes"]
  [data-id="menu"]
  > ul
  > li
  > a {
  --theme-link-hover-color: var(--theme-palette-color-1);
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-id="menu"] {
  --menu-indicator-active-color: var(--theme-palette-color-1);
}

[data-header*="type-1"]
  .ct-header
  [data-sticky*="yes"]
  [data-id="menu"]
  .sub-menu {
  --sticky-state-dropdown-top-offset: 0px;
}

/* Menu Item Visibility States */
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.menu-item-has-children
  > .sub-menu,
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.has-submenu
  > .sub-menu {
  display: none;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.menu-item-has-children.is-open
  > .sub-menu,
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.has-submenu.is-open
  > .sub-menu,
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.menu-item-has-children:hover
  > .sub-menu,
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  li.has-submenu:hover
  > .sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Mobile Menu Styles */
[data-header*="type-1"]
  [data-id="mobile-menu"].mobile-menu
  li.menu-item-has-children
  > .sub-menu,
[data-header*="type-1"]
  [data-id="mobile-menu"].mobile-menu
  li.has-submenu
  > .sub-menu {
  display: fixed;
}

[data-header*="type-1"]
  [data-id="mobile-menu"].mobile-menu
  li.menu-item-has-children.is-open
  > .sub-menu,
[data-header*="type-1"]
  [data-id="mobile-menu"].mobile-menu
  li.has-submenu.is-open
  > .sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

[data-header*="type-1"] [data-id="mobile-menu"] {
  --theme-font-weight: 700;
  --theme-font-size: 20px;
  --theme-link-initial-color: #ffffff;
  --theme-link-hover-color: var(--theme-palette-color-1);
  --mobile-menu-divider: none;
}

[data-header*="type-1"]
  #offcanvas
  [data-id="mobile-menu"].mobile-menu
  a.ct-menu-link,
[data-header*="type-1"]
  #offcanvas
  [data-id="mobile-menu"].mobile-menu
  a.ct-menu-link:hover,
[data-header*="type-1"]
  #offcanvas
  [data-id="mobile-menu"].mobile-menu
  a.ct-menu-link:focus,
[data-header*="type-1"]
  #offcanvas
  [data-id="mobile-menu"].mobile-menu
  a.ct-menu-link:active {
  text-decoration: none;
}

/* Header Middle Row Styles */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 20px;
  background-color: var(--theme-palette-color-8);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: 0px 10px 20px rgba(44, 62, 80, 0.05);
}

[data-header*="type-1"] .ct-header [data-row*="middle"] > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"][data-row*="middle"] {
  background-color: rgba(219, 219, 219, 0.6);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: none;
}

[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"][data-row*="middle"]
  > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] {
  background-color: var(--theme-palette-color-8);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: 0px 10px 20px rgba(44, 62, 80, 0.05);
}

[data-header*="type-1"]
  .ct-header
  [data-sticky*="yes"]
  [data-row*="middle"]
  > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

/* Header Top Row Styles */
[data-header*="type-1"] .ct-header [data-row*="top"] {
  background-color: var(--theme-palette-color-8);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: none;
}

[data-header*="type-1"] .ct-header [data-row*="top"] > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"][data-row*="top"] {
  background-color: var(--theme-palette-color-8);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: none;
}

[data-header*="type-1"]
  .ct-header
  [data-transparent-row="yes"][data-row*="top"]
  > div {
  --theme-border-top: none;
  --theme-border-bottom: none;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="top"] {
  background-color: var(--theme-palette-color-8);
  background-image: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --theme-box-shadow: none;
}

/* Offcanvas Panel Styles */
[data-header*="type-1"] #offcanvas .ct-panel-inner {
  background-color: rgba(18, 21, 25, 0.98);
}

/* Search Icon Styles */
[data-header*="type-1"] [data-transparent-row="yes"] [data-id="search"] {
  --theme-icon-color: var(--theme-palette-color-8);
}

/* ==========================================================================
   End of Header & Menu Styling
   ========================================================================== */

/* ==========================================================================
   11. Pagination Styles
   ========================================================================== */

.elementor-pagination {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0;
  position: relative;
  clear: both;
}

.elementor-pagination .page-numbers {
  display: inline-block;
  margin: 0 calc(10px / 2);
  padding: 8px 14px;
  font-family: var(
    --theme-font-family-primary,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #cc0000;
  background-color: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  vertical-align: middle;
}

.elementor-pagination .page-numbers:not(:first-child) {
  margin-left: calc(10px / 2);
}

.elementor-pagination .page-numbers:not(:last-child) {
  margin-right: calc(10px / 2);
}

.elementor-pagination .page-numbers.current {
  color: #000000;
  background-color: transparent;
  border: none;
  cursor: default;
  font-weight: 600;
}

.elementor-pagination .page-numbers.current:hover,
.elementor-pagination .page-numbers.current:focus {
  color: #000000;
  background-color: transparent;
  border: none;
}

.elementor-pagination .page-numbers.disabled {
  color: #000000;
  background-color: transparent;
  border: none;
  cursor: default;
  font-weight: 500;
}

.elementor-pagination .page-numbers.disabled:hover,
.elementor-pagination .page-numbers.disabled:focus {
  color: #000000;
  background-color: transparent;
  border: none;
}

.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
  font-weight: 500;
  font-size: 16px;
  padding: 12px 20px;
}

.elementor-pagination .page-numbers.prev {
  margin-right: 15px;
}

.elementor-pagination .page-numbers.next {
  margin-left: 15px;
}

.elementor-pagination .page-numbers:hover,
.elementor-pagination .page-numbers:focus {
  color: #cc0000;
  background-color: transparent;
  border: none;
}

.elementor-pagination .page-numbers svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
  margin: 0 4px;
}

.elementor-pagination .page-numbers.prev svg {
  margin-right: 6px;
}

.elementor-pagination .page-numbers.next svg {
  margin-left: 6px;
}

.elementor-pagination .page-numbers.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.elementor-pagination .e-load-more-anchor {
  display: none;
}

.elementor-pagination ~ .elementor-widget-container {
  margin-top: 0;
}

.elementor-element .elementor-pagination {
  margin-top: 30px;
}

.elementor-grid-1 .elementor-pagination {
  text-align: center;
}

.elementor-grid-2 .elementor-pagination {
  text-align: center;
}

.elementor-grid-3 .elementor-pagination {
  text-align: center;
}

.elementor-grid-4 .elementor-pagination {
  text-align: center;
}

.elementor-grid-5 .elementor-pagination {
  text-align: center;
}

/* Related Products Section Styles */
.related-products-section {
  margin-bottom: 156px !important;
}

.related-products-section .elementor-container {
  max-width: 1300px !important;
}

/* Related Products Card Hover Effect */
.related.products ul.products li.product {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  padding: 15px;
}

.related.products ul.products li.product:hover {
  border-color: #eee;
  box-shadow: 0 0 10px 0 rgba(209, 209, 209, 0.5);
}

@media (max-width: 1024px) {
  .elementor-pagination {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .elementor-pagination .page-numbers {
    padding: 6px 12px;
    font-size: 13px;
    margin: 0 calc(8px / 2);
  }

  .elementor-pagination .page-numbers:not(:first-child) {
    margin-left: calc(8px / 2);
  }

  .elementor-pagination .page-numbers:not(:last-child) {
    margin-right: calc(8px / 2);
  }
}

@media (max-width: 767px) {
  .elementor-pagination {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .elementor-pagination .page-numbers {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 calc(6px / 2);
  }

  .elementor-pagination .page-numbers:not(:first-child) {
    margin-left: calc(6px / 2);
  }

  .elementor-pagination .page-numbers:not(:last-child) {
    margin-right: calc(6px / 2);
  }

  .elementor-pagination .page-numbers.prev,
  .elementor-pagination .page-numbers.next {
    padding: 6px 12px;
  }
}

body.rtl .elementor-pagination .page-numbers:not(:first-child) {
  margin-right: calc(10px / 2);
  margin-left: 0;
}

body.rtl .elementor-pagination .page-numbers:not(:last-child) {
  margin-left: calc(10px / 2);
  margin-right: 0;
}

body.rtl .elementor-pagination .page-numbers.prev {
  margin-left: 10px;
  margin-right: 0;
}

body.rtl .elementor-pagination .page-numbers.next {
  margin-right: 10px;
  margin-left: 0;
}

body.rtl .elementor-pagination .page-numbers.prev svg {
  margin-left: 6px;
  margin-right: 0;
}

body.rtl .elementor-pagination .page-numbers.next svg {
  margin-right: 6px;
  margin-left: 0;
}

/* ==========================================================================
   End of Pagination Styles
   ========================================================================== */

/* ==========================================================================
   TOC (Table of Contents) Styles
   ========================================================================== */
/* Removed !important rules to allow ID-based styling from Elementor to take precedence */
.elementor-toc__list,
.elementor-toc__list-item,
.elementor-toc__item-text,
.elementor-toc__header-title,
.elementor-toc .elementor-toc__spinner-container,
.elementor-toc__body .elementor-toc__list-item-text {
  color: #3a4f66;
}

.elementor-widget-table-of-contents {
  --header-color: #3a4f66;
  --item-text-color: #3a4f66;
  --item-text-hover-color: #ad1c13;
  --item-text-active-color: #ad1c13;
  --marker-color: #3a4f66;
}

.elementor-toc__list-item a:hover {
  text-decoration: underline;
  -webkit-text-decoration: underline;
  text-decoration-color: #ad1c13;
  -webkit-text-decoration-color: #ad1c13;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  color: #ad1c13;
}

/* Removed explicit ID override to prevent conflicts */
/*
.elementor-598 .elementor-element.elementor-element-45da380f {
  --header-color: #3a4f66;
  --item-text-color: #3a4f66;
  --item-text-hover-color: #ad1c13;
  --item-text-active-color: #ad1c13;
  --marker-color: #3a4f66;
}
*/

/* ==========================================================================
   TOC Toggle Button Styles
   ========================================================================== */
.elysia-toc-widget .elementor-toc__toggle-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.elysia-toc-widget .elementor-toc__toggle-button svg {
  fill: #000000;
}

.elysia-toc-widget .elementor-toc__toggle-button--expand {
  display: inline-flex;
}

.elysia-toc-widget .elementor-toc__toggle-button--collapse {
  display: inline-flex;
  transform: rotate(180deg);
}

.elysia-toc-widget.elementor-toc--collapsed
  .elementor-toc__toggle-button--collapse {
  display: none;
}

.elysia-toc-widget:not(.elementor-toc--collapsed)
  .elementor-toc__toggle-button--expand {
  display: none;
}

.elysia-toc-widget .elementor-toc__body {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
}

.elysia-toc-widget .elementor-toc__body:not(.elysia-toc-body) {
  max-height: var(--toc-body-max-height, 300px);
}

.elysia-toc-widget .elysia-toc-body {
  max-height: none;
}

/* ==========================================================================
   Sticky Header Styles
   ========================================================================== */
   #header .ct-sticky-container {
    transition:
        transform 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out,
        opacity 0.3s ease-in-out,
        background-color 0.3s ease-in-out;
        color:#3A4F66 !important;
}

#header .ct-sticky-container.elysia-sticky-active {
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
    z-index: 99999;
    background-color: var(--theme-palette-color-8, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header .ct-sticky-container.elysia-sticky-active > div {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

#header .ct-sticky-container.elysia-sticky-active .elementor-section {
    background-color: var(--theme-palette-color-8, #ffffff);
    max-width: 100%;
}

#header .ct-sticky-container.elysia-sticky-active .ct-container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

#header .ct-sticky-container.elysia-sticky-active .menu > li > a {
    color: var(--theme-palette-color-3, #3a4f66);
}

#header .ct-sticky-container.elysia-sticky-active .menu > li > a:hover {
    color: var(--theme-palette-color-1, #AD1C13);
}

#header .ct-sticky-container.elysia-sticky-active .site-branding img {
    max-height: 50px;
}


@media (max-width: 1024px) {
    .elementor-525
    .elementor-element.elementor-element-92ab000
    > .elementor-widget-container {
      margin: 0 0 0 0;
    }
    .elementor-525 .elementor-element.elementor-element-92ab000{
      text-align: center;
    }
    #header .ct-sticky-container.elysia-sticky-active {
        z-index: 9998;
    }

    /* Tablet / mobile: keep header nav fixed at top.
       top is synced by JS (getAdminBarOffset) so logged-in WP admin bar
       never leaves a gap when it is absolute / scrolled away. */
    #header [data-device="desktop"] .ct-sticky-container,
    #header [data-device="mobile"] .ct-sticky-container {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        z-index: 9998;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    /* Reserve space so content is not hidden under fixed header */
    #header [data-device="desktop"],
    #header [data-device="mobile"] {
        min-height: 70px;
    }

    #header [data-device="desktop"] .ct-sticky-container .ct-container,
    #header [data-device="mobile"] .ct-sticky-container .ct-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #header [data-device="desktop"] .site-branding img,
    #header [data-device="mobile"] .site-branding img {
        max-height: 48px;
    }
}

@media (max-width: 767px) {
    #header .ct-sticky-container.elysia-sticky-active {
        z-index: 9997;
    }

    #header .ct-sticky-container.elysia-sticky-active .site-branding img {
        max-height: 40px;
    }

    #header .ct-sticky-container.elysia-sticky-active .ct-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #header [data-device="mobile"] {
        min-height: 58px;
    }

    #header [data-device="mobile"] .ct-sticky-container .ct-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #header [data-device="mobile"] .site-branding img {
        max-height: 40px;
    }
}

/* ==========================================================================
   Menu Dropdown Arrow Styles
   ========================================================================== */
.ct-menu-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.ct-menu-link-text {
  color:#3A4F66;
  flex: 0 1 auto;
}

.ct-toggle-dropdown-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  width: 8px;
  height: 8px;
}

.ct-toggle-dropdown-desktop svg {
  display: block;
  width: 8px;
  height: 8px;
  color: inherit;
  transition: transform 0.2s ease;
}

.menu-item-has-children > .ct-menu-link:hover .ct-toggle-dropdown-desktop svg,
.menu-item-has-children > .ct-menu-link:focus .ct-toggle-dropdown-desktop svg {
  transform: rotate(180deg);
}

.submenu-arrow-right {
  margin-left: auto !important;
}

.submenu-arrow-right svg {
  transform: rotate(0deg) !important;
}

.menu-item-has-children > .ct-menu-link:hover .submenu-arrow-right svg,
.menu-item-has-children > .ct-menu-link:focus .submenu-arrow-right svg {
  transform: rotate(0deg) !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .menu > li > .ct-menu-link {
  padding-right: 6px;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li
  > .ct-menu-link
  .ct-toggle-dropdown-desktop {
  opacity: 1;
  visibility: visible;
}

[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li:hover
  > .ct-menu-link
  .ct-toggle-dropdown-desktop
  svg,
[data-header*="type-1"]
  .ct-header
  [data-id="menu"]
  .menu
  > li:focus-within
  > .ct-menu-link
  .ct-toggle-dropdown-desktop
  svg {
  transform: none;
}

.site-footer {
  background-color: var(--theme-palette-color-6);
  padding: 0;
  margin: 0;
}

.site-footer .elementor-section {
  margin: 0;
}

.site-footer .elementor-container {
  max-width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.site-footer .elementor-elementor-442 {
  background-color: transparent;
}

@media (max-width: 1024px) {
  .site-footer .elementor-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 767px) {
  .site-footer
    .elementor-elementor-442
    .elementor-element.elementor-element-babc870 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.elementor-4217 .h-box1 {
  box-shadow: 0 0 7px 0 rgba(219, 219, 219, 0.5);
  flex:0 0 25%;
}

.elementor-4217 .h-box1:hover {
  box-shadow: 0 0 10px 0 rgba(219, 219, 219, 0.6);
}

/* Custom CSS for Service Grid items (.h-box1) */
.elementor-element.h-box1 > .elementor-element-populated {
  border-style: none !important;
  box-shadow: 0px 0px 7px 0px rgba(219, 219, 219, 0.5) inset !important;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s !important;
  padding: 65px;
}

@media (max-width: 767px) {
  .elementor-element.h-box1 > .elementor-element-populated {
    padding: 25px;
  }
}
@media (max-width: 1024px) {
  .elementor-element.h-box1 > .elementor-element-populated {
    padding: 25px;
  }
}

.elementor-location-footer a:hover,
.elementor-location-footer a:focus {
  text-decoration: none !important;
}

/* Footer Contact Area Font Color */
.elementor-element-3bf59e0 .elementor-icon-list-text {
  color: #3a4f66 !important;
}

/* Footer internal top white seam: footer/e477ed7 had no bg; only inner babc870 is blue */
.elementor-location-footer::before {
  display: none !important;
  content: none !important;
}

/* footer.elementor.elementor-442.elementor-location-footer {
  background-color: var(--e-global-color-blocksy_palette_2, #1c1a30) !important;
  padding: 0 !important;
  margin-top: 0 !important;
  border-top: none !important;
} */

footer.elementor.elementor-442 .elementor-element.elementor-element-e477ed7 {
  background-color: var(--e-global-color-blocksy_palette_2, #1c1a30) !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: none !important;
}

footer.elementor.elementor-442
  .elementor-element.elementor-element-81151f2
  > .elementor-element-populated {
  padding-top: 0 !important;
}

footer.elementor-location-footer.footer-margin-106 {
  margin-top: 20px !important;
}

.product-archive-page .elementor-element.elementor-element-f127fb3 {
  top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  border-bottom: none !important;
}

.product-archive-page
  .elementor-element.elementor-element-f127fb3
  > .elementor-background-overlay {
  border-bottom: none !important;
}

/* Front page hero: PC / mobile dual swiper */
.front-page-container .home-hero-section {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  margin-left: 0 !important;
}

/* 仅首屏占位容器控制高度，勿用全局 .elementor-container 以免拉长下方 stats 模块 */
.front-page-container
  .home-hero-section
  > .elementor-container.home-hero-spacer {
  min-height: 600px;
  height: 80vh;
}

.front-page-container
  .home-hero-section
  .home-hero-swiper--desktop
  .home-hero-slide-bg {
  background-position: left center !important;
}

/* 下方 stats 弹性布局：高度随内容，避免被误继承 80vh */
.front-page-container .elementor-element-4cf8d02 > .elementor-container {
  height: auto !important;
  min-height: 0 !important;
}

.front-page-container
  .elementor-element-4cf8d02
  > .elementor-container
  > .elementor-column {
  align-self: auto !important;
}

.front-page-container .elementor-element-79f8fb9 > .elementor-widget-wrap {
  height: auto !important;
  min-height: 0 !important;
}
.elementor-155
  .elementor-element-12252aaf
  > .elementor-container
  > .elementor-column {
  width: calc(25% - 6px) ;
  max-width: calc(25% - 6px);
  flex: 0 0 calc(50% - 6px);
  margin: 0 !important;
  align-self: stretch;
}
@media (max-width: 1024px) {
  .front-page-container
  .elementor-element-4cf8d02
  > .elementor-container
  > .elementor-column {
  width: 100%;
}
.front-page-container .elementor-element-4cf8d02 > .elementor-container {
  flex-direction: column;
}
  .front-page-container .elementor-4217 .elementor-element-0c2b206 {
    padding: 0 !important;
  }

  .front-page-container
    .home-hero-section
    > .elementor-container.home-hero-spacer {
    min-height: clamp(230px, calc(35vh), 470px) !important;
    height: auto !important;
  }

  .front-page-container
    .home-hero-section
    .home-hero-swiper--desktop
    .home-hero-slide-bg {
    background-position: 32% top !important;
  }

  .front-page-container .elementor-4217 .elementor-element-4cf8d02 {
    margin-top: -48px !important;
  }
  .flex-column {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .front-page-container
    .home-hero-has-mobile-slides
    .home-hero-swiper--desktop {
    display: none !important;
  }

  .front-page-container .home-hero-has-mobile-slides .home-hero-swiper--mobile {
    display: block !important;
  }

  .front-page-container
    .home-hero-section
    > .elementor-container.home-hero-spacer {
    min-height: 180px !important;
    height: 185px !important;
    max-height: 189px !important;
  }

  .front-page-container .home-hero-section .home-hero-swiper {
    height: 190px !important;
    min-height: 190px !important;
  }

  .front-page-container .home-hero-section .home-hero-slide-bg {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff;
  }

  /* .front-page-container .elementor-4217 .elementor-element-4cf8d02 {
        margin-top: 0 !important;
    } */
}

/* Quality Manufacturing Hover Animation */
.elysia-hover-card {
  display: flex;
  /* Ensure flex layout if needed, matches original */
  /* height: 650px; Original has fixed height, consider if needed.
     If content varies, maybe min-height is better, but let's stick to animation logic first. */
}

/* Initial State (Hidden) */
.elysia-hover-card .hide-first,
.elementor-element-65eac535 .hide-first,
.elementor-element-758c2e1 .hide-first,
.elementor-element-76bd63ac .hide-first {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  max-height: 0 !important;
  overflow: hidden !important;
  /* Reduce max-height delay from 0.5s to 0s to avoid waiting after text fades out */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out 0.2s,
    max-height 0.5s ease-out 0.2s !important;
}

/* Hover State (Visible) */
.elysia-hover-card:hover .hide-first,
.elementor-element-65eac535:hover .hide-first,
.elementor-element-758c2e1:hover .hide-first,
.elementor-element-76bd63ac:hover .hide-first {
  opacity: 1 !important;
  transform: translateY(0) !important;
  max-height: 500px !important;
  /* Arbitrary large height to allow content */
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out 0.2s,
    transform 0.5s ease-out 0.2s !important;
}

/* ==========================================================================
   Mobile: match logged-in admin-bar offset for guests
   WP adds html { margin-top: 46px !important } when .admin-bar is present
   (≤782px). Sticky header stays at the viewport top, so that 46px makes the
   first module sit lower / more visible. Guests lack .admin-bar — mirror the
   same clearance on #main only (no double offset when logged in).
   ========================================================================== */
@media screen and (max-width: 782px) {
  body:not(.admin-bar) #main.site-main {
    padding-top: 46px;
  }
}

/* ==========================================================================
   Inner page hero banners — unified centering & typography (Blog/Contact/About…)
   ========================================================================== */
/* Direct selectors (no :has) so optimizers / older caches cannot drop hero height */
.elementor-element-985d0b5,
.elementor-element-985d0b5 > .elementor-container,
.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  > .elementor-container {
  min-height: 350px;
}

.elementor-element-985d0b5 > .elementor-container{
  justify-self:anchor-center;
}

.elementor-element-1628106,
.elementor-element-1628106 > .elementor-container {
  min-height: 400px;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  .elementor-widget-heading,
.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  .elementor-widget-heading
  .elementor-widget-container {
  text-align: center !important;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  :is(.woocommerce-breadcrumb, .rank-math-breadcrumb) {
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.3;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  :is(.woocommerce-breadcrumb a, .rank-math-breadcrumb a) {
  color: #fff !important;
  font-size: 24px !important;
  text-decoration: none !important;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  :is(.woocommerce-breadcrumb a:hover, .rank-math-breadcrumb a:hover) {
  color: #fff !important;
  opacity: 0.85;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  h1.elementor-heading-title {
  color: #fff !important;
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 700;
}

.ct-section-stretched.elementor-section-height-min-height:has(
    .woocommerce-breadcrumb
  )
  .elysia-page-hero-subtitle {
  color: #fff !important;
  font-size: 24px !important;
}

/* Contact page: equal-size contact method cards on mobile */
@media (max-width: 767px) {
  .elementor-155 .elementor-element-12252aaf > .elementor-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .elementor-155
    .elementor-element-12252aaf
    > .elementor-container
    > .elementor-column {
    /* width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important; */
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-155
    .elementor-element-12252aaf
    > .elementor-container
    > .elementor-column
    > .elementor-element-populated {
    height: 100%;
    min-height: 180px;
    margin: 0 !important;
    padding: 18px 12px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    --e-column-margin-right: 0px;
    --e-column-margin-left: 0px;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-widget-icon-box,
  .elementor-155 .elementor-element-12252aaf .elementor-widget-container,
  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-wrapper {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-widget-container {
    padding: 0 !important;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-content {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-title,
  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-title a {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin: 0 0 6px !important;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-icon-box-description {
    font-size: 12px !important;
    line-height: 1.35 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    margin: 0 !important;
  }

  .elementor-155 .elementor-element-12252aaf .elementor-icon {
    font-size: 22px !important;
  }
}
/* Header top bar contact + language links */
.ct-header [data-row="top"] [data-column="middle"],
.ct-header [data-row="top"] [data-items=""],
.ct-header [data-row="top"] .ct-header-socials {
  width: 100%;
}

.ct-header [data-row="top"] [data-items=""] {
  display: block;
}

.ct-header-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.ct-header-contact-links,
.ct-header-language-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ct-header-contact-links {
  grid-column: 2;
  justify-content: center;
}

.ct-header-language-links {
  grid-column: 3;
  justify-self: end;
}

.ct-header-contact-links a,
.ct-header-language-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2937 !important;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
}

.ct-header-contact-links a:hover {
  color: #c21d27 !important;
}

.ct-header-language-links a:hover {
  color: #1c2741 !important;
  transform: translateY(-1px);
}

.ct-header-contact-links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}

.ct-header-language-links {
  gap: 8px;
  justify-content: flex-end;
  justify-self: end;
}

.ct-header-language-links a {
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1c2741 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ct-header-language-links a.is-red,
.ct-header-language-links a.is-active {
  border-color: rgba(194, 29, 39, 0.95);
  background: #c21d27;
  color: #ffffff !important;
}

.ct-header-language-links a.is-red:hover,
.ct-header-language-links a.is-active:hover {
  color: #ffffff !important;
  background: #a81721;
}

.ct-header-language-links a.is-orange {
  border-color: rgba(232, 126, 39, 0.95);
  background: #e87e27;
  color: #ffffff !important;
}

.ct-header-language-links a.is-orange:hover {
  color: #ffffff !important;
  background: #cf6818;
}

.ct-header-language-links a.is-outline {
  background: transparent;
  border-color: rgba(31, 41, 55, 0.35);
  color: #1f2937 !important;
}

.ct-header-language-links a.is-outline:hover {
  color: #c21d27 !important;
  border-color: rgba(194, 29, 39, 0.65);
}

.ct-header-language-links img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* Slightly increase header navigation height */
.ct-header [data-row="middle"] .ct-container {
  min-height: 92px;
}

.ct-header [data-row="middle"] [data-items="primary"] {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Enlarge site logo in header */
.site-branding[data-id="logo"] .site-logo-container img {
  width: 50px;
  max-width: 420px;
  height: auto;
}

@media (max-width: 999px) {
  .ct-header-top-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-branding[data-id="logo"] .site-logo-container img {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .site-branding[data-id="logo"] .site-logo-container img {
    max-width: 200px;
  }
}
/** 
  * 如果你看到这段文字，说明我已经跑路或者转行了，这个项目已经没有人维护了。
  * 如果你需要维护这个项目，请做好以下准备:
  * 1. 这是外包给三个在校大学生使用纯AI写出来的屎山项目！！！ 
  * 2. 这个项目使用elementor主题的二次开发，不用想着去wp后台修改，除了网站基础设置。其他只能在代码中修改
  * 3. 你在该项目会看到，get_template_part() 函数无限嵌套，套了少说4-5层
  * 4. 无限重复的css样式，接近100个css文件，有一半的css在重复定义。
  * 5. 这个项目的acf字段在后台是读不出来的，你只能去inc/features中找对应的字段修改。
  * 6. 这个项目的表单使用了zoho表单，但是zoho表单的样式被我修改了，你要去inc/features/zoho-form-proxy.php中找对应的样式修改。
  * 7. 没有人能看懂这个项目，只有上帝和AI可以理解。
  * 最后的最后，如果你最后还是需要维护这个项目，请借助AI来修补AI拉的屎山。已经超出人类理解范围。如果你有能力重构整个项目，那你就是我们公司的god。
  * 还有一件事，这三个大学生还搓了一个屎山，如果你接手了这一个，大概率还会接手另一个屎山。在这个项目修改的bug记录记得保存，你会在另一个项目上遇到相同的！
  *                   _ooOoo_
  *                  o8888888o
  *                  88" . "88
  *                  (| -_- |)
  *                  O\  =  /O
  *               ____/`---'\____
  *             .'  \\|     |//  `.
  *            /  \\|||  :  |||//  \
  *           /  _||||| -:- |||||-  \
  *           |   | \\\  -  /// |   |
  *           | \_|  ''\---/''  |   |
  *           \  .-\__  `-`  ___/-. /
  *         ___`. .'  /--.--\  `. . __
  *      ."" '<  `.___\_<|>_/___.'  >'"".
  *     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
  *     \  \ `-.   \_ __\ /__ _/   .-` /  /
  *======`-.____`-.___\_____/___.-`____.-'======
  *                   `=---='
  *^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  *            佛祖保佑       永无BUG
  **/
