/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme/
Template: dji
Author: Muffin group
Author URI: https://muffingroup.com/
Description: The biggest WordPress Theme ever
Version: 28.1.3.1755156456
Updated: 2025-08-20 11:28:30

*/
@font-face {
  font-family: "mfn-icons";   /* 图标字体的名字 */
  src: url("../dji/fonts/mfn/icons.eot");
  src: url("../dji/fonts/mfn/icons.eot?#iefix") format("embedded-opentype"),
       url("../dji/fonts/mfn/icons.woff") format("woff"),
       url("../dji/fonts/mfn/icons.ttf") format("truetype"),
       url("../dji/fonts/mfn/icons.svg#mfn-icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
/* 产品展示模块 - BeTheme 风格 */
.betheme-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 0;
  list-style: none;
  margin: 0 25px 15px 25px !important;
}

.betheme-products li.mfn-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.betheme-products li.mfn-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

/* 图片 */
.betheme-products li.mfn-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #f2f2f2;
}

/* 标题 */
.betheme-products li.mfn-item h4 {
  font-size: 14px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  margin: 12px 10px 6px;
  color: #212121;
  transition: color 0.2s ease;
}

.betheme-products li.mfn-item:hover h4 {
  color: #000; /* BeTheme 主色调，可改 */
}

.betheme-products li.mfn-item .secondary-category {
    display: block;
    font-size: 12px;
    color: #212121;
    margin-top: 5px;
}



/* 价格 */
.betheme-products li.mfn-item .price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 12px;
}

.betheme-products li.mfn-item .price ins {
  color: #e74c3c; /* 特价高亮 */
  font-weight: 600;
  text-decoration: none;
}

/* 按钮风格（可选） */
.betheme-products li.mfn-item a {
  text-decoration: none;
  display: block;
}
/* Swiper 容器全屏 */

@media screen and (max-width: 768px) {
    .betheme-products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        margin: 0 !important;
    }
    .betheme-products li.mfn-item h4 {
        font-size: 14px;
        margin: 10px 8px 4px;
    }

    .betheme-products li.mfn-item .price {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .betheme-products li.mfn-item .secondary-category {
        font-size: 12px;
        margin-top: 3px;
    }
}

@media screen and (max-width: 480px) {
    .betheme-products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        margin: 0 !important;
    }

    .betheme-products li.mfn-item h4 {
        font-size: 13px;
        margin: 8px 6px 3px;
    }

    .betheme-products li.mfn-item .price {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .betheme-products li.mfn-item .secondary-category {
        font-size: 11px;
        margin-top: 2px;
    }

}

/* ==============================
   Compare Options (Popup Maker)
   Mobile layout similar to DJI
   ============================== */
.compare-popup-open .pum-overlay,
.compare-popup-open .pum-popup-overlay {
  background: rgba(0,0,0,.5) !important;
}

.compare-popup .pum-container,
.compare-popup .pum-popup-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.compare-popup .pum-title, 
.compare-popup .pum-popup-title {
  display: none;
}

.compare-popup .pum-content,
.compare-popup .pum-popup-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

/* Header */
.compare-popup .compare-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-popup .compare-header__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Keep original close button but move to header area */
.compare-popup .pum-container .pum-close,
.compare-popup .pum-close,
.compare-popup .pum-popup-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: #f4f4f4 !important;
  color: #222 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  text-transform: uppercase;
}

/* SKU Selector */
.compare-popup .compare-sku-selector {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
  overflow: hidden;
}

.compare-popup .compare-sku-list {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 0 16px;
}

.compare-popup .compare-sku-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.compare-popup .compare-sku-option {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 200px;
  margin-right: 12px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.compare-popup .compare-sku-option:last-child {
  margin-right: 16px;
}

.compare-popup .compare-sku-option:hover {
  background: #f0f0f0;
  border-color: #ddd;
}

.compare-popup .compare-sku-option.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.compare-popup .compare-sku-option .sku-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content area */
.compare-popup .compare-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  flex: 1;
}

/* Table-like lists inside popup content */
.compare-popup .compare-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
}

.compare-popup .compare-body thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.compare-popup .compare-body tbody td,
.compare-popup .compare-body tbody th {
  padding: 12px 8px;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
}

.compare-popup .compare-body tbody th {
  text-align: left;
  color: #333;
  width: 50%;
  font-weight: 600;
}

.compare-popup .compare-body tbody td {
  text-align: center;
  min-width: 120px;
}

/* Product sections */
.compare-popup .compare-body .product-section,
.compare-popup .compare-body [class*="product"],
.compare-popup .compare-body [class*="sku"] {
  margin-bottom: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.compare-popup .compare-body .product-section h1,
.compare-popup .compare-body .product-section h2,
.compare-popup .compare-body .product-section h3,
.compare-popup .compare-body .product-section h4,
.compare-popup .compare-body .product-section h5,
.compare-popup .compare-body .product-section h6 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* Make wide content horizontally scrollable on small screens */
@media screen and (max-width: 768px) {
  .compare-popup .compare-sku-option {
    min-width: 120px;
    padding: 10px 12px;
  }
  
  .compare-popup .compare-sku-option .sku-name {
    font-size: 13px;
  }
  
  .compare-popup .compare-body {
    padding: 12px;
  }
  
  .compare-popup .compare-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .compare-popup .compare-body thead,
  .compare-popup .compare-body tbody,
  .compare-popup .compare-body tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
}

/* Fallback: when popup content doesn't include header wrapper, auto-create spacing */
.compare-popup .pum-popup-content > *:first-child {
  margin-top: 48px;
}

/* SKU Selector */
.compare-popup .compare-sku-selector {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
  overflow: hidden;
}

.compare-popup .compare-sku-list {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 0 16px;
}

.compare-popup .compare-sku-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.compare-popup .compare-sku-option {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 200px;
  margin-right: 12px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.compare-popup .compare-sku-option:last-child {
  margin-right: 16px;
}

.compare-popup .compare-sku-option:hover {
  background: #f0f0f0;
  border-color: #ddd;
}

.compare-popup .compare-sku-option.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.compare-popup .compare-sku-option .sku-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product sections */
.compare-popup .compare-body .product-section,
.compare-popup .compare-body [class*="product"],
.compare-popup .compare-body [class*="sku"] {
  margin-bottom: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.compare-popup .compare-body .product-section h1,
.compare-popup .compare-body .product-section h2,
.compare-popup .compare-body .product-section h3,
.compare-popup .compare-body .product-section h4,
.compare-popup .compare-body .product-section h5,
.compare-popup .compare-body .product-section h6 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  .compare-popup .compare-sku-option {
    min-width: 120px;
    padding: 10px 12px;
  }
  
  .compare-popup .compare-sku-option .sku-name {
    font-size: 13px;
  }
  
  .compare-popup .compare-body {
    padding: 12px;
  }
}

