@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Noto+Serif+TC:wght@400;500&display=swap');
/* 倔咖啡全站共用導覽列 */

.jyue-back-to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #9D8A76;
  border-radius: 2px;
  background: #F8F7F3;
  color: #453D35;
  font: 21px/1 system-ui, sans-serif;
  cursor: pointer;
}

.jyue-back-to-top[hidden] {
  display: none;
}

.jyue-back-to-top:hover {
  background: #EFE8DF;
}

.jyue-back-to-top:focus-visible {
  outline: 2px solid #453D35;
  outline-offset: 3px;
}

header.jyue-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: 76px;
  padding: 20px 4%;
  background: #F8F7F3;
  color: #453D35;
  box-sizing: border-box;
}

.jyue-header .jyue-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 3px;
  color: #453D35;
  text-decoration: none;
  white-space: nowrap;
}

.jyue-header .jyue-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.jyue-header .jyue-nav a {
  margin: 0;
  color: #453D35;
  text-decoration: none;
}

.jyue-header .jyue-desktop-link {
  font-size: 14px;
  white-space: nowrap;
}

.jyue-desktop-link small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}

.jyue-header .jyue-icon,
#jyueClose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 4px;
  margin: 0;
  border: none;
  background: transparent;
  color: #453D35;
  cursor: pointer;
  flex-shrink: 0;
}

.jyue-icon svg,
#jyueClose svg,
.jyue-social svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jyue-header .jyue-icon:hover,
#jyueClose:hover {
  color: #A18D78;
}

/* 選單背景遮罩 */

#jyueOverlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(45, 37, 30, .25);
  opacity: 0;
  transition: opacity .3s ease;
}

#jyueOverlay.is-open {
  opacity: 1;
}

/* 右側滑出式選單 */

#jyueDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: min(380px, 88vw);
  padding: 32px;
  background: #F3EFE8;
  color: #453D35;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}

#jyueDrawer.is-open {
  transform: translateX(0);
}

#jyueDrawer[hidden],
#jyueOverlay[hidden] {
  display: none !important;
}

.jyue-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #D9D0C5;
}

.jyue-drawer-top span {
  font-family: "Songti TC", "Noto Serif TC", serif !important;
  font-size: 25px;
  font-weight: 400 !important;
  font-style: normal;
  letter-spacing: 3px;
  color: #453D35;
  white-space: nowrap;
}

.jyue-menu-links {
  padding: 20px 0;
}

.jyue-menu-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 0;
  color: #453D35;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 2px;
}

.jyue-menu-links a small {
  font-family: Georgia, serif;
  font-size: 10px;
  color: #A18D78;
  letter-spacing: 2px;
}

.jyue-menu-links a:hover {
  color: #A18D78;
}

.jyue-social {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid #D9D0C5;
}

.jyue-social a {
  color: #453D35;
}

.jyue-drawer-footer {
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: #A18D78;
}

/* 手機及平板版 */

@media (max-width: 850px) {

  header.jyue-header {
    padding: 18px 5%;
    min-height: 65px;
  }

  .jyue-header .jyue-logo {
    font-size: 23px;
    letter-spacing: 2px;
  }

  .jyue-header .jyue-nav {
    gap: 12px;
  }

  .jyue-header .jyue-desktop-link {
    display: none;
  }

}

@media (max-width: 380px) {

  .jyue-header .jyue-logo {
    font-size: 19px;
  }

  .jyue-header .jyue-nav {
    gap: 5px;
  }

}

/* 購物袋商品數量標記 */

.jyue-cart-icon {
  position: relative;
}

#jyueCartCount {
  position: absolute;
  top: -2px;
  right: -6px;

  min-width: 17px;
  height: 17px;
  padding: 0 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #8D6B56;
  color: #FFFFFF;

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;

  border-radius: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

#jyueCartCount[hidden] {
  display: none !important;
}
/* 全站頁首統一品牌字體 */

header.jyue-header {
  font-family: 'Noto Serif TC', serif;
  border-bottom: 1px solid #E3DCD3;
}

.jyue-header .jyue-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 3px;
}

.jyue-header .jyue-nav .jyue-desktop-link {
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
}

.jyue-header .jyue-desktop-link small {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #A18D78;
  margin-left: 4px;
}

@media (max-width: 850px) {
  .jyue-header .jyue-logo {
    font-size: 23px;
    letter-spacing: 2px;
  }
}

@media (max-width: 380px) {
  .jyue-header .jyue-logo {
    font-size: 19px;
  }
}
/* 倔咖啡全站品牌字體最終設定 */

header.jyue-header .jyue-logo {
  font-family: 'Marcellus', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 3px !important;
}

header.jyue-header .jyue-nav .jyue-desktop-link {
  font-family: 'Noto Serif TC', 'Songti TC', serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
}

header.jyue-header .jyue-desktop-link small {
  font-family: 'Marcellus', Georgia, serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 1.5px !important;
  color: #A18D78 !important;
}

@media (max-width: 850px) {
  header.jyue-header .jyue-logo {
    font-size: 23px !important;
    letter-spacing: 2px !important;
  }
}

@media (max-width: 380px) {
  header.jyue-header .jyue-logo {
    font-size: 19px !important;
  }
}
/* 防止導覽列與社群圖示異常放大 */
.jyue-header svg,
#jyueDrawer svg {
  width: 23px;
  height: 23px;
  max-width: 23px;
  max-height: 23px;
  flex-shrink: 0;
  color: #453D35;
}

#jyueDrawer[hidden],
#jyueOverlay[hidden] {
  display: none !important;
}
