@charset "UTF-8";
/*
    自定義在最下面
*/
/* Font Weight */
/* Width */
/* Height */
/* Display */
/* Margin */
/* Padding */
/* Cursor */
/* Background Color */
/* Color */
/* Text Limit */
/* 毛玻璃 */
/******************  自定義  ******************/
/* Color */
/* Background Color */
/* Border */
/* Font Size */
/* Heading Desktop */
/* Heading Mobile */
/* Extra Large */
/* Large */
/* Medium */
/* Regular */
/* Small */
/* Small */
/* Button */
:root {
  /* Primary Color */
  --pc-950: #04334D;
  --pc-900: #065074;
  --pc-800: #00608C;
  --pc-700: #0072AA;
  --pc-600: #0090D3;
  --pc-500: #06BAFE;
  --pc-400: #2DC9FF;
  --pc-300: #75DBFF;
  --pc-200: #B6EAFF;
  --pc-100: #DEF3FF;
  --pc-50: #EFFAFF;
  /* Secondary Color */
  --sc-950: #461B02;
  --sc-900: #7A350D;
  --sc-800: #94400C;
  --sc-700: #B75506;
  --sc-600: #DD7902;
  --sc-500: #F9A107;
  --sc-400: #FFC321;
  --sc-300: #FFD74A;
  --sc-200: #FFE888;
  --sc-100: #FFF5C6;
  --sc-50: #FFFBEB;
  /* Neutral Color */
  --nc-950: #1F1B1A;
  --nc-900: #463F3D;
  --nc-800: #504743;
  --nc-700: #5C514C;
  --nc-600: #71665D;
  --nc-500: #85796D;
  --nc-400: #94897B;
  --nc-300: #ACA498;
  --nc-200: #CAC6BE;
  --nc-100: #E4E1DD;
  --nc-50: #F4F4F2;
  /* Black */
  --bc-950: #231815;
  --bc-900: #503B33;
  --bc-800: #5B4338;
  --bc-700: #6B4E3D;
  --bc-600: #856549;
  --bc-500: #9B7B57;
  --bc-400: #AA8D65;
  --bc-300: #BDA987;
  --bc-200: #D5CAB3;
  --bc-100: #E9E4D8;
  --bc-50: #F6F5F0;
  /* White */
  --wc-950: #292929;
  --wc-900: #3D3D3D;
  --wc-800: #464646;
  --wc-700: #525252;
  --wc-600: #656565;
  --wc-500: #7C7C7C;
  --wc-400: #989898;
  --wc-300: #BDBDBD;
  --wc-200: #DCDCDC;
  --wc-100: #EFEFEF;
  --wc-50: #FFFFFF;
  /* Green Color */
  --gc-500: #51C128;
  /* Font-Size */
  /* Heading Desktop */
  --text-hd-h1: 56px;
  --text-hd-h1--line-height: 120%;
  --text-hd-h2: 48px;
  --text-hd-h2--line-height: 120%;
  --text-hd-h3: 40px;
  --text-hd-h3--line-height: 120%;
  --text-hd-h4: 36px;
  --text-hd-h4--line-height: 130%;
  --text-hd-h5: 24px;
  --text-hd-h5--line-height: 140%;
  --text-hd-h6: 20px;
  --text-hd-h6--line-height: 140%;
  /* Heading Mobile */
  --text-hm-h1: 40px;
  --text-hm-h1--line-height: 120%;
  --text-hm-h2: 36px;
  --text-hm-h2--line-height: 130%;
  --text-hm-h3: 32px;
  --text-hm-h3--line-height: 130%;
  --text-hm-h4: 24px;
  --text-hm-h4--line-height: 150%;
  --text-hm-h5: 20px;
  --text-hm-h5--line-height: 140%;
  --text-hm-h6: 18px;
  --text-hd-h6--line-height: 150%;
  /* Extra Large */
  --text-xl: 24px;
  --text-xl--line-height: 140%;
  /* Large */
  --text-lg: 20px;
  --text-lg--line-height: 140%;
  /* Medium */
  --text-md: 18px;
  --text-md--line-height: 140%;
  /* Regular */
  --text-base: 16px;
  --text-base--line-height: 150%;
  /* Small */
  --text-sm: 14px;
  --text-sm--line-height: 150%;
  /* Tiny */
  --text-xs: 12px;
  --text-xs--line-height: 150%;
  /* Radius */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-40: 40px;
  --radius-80: 80px;
  --radius-100: 100px;
  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-18: 18px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-56: 56px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-120: 120px;
  --spacing-240: 240px;
}

/* 外框寬 1200 又是 flex 子項，min-width 預設吃內容寬；不歸 0 的話窄螢幕會被不換行的分類列與大圖輪播撐寬 */
.blocks-wrap__container.shop-wrap,
.blocks-wrap__container.shop-detail-wrap {
  min-width: 0;
}

/* 分類列與卡片上下只隔 16，容器預設是 24，所以自己包一層 */
.shop-body {
  /* 容器 .blocks-wrap__container 是 align-items: center，不給 100% 這塊會收縮成內容寬然後居中 */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  /* 容器只有縱向 padding，不補橫向的會貼邊 */
}
@media (max-width: 1200px) {
  .shop-body {
    padding: 0 var(--spacing-16);
  }
}

.shop-list {
  display: flex;
  flex-wrap: wrap;
  /* 左右 12.5 不在 spacing 階上照稿寫死，用固定值而非 justify-between，最後一排才不會被撐開 */
  row-gap: var(--spacing-16);
  column-gap: 12.5px;
}
.shop-list__card {
  /* 一排 5 個；寫死 230px 的話，容器因捲軸窄於 1200 時會掉成一排 4 張 */
  width: calc((100% - 50px) / 5);
  padding: var(--spacing-16);
  display: flex;
  flex-direction: column;
  /* 13 不在 spacing 階上，照設計稿寫死 */
  gap: 13px;
  align-items: center;
  text-decoration: none;
  background: var(--wc-50);
  border: 1px solid var(--nc-100);
  border-radius: var(--radius-8);
}
.shop-list__image {
  /* 稿上是 198，但卡片 230 扣掉 padding 32 與 border 2 只剩 196，寫死會溢出；照 Phase 1 用 100% */
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-8);
  background: var(--nc-50);
}
.shop-list__title {
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  font-weight: bold;
  color: var(--nc-900);
  text-align: center;
}
.shop-list__price {
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  font-weight: bold;
  color: var(--pc-500);
}
.shop-list__soldout {
  font-size: var(--text-sm) !important;
  line-height: var(--text-sm--line-height);
  color: var(--nc-500);
}
.shop-list {
  /* 0 筆時出字，否則「過濾正確」與「API 掛了」在畫面上長得一模一樣 */
}
.shop-list__empty {
  width: 100%;
  padding: var(--spacing-48) 0;
  text-align: center;
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  color: var(--nc-500);
}
.shop-list {
  /* 1200 以下固定 230px 自動換行，768 以下才一排兩張 */
}
@media (max-width: 1200px) {
  .shop-list {
    column-gap: var(--spacing-16);
  }
  .shop-list__card {
    width: 230px;
  }
}
@media (max-width: 768px) {
  .shop-list__card {
    width: calc((100% - var(--spacing-16)) / 2);
    padding: var(--spacing-12);
    gap: var(--spacing-8);
  }
}

.shop-types {
  /* 外層 .shop-body 是直排、預設 stretch，這一排自己靠左 */
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  /* 白底藍框、hover 光暈、選中時藍底白字全部由 secondary-btn 給（選中狀態是它內建的 .active，不是 --active） */
}
.shop-types__btn {
  background: var(--wc-50);
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  color: var(--pc-500);
  border: 1px solid var(--pc-500);
  border-radius: var(--radius-8);
  width: auto !important;
  height: 40px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.shop-types__btn:hover {
  box-shadow: 0 0 5px var(--pc-500);
}
.shop-types__btn.active {
  background: var(--pc-500);
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  color: var(--wc-50);
}
.shop-types__btn {
  padding: var(--spacing-8) var(--spacing-16);
}
.shop-types {
  /* 窄螢幕不換行、改左右滑；max-width 讓這一排被限制在父層寬度內，overflow-x 才真的出捲軸；左右 16 已由 .shop-body 給 */
}
@media (max-width: 1200px) {
  .shop-types {
    max-width: 100%;
    gap: var(--spacing-8);
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .shop-types__btn {
    background: var(--wc-50);
    font-size: var(--text-base) !important;
    line-height: var(--text-base--line-height);
    color: var(--pc-500);
    border: 1px solid var(--pc-500);
    border-radius: var(--radius-8);
    width: auto !important;
    height: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .shop-types__btn:hover {
    box-shadow: 0 0 5px var(--pc-500);
  }
  .shop-types__btn.active {
    background: var(--pc-500);
    font-size: var(--text-base) !important;
    line-height: var(--text-base--line-height);
    color: var(--wc-50);
  }
  .shop-types__btn {
    flex-shrink: 0;
  }
}

/* 疊兩個 class 且 shop.css 在 site.css 之後載入，才壓得過 frame.scss 的 .main .blocks-wrap__container */
.blocks-wrap__container.shop-detail-wrap {
  gap: var(--spacing-32);
  padding: var(--spacing-32) 0 var(--spacing-48);
}

.shop-detail-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}

.shop-detail {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-48);
}
.shop-detail__gallery {
  width: 576px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}
.shop-detail {
  /* slick 還沒 init（或只有一張圖不 init）時只露第一張，否則多張圖會疊成一串 */
}
.shop-detail__slides:not(.slick-initialized) .shop-detail__slide + .shop-detail__slide {
  display: none;
}
.shop-detail__image {
  width: 100%;
  border-radius: var(--radius-16);
  /* 比例不固定時長圖會把右欄拉長；object-fit 讓它裁切而不是撐高 */
  aspect-ratio: 1/1;
  object-fit: cover;
}
.shop-detail {
  /* 定位靠 slick.css 給 .slick-slider 的 position: relative */
}
.shop-detail__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* .slick-list 有 transform、自成一層，1 就蓋得過圖；寫大了會蓋過頁首 */
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: var(--radius-100);
  background: color-mix(in srgb, var(--wc-50) 80%, transparent);
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  color: var(--nc-900);
  cursor: pointer;
}
.shop-detail__arrow--prev {
  left: var(--spacing-16);
}
.shop-detail__arrow--next {
  right: var(--spacing-16);
}
.shop-detail__arrow {
  /* 不用 display: none——slick init 時會對箭頭呼叫 .show() 寫上行內 display，第一張的左箭頭會藏不住 */
}
.shop-detail__arrow.slick-disabled {
  visibility: hidden;
}
.shop-detail {
  /* slick 接手前縮圖是 width:100%，會疊成一串 576 的大方塊；窄螢幕載入（縮圖不 init）後拉寬也靠這條藏住 */
}
.shop-detail__thumbs:not(.slick-initialized) {
  display: none;
}
.shop-detail__thumbs {
  /* slick 把每格寬度設成 576 ÷ 5，間距用 padding 吃在格子裡，用 margin 的話第 5 格會被擠出去 */
}
.shop-detail__thumbs .slick-slide {
  padding-right: var(--spacing-16);
}
.shop-detail__thumbs .slick-current .shop-detail__thumb {
  border-color: var(--pc-300);
}
.shop-detail__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: var(--radius-8);
  cursor: pointer;
}
.shop-detail__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}
.shop-detail__head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}
.shop-detail__title {
  font-size: var(--text-hd-h4) !important;
  line-height: var(--text-hd-h4--line-height);
  font-weight: bold;
  color: var(--nc-900);
}
.shop-detail__price {
  font-size: var(--text-hd-h5) !important;
  line-height: var(--text-hd-h5--line-height);
  font-weight: bold;
  color: var(--nc-900);
}
.shop-detail__stock {
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  color: var(--nc-500);
}
.shop-detail__divider {
  width: 100%;
  height: 1px;
  background: var(--nc-100);
}
.shop-detail {
  /* 以下兩塊的 markup 之後才補（數量器 ＋ 加入購物車鈕） */
}
.shop-detail__qty {
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
}
.shop-detail__qty-label {
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  font-weight: bold;
}
.shop-detail__submit {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-8) var(--spacing-16);
  cursor: pointer;
  background: var(--pc-500);
  border-radius: var(--radius-8);
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
  font-weight: bold;
  color: var(--wc-50);
  /* 稿沒畫售完狀態，不給樣式的話售完的鈕跟可按的一模一樣 */
}
.shop-detail__submit.--disabled {
  background: var(--nc-200);
  cursor: not-allowed;
}
.shop-detail__intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  padding: var(--spacing-32);
  background: var(--wc-50);
  border: 1px solid var(--nc-100);
  border-radius: var(--radius-8);
}
.shop-detail__intro-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}
.shop-detail__intro-title {
  font-size: var(--text-hd-h5) !important;
  line-height: var(--text-hd-h5--line-height);
  font-weight: bold;
  color: var(--nc-900);
}
.shop-detail__intro-line {
  width: 96px;
  height: 2px;
  background: var(--pc-500);
}
.shop-detail {
  /* setCkImg 會拿掉圖片的寬高屬性、setOemToYt 插的是 560 寬的 iframe，不限寬會撐破白框 */
}
.shop-detail__intro-content {
  font-size: var(--text-base) !important;
  line-height: var(--text-base--line-height);
}
.shop-detail__intro-content img {
  max-width: 100%;
}
.shop-detail__intro-content iframe {
  width: 100%;
  height: 600px;
}
.shop-detail {
  /* 左右 16 加在內容自己身上（麵包屑元件另有 16），不加在容器，兩者才對齊 */
}
@media (max-width: 1200px) {
  .shop-detail {
    flex-direction: column;
    gap: var(--spacing-24);
    padding: 0 var(--spacing-16);
  }
  .shop-detail__gallery {
    width: 100%;
  }
  .shop-detail__info {
    width: 100%;
  }
  .shop-detail__thumbs {
    display: none;
  }
  .shop-detail {
    /* 介紹框本身就是白框，左右 16 用寬度讓出來；容器是 align-items: center，會自動置中 */
  }
  .shop-detail__intro {
    width: calc(100% - var(--spacing-16) * 2);
  }
}
@media (max-width: 768px) {
  .shop-detail__intro-content iframe {
    height: 420px;
  }
}
.shop-detail {
  /* 右欄沒有自己的內距，圖文區的左右 16 保留；介紹框去邊撐滿 */
}
@media (max-width: 576px) {
  .shop-detail__title {
    font-size: var(--text-hd-h5) !important;
    line-height: var(--text-hd-h5--line-height);
    font-weight: bold;
  }
  .shop-detail__price {
    font-size: var(--text-hd-h6) !important;
    line-height: var(--text-hd-h6--line-height);
    font-weight: bold;
  }
  .shop-detail__intro {
    width: 100%;
    border: none;
  }
  .shop-detail__intro-content iframe {
    height: 300px;
  }
}
