/** Shopify CDN: Minification failed

Line 368:0 Unexpected "<"
Line 683:0 Unexpected "{"
Line 683:1 Expected identifier but found "%"
Line 685:33 Unexpected "("
Line 686:1 Expected identifier but found "%"
Line 688:0 Unexpected "<"
Line 692:3 Expected identifier but found "%"
Line 692:29 Expected identifier but found "%"
Line 693:2 Unexpected "{"
Line 693:3 Expected identifier but found "%"
... and 58 more hidden warnings

**/
/* ============================================================
   MOKA COLLECTION (Luxury Taoist Edition)
   Part 1 / 2 — Layout / Toolbar / Filters
   ============================================================ */

/* Reset minor default spacing */
.moka-collection-wrapper {
  width: 100%;
  padding-bottom: 60px;
  background: #F5F2EC; /* 米灰色高奢背景 */
}



/* ============================================
   HERO BANNER
   ============================================ */

.moka-collection-hero {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moka-collection-hero-inner {
  text-align: center;
  color: #3A3A3A;
}

.moka-hero-title {
  font-size: 40px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: 'Times New Roman', serif;
}

.moka-hero-sub {
  font-size: 16px;
  opacity: 0.75;
}



/* ============================================
   TOP TOOLBAR — SORT BY (左对齐副导航风格)
   ============================================ */

.moka-toolbar {
  width: 100%;
  max-width: 1440px;
  margin: 40px auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.moka-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.moka-sort-label {
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #6A655A;
}

.moka-sort-select {
  padding: 8px 14px;
  border-radius: 8px;
  background: #EFEDE7;
  border: 1px solid #D5D1C7;
  font-size: 14px;
  color: #3A3A3A;
}

.moka-toolbar-right {
  font-size: 14px;
  opacity: 0.7;
}



/* ============================================
   FIVE ELEMENT FILTER BUTTONS
   ============================================ */

.moka-element-filter {
  width: 100%;
  max-width: 1440px;
  padding: 10px 24px 30px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.moka-element-btn {
  padding: 6px 18px;
  border-radius: 22px;
  font-size: 14px;
  background: #F1EEE7;
  border: 1px solid #D8D5CC;
  color: #4A4A4A;
  transition: all 0.25s ease;
}

.moka-element-btn:hover {
  background: #E7E3DC;
}

.moka-element-btn.active {
  background: #D1C7B5;
  border-color: #C2B8A8;
  color: black;
  font-weight: 600;
}

.moka-element-clear {
  margin-left: auto;
  font-size: 13px;
  color: #8A8274;
  text-decoration: underline;
}



/* ============================================
   PRODUCT GRID
   ============================================ */

.moka-grid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Responsive */
@media(max-width: 1100px) {
  .moka-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 780px) {
  .moka-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 520px) {
  .moka-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* ============================================================
   MOKA COLLECTION — Part 2 / 2  
   PRODUCT CARD (Dual Image Hover + Luxury Layout)
   ============================================================ */


/* ============================================
   PRODUCT CARD WRAPPER
   ============================================ */

.moka-collection-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.moka-collection-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}



/* ============================================
   PRODUCT IMAGES — HOVER SECOND IMAGE
   ============================================ */

.moka-card-image-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.moka-card-img-main,
.moka-card-img-hover {
  width: 100%;
  height: auto;
  transition: opacity 0.45s ease;
  display: block;
}

/* Hover image initially hidden */
.moka-card-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* On hover → switch image */
.moka-collection-card:hover .moka-card-img-main {
  opacity: 0;
}

.moka-collection-card:hover .moka-card-img-hover {
  opacity: 1;
}



/* ============================================
   PRODUCT TITLE
   ============================================ */

.moka-card-title {
  margin-top: 14px;
  font-size: 17px;
  font-family: 'Times New Roman', serif;
  letter-spacing: 0.5px;
  color: #3A3A3A;
  line-height: 1.3;
}



/* ============================================
   PRODUCT PRICE
   ============================================ */

.moka-card-price {
  margin-top: 6px;
  font-size: 15px;
  color: #6C6558;
  font-weight: 500;
}



/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */

@media(max-width: 600px) {
  .moka-collection-card {
    padding: 14px;
    border-radius: 14px;
  }

  .moka-card-title {
    font-size: 16px;
  }

  .moka-card-price {
    font-size: 14px;
  }
}

/* 强制图片容器有高度（1:1 正方形）*/
.moka-card-image-box {
  position: relative !important;
  width: 100%;
  aspect-ratio: 1 / 1 !important;   /* ← 你要求图片为 1:1 */
  overflow: hidden !important;
  display: block; 
}

/* 两张图片必须重叠 */
.moka-card-img-main,
.moka-card-img-hover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.35s ease;
}

/* 默认主图可见 */
.moka-card-img-main {
  opacity: 1 !important;
}

/* 默认 hover 图隐藏 */
.moka-card-img-hover {
  opacity: 0 !important;
}

/* 鼠标悬停切换 */
.moka-collection-card:hover .moka-card-img-main {
  opacity: 0 !important;
}

.moka-collection-card:hover .moka-card-img-hover {
  opacity: 1 !important;
}

/* Skeleton 会覆盖 img，需要强制绝对定位 */
.moka-collection-card img {
  position: absolute !important;
}

/* ===========================
   A — Hover 浮动 + 高奢金色阴影
=========================== */

.moka-collection-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.moka-collection-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 30px rgba(180, 150, 90, 0.12),   /* 金色柔光 */
    0 4px 12px rgba(0,0,0,0.08);
}

/* ===========================
   B — 图片入场淡入动画
=========================== */

.moka-card-img-main,
.moka-card-img-hover {
  opacity: 0;
  transform: scale(1.03);
  animation: mokaFadeIn .6s ease forwards;
}

@keyframes mokaFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

<script>
document.addEventListener("DOMContentLoaded", () => {
  const cards = document.querySelectorAll(".moka-card-image-box");

  cards.forEach(box => {
    let startX = 0;
    let moved = false;

    const imgs = box.querySelectorAll("img");
    if (imgs.length < 2) return;

    box.addEventListener("touchstart", e => {
      startX = e.touches[0].clientX;
      moved = false;
    });

    box.addEventListener("touchmove", e => {
      const diff = e.touches[0].clientX - startX;
      if (Math.abs(diff) > 40) { moved = true; }
    });

    box.addEventListener("touchend", () => {
      if (!moved) return;
      imgs.forEach(img => img.classList.toggle("moka-show-alt"));
    });
  });
});
</script>

/* ========== 修复 GRID：让手机变 2 列 ========== */
.moka-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 桌面端四列 */
  gap: 32px 24px;
}

@media (max-width: 1024px) {
  .moka-grid {
    grid-template-columns: repeat(3, 1fr); /* 平板三列 */
  }
}

@media (max-width: 768px) {
  .moka-grid {
    grid-template-columns: repeat(2, 1fr); /* 手机两列（关键） */
  }
}

/* ========== 图片区域固定为正方形（1:1） ========== */
.moka-card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.moka-card-img-main,
.moka-card-img-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}

.moka-card-img-main { opacity: 1; }
.moka-card-img-hover { opacity: 0; }

/* hover 切换 */
.moka-card-image-box:hover .moka-card-img-main { opacity: 0; }
.moka-card-image-box:hover .moka-card-img-hover { opacity: 1; }

/* ========== 修复卡片高度一致 ========== */
.moka-collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   MOKA — Luxury Collection Page (Ultimate Version)
   多端自适应 + 轻奢感 UI + hover 二图切换
   作者：ChatGPT for Yktian
============================================================ */

/* =============================
   GRID 布局（统一高度，不再错位）
============================= */
.moka-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  padding: 20px 0 80px;
}

/* 平板三列 */
@media (max-width: 1100px) {
  .moka-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机两列（关键） */
@media (max-width: 768px) {
  .moka-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }
}

/* 超小屏单列 */
@media (max-width: 420px) {
  .moka-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================
   卡片结构（高奢排版）
============================= */
.moka-collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

/* 标题两行省略 */
.moka-card-title {
  margin-top: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.4px;
  color: #2c2c2c;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 价格（淡金色 + 斜体） */
.moka-card-price {
  margin-top: 6px;
  font-size: 15px;
  font-style: italic;
  color: #7b6e60;
}

/* =============================
   图片部分（正方形 + 奢侈品构图）
============================= */
.moka-card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;

  border-radius: 12px;
  background-color: #f6f3ee;

  /* 轻奢浮动 */
  transition: transform .35s ease, box-shadow .35s ease;
}

.moka-card-image-box:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 14px 30px rgba(0,0,0,0.08),
    0 4px 8px rgba(180,150,80,0.12); /* 淡金色柔光 */
}

/* =============================
   主图 + hover 图
============================= */
.moka-card-img-main,
.moka-card-img-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: opacity .4s ease, transform .45s ease;
}

/* 默认：主图显示 */
.moka-card-img-main { opacity: 1; }

/* 默认：hover 隐藏 */
.moka-card-img-hover { opacity: 0; }

/* PC hover 切换 */
.moka-card-image-box:hover .moka-card-img-main {
  opacity: 0;
  transform: scale(1.03);
}

.moka-card-image-box:hover .moka-card-img-hover {
  opacity: 1;
  transform: scale(1.03);
}

/* =============================
   Mobile 手势切图（无 hover）
============================= */
@media (max-width: 768px) {
  .moka-card-image-box {
    touch-action: pan-y;
  }



/* =============================
   五行按钮优化（柔和 pill 风格）
============================= */
.moka-element-filter a {
  padding: 8px 16px;
  border-radius: 50px;
  background: #f0e9df;
  color: #6e645b;
  font-size: 13px;
  letter-spacing: .04em;
  transition: .25s ease;
}

.moka-element-filter a.active {
  background: #c7b293;
  color: white;
}

.moka-element-filter a:hover {
  background: #d7c5ae;
}

/* =============================
   统一页面背景（柔和米色）
============================= */
.moka-collection-wrapper {
  background-color: #f5f1e8;
  padding-bottom: 80px;
}

/* =============================
   让内容更紧致高端
============================= */
.moka-collection-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: .22em;
}

.moka-collection-subtitle {
  color: #776c5f;
  font-size: 14px;
  letter-spacing: .06em;
}

/* ============================================================
   MOKA — 强制手机双列显示（最高优先级）
   彻底覆盖 Skeleton / Dawn / 系统默认卡片宽度
============================================================ */

@media (max-width: 768px) {

  /* 强制集合网格为 2 列 */
  .moka-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
  }

  /* 防止卡片被主题设置为 width:100% */
  .moka-collection-card,
  .moka-card,
  .product-item,
  .product-card,
  .grid__item,
  .collection-product {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 防止图片 wrapper 被 Skeleton 主题强制 100% 宽度*/
  .moka-card-image-box,
  .media,
  .media-wrapper,
  .product-image {
    width: 100% !important;
  }
}

  /* 移动端：轻触即可切换第二张 */
  .moka-card-image-box:active .moka-card-img-main {
    opacity: 0;
    transform: scale(1.02);
  }
  .moka-card-image-box:active .moka-card-img-hover {
    opacity: 1;
    transform: scale(1.02);
  }
}
/* 手机端滑动时也可以切换到第二张图 */
.moka-card-image-box.moka-swipe-alt .moka-card-img-main {
  opacity: 0;
}

.moka-card-image-box.moka-swipe-alt .moka-card-img-hover {
  opacity: 1;
}

{% comment %}
MOKA — Custom Luxury Collection Template
High-end Sort Bar + Gold Divider (Hoseiki Style)
{% endcomment %}

<link rel="stylesheet" href="{{ 'moka-collection.css' | asset_url }}">

<section class="moka-collection-wrapper">

  {% comment %} HERO BANNER {% endcomment %}
  {% if section.settings.hero_image %}
    <div class="moka-collection-hero"
      style="background-image:url('{{ section.settings.hero_image | image_url: width: 2400 }}');">
      <div class="moka-collection-hero-inner">
        <h1 class="moka-hero-title">{{ section.settings.hero_title }}</h1>
        <p class="moka-hero-sub">{{ section.settings.hero_subtitle }}</p>
      </div>
    </div>
  {% endif %}

  {# ====================== #}
  {#  GOLD DIVIDER 1        #}
  {# ====================== #}
  <div class="moka-divider"></div>

  {# ====================== #}
  {# SORT BAR (Luxury)      #}
  {# ====================== #}
  <div class="moka-toolbar">

    <div class="moka-toolbar-left">
      <span class="moka-sort-label">Sort by</span>
      <form method="get">
        <select class="moka-sort-select" name="sort_by" onchange="this.form.submit()">
          {% for option in collection.sort_options %}
            <option value="{{ option.value }}" {% if option.value == collection.sort_by %}selected{% endif %}>
              {{ option.name }}
            </option>
          {% endfor %}
        </select>
      </form>
    </div>

  </div>

  {# ====================== #}
  {#  GOLD DIVIDER 2        #}
  {# ====================== #}
  <div class="moka-divider"></div>

  {% comment %} PRODUCT GRID {% endcomment %}
  {% paginate collection.products by 24 %}
    <div class="moka-grid">

      {% for product in collection.products %}
        {% render 'moka-collection-card', product: product %}
      {% endfor %}

    </div>

    {{ paginate | default_pagination }}
  {% endpaginate %}

</section>

{% schema %}
{
  "name": "MOKA Collection",
  "settings": [
    {
      "type": "image_picker",
      "id": "hero_image",
      "label": "Hero banner"
    },
    {
      "type": "text",
      "id": "hero_title",
      "label": "Hero title",
      "default": "Discover the Five Elements"
    },
    {
      "type": "text",
      "id": "hero_subtitle",
      "label": "Hero subtitle",
      "default": "Curated with Taoist balance and modern refinement"
    }
  ]
}
{% endschema %}

/* ============================================================
   MOKA — Luxury Sort Bar (Clean Version)
   仅美化 Sort by，不动其它功能
============================================================ */

.moka-toolbar {
  width: 100%;
  max-width: 1120px;
  margin: 28px auto 32px;
  padding: 12px 24px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  border-top: 1px solid rgba(180,160,120,0.35);
  border-bottom: 1px solid rgba(180,160,120,0.35);
  background-color: rgba(245,241,232,0.65); /* 柔和米色半透明 */
}

.moka-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moka-sort-label {
  font-size: 13px;
  color: #6c6458;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 胶囊下拉框 */
.moka-sort-select {
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  background: #f8f4ee;
  border: 1px solid rgba(180,160,120,0.55);

  font-size: 14px;
  color: #3c3a37;
  appearance: none;
  outline: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%238a7e6b' height='12' viewBox='0 0 20 20' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.338 4.484-4.338L16 8.781l-6 5.813-6-5.813z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 手机端位置稍微收紧 */
@media (max-width: 768px) {
  .moka-toolbar {
    padding: 10px 16px;
    justify-content: space-between;
  }

  .moka-sort-select {
    width: 100%;
  }
}

/* =============================
   SORT BAR 高奢浮现动画
============================= */
.moka-toolbar-sticky {
  animation: mokaFadeSlide .6s ease forwards;
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes mokaFadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================================
   MOKA Sort Bar — 强制覆盖 Skeleton 下拉菜单样式
============================================================ */

/* 外层容器增加高优先级 */
.moka-toolbar-left select.moka-sort-select:where(*) {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background: #f8f4ed !important;
  border: 1.6px solid rgba(180,160,120,0.55) !important;
  border-radius: 40px !important;

  padding: 10px 40px 10px 16px !important;
  font-size: 14px !important;
  color: #4a453d !important;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%238a7e6b' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548l4.484 4.338 4.484-4.338L16 8.781l-6 5.813-6-5.813z'/></svg>");
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;

  cursor: pointer !important;
  transition: all .28s ease !important;
}

/* focus 动画 */
.moka-toolbar-left select.moka-sort-select:focus {
  border-color: #c8b28f !important;
  box-shadow: 0 0 0 4px rgba(200,180,120,0.20) !important;
  background-color: #fdfaf5 !important;
  outline: none !important;
}

/* 下拉菜单（Safari + Chrome 都有效） */
.moka-toolbar-left select.moka-sort-select option {
  background: #ffffff !important;
  color: #4a453d !important;
  padding: 10px !important;
}

/* Hover 效果（部分浏览器支持） */
.moka-toolbar-left select.moka-sort-select option:hover {
  background: #f3ecdd !important;
}

/* ==========================================================
   MOKA — 手机端隐藏 5 items & 五行标签
   ========================================================== */

/* 隐藏右侧 items 计数 */
@media (max-width: 768px) {
  .moka-toolbar-right,
  .moka-toolbar-right *,
  .product-count,
  .collection__product-count {
    display: none !important;
  }
}

/* 隐藏 Skeleton 自动插入的 facets (五行按钮) */
@media (max-width: 768px) {
  .moka-element-filter,
  .moka-element-filter *,
  .facets-container,
  .mobile-facets__inner,
  .mobile-facets,
  .facets-wrapper,
  .facets,
  .facet-filters,
  .facet-filters__sort,
  .collection-filters,
  .product-filters {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* 移除商品标题 hover 下划线 */
.moka-card-title,
.moka-card-title:hover,
.moka-collection-card a,
.moka-collection-card a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 商品价格 — 爱马仕轻奢风 */
.moka-card-price {
  margin-top: 6px !important;
  font-size: 15px !important;
  font-style: italic !important;
  font-weight: 300 !important;        /* 更轻更高级 */
  color: #8f7b67 !important;          /* 爱马仕金棕色 */
  letter-spacing: 0.03em !important;  /* 精致微字距 */
  font-family: 'Playfair Display', serif !important;  
}

.moka-card-title {
  margin-bottom: 5px !important;
}

/* =============================
   HIGH-END HOVER EFFECT (Luxury)
   ============================= */

/* 鼠标移入整个卡片微浮动 */
.moka-collection-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.moka-collection-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 38px rgba(0,0,0,0.10),
    0 6px 14px rgba(180,150,90,0.18); /* 淡金色柔光 */
}

/* 图片 Hover 放大 + 更丝滑 */
.moka-card-image-box img {
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), opacity .35s ease;
}

.moka-card-image-box:hover .moka-card-img-main {
  transform: scale(1.06);
  opacity: 0;
}

.moka-card-image-box:hover .moka-card-img-hover {
  transform: scale(1.06);
  opacity: 1;
}

