/*
Theme Name: SwiftCart
Theme URI: http://custom-theme/
Author: watch
Author URI: http://custom-theme/
Description: SwiftCart 自定义主题，基于 WooCommerce 和 Elementor 构建。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: SwiftCart
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0 !important;
}

@font-face {
  font-display: swap;
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/marcellus-v14-latin-regular.woff2") format("woff2");
}

body {
  background-color: #ffffff !important;
  overflow-x: hidden;
}

.wp-block-group-is-layout-constrained,
.block-contact-box,
.block-page-style,
.block-about-us {
  margin: clamp(2rem, 5vw, 3rem);
  width: clamp(390px, 100vw, 1140px) !important;
  margin: auto;
}

.wp-block-group-is-layout-constrained {
  width: auto !important;
}

.block-page-style .wp-block-accordion-item {
  border: 1px solid #ccc;
  padding: 10px;
}

.archive-hero-header{background-color:#1A5F3E;color:white;padding: 20px 0 10px;}
.archive-hero-div{font-size:22px;text-transform: uppercase;font-weight: 400;font-family: "Marcellus", sans-serif;}
.archive-hero-header nav{margin: 14px 0;}
.archive-hero-header nav a{color:white !important;}
.archive-hero-header nav li.active{color:white;}
.archive-hero-header .breadcrumb-item + .breadcrumb-item::before{color:white;}
.archive-description{margin-top: 1rem;}
.btn-success {height: fit-content;}
.block-page-style .wp-block-accordion-item .wp-block-accordion-heading {
  margin: 0;
}

.block-page-style .wp-block-accordion-item .wp-block-accordion-heading {
  font-size: 18px;
}

.block-page-style .wp-block-accordion-item .wp-block-accordion-heading p {
  font-size: 16px;
}

.block-about-us {
  margin-top: 5rem;
}

.block-group-commitments {
  margin-top: 3rem;
  padding: 60px 0;
}

.wp-block-group__inner-container > div {
  margin-top: 2rem;
}

.wp-block-group__inner-container p {
  margin: 0;
}

.wp-block-group__inner-container h3 {
  margin-bottom: 1.2rem;
}

.block-page-style h1,
.block-page-style h2,
.block-page-style h3,
.block-page-style h4 {
  font-family: "Marcellus", sans-serif;
}

.block-page-style h1 {
  padding: 0;
}

.block-page-style h2,
.block-page-style h3 {
  font-size: 22px;
}

.block-page-style p {
  font-size: 16px;
}

body a {
  text-decoration: none;
}

nav[aria-label="breadcrumb"] {
  padding: 0;
}

body .swiper-button-next,
body .swiper-button-prev {
  width: 30px;
  height: 30px;
}

.cta-band {
  background: #111;
  color: #fff;
  padding: 54px 0;
}
.cta-band h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
}
.cta-band p {
  max-width: 820px;
  color: #d0d0d0;
  margin: 0 0 22px;
}

/* SwiftCart Style */
.hero {
  color: #fff;
  padding: 78px 0 68px;
  height: 100vh;
}

/* 轮播图父容器 */
.hero-carousel-section {
  position: relative;
  overflow: hidden;
}

/* 轮播图容器 (保留你的原样式，仅供参考位置) */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* --- 新增/修改的轮播动画样式 --- */
/* 图片轨道：三张图横向排列 */
.slide-track {
  display: flex;
  width: 300%; /* 因为有3张图 */
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* 平滑滑动动画 */
}

/* 每一张幻灯片 */
.hero-slider .slide {
  width: 33.3333%; /* 占据轨道的 1/3，即 100% 屏幕宽度 */
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative; /* 关键：用于定位内部的黑色遮罩 */
}

/* 黑色半透明遮罩层 (改为在每张 slide 内部生成，避免遮挡滑动) */
.hero-slider .slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* 保证文字层在最上方 */
.hero-content-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* --- 左右控制按钮样式 --- */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: #000000;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease;
}

.carousel-control:hover {
  opacity: 1;
  background-color: #f0f0f0;
}

.carousel-control.prev {
  left: 0;
}
.carousel-control.next {
  right: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #d9eadd;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.5;
  max-width: 820px;
  padding: 0;
  font-weight: 400;
}
.hero p {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 18px;
  color: white;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn a {
  color: white;
  /* cursor: pointer; */
}

.hero-actions .btn:hover,
.video-grid .btn:hover {
  background-color: transparent;
  color: black;
}

.hero-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.section {
  background: #fff;
  padding: 48px 0;
}
.section h2 {
  font-size: clamp(16px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 600;
}

.section-footer {
  text-align: center;
  width: fit-content;
  margin: auto;
}

.section-footer a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  text-align: center;
  border: 1px solid #ececec;
  padding: 12px 24px;
  display: block;
  margin-top: 1rem;
}

.brand-links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

@media (max-width:991px) {
  .brand-links {flex-wrap: wrap;}
  .brand-links img {width:100%;}
}

.brand-links h3 {
  text-transform: uppercase;
}

.mini-grid {
  display: grid;
  gap: 18px;
}
.mini-box {
  padding: 22px;
}
.mini-box h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
.mini-box a,
.mini-box p {
  color: white;
  margin: 0;
}

.review-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .review-wrap {
    grid-template-columns: 1fr;
  }
}

.rating-panel {
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 24px;
}
.score {
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d6b43;
}
.stars {
  color: #14b86a;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.review-card {
  border: 1px solid #ececec;
  background: #fff;
  padding: 20px;
}
.review-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.review-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  color: #444;
  font-size: 14px;
  font-weight: 700;
}

.expert-box {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: center;
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 28px;
}
.expert-box h2 {
  margin-top: 0;
}

.expert-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.archive-hero h1,
.archive-hero h2,
.archive-hero p {
  padding: 0;
  color: white;
}

.archive-hero {
  background-color: #4d9a76;
  padding: 74px 0 62px;
}

.archive-top-hero {
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 1.1px;
  color: #d9eadd;
  width: fit-content;
}

.archive-content {
  display: flex;
  flex-direction: column;
}

.archive-title {
  font-size: 3rem;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
}

.archive-description h2 {
  font-size: 1.4rem;
  margin: 18px 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.guide-box {
  border: 1px solid #ececec;
  background: #fff;
  padding: 22px;
}
.guide-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}
.guide-box p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.featured-box {
  background-color: #4d9a76;
}
.section.featured-box h2 {
  color: white;
}
.brtpmj_br_score_img img {
  width: 150px;
  vertical-align: bottom;
}
.elementor-shortcode {
  color: white;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.brtpmj_all_reviews.carousel {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  transform: none !important;
}
.brtpmj_single_rvw.carousel-item {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: inline-block;
}
.brtpmj_sr_author_overview {
  display: flex;
  border-bottom: 1px solid #e5e5dd;
  margin-bottom: 15px;
  padding-bottom: 10px;
}
.brtpmj_sr_ab_img {
  width: 50px;
  height: 50px;
  background: #d1f9ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brtpmj_sr_ab_img span {
  font-weight: bold;
  color: black;
}
.brtpmj_sr_ab_name_date {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  color: black;
}
.brtpmj_sr_ab_name {
  font-weight: bold;
}
.brtpmj_sr_title h4 {
  font-size: 16px;
  color: black;
  font-weight: 400;
  line-height: 1.4;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brtpmj_sr_title p {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swiftcart-section-box {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1140px;
  margin: 2rem auto 0;
}
.swiftcart-section-box img {
  width: 100%;
}
.swiftcart-section-box h3 {
  font-size: 22px;
}
.swiftcart-section-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 992px) {
  .swiftcart-section-box {
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
}
.video-content {
  background: #4d9a76;
}
.swificart-video-section-box .swificard-video-box {
  background-color: white;
  padding: 20px;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
/* --- 卡片整体外框 --- */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1090px;
  width: 100%;
  margin: 0 auto;
}

.watch-card {
  position: relative;
  width: clamp(100%, 10vw, 300px);
  height: 450px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  font-family: serif;
  cursor: pointer;
  padding: 20px;
}

/* --- 黑色半透明遮罩，保证白色文字清晰可见 --- */
.watch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 默认底部的阴影较重，上方较轻 */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 80%,
    transparent 100%
  );
  transition: all 3s ease;
}

/* 悬停时遮罩变暗，让阅读体验更好 */
.watch-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* --- 内容容器 --- */
.section {
  position: relative;
  z-index: 1; /* 确保文字在遮罩层之上 */
  width: 100%;
  padding: 30px 25px;
}

/* --- 标题样式 --- */
.section h2 {
  margin: 0;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.2;
  /* 标题本身不需要写动画，它会被下方的盒子“顶”上去 */
}

/* --- 悬停时才出现的隐藏详情区 --- */
.hover-details {
  max-height: 150px; /* 默认高度为0，隐藏内容 */
  overflow: hidden; /* 隐藏溢出的内容 */
  transform: translateY(110px); /* 默认向下偏移20px，为了滑出效果 */
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 平滑的缓动动画 */
}

/* 当鼠标悬停在卡片上时，触发隐藏详情区的动画 */
.watch-card:hover .hover-details {
  max-height: 300px;
  transform: translateY(0); /* 偏移归零，内容回到原本位置 */
  margin-top: 15px; /* 出现后与上方标题拉开一点间距 */
}
.watch-card h3 {
  z-index: 1;
  font-size: 20px;
  font-weight: bold;
}
.section-shop {
  background-color: #1a5f3e;
  padding: 20px 0 10px;
  color: white;
}
.section-shop a {
  color: white;
}
.section-hero-bg {
  background: url("./assets/images/shop-banner.png") center / cover no-repeat;
  color: white;
  height: 100vh;
}
.section-hero-bg h1 {
  padding: 0;
  font-size: clamp(28px, 4vw, 55px);
}
.section-hero-bg p {
  font-size: clamp(16px, 2vw, 22px);
  margin: 2rem 0;
}
.shop-page-hero-bg {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}
.shop-page-products {
  text-align: center;
  padding: 100px 0 70px;
}
.subscribe-wrapper {
  max-width: 600px;
  margin: 50px auto 0;
  text-align: center;
}
.subscribe-title {
  font-size: 42px;
  font-family: "Times New Roman", Times, serif;
  font-weight: normal;
  margin-bottom: 10px;
  color: #000;
}
.subscribe-subtitle {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 50px;
  color: #000;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.subscribe-input {
  width: 100%;
  padding: 10px 0;
  font-size: 20px;
  color: #333;
  border: none;
  border-bottom: 1px solid #777;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  font-weight: 100;
}

.subscribe-input::placeholder {
  color: #aaa;
}

.subscribe-input:focus {
  border-bottom-color: #1a5f3e;
}
.btn-subscribe {
  background-color: #1a5f3e;
  color: white;
  padding: 10px 50px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
}

.wp-block-group.is-nowrap.is-layout-flex.wp-container-core-group-is-layout-ad2f72ca.wp-block-group-is-layout-flex {
  display: block;
}

.btn-subscribe:hover {
  background-color: #12452c;
}

.btn-subscribe u {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
@media (max-width: 768px) {
  .subscribe-title {
    font-size: 32px;
  }

  .subscribe-subtitle {
    font-size: 24px;
  }

  .subscribe-input {
    font-size: 16px;
  }
}
/* WooCommerce */
.wp-block-woocommerce-cart {
  width: auto !important;
  max-width: 900px !important;
  margin: 60px auto !important;
  gap: 30px !important;
  background: transparent !important;
}

.wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-cart-totals-block {
  background: #ffffff !important;
  border: none !important;
  padding: 40px !important;
}

.wc-block-cart-items__row {
  grid-template-columns: 120px 1fr auto !important;
  padding: 30px 0 !important;
  border-color: #f0f0f0 !important;
}

.wc-block-cart-item__image img {
  border-radius: 8px !important;
  object-fit: cover;
}

.wc-block-cart-item__name {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.wc-block-cart-totals-block {
  padding-top: 30px !important;
}

.wc-block-components-totals-footer-item {
  margin-bottom: 35px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #f5f5f5 !important;
}

.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__label {
  font-size: 12px !important;
}

.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  font-size: 18px !important;
  color: #000 !important;
}

.wc-block-cart__submit-button {
  letter-spacing: 2px !important;
  text-transform: uppercase;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.wc-block-cart-item__quantity-notes,
.wc-block-cart-item__remove-link {
  font-size: 12px !important;
  color: #999 !important;
}

.wc-block-components-sidebar-layout {
  border-radius: 16px !important;
  overflow: hidden;
  padding: 1rem;
}

.wc-block-components-quantity-selector {
  margin-bottom: 0 !important;
}

table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__quantity {
  align-items: flex-end !important;
  flex-direction: row !important;
}

.wc-block-cart-item__remove-link {
  margin-left: 10px !important;
}

.wp-block-heading.has-text-align-center {
  margin-top: 30px;
}

.product-bundle-selection .bundle_button .quantity,
.product-bundle-selection .woocommerce-info::before,
.bundled_product_title.product_title .bundled_product_title_link {
  display: none;
}

.bundled_product_title.product_title .item_qty {
  float: right;
}

.bundled_product_title.product_title .bundled_product_title_inner {
  font-size: 18px;
}

.product-bundle-selection .woocommerce-info {
  border: none;
  color: red;
  font-weight: bold;
}

.product-bundle-selection .msg {
  padding: 0;
}

.product-bundle-selection .bundle_button button[name="add-to-cart"] {
  float: left;
  background-color: red !important;
}

.e-con.e-flex > .e-con-inner {
  text-align: center;
}

.wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block.is-large {
  border: 1px solid #ccc;
}

.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  border: 1px solid;
}

a.wc-block-components-product-name {
  color: black;
  text-decoration: none;
}

form.woocommerce-form.woocommerce-form-track-order.track_order {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form p.form-row.form-row-first,
form p.form-row.form-row-last {
  text-align: left;
  background: transparent;
  border: none;
  padding: 0 !important;
  margin-top: 0 !important;
}

form p.form-row {
  background: white;
  width: 100px;
  padding: 5px 20px !important;
  border: 1px solid;
  margin-top: 20px !important;
}

/* 媒体查询 */
@media (max-width: 992px) {
  .navbar-nav,
  .navbar-expand-lg .offcanvas .offcanvas-body {
    gap: 10px;
    align-items: flex-start;
  }

  .offcanvas {
    --bs-offcanvas-width: 300px;
  }

  #menu-item-30 {
    display: block;
  }
}

@media (max-width: 768px) {
  .navbar-nav,
  .navbar-expand-lg .offcanvas .offcanvas-body {
    gap: 10px;
    align-items: flex-start;
  }

  .offcanvas {
    --bs-offcanvas-width: 300px;
  }

  #menu-item-30 {
    display: block;
  }
}
