/*
 * Patisserie Luxe
 * Every rule is deliberately scoped to this theme so other storefronts keep
 * their existing presentation.
 */

/*
 * 色票對應後台「主題設定 → 顏色」。
 *
 * 本模版原本把整套顏色寫死，所以後台改顏色完全沒有反應，連模版卡片的
 * 「套用預設配色」按鈕按下去亦只是寫入資料庫而畫面不變。現在改為讀取
 * templates/front-header.php 輸出的 :root 變數，令後台設定真正生效。
 *
 * 對應關係與 manifest.php 的 default_colors 一致：
 *   --pl-ink    ← 主色 primary_color        （正文、按鈕、邊框重點）
 *   --pl-cream  ← 頁首背景 header_bg_color   （頁面底色，本模版頁首與內文同色）
 *   --pl-paper  ← 主色淺色 primary_light_color（區塊、卡片底色）
 *   --pl-muted  ← 輔助色 accent_color        （次要文字、說明文字）
 * 分隔線及純白沒有對應的後台欄位，維持模版原值。
 *
 * 每個 var() 都保留模版原本的色碼作後備，即使某個變數缺席亦不會走樣。
 * 如需一次過回復模版原本的奶油白配色：後台 → 主題設定 → 模版 →
 * 「糕點精品」卡片 →「套用預設配色」。
 */
body[data-template="patisserie-luxe"] {
  --pl-cream: var(--header-bg, #fafbf5);
  --pl-paper: var(--primary-light, #f4f4ee);
  --pl-ink: var(--primary, #1c1c1c);
  --pl-muted: var(--accent, #6e6b65);
  --pl-line: #d5d5d0;
  --pl-white: #fff;

  /* 以下幾項令後台其餘顏色欄位一樣生效，未設定時全部跟回上面的色票 */
  --pl-btn-bg: var(--btn-bg, var(--pl-ink));
  --pl-btn-text: var(--btn-text, #fff);
  --pl-price: var(--price, var(--pl-ink));
  --pl-footer-bg: var(--footer-bg, var(--pl-cream));
  --pl-footer-text: var(--footer-text, var(--pl-ink));
  --pl-announce-bg: var(--primary, #111);
  --pl-announce-text: var(--btn-text, #fff);
  --pl-gutter: clamp(20px, 3.35vw, 52px);
  --pl-serif: Georgia, "Times New Roman", "Noto Serif TC", serif;
  --pl-sans: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  --pl-header-height: 126px;
  margin: 0;
  overflow-x: clip;
  background: var(--pl-cream);
  color: var(--pl-ink);
  font-family: var(--pl-sans);
  font-weight: 400;
}

body[data-template="patisserie-luxe"] *,
body[data-template="patisserie-luxe"] *::before,
body[data-template="patisserie-luxe"] *::after {
  box-sizing: border-box;
}

/*
 * 連結一律跟隨父層文字顏色，是本模版的設計語言，但只可以套用在本模版
 * 自己輸出的區塊。購物車、結帳、會員中心等頁面沿用系統預設版面，那裡的
 * 文字連結全靠顏色分辨，一旦被改成 color:inherit 就會與正文完全一樣，
 * 訪客分不出哪些字可以按。因此逐個外殼列出，不再全站覆寫。
 */
body[data-template="patisserie-luxe"] .pl-announcement a,
body[data-template="patisserie-luxe"] .pl-header a,
body[data-template="patisserie-luxe"] .pl-search-panel a,
body[data-template="patisserie-luxe"] .pl-mobile-drawer a,
body[data-template="patisserie-luxe"] .pl-footer a,
body[data-template="patisserie-luxe"] .pl-home a,
body[data-template="patisserie-luxe"] .pl-collection-page a,
body[data-template="patisserie-luxe"] .pl-product-detail a,
body[data-template="patisserie-luxe"] a.pl-skip-link {
  color: inherit;
  text-decoration: none;
}

body[data-template="patisserie-luxe"] button,
body[data-template="patisserie-luxe"] input,
body[data-template="patisserie-luxe"] select,
body[data-template="patisserie-luxe"] textarea {
  font: inherit;
}

body[data-template="patisserie-luxe"] button,
body[data-template="patisserie-luxe"] summary {
  -webkit-tap-highlight-color: transparent;
}

body[data-template="patisserie-luxe"] img {
  max-width: 100%;
}

/*
 * 全寬版心只適用於本模版自己重新排版的三個頁面外殼。
 *
 * 本模版只自訂了首頁、列表頁及產品詳情頁，其餘四十多個頁面（購物車、結帳、
 * 會員中心、網誌、聯絡我們、靜態頁等）會沿用系統預設版面。那些頁面的
 * .container 預期有 1200px 版心上限，如果在這裡一併解除，闊螢幕會由左邊
 * 拉到右邊，版面完全散開。因此只針對本模版的外殼生效。
 */
body[data-template="patisserie-luxe"] .pl-home .container,
body[data-template="patisserie-luxe"] .pl-collection-page .container,
body[data-template="patisserie-luxe"] .pl-product-detail .container {
  width: 100%;
  max-width: none;
  padding-right: var(--pl-gutter);
  padding-left: var(--pl-gutter);
}

body[data-template="patisserie-luxe"] .pl-visually-hidden,
body[data-template="patisserie-luxe"] .pl-skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-template="patisserie-luxe"] .pl-skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--pl-white);
  color: var(--pl-ink);
  border: 1px solid var(--pl-ink);
}

body[data-template="patisserie-luxe"] :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body[data-template="patisserie-luxe"].pl-scroll-lock {
  overflow: hidden;
}

/* Announcement and header */
body[data-template="patisserie-luxe"] .pl-announcement {
  height: 43px;
  overflow: hidden;
  background: var(--pl-announce-bg);
  color: var(--pl-announce-text);
  border-bottom: 1px solid var(--pl-announce-bg);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 43px;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-template="patisserie-luxe"] .pl-announcement-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: pl-marquee 28s linear infinite;
}

body[data-template="patisserie-luxe"] .pl-announcement-track span {
  min-width: 100vw;
  padding: 0 42px;
  text-align: center;
}

@keyframes pl-marquee {
  to { transform: translateX(-33.333%); }
}

body[data-template="patisserie-luxe"] .pl-header {
  position: sticky;
  z-index: 900;
  top: 0;
  width: 100%;
  background: rgba(250, 251, 245, .97);
  color: var(--pl-ink);
  border-bottom: 1px solid var(--pl-line);
  backdrop-filter: blur(12px);
}

body[data-template="patisserie-luxe"] .pl-header-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 83px;
  padding: 14px var(--pl-gutter);
}

body[data-template="patisserie-luxe"] .pl-header-side {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-header-side-right {
  justify-content: flex-end;
}

body[data-template="patisserie-luxe"] .pl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  max-width: 290px;
  color: var(--pl-ink);
  font-family: var(--pl-serif);
  font-size: clamp(21px, 2.1vw, 32px);
  line-height: 1;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-logo img {
  display: block;
  width: auto;
  max-height: 54px;
  object-fit: contain;
}

body[data-template="patisserie-luxe"] .pl-text-button,
body[data-template="patisserie-luxe"] .pl-header-action,
body[data-template="patisserie-luxe"] .pl-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-header-action svg,
body[data-template="patisserie-luxe"] .pl-back-to-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

body[data-template="patisserie-luxe"] .pl-cart-link {
  position: relative;
}

body[data-template="patisserie-luxe"] .pl-cart-link b,
body[data-template="patisserie-luxe"] .pl-cart-link .js-cart-count {
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  margin-left: -10px;
  margin-top: -15px;
  background: var(--pl-ink);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}

body[data-template="patisserie-luxe"] .pl-locale-menu,
body[data-template="patisserie-luxe"] .pl-nav-has-children {
  position: relative;
}

body[data-template="patisserie-luxe"] .pl-popover,
body[data-template="patisserie-luxe"] .pl-nav-submenu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 9px);
  left: 0;
  min-width: 178px;
  padding: 8px 0;
  background: var(--pl-cream);
  border: 1px solid var(--pl-line);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .07);
}

body[data-template="patisserie-luxe"] .pl-popover a,
body[data-template="patisserie-luxe"] .pl-nav-submenu a {
  display: block;
  padding: 10px 15px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .06em;
  white-space: nowrap;
}

body[data-template="patisserie-luxe"] .pl-popover a:hover,
body[data-template="patisserie-luxe"] .pl-nav-submenu a:hover,
body[data-template="patisserie-luxe"] .pl-popover a[aria-current="page"] {
  background: var(--pl-paper);
}

body[data-template="patisserie-luxe"] .pl-desktop-nav {
  min-height: 43px;
  padding: 0 var(--pl-gutter);
  border-top: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-desktop-nav > ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(21px, 2.8vw, 48px);
  min-height: 42px;
  padding: 0;
  margin: 0;
  list-style: none;
}

body[data-template="patisserie-luxe"] .pl-desktop-nav li {
  display: flex;
  align-items: center;
  min-width: 0;
}

body[data-template="patisserie-luxe"] .pl-desktop-nav li > a {
  display: flex;
  align-items: center;
  height: 42px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-template="patisserie-luxe"] .pl-desktop-nav li > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}

body[data-template="patisserie-luxe"] .pl-desktop-nav li > a {
  position: relative;
}

body[data-template="patisserie-luxe"] .pl-desktop-nav li > a:hover::after,
body[data-template="patisserie-luxe"] .pl-desktop-nav li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

body[data-template="patisserie-luxe"] .pl-nav-toggle {
  width: 22px;
  height: 32px;
  padding: 0;
  margin-left: -4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-nav-submenu {
  top: 100%;
  left: 50%;
  display: none;
  transform: translateX(-50%);
}

body[data-template="patisserie-luxe"] .pl-nav-mega {
  position: fixed;
  z-index: 1000;
  top: var(--pl-header-height);
  right: 0;
  left: 0;
  display: none;
  max-height: calc(100vh - var(--pl-header-height));
  padding: 38px var(--pl-gutter) 30px;
  overflow-y: auto;
  background: rgba(250, 251, 245, .99);
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .08);
}

body[data-template="patisserie-luxe"] .pl-nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px 50px;
  max-width: 1360px;
  margin: auto;
}

body[data-template="patisserie-luxe"] .pl-nav-mega-column {
  min-width: 0;
}

body[data-template="patisserie-luxe"] .pl-nav-mega a {
  display: block;
  height: auto;
  padding: 5px 0;
  color: var(--pl-muted);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .035em;
  text-transform: none;
  white-space: normal;
}

body[data-template="patisserie-luxe"] .pl-nav-mega .pl-nav-mega-title {
  padding-bottom: 11px;
  margin-bottom: 6px;
  color: var(--pl-ink);
  border-bottom: 1px solid var(--pl-line);
  font-family: var(--pl-serif);
  font-size: 17px;
  letter-spacing: 0;
}

body[data-template="patisserie-luxe"] .pl-nav-mega .pl-nav-mega-view-all {
  max-width: 1360px;
  padding-top: 24px;
  margin: 28px auto 0;
  color: var(--pl-ink);
  border-top: 1px solid var(--pl-line);
  font-size: 10px;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-nav-mega a::after {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-nav-has-children:hover .pl-nav-submenu,
body[data-template="patisserie-luxe"] .pl-nav-has-children.is-open .pl-nav-submenu,
body[data-template="patisserie-luxe"] .pl-nav-has-children:hover .pl-nav-mega,
body[data-template="patisserie-luxe"] .pl-nav-has-children.is-open .pl-nav-mega {
  display: block;
}

body[data-template="patisserie-luxe"] .pl-menu-button {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

body[data-template="patisserie-luxe"] .pl-menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

body[data-template="patisserie-luxe"] .pl-search-panel {
  position: fixed;
  z-index: 1100;
  inset: 0 0 auto;
  background: rgba(250, 251, 245, .99);
  border-bottom: 1px solid var(--pl-line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

body[data-template="patisserie-luxe"] .pl-search-panel-inner {
  display: flex;
  align-items: end;
  gap: 30px;
  max-width: 920px;
  padding: 48px var(--pl-gutter);
  margin: auto;
}

body[data-template="patisserie-luxe"] .pl-search-panel form {
  flex: 1;
}

body[data-template="patisserie-luxe"] .pl-search-panel label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--pl-serif);
  font-size: 30px;
}

body[data-template="patisserie-luxe"] .pl-search-panel form > div,
body[data-template="patisserie-luxe"] .pl-search-panel form {
  position: relative;
}

body[data-template="patisserie-luxe"] .pl-search-panel input {
  width: 100%;
  padding: 13px 42px 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pl-ink);
  border-radius: 0;
  outline: none;
}

body[data-template="patisserie-luxe"] .pl-search-panel form > button {
  position: absolute;
  right: 0;
  bottom: 11px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-search-panel svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

body[data-template="patisserie-luxe"] .pl-panel-close {
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 32px;
  font-weight: 200;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-drawer-backdrop {
  position: fixed;
  z-index: 1190;
  inset: 0;
  background: rgba(0, 0, 0, .38);
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer {
  position: fixed;
  z-index: 1200;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(90vw, 420px);
  overflow-y: auto;
  background: var(--pl-cream);
  color: var(--pl-ink);
  transform: translateX(-101%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer.is-open {
  transform: translateX(0);
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pl-line);
  font-family: var(--pl-serif);
  font-size: 19px;
  letter-spacing: .05em;
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer-head button {
  padding: 4px;
  background: transparent;
  border: 0;
  font-size: 30px;
  font-weight: 200;
}

body[data-template="patisserie-luxe"] .pl-mobile-search {
  display: flex;
  padding: 14px 20px;
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pl-ink);
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-mobile-search button {
  padding: 0 0 0 15px;
  background: transparent;
  border: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav {
  padding: 8px 20px 28px;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-link,
body[data-template="patisserie-luxe"] .pl-mobile-nav-group > summary,
body[data-template="patisserie-luxe"] .pl-mobile-nav-group > a {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--pl-line);
  font-size: 13px;
  letter-spacing: .06em;
  list-style: none;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group > summary {
  position: relative;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group > summary::-webkit-details-marker {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group > summary::after {
  position: absolute;
  right: 2px;
  content: "+";
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group[open] > summary::after {
  content: "−";
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group > a,
body[data-template="patisserie-luxe"] .pl-mobile-nav-group .pl-mobile-nav-link,
body[data-template="patisserie-luxe"] .pl-mobile-nav-group .pl-mobile-nav-group {
  margin-left: 16px;
  font-size: 11px;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-group .pl-mobile-nav-depth-2,
body[data-template="patisserie-luxe"] .pl-mobile-nav-group .pl-mobile-nav-depth-3 {
  margin-left: 30px;
}

body[data-template="patisserie-luxe"] .pl-mobile-nav-view-all {
  font-weight: 600;
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 20px;
  background: var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-mobile-drawer-meta a {
  padding: 12px;
  background: var(--pl-cream);
  font-size: 11px;
  text-align: center;
}

/* Shared editorial controls */
body[data-template="patisserie-luxe"] .pl-eyebrow {
  margin: 0 0 13px;
  color: var(--pl-muted);
  font-size: calc(10px * var(--pl-fs-eyebrow, 1));
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 45px;
  padding: 12px 24px;
  background: var(--pl-btn-bg);
  color: var(--pl-btn-text);
  border: 1px solid var(--pl-btn-bg);
  border-radius: 0;
  font-size: calc(11px * var(--pl-fs-eyebrow, 1));
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

body[data-template="patisserie-luxe"] .pl-button:hover {
  background: transparent;
  color: var(--pl-btn-bg);
}

body[data-template="patisserie-luxe"] .pl-button-light {
  background: #fff;
  color: var(--pl-ink);
  border-color: #fff;
}

body[data-template="patisserie-luxe"] .pl-button-light:hover {
  background: transparent;
  color: #fff;
}

body[data-template="patisserie-luxe"] .pl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: calc(10px * var(--pl-fs-eyebrow, 1));
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Home */
body[data-template="patisserie-luxe"] .pl-home {
  background: var(--pl-cream);
}

body[data-template="patisserie-luxe"] .pl-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(600px, 94svh, 820px);
  overflow: hidden;
  background: #dadbd4;
}

body[data-template="patisserie-luxe"] .pl-hero-slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .75s ease;
}

body[data-template="patisserie-luxe"] .pl-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

body[data-template="patisserie-luxe"] .pl-hero-link,
body[data-template="patisserie-luxe"] .pl-hero-slide picture,
body[data-template="patisserie-luxe"] .pl-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-template="patisserie-luxe"] .pl-hero-slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 7s ease;
}

body[data-template="patisserie-luxe"] .pl-hero-slide.is-active img {
  transform: scale(1.045);
}

body[data-template="patisserie-luxe"] .pl-hero-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8vh var(--pl-gutter) 12vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .5) 100%);
  color: #fff;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-hero-copy {
  max-width: 760px;
}

body[data-template="patisserie-luxe"] .pl-hero-copy h1,
body[data-template="patisserie-luxe"] .pl-hero-copy h2 {
  margin: 0 0 17px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(43px, 5.3vw, 76px) * var(--pl-fs-hero, 1));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}

body[data-template="patisserie-luxe"] .pl-hero-copy p {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: calc(14px * var(--pl-fs-hero, 1));
  line-height: 1.7;
}

body[data-template="patisserie-luxe"] .pl-hero-controls {
  position: absolute;
  z-index: 5;
  right: var(--pl-gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

body[data-template="patisserie-luxe"] .pl-hero-controls > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-hero-dots {
  display: flex;
  gap: 8px;
}

body[data-template="patisserie-luxe"] .pl-hero-dots button {
  width: 22px;
  height: 1px;
  padding: 5px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .45);
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-hero-dots button.is-active {
  border-color: #fff;
  border-top-width: 2px;
}

body[data-template="patisserie-luxe"] .pl-hero-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e8e5dc, var(--pl-cream) 45%, #dedbd1);
}

body[data-template="patisserie-luxe"] .pl-hero-fallback-inner {
  max-width: 760px;
  padding: var(--pl-gutter);
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-hero-fallback h1 {
  margin: 0 0 20px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(50px, 7vw, 96px) * var(--pl-fs-hero, 1));
  font-weight: 400;
  line-height: .98;
}

body[data-template="patisserie-luxe"] .pl-hero-fallback p:not(.pl-eyebrow) {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--pl-muted);
  line-height: 1.8;
}

body[data-template="patisserie-luxe"] .pl-home-notice {
  padding: 15px var(--pl-gutter);
  background: var(--pl-paper);
  border-bottom: 1px solid var(--pl-line);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-intro {
  max-width: 900px;
  padding: clamp(76px, 9vw, 135px) 30px;
  margin: auto;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-intro h2 {
  margin: 0 auto 22px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(34px, 4.2vw, 58px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  line-height: 1.15;
}

body[data-template="patisserie-luxe"] .pl-intro > p:not(.pl-eyebrow) {
  max-width: 680px;
  margin: 0 auto 26px;
  color: var(--pl-muted);
  font-size: calc(14px * var(--pl-fs-body, 1));
  line-height: 1.9;
}

body[data-template="patisserie-luxe"] .pl-feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  min-height: 610px;
  background: var(--pl-paper);
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-feature-media,
body[data-template="patisserie-luxe"] .pl-feature-media a,
body[data-template="patisserie-luxe"] .pl-feature-media picture,
body[data-template="patisserie-luxe"] .pl-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-template="patisserie-luxe"] .pl-feature-media img {
  min-height: 610px;
  object-fit: cover;
}

body[data-template="patisserie-luxe"] .pl-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(54px, 7vw, 110px);
}

body[data-template="patisserie-luxe"] .pl-feature-copy h2 {
  margin: 0 0 23px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(35px, 4vw, 56px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  line-height: 1.1;
}

body[data-template="patisserie-luxe"] .pl-feature-copy > p:not(.pl-eyebrow) {
  margin: 0 0 30px;
  color: var(--pl-muted);
  font-size: calc(14px * var(--pl-fs-body, 1));
  line-height: 1.85;
}

body[data-template="patisserie-luxe"] .pl-home-section {
  padding: clamp(72px, 8.5vw, 128px) var(--pl-gutter);
}

body[data-template="patisserie-luxe"] .pl-home-section + .pl-home-section {
  border-top: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

body[data-template="patisserie-luxe"] .pl-section-heading h2 {
  margin: 0 0 8px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(34px, 3.6vw, 52px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  line-height: 1.1;
}

body[data-template="patisserie-luxe"] .pl-section-heading > div > p:not(.pl-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--pl-muted);
  font-size: calc(13px * var(--pl-fs-body, 1));
  line-height: 1.7;
}

body[data-template="patisserie-luxe"] .pl-section-heading-centered {
  justify-content: center;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-section-heading-centered > div {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: center;
}

body[data-template="patisserie-luxe"] .pl-section-heading-centered .pl-text-link {
  margin-top: 24px;
}

body[data-template="patisserie-luxe"] .pl-product-rail-wrap {
  position: relative;
}

body[data-template="patisserie-luxe"] .pl-product-rail {
  display: grid;
  grid-auto-columns: calc((100% - 48px) / 3);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  padding: 0 0 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body[data-template="patisserie-luxe"] .pl-product-rail::-webkit-scrollbar {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-product-rail > .product-card {
  min-width: 0;
  scroll-snap-align: start;
}

body[data-template="patisserie-luxe"] .pl-rail-arrow {
  position: absolute;
  z-index: 5;
  top: min(15vw, 180px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--pl-cream);
  color: var(--pl-ink);
  border: 1px solid var(--pl-line);
  border-radius: 50%;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-rail-prev { left: -20px; }
body[data-template="patisserie-luxe"] .pl-rail-next { right: -20px; }

body[data-template="patisserie-luxe"] .pl-category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--pl-line);
  border: 1px solid var(--pl-line);
}

/*
 * 分類磚維持正方形比例，但要有高度上限。
 *
 * 分類磚是兩欄全寬排列，正方形比例會令每一格的高度等於半個視窗闊度：
 * 1600px 闊的螢幕每格高約 740px，兩格已經佔滿整個首屏。分類未上載圖片時
 * 更加會變成兩大塊灰色。加上高度上限之後，闊螢幕會自動收成橫向長方形，
 * 圖片本身已經是 object-fit:cover，不會變形。
 */
body[data-template="patisserie-luxe"] .pl-category-card {
  position: relative;
  min-height: 0;
  max-height: clamp(300px, 40vh, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pl-paper);
}

body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 1),
body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 2) {
  grid-column: auto;
  min-height: 0;
}

body[data-template="patisserie-luxe"] .pl-category-card img,
body[data-template="patisserie-luxe"] .pl-category-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

body[data-template="patisserie-luxe"] .pl-category-placeholder {
  background: linear-gradient(135deg, #e2e0d8, #f5f4ed);
}

body[data-template="patisserie-luxe"] .pl-category-card:hover img {
  transform: scale(1.035);
}

body[data-template="patisserie-luxe"] .pl-category-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .32));
  color: #fff;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-category-label strong {
  font-family: var(--pl-serif);
  font-size: calc(clamp(25px, 3vw, 44px) * var(--pl-fs-heading, 1));
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-category-label small {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: calc(9px * var(--pl-fs-eyebrow, 1));
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-template="patisserie-luxe"] .pl-story {
  display: grid;
  grid-template-columns: minmax(300px, .74fr) minmax(0, 1.26fr);
  align-items: center;
  min-height: 760px;
  padding: clamp(84px, 10vw, 155px) var(--pl-gutter);
  background: var(--pl-paper);
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-story-copy {
  max-width: 520px;
  padding: 20px clamp(30px, 6vw, 100px) 20px 0;
}

body[data-template="patisserie-luxe"] .pl-story-copy h2 {
  margin: 0 0 26px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(38px, 4.3vw, 62px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  line-height: 1.08;
}

body[data-template="patisserie-luxe"] .pl-story-copy > p:not(.pl-eyebrow) {
  margin: 0 0 34px;
  color: var(--pl-muted);
  font-size: calc(14px * var(--pl-fs-body, 1));
  line-height: 1.9;
}

body[data-template="patisserie-luxe"] .pl-story-media {
  position: relative;
  min-height: min(54vw, 720px);
}

body[data-template="patisserie-luxe"] .pl-story-image {
  position: absolute;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #e3e1d9;
}

body[data-template="patisserie-luxe"] .pl-story-image-1 {
  top: 0;
  right: 0;
  width: 68%;
  height: 82%;
}

body[data-template="patisserie-luxe"] .pl-story-image-2 {
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 48%;
  height: 58%;
  border: 12px solid var(--pl-paper);
}

body[data-template="patisserie-luxe"] .pl-story-image picture,
body[data-template="patisserie-luxe"] .pl-story-image img {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-template="patisserie-luxe"] .pl-story-image img {
  object-fit: cover;
}

body[data-template="patisserie-luxe"] .pl-story-media-single .pl-story-image-1 {
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-template="patisserie-luxe"] .pl-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--pl-line);
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-promo-card {
  background: var(--pl-cream);
}

body[data-template="patisserie-luxe"] .pl-promo-card-wide {
  grid-column: 1 / -1;
}

body[data-template="patisserie-luxe"] .pl-promo-card-wide > a,
body[data-template="patisserie-luxe"] .pl-promo-card-wide.pl-promo-card-unlinked {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: stretch;
}

body[data-template="patisserie-luxe"] .pl-promo-card-wide picture,
body[data-template="patisserie-luxe"] .pl-promo-card-wide img {
  height: min(66vw, 760px);
}

body[data-template="patisserie-luxe"] .pl-promo-card-wide > div,
body[data-template="patisserie-luxe"] .pl-promo-card-wide > a > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card {
  grid-column: 1 / -1;
}

body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: stretch;
}

body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card picture,
body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card img {
  height: 100%;
  min-height: 540px;
}

body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card > a > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body[data-template="patisserie-luxe"] .pl-promo-card > a {
  display: block;
}

body[data-template="patisserie-luxe"] .pl-promo-card picture,
body[data-template="patisserie-luxe"] .pl-promo-card img {
  display: block;
  width: 100%;
}

body[data-template="patisserie-luxe"] .pl-promo-card img {
  height: min(50vw, 680px);
  object-fit: cover;
}

body[data-template="patisserie-luxe"] .pl-promo-card > div,
body[data-template="patisserie-luxe"] .pl-promo-card > a > div {
  padding: clamp(30px, 4vw, 64px);
}

body[data-template="patisserie-luxe"] .pl-promo-card h2 {
  margin: 0 0 12px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(30px, 3.4vw, 48px) * var(--pl-fs-heading, 1));
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-promo-card p {
  margin: 0 0 20px;
  color: var(--pl-muted);
  font-size: calc(13px * var(--pl-fs-body, 1));
  line-height: 1.75;
}

body[data-template="patisserie-luxe"] .pl-brand-strip {
  padding: 70px var(--pl-gutter);
  text-align: center;
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-brand-strip h2 {
  margin: 0 0 38px;
  font-family: var(--pl-serif);
  font-size: calc(32px * var(--pl-fs-heading, 1));
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-brand-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 60px;
}

body[data-template="patisserie-luxe"] .pl-brand-strip a {
  display: grid;
  place-items: center;
  width: 110px;
  height: 60px;
}

body[data-template="patisserie-luxe"] .pl-brand-strip img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
}

body[data-template="patisserie-luxe"] .pl-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-trust-strip article {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 145px;
  padding: 38px clamp(20px, 3vw, 48px);
  border-right: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-trust-strip article:last-child {
  border-right: 0;
}

body[data-template="patisserie-luxe"] .pl-trust-strip article > span {
  font-size: 22px;
  filter: grayscale(1);
}

body[data-template="patisserie-luxe"] .pl-trust-strip h3 {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-trust-strip p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Product cards: one consistent, restrained treatment everywhere */
body[data-template="patisserie-luxe"] .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-template="patisserie-luxe"] .product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/*
 * 產品相片底色（卡片嘅淺色框）。--pl-card-bg 由 header.php 按後台
 * 「模版 → 進入首頁設定 → 產品卡片」嘅色板輸出；未設定時回落 --pl-paper
 * （主色淺色），令未改過設定嘅店舖外觀完全不變。
 */
body[data-template="patisserie-luxe"] .product-card .pc-media {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pl-card-bg, var(--pl-paper)) !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-media > a,
body[data-template="patisserie-luxe"] .product-card .pc-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

/*
 * 相片四周留白＝淺色框嘅粗幼度。--pl-card-frame 由 header.php 按後台
 * 「產品圖淺色框粗幼度」輸出；未設定或維持 6 時回落 6%，外觀不變。
 */
body[data-template="patisserie-luxe"] .product-card .pc-image {
  width: 100% !important;
  height: 100% !important;
  padding: var(--pl-card-frame, 6%);
  object-fit: contain !important;
  object-position: center !important;
  transition: transform .5s ease !important;
}

body[data-template="patisserie-luxe"] .product-card:hover .pc-image {
  transform: scale(1.025) !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 18px 4px 0 !important;
  text-align: center;
}

body[data-template="patisserie-luxe"] .product-card .pc-brand {
  margin: 0 0 7px !important;
  color: var(--pl-muted) !important;
  font-size: calc(9px * var(--pl-fs-product, 1)) !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

/* 字重由後台「商品名稱字體粗幼」控制，未設定時回落模版原本嘅 400 */
body[data-template="patisserie-luxe"] .product-card .pc-name,
body[data-template="patisserie-luxe"] .product-card .pc-name a {
  color: var(--pl-ink) !important;
  font-size: calc(13px * var(--pl-fs-product, 1)) !important;
  font-weight: var(--pl-card-name-weight, 400) !important;
  line-height: 1.55 !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-price {
  justify-content: center;
  min-height: 23px;
  margin-top: 8px !important;
  color: var(--pl-price) !important;
  font-size: calc(12px * var(--pl-fs-product, 1)) !important;
  font-weight: 400 !important;
}

/* 字重由後台「售價字體粗幼」控制，未設定時回落模版原本嘅 500。
   原價（.pc-price-was）維持較淺字重，唔跟呢個設定。 */
body[data-template="patisserie-luxe"] .product-card .pc-price-now {
  color: var(--pl-price) !important;
  font-size: calc(12px * var(--pl-fs-product, 1)) !important;
  font-weight: var(--pl-card-price-weight, 500) !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-price-was {
  color: var(--pl-muted) !important;
  font-size: calc(11px * var(--pl-fs-product, 1)) !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-colors {
  justify-content: center;
}

body[data-template="patisserie-luxe"] .product-card .pc-add-cart-btn:not(.pl-quick-action) {
  margin-top: auto;
  border-radius: 0 !important;
}

body[data-template="patisserie-luxe"] .product-card .pl-quick-action {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  display: grid !important;
  place-items: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--pl-ink) !important;
  color: #fff !important;
  border: 1px solid var(--pl-ink) !important;
  border-radius: 0 !important;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s, background .2s, color .2s;
}

body[data-template="patisserie-luxe"] .product-card:hover .pl-quick-action,
body[data-template="patisserie-luxe"] .product-card:focus-within .pl-quick-action {
  opacity: 1;
  transform: translateY(0);
}

body[data-template="patisserie-luxe"] .product-card .pl-quick-action:hover {
  background: var(--pl-cream) !important;
  color: var(--pl-ink) !important;
}

body[data-template="patisserie-luxe"] .product-card .pl-quick-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

body[data-template="patisserie-luxe"] .product-card .pl-quick-action .pl-quick-label,
body[data-template="patisserie-luxe"] .product-card .pl-quick-action > span:not(.pl-quick-icon) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

body[data-template="patisserie-luxe"] .product-card .pc-actions,
body[data-template="patisserie-luxe"] .product-card .pc-wishlist,
body[data-template="patisserie-luxe"] .product-card .pc-compare {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Collection, product list, brand and search */
body[data-template="patisserie-luxe"] .pl-collection-page {
  padding-bottom: 90px;
}

/* 麵包屑字級對齊分類說明（.cat-desc-top 為 14px），細字太難讀 */
body[data-template="patisserie-luxe"] .pl-collection-page > .container:first-child .breadcrumb,
body[data-template="patisserie-luxe"] .pl-product-detail .breadcrumb {
  padding-top: 26px;
  margin-bottom: 0;
  color: var(--pl-muted);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
}

body[data-template="patisserie-luxe"] .breadcrumb a:hover {
  color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero,
body[data-template="patisserie-luxe"] .pl-collection-page .search-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 44px 20px;
  margin: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero-bg {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero-content,
body[data-template="patisserie-luxe"] .pl-collection-page .search-hero > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--pl-ink) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero h1,
body[data-template="patisserie-luxe"] .pl-collection-page .search-hero h1,
body[data-template="patisserie-luxe"] .pl-collection-page .products-header h1,
body[data-template="patisserie-luxe"] .pl-collection-page > h1 {
  margin: 0 0 13px !important;
  color: var(--pl-ink) !important;
  font-family: var(--pl-serif) !important;
  font-size: calc(clamp(38px, 4vw, 52px) * var(--pl-fs-heading, 1)) !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: -.02em !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-count,
body[data-template="patisserie-luxe"] .pl-collection-page .search-hero p {
  color: var(--pl-muted) !important;
  font-size: 11px !important;
  letter-spacing: .08em;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-banner,
body[data-template="patisserie-luxe"] .pl-collection-page .subcats,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-tags,
body[data-template="patisserie-luxe"] .pl-collection-page .cat-desc-top,
body[data-template="patisserie-luxe"] .pl-collection-page .cat-desc-bottom {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .subcats {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-top: 0;
  padding-bottom: 24px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .subcat-chip,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-tag {
  padding: 9px 15px;
  background: transparent !important;
  color: var(--pl-ink) !important;
  border: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  font-size: 10px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .subcat-chip.active,
body[data-template="patisserie-luxe"] .pl-collection-page .subcat-chip:hover {
  background: var(--pl-ink) !important;
  color: #fff !important;
  border-color: var(--pl-ink) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-layout,
body[data-template="patisserie-luxe"] .pl-collection-page .products-layout {
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-sidebar,
body[data-template="patisserie-luxe"] .pl-collection-page .sidebar {
  position: static;
  width: auto;
  max-height: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-collection-page .sidebar-section,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-section {
  padding: 21px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .sidebar-section:first-of-type,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-section:first-of-type {
  border-top: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-collection-page .sidebar-section h3,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-section h3,
body[data-template="patisserie-luxe"] .pl-collection-page .attr-head {
  margin: 0 0 16px;
  color: var(--pl-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-list,
body[data-template="patisserie-luxe"] .pl-collection-page .brand-list,
body[data-template="patisserie-luxe"] .pl-collection-page .opt-list {
  display: grid;
  gap: 4px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-list li a,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-item {
  padding: 7px 0 !important;
  background: transparent !important;
  color: var(--pl-muted) !important;
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 400 !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-list li a:hover,
body[data-template="patisserie-luxe"] .pl-collection-page .cat-list li a.active,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-item:hover,
body[data-template="patisserie-luxe"] .pl-collection-page .filter-item.active {
  color: var(--pl-ink) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .fake-checkbox {
  width: 13px;
  height: 13px;
  border: 1px solid var(--pl-muted);
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .fake-checkbox.checked {
  background: var(--pl-ink);
  border-color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-collection-page .price-inputs input,
body[data-template="patisserie-luxe"] .pl-collection-page .attr-search {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-collection-page .btn-filter {
  min-height: 40px;
  background: var(--pl-ink);
  color: #fff;
  border: 1px solid var(--pl-ink);
  border-radius: 0;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-main,
body[data-template="patisserie-luxe"] .pl-collection-page .products-area {
  min-width: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar,
body[data-template="patisserie-luxe"] .pl-collection-page .products-toolbar,
body[data-template="patisserie-luxe"] .pl-collection-page .search-filters,
body[data-template="patisserie-luxe"] .pl-density-only-toolbar {
  position: sticky;
  z-index: 80;
  top: var(--pl-header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 8px 0;
  margin: 0 0 34px;
  background: rgba(250, 251, 245, .97) !important;
  border-top: 1px solid var(--pl-line) !important;
  border-bottom: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(9px);
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar > :first-child,
body[data-template="patisserie-luxe"] .pl-collection-page .products-toolbar > :first-child {
  display: flex;
  align-items: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

body[data-template="patisserie-luxe"] .pl-collection-page .result-count,
body[data-template="patisserie-luxe"] .pl-collection-page .toolbar-info {
  color: var(--pl-muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-collection-page .filter-toggle {
  position: absolute;
  left: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar-right,
body[data-template="patisserie-luxe"] .pl-collection-page .toolbar-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 8px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .sort-select {
  min-height: 34px;
  padding: 6px 28px 6px 8px;
  background-color: transparent;
  color: var(--pl-ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 10px;
  letter-spacing: .04em;
}

body[data-template="patisserie-luxe"] .pl-collection-page .view-toggle,
body[data-template="patisserie-luxe"] .pl-density-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

body[data-template="patisserie-luxe"] .pl-density-control button,
body[data-template="patisserie-luxe"] .pl-sort-button {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 5px;
  background: transparent;
  color: var(--pl-muted);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-sort-button {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-density-control button.is-active {
  color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-density-icon {
  display: grid;
  grid-template-columns: repeat(var(--pl-icon-cols), 3px);
  gap: 2px;
}

body[data-template="patisserie-luxe"] .pl-density-icon i {
  width: 3px;
  height: 12px;
  background: currentColor;
}

body[data-template="patisserie-luxe"] .pl-collection-page .products-grid,
body[data-template="patisserie-luxe"] .pl-collection-page .product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px clamp(22px, 3.2vw, 48px) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="large"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="medium"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="compact"] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .products-grid.list-view,
body[data-template="patisserie-luxe"] .pl-collection-page .product-grid.list-view {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body[data-template="patisserie-luxe"] .pl-collection-page .pagination {
  gap: 4px;
  margin-top: 70px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .pagination a,
body[data-template="patisserie-luxe"] .pl-collection-page .pagination span {
  min-width: 34px;
  height: 34px;
  background: transparent;
  color: var(--pl-muted);
  border: 0;
  border-radius: 0;
  font-size: 11px;
}

body[data-template="patisserie-luxe"] .pl-collection-page .pagination .active,
body[data-template="patisserie-luxe"] .pl-collection-page .pagination a:hover {
  background: var(--pl-ink);
  color: #fff;
  border-color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-collection-page .cat-empty,
body[data-template="patisserie-luxe"] .pl-collection-page .no-products,
body[data-template="patisserie-luxe"] .pl-collection-page .search-empty,
body[data-template="patisserie-luxe"] .pl-collection-page .empty-state {
  padding: 90px 30px;
  background: transparent;
  border: 1px solid var(--pl-line);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-collection-page .search-hero form {
  display: flex;
  width: min(620px, 100%);
  margin: 24px auto 0;
  border-bottom: 1px solid var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-collection-page .search-hero input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-collection-page .search-hero button {
  padding: 8px 12px;
  background: transparent;
  color: var(--pl-ink);
  border: 0;
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-sort-dialog {
  width: min(92vw, 420px);
  max-height: min(78vh, 620px);
  padding: 0;
  background: var(--pl-cream);
  color: var(--pl-ink);
  border: 1px solid var(--pl-line);
  border-radius: 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .18);
}

body[data-template="patisserie-luxe"] .pl-sort-dialog::backdrop {
  background: rgba(0, 0, 0, .4);
}

body[data-template="patisserie-luxe"] .pl-sort-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-sort-dialog-head h2 {
  margin: 0;
  font-family: var(--pl-serif);
  font-size: 23px;
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-sort-dialog-head button {
  padding: 5px;
  background: transparent;
  border: 0;
  font-size: 28px;
}

body[data-template="patisserie-luxe"] .pl-sort-options {
  padding: 8px 20px 20px;
}

body[data-template="patisserie-luxe"] .pl-sort-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  background: transparent;
  color: var(--pl-ink);
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  text-align: left;
}

body[data-template="patisserie-luxe"] .pl-sort-options button[aria-selected="true"]::after {
  content: "✓";
}

/* Product detail */
body[data-template="patisserie-luxe"] .pl-product-detail {
  padding-bottom: 100px;
}

body[data-template="patisserie-luxe"] .pl-product-detail > .container {
  padding-right: var(--pl-gutter);
  padding-left: var(--pl-gutter);
}

body[data-template="patisserie-luxe"] .pl-product-detail .product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr);
  gap: clamp(48px, 6.2vw, 100px);
  align-items: start;
  padding: 42px 0 clamp(75px, 8vw, 120px);
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-main {
  grid-row: 1;
  grid-column: 2;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pl-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail #mainMediaWrap,
body[data-template="patisserie-luxe"] .pl-product-detail #mainImage,
body[data-template="patisserie-luxe"] .pl-product-detail #mainVideo {
  width: 100%;
  height: 100%;
}

body[data-template="patisserie-luxe"] .pl-product-detail #mainImage,
body[data-template="patisserie-luxe"] .pl-product-detail #mainVideo {
  padding: 4%;
  object-fit: contain;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumbs-wrap {
  grid-row: 1;
  grid-column: 1;
  align-self: stretch;
  min-width: 0;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  overflow: hidden;
  background: var(--pl-paper);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb.active {
  border-color: var(--pl-ink);
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb img,
body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-template="patisserie-luxe"] .pl-product-detail .product-info {
  position: sticky;
  top: calc(var(--pl-header-height) + 26px);
  min-width: 0;
  padding-top: 6px;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-categories {
  margin-bottom: 18px;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-category,
body[data-template="patisserie-luxe"] .pl-product-detail .pi-cat-trail {
  padding: 0;
  background: transparent;
  color: var(--pl-muted);
  border-radius: 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-name {
  margin: 0 0 19px;
  color: var(--pl-ink);
  font-family: var(--pl-serif);
  font-size: calc(clamp(32px, 3.1vw, 44px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-rating {
  font-size: 11px;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-price-block {
  padding: 20px 0;
  margin: 20px 0;
  background: transparent !important;
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-price-now {
  color: var(--pl-price);
  font-size: 19px;
  font-weight: 500;
}

body[data-template="patisserie-luxe"] .pl-product-detail .variant-opt,
body[data-template="patisserie-luxe"] .pl-product-detail .flat-variant-opt,
body[data-template="patisserie-luxe"] .pl-product-detail .addon-card,
body[data-template="patisserie-luxe"] .pl-product-detail .bundle-item,
body[data-template="patisserie-luxe"] .pl-product-detail input,
body[data-template="patisserie-luxe"] .pl-product-detail select,
body[data-template="patisserie-luxe"] .pl-product-detail textarea,
body[data-template="patisserie-luxe"] .pl-product-detail .qty-selector {
  background: transparent;
  border-color: var(--pl-line);
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .variant-opt.active,
body[data-template="patisserie-luxe"] .pl-product-detail .flat-variant-opt.active,
body[data-template="patisserie-luxe"] .pl-product-detail .addon-card.checked {
  background: var(--pl-paper);
  color: var(--pl-ink);
  border-color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-actions {
  gap: 8px;
}

body[data-template="patisserie-luxe"] .pl-product-detail .btn-add-cart,
body[data-template="patisserie-luxe"] .pl-product-detail .btn-buy,
body[data-template="patisserie-luxe"] .pl-product-detail .btn-primary {
  min-height: 52px;
  background: var(--pl-ink);
  color: #fff;
  border: 1px solid var(--pl-ink);
  border-radius: 0;
  box-shadow: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .btn-add-cart:hover,
body[data-template="patisserie-luxe"] .pl-product-detail .btn-buy:hover,
body[data-template="patisserie-luxe"] .pl-product-detail .btn-primary:hover {
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
  transform: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-info-accordions,
body[data-template="patisserie-luxe"] .pl-product-detail .product-tabs,
body[data-template="patisserie-luxe"] .pl-product-detail .tabs-wrap {
  border-color: var(--pl-line);
  border-radius: 0;
  box-shadow: none;
}

body[data-template="patisserie-luxe"] .pl-product-detail .pi-info-accordions > *,
body[data-template="patisserie-luxe"] .pl-product-detail .pi-info-accordion {
  border-color: var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-product-detail .tabs-nav {
  border-bottom-color: var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-product-detail .tabs-nav button {
  color: var(--pl-muted);
  border-radius: 0;
}

body[data-template="patisserie-luxe"] .pl-product-detail .tabs-nav button.active {
  color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-product-detail .related-section,
body[data-template="patisserie-luxe"] .pl-product-detail .related-products {
  padding-top: 75px;
  border-top: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-product-detail .related-section h2,
body[data-template="patisserie-luxe"] .pl-product-detail .related-products h2 {
  font-family: var(--pl-serif);
  font-size: calc(clamp(32px, 3.4vw, 48px) * var(--pl-fs-heading, 1));
  font-weight: 400;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-product-detail .related-section .product-grid,
body[data-template="patisserie-luxe"] .pl-product-detail .related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Footer */
body[data-template="patisserie-luxe"] .pl-footer {
  background: var(--pl-footer-bg);
  color: var(--pl-footer-text);
  border-top: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr);
  gap: clamp(50px, 8vw, 140px);
  align-items: end;
  padding: clamp(70px, 8vw, 120px) var(--pl-gutter);
  border-bottom: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-newsletter h2 {
  margin: 0 0 13px;
  font-family: var(--pl-serif);
  font-size: calc(clamp(35px, 4vw, 56px) * var(--pl-fs-heading, 1));
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-newsletter > div > p:not(.pl-eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--pl-muted);
  font-size: calc(13px * var(--pl-fs-body, 1));
  line-height: 1.7;
}

body[data-template="patisserie-luxe"] .pl-newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--pl-ink);
  border: 0;
  border-radius: 0;
  outline: none;
}

body[data-template="patisserie-luxe"] .pl-newsletter-form button {
  padding: 0 0 0 20px;
  background: transparent;
  color: var(--pl-ink);
  border: 0;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

body[data-template="patisserie-luxe"] .pl-newsletter-message {
  min-height: 20px;
  padding-top: 8px;
  font-size: 11px;
}

body[data-template="patisserie-luxe"] .pl-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(35px, 6vw, 100px);
  padding: 70px var(--pl-gutter);
}

body[data-template="patisserie-luxe"] .pl-footer-about h2 {
  margin: 0 0 20px;
  font-family: var(--pl-serif);
  font-size: 28px;
  font-weight: 400;
}

body[data-template="patisserie-luxe"] .pl-footer-logo {
  display: block;
  margin-bottom: 25px;
}

body[data-template="patisserie-luxe"] .pl-footer-about > p {
  max-width: 420px;
  margin: 0 0 20px;
  color: var(--pl-muted);
  font-size: 11px;
  line-height: 1.75;
}

body[data-template="patisserie-luxe"] .pl-footer-contact {
  display: grid;
  gap: 7px;
  color: var(--pl-muted);
  font-size: 11px;
  line-height: 1.6;
}

body[data-template="patisserie-luxe"] .pl-social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

body[data-template="patisserie-luxe"] .pl-social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pl-line);
  border-radius: 50%;
}

body[data-template="patisserie-luxe"] .pl-social-links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

body[data-template="patisserie-luxe"] .pl-footer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 20px;
  background: transparent;
  color: var(--pl-ink);
  border: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

body[data-template="patisserie-luxe"] .pl-footer-heading span:last-child {
  display: none;
}

body[data-template="patisserie-luxe"] .pl-footer-links {
  display: grid;
  gap: 12px;
}

body[data-template="patisserie-luxe"] .pl-footer-links a {
  color: var(--pl-muted);
  font-size: 11px;
  line-height: 1.5;
}

body[data-template="patisserie-luxe"] .pl-footer-links a:hover {
  color: var(--pl-ink);
}

body[data-template="patisserie-luxe"] .pl-payment-row,
body[data-template="patisserie-luxe"] .pl-footer-custom,
body[data-template="patisserie-luxe"] .pl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px var(--pl-gutter);
  border-top: 1px solid var(--pl-line);
  color: var(--pl-muted);
  font-size: 9px;
  letter-spacing: .06em;
}

body[data-template="patisserie-luxe"] .pl-payment-row > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-template="patisserie-luxe"] .pl-payment-row img {
  width: auto;
  max-width: 48px;
  height: 22px;
  object-fit: contain;
}

body[data-template="patisserie-luxe"] .pl-payment-chip {
  padding: 4px 7px;
  border: 1px solid var(--pl-line);
}

body[data-template="patisserie-luxe"] .pl-footer-custom {
  justify-content: center;
  text-align: center;
}

body[data-template="patisserie-luxe"] .pl-footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-template="patisserie-luxe"] .pl-back-to-top {
  position: fixed;
  z-index: 650;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--pl-ink);
  color: #fff;
  border: 1px solid var(--pl-ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}

body[data-template="patisserie-luxe"] .pl-back-to-top.visible,
body[data-template="patisserie-luxe"] .pl-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 999px) {
  body[data-template="patisserie-luxe"] {
    --pl-header-height: 55px;
  }

  body[data-template="patisserie-luxe"] .pl-announcement {
    height: 41px;
    line-height: 41px;
  }

  body[data-template="patisserie-luxe"] .pl-header-main {
    min-height: 55px;
    padding: 7px 16px;
  }

  body[data-template="patisserie-luxe"] .pl-header-side {
    gap: 12px;
  }

  body[data-template="patisserie-luxe"] .pl-menu-button {
    display: inline-flex;
  }

  body[data-template="patisserie-luxe"] .pl-locale-menu,
  body[data-template="patisserie-luxe"] .pl-account-link,
  body[data-template="patisserie-luxe"] .pl-header-action > span,
  body[data-template="patisserie-luxe"] .pl-desktop-nav {
    display: none;
  }

  body[data-template="patisserie-luxe"] .pl-logo {
    max-width: 180px;
    font-size: 19px;
  }

  body[data-template="patisserie-luxe"] .pl-logo img {
    max-height: 39px;
  }

  body[data-template="patisserie-luxe"] .pl-search-open {
    position: absolute;
    left: 51px;
  }

  body[data-template="patisserie-luxe"] .pl-cart-link b,
  body[data-template="patisserie-luxe"] .pl-cart-link .js-cart-count {
    margin-left: -9px;
  }

  body[data-template="patisserie-luxe"] .pl-feature-split {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
  }

  body[data-template="patisserie-luxe"] .pl-feature-media img {
    min-height: 500px;
  }

  body[data-template="patisserie-luxe"] .pl-product-rail {
    grid-auto-columns: calc((100% - 36px) / 2.5);
    gap: 18px;
  }

  body[data-template="patisserie-luxe"] .pl-category-card,
  body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 1),
  body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 2) {
    grid-column: auto;
    min-height: 0;
  }

  body[data-template="patisserie-luxe"] .pl-story {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    min-height: 620px;
  }

  body[data-template="patisserie-luxe"] .pl-story-media {
    min-height: 500px;
  }

  body[data-template="patisserie-luxe"] .pl-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  body[data-template="patisserie-luxe"] .pl-trust-strip article:nth-child(2n) {
    border-right: 0;
  }

  body[data-template="patisserie-luxe"] .pl-trust-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--pl-line);
  }

  body[data-template="patisserie-luxe"] .pl-footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .product-main {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
    gap: 36px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb {
    width: 60px;
    height: 60px;
  }
}

/* Mobile */
@media (max-width: 699px) {
  body[data-template="patisserie-luxe"] {
    --pl-gutter: 10px;
  }

  body[data-template="patisserie-luxe"] .pl-announcement-track span {
    padding: 0 20px;
  }

  body[data-template="patisserie-luxe"] .pl-search-panel-inner {
    gap: 18px;
    padding: 30px 20px;
  }

  body[data-template="patisserie-luxe"] .pl-search-panel label {
    font-size: 24px;
  }

  body[data-template="patisserie-luxe"] .pl-hero {
    height: clamp(480px, 76svh, 650px);
  }

  body[data-template="patisserie-luxe"] .pl-hero-overlay {
    padding: 50px 24px 80px;
  }

  body[data-template="patisserie-luxe"] .pl-hero-copy h1,
  body[data-template="patisserie-luxe"] .pl-hero-copy h2 {
    font-size: calc(clamp(35px, 11vw, 48px) * var(--pl-fs-hero, 1));
  }

  body[data-template="patisserie-luxe"] .pl-hero-copy p {
    font-size: calc(12px * var(--pl-fs-hero, 1));
  }

  body[data-template="patisserie-luxe"] .pl-hero-controls {
    right: 20px;
    bottom: 20px;
  }

  body[data-template="patisserie-luxe"] .pl-hero-controls > button {
    display: none;
  }

  body[data-template="patisserie-luxe"] .pl-intro {
    padding: 70px 24px;
  }

  body[data-template="patisserie-luxe"] .pl-intro h2 {
    font-size: calc(34px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-feature-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-template="patisserie-luxe"] .pl-feature-media,
  body[data-template="patisserie-luxe"] .pl-feature-media img {
    min-height: 0;
    height: auto;
    aspect-ratio: 1;
  }

  body[data-template="patisserie-luxe"] .pl-feature-copy {
    padding: 54px 24px 62px;
  }

  body[data-template="patisserie-luxe"] .pl-feature-copy h2 {
    font-size: calc(35px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-home-section {
    padding: 70px 10px;
  }

  body[data-template="patisserie-luxe"] .pl-section-heading {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  body[data-template="patisserie-luxe"] .pl-section-heading h2 {
    font-size: calc(34px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-section-heading .pl-text-link {
    margin-top: 10px;
    white-space: nowrap;
  }

  body[data-template="patisserie-luxe"] .pl-product-rail {
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
  }

  body[data-template="patisserie-luxe"] .pl-rail-arrow {
    display: none;
  }

  body[data-template="patisserie-luxe"] .pl-category-mosaic {
    grid-template-columns: 1fr;
    gap: 10px;
    background: transparent;
    border: 0;
  }

  body[data-template="patisserie-luxe"] .pl-category-card,
  body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 1),
  body[data-template="patisserie-luxe"] .pl-category-card:nth-child(5n + 2) {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  body[data-template="patisserie-luxe"] .pl-category-label {
    inset: 0;
    display: flex;
    padding: 20px;
  }

  body[data-template="patisserie-luxe"] .pl-category-label strong {
    font-size: calc(17px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-category-label small {
    display: block;
  }

  body[data-template="patisserie-luxe"] .pl-story {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 68px 20px;
  }

  body[data-template="patisserie-luxe"] .pl-story-copy {
    max-width: 560px;
    padding: 0 4px 52px;
  }

  body[data-template="patisserie-luxe"] .pl-story-copy h2 {
    font-size: calc(36px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-story-media {
    min-height: 118vw;
  }

  body[data-template="patisserie-luxe"] .pl-story-image-1 {
    width: 82%;
    height: 78%;
  }

  body[data-template="patisserie-luxe"] .pl-story-image-2 {
    width: 58%;
    height: 53%;
    border-width: 8px;
  }

  body[data-template="patisserie-luxe"] .pl-promo-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card > a {
    display: block;
  }

  body[data-template="patisserie-luxe"] .pl-promo-card-wide > a,
  body[data-template="patisserie-luxe"] .pl-promo-card-wide.pl-promo-card-unlinked {
    display: block;
  }

  body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card picture,
  body[data-template="patisserie-luxe"] .pl-promo-grid-single .pl-promo-card img {
    min-height: 0;
  }

  body[data-template="patisserie-luxe"] .pl-promo-card img {
    height: auto;
    aspect-ratio: 1;
  }

  body[data-template="patisserie-luxe"] .pl-brand-strip > div {
    gap: 25px;
  }

  body[data-template="patisserie-luxe"] .pl-trust-strip article {
    min-height: 145px;
    padding: 28px 18px;
  }

  body[data-template="patisserie-luxe"] .product-card .pc-info {
    padding-top: 13px !important;
  }

  body[data-template="patisserie-luxe"] .product-card .pc-name,
  body[data-template="patisserie-luxe"] .product-card .pc-name a {
    font-size: calc(11px * var(--pl-fs-product, 1)) !important;
  }

  body[data-template="patisserie-luxe"] .product-card .pl-quick-action {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    opacity: 1;
    transform: none;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page {
    padding-bottom: 55px;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page > .container:first-child .breadcrumb,
  body[data-template="patisserie-luxe"] .pl-product-detail .breadcrumb {
    padding-top: 17px;
    font-size: 13px;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero,
  body[data-template="patisserie-luxe"] .pl-collection-page .search-hero {
    min-height: 205px;
    padding: 35px 12px;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-hero h1,
  body[data-template="patisserie-luxe"] .pl-collection-page .search-hero h1,
  body[data-template="patisserie-luxe"] .pl-collection-page .products-header h1,
  body[data-template="patisserie-luxe"] .pl-collection-page > h1 {
    font-size: calc(32px * var(--pl-fs-heading, 1)) !important;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-layout,
  body[data-template="patisserie-luxe"] .pl-collection-page .products-layout {
    display: block;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-sidebar,
  body[data-template="patisserie-luxe"] .pl-collection-page .sidebar {
    position: fixed;
    z-index: 1300;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(91vw, 410px);
    max-height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background: var(--pl-cream);
    transform: translateX(-102%);
    transition: transform .28s ease;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-sidebar.open,
  body[data-template="patisserie-luxe"] .pl-collection-page .sidebar.open {
    transform: translateX(0);
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .sidebar-overlay {
    z-index: 1290;
    background: rgba(0, 0, 0, .4);
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .sidebar-close {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pl-line);
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar,
  body[data-template="patisserie-luxe"] .pl-collection-page .products-toolbar,
  body[data-template="patisserie-luxe"] .pl-collection-page .search-filters,
  body[data-template="patisserie-luxe"] .pl-density-only-toolbar {
    grid-template-columns: 1fr 1fr;
    min-height: 54px;
    padding: 7px 0;
    margin-bottom: 26px;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar > :first-child,
  body[data-template="patisserie-luxe"] .pl-collection-page .products-toolbar > :first-child {
    grid-column: 1;
    justify-self: start;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .result-count,
  body[data-template="patisserie-luxe"] .pl-collection-page .toolbar-info {
    display: none;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .filter-toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    color: var(--pl-ink);
    border: 0;
    border-radius: 0;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .cat-toolbar-right,
  body[data-template="patisserie-luxe"] .pl-collection-page .toolbar-right {
    grid-column: 2;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .sort-select[data-pl-sort-enhanced="true"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body[data-template="patisserie-luxe"] .pl-sort-button {
    display: inline-flex;
    width: auto;
    padding: 5px 3px;
    color: var(--pl-ink);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body[data-template="patisserie-luxe"] .pl-density-control button[data-density="compact"] {
    display: none;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page .products-grid,
  body[data-template="patisserie-luxe"] .pl-collection-page .product-grid,
  body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="medium"],
  body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="compact"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 35px 10px !important;
  }

  body[data-template="patisserie-luxe"] .pl-collection-page [data-pl-density="large"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail {
    padding-bottom: 65px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail > .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .product-main {
    display: block;
    padding: 24px 0 70px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery-main {
    order: 1;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumbs-wrap {
    order: 2;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .gallery-thumb {
    width: 62px;
    height: 62px;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .product-info {
    position: static;
    padding: 38px 8px 0;
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .pi-name {
    font-size: calc(32px * var(--pl-fs-heading, 1));
  }

  body[data-template="patisserie-luxe"] .pl-product-detail .related-section .product-grid,
  body[data-template="patisserie-luxe"] .pl-product-detail .related-products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 10px;
  }

  body[data-template="patisserie-luxe"] .pl-newsletter {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 65px 20px;
  }

  body[data-template="patisserie-luxe"] .pl-footer-grid {
    display: block;
    padding: 50px 20px 20px;
  }

  body[data-template="patisserie-luxe"] .pl-footer-about {
    padding-bottom: 35px;
  }

  body[data-template="patisserie-luxe"] .pl-footer-column {
    border-top: 1px solid var(--pl-line);
  }

  body[data-template="patisserie-luxe"] .pl-footer-heading {
    min-height: 58px;
    padding: 0;
    cursor: pointer;
  }

  body[data-template="patisserie-luxe"] .pl-footer-heading span:last-child {
    display: inline;
    font-size: 16px;
    font-weight: 300;
  }

  body[data-template="patisserie-luxe"] .pl-footer-links {
    display: none;
    padding: 0 0 24px;
  }

  body[data-template="patisserie-luxe"] .pl-footer-column.is-open .pl-footer-links {
    display: grid;
  }

  body[data-template="patisserie-luxe"] .pl-payment-row,
  body[data-template="patisserie-luxe"] .pl-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  body[data-template="patisserie-luxe"] .pl-payment-row > div {
    justify-content: flex-start;
  }

  body[data-template="patisserie-luxe"] .pl-back-to-top {
    right: 15px;
    bottom: 15px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-template="patisserie-luxe"] *,
  body[data-template="patisserie-luxe"] *::before,
  body[data-template="patisserie-luxe"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
