:root {
  --bg: #f4eee4;
  --paper: #fffdf8;
  --ink: #1d232b;
  --muted: #5f6670;
  --line: #d8c8af;
  --accent: #1f7a58;
  --accent-2: #14563f;
  --accent-3: #2a9b70;
  --gold-soft: #efe1b8;
  --chip: #f1e6d6;
  --shadow: 0 16px 40px rgba(25, 32, 44, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(221, 198, 153, 0.28), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(18, 91, 66, 0.15), transparent 40%),
    var(--bg);
  min-height: 100vh;
}

.brand-link {
  text-decoration: none !important;
  color: inherit;
}

.shop-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  height: 52px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #0f172a;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.shop-back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(24, 161, 104, 0.35);
}

.service-top .top-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.service-top .top-actions-right .shop-back-btn{order:1;}
.service-top .top-actions-right .maha-view-switch-btn{
  order:2;
}
.service-top .top-actions-right .member-menu{order:3;}
.service-top .top-actions-right .auth-widget{order:4;}
.service-top .top-actions-right .nav-toggle{order:5;margin-left:auto;}

.maha-view-switch-btn{
  border-color: rgba(31, 122, 88, 0.28);
  background: linear-gradient(135deg, rgba(31, 122, 88, 0.12), rgba(255, 255, 255, 0.96));
}

.service-top .top-actions-right .member-menu button,
.service-top .top-actions-right .auth-widget,
.service-top .top-actions-right .shop-back-btn {
  min-height: 52px;
  height: 52px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  position:relative;
}
.nav-toggle__text{
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  color:var(--ink);
}
.wp-menu-toggle-badge{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:18px;
  text-align:center;
}
.nav-drawer{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.25s ease;
  z-index:60;
}
.nav-drawer__backdrop{
  position:absolute;
  inset:0;
  border:none;
  background:rgba(17,24,39,0.35);
}
.nav-drawer__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 100%);
  background:#fff;
  padding:20px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:16px;
  transform:translateX(100%);
  transition:transform 0.25s ease;
  box-shadow:0 20px 40px rgba(15,23,42,.28);
}
.nav-drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-drawer__close{
  border:none;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  min-height:44px;
  min-width:44px;
}
.nav-drawer__group{
  display:grid;
  gap:12px;
}
.nav-drawer__label{
  font-size:12px;
  color:var(--muted);
  letter-spacing:0.3px;
}
.nav-drawer__group a{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-weight:600;
  font-size:16px;
  color:#111827;
  min-height:44px;
  text-decoration:none;
}
.nav-drawer__cart-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-weight:700;
  font-size:16px;
  color:#111827;
  min-height:44px;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  text-align:left;
}
.wp-menu-cart-badge{
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:18px;
  text-align:center;
}
.nav-drawer__group small{
  font-size:14px;
  color:#6b7280;
}
body.nav-open .nav-drawer{
  pointer-events:auto;
  opacity:1;
}
body.nav-open .nav-drawer__panel{
  transform:translateX(0);
}
.nav-drawer__group a.is-active span{
  color:#0f172a;
}

.mobile-view-tabs{
  display:none;
}

@media (max-width: 640px) {
  .mobile-view-tabs{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    margin:2px 0 12px;
  }
  .mobile-view-tab{
    min-width:0;
    min-height:42px;
    padding:9px 10px;
    border-radius:999px;
    border:1px solid #d7c7ae;
    background:#fff;
    color:#0f172a;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:nowrap;
    box-shadow:0 6px 14px rgba(15,23,42,.08);
  }
  .mobile-view-tab.is-active{
    background:linear-gradient(135deg,#1f7a58,#2a9b70);
    border-color:#1f7a58;
    color:#fff;
    box-shadow:0 10px 20px rgba(31,122,88,.28);
  }
  .service-top {
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px;
  }

  .service-top .top-actions-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-content: flex-start;
    align-items: stretch;
  }

  .service-top .top-actions-right .member-menu button,
  .service-top .top-actions-right .auth-widget,
  .service-top .top-actions-right .shop-back-btn,
  .service-top .top-actions-right .nav-toggle {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 8px 12px;
  }
  .service-top .top-actions-right .shop-back-btn{order:1;}
  .service-top .top-actions-right .member-menu{order:3;}
  .service-top .top-actions-right .auth-widget{order:4;}
  .service-top .top-actions-right .nav-toggle{order:5;}

  .maha-view-switch-btn{
    display:none !important;
  }

  .service-top .top-actions-right .auth-widget {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    justify-content: stretch;
  }

  .service-top .top-actions-right .auth-widget .auth-status {
    display: none;
  }

  .service-top .top-actions-right .auth-widget .auth-btn {
    width: 100%;
    height: 44px;
    justify-content: center;
  }

  .service-top .top-actions-right .guardian-badge {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    min-height: 44px;
    border-radius: 12px;
    justify-content: center;
  }
}

.page {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 48px;
}

h1,
h2 {
  margin: 0;
}

.intro-block {
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.intro-copy {
  height: 100%;
  position: relative;
}

.intro-copy h2 {
  font: 800 28px/1.25 "Noto Serif TC", serif;
  margin-bottom: 10px;
}

.intro-line-float {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 3;
}

.intro-line-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro-video-wrap {
  border: 1px solid #e6d8c1;
  border-radius: 14px;
  padding: 10px;
  background: #fffcf6;
  height: 100%;
  align-self: stretch;
}

.intro-video-wrap h3 {
  margin: 0 0 6px;
  font: 800 16px/1.3 "Noto Serif TC", serif;
}

.intro-video-frame {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 9 / 16;
  max-height: 420px;
}

.intro-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 100%);
  color: #fffdf7;
  box-shadow: 0 10px 18px rgba(31, 122, 88, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.info-switcher {
  margin-top: 18px;
}

.info-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.info-btn {
  border: 1px solid var(--line);
  background: var(--chip);
  color: #2a313a;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 10px;
  text-align: center;
  cursor: pointer;
}

.info-btn.is-active {
  background: linear-gradient(135deg, #2ba678 0%, var(--accent) 60%, var(--accent-2) 100%);
  color: #fffdfa;
  border-color: #2f8e69;
  box-shadow: 0 6px 14px rgba(31, 122, 88, 0.22);
}

.info-panels {
  position: relative;
}

.info-panel {
  display: none;
}

.info-panel.is-active {
  display: block;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
}

.card h2 {
  font: 800 17px/1.35 "Noto Serif TC", serif;
}

.card p,
.card li {
  font-size: 14px;
  line-height: 1.75;
  color: #323941;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.intro-photo {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eadfce;
  background: #fff;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.intro-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}

.intro-photo-nav[hidden] {
  display: none !important;
}

.intro-photo-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.intro-photo-nav--prev {
  left: 10px;
}

.intro-photo-nav--next {
  right: 10px;
}

body.is-editing .intro-photo {
  cursor: grab;
}

body.is-editing .intro-photo.is-dragging-photo {
  cursor: grabbing;
}

.intro-photo.is-in-copy {
  width: min(170px, 58vw);
  height: auto !important;
  margin: 8px 0 12px;
}

.intro-photo.is-in-copy img {
  height: auto;
  aspect-ratio: 3 / 4;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.page-admin-inputs {
  margin-top: 18px;
}

.admin-input-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-input-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #2a313a;
}

.admin-input-grid input {
  width: 100%;
  border: 1px solid #d9ceb8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.admin-input-grid input[type="file"] {
  padding: 8px;
  line-height: 1.4;
}

.admin-input-grid textarea {
  width: 100%;
  border: 1px solid #d9ceb8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  resize: vertical;
  min-height: 96px;
}

.master-photo-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.master-photo-upload-row .btn {
  width: auto;
  min-width: 170px;
}

.upload-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ece3d5;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #18a168, #1095d6);
  transition: width .16s linear;
}

.master-photo-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.master-photo-thumb {
  border: 1px solid #d9ceb8;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.master-photo-thumb.dragging {
  opacity: .5;
}

.master-photo-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.master-photo-thumb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.master-photo-thumb-actions button {
  border: 1px solid #d9ceb8;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 4px;
  cursor: pointer;
}

.master-photo-thumb-actions button.primary {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
  font-weight: 700;
}

.calc,
.gallery {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
}

.calc-head h2,
.gallery h2 {
  font: 800 22px/1.3 "Noto Serif TC", serif;
}

.calc-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.gallery-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.gallery-card {
  margin: 0;
  border: 1px solid #eadfce;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #f3efe8;
}

.gallery-card figcaption {
  padding: 10px 10px 12px;
  display: grid;
  gap: 4px;
}

.gallery-card strong {
  font-size: 14px;
}

.gallery-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 959px) {
  .intro-copy {
    padding-bottom: 72px;
  }

  .intro-photo {
    order: 1;
  }

  .intro-copy {
    order: 2;
  }

  .intro-video-wrap {
    order: 3;
  }

  .intro-video-wrap {
    height: auto;
  }

  .intro-line-float {
    bottom: 12px;
    width: 36px;
    height: 36px;
  }
}

.size-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.size-chip {
  border: 1px solid var(--line);
  background: var(--chip);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.size-chip:hover {
  transform: translateY(-1px);
}

.size-chip.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 91, 66, 0.14);
  background: #fff;
}

.size-chip strong {
  display: block;
  font-size: 14px;
}

.size-chip span {
  color: var(--muted);
  font-size: 12px;
}

.result {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.result-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.result dl {
  margin: 0;
}

.result dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #eee6db;
}

.result dl div:last-child {
  border-bottom: 0;
}

.result dt {
  color: #4f5660;
  font-size: 13px;
}

.result dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.result .total dd {
  color: var(--accent-2);
  font-size: 19px;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 1.4em;
  font-size: 13px;
}

/* page-admin 共用樣式（本頁自帶，避免依賴 home.css） */
.admin-bar{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:100;
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  box-shadow:0 12px 22px rgba(15,23,42,.35);
}
.admin-bar__title{font-size:12px;font-weight:700;opacity:.9;}
.admin-bar__toggle,
.admin-bar__save{
  border:0;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.admin-bar__toggle{background:#fbbf24;color:#3b2305;}
.admin-bar__save{background:#10b981;color:#fff;}
body.is-editing [data-edit-key].is-admin-edit{
  outline:2px dashed rgba(16,185,129,.45);
  outline-offset:2px;
  border-radius:6px;
}

@media (min-width: 768px) {
  .page {
    padding-top: 30px;
  }

  .intro-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .intro-copy {
    grid-column: 1 / -1;
  }

  .size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    justify-content: flex-start;
  }

  .actions .btn {
    width: auto;
    min-width: 170px;
  }
}

@media (min-width: 1100px) {
  .intro-block {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(220px, 300px);
  }

  .intro-video-wrap {
    order: 1;
  }

  .intro-copy {
    grid-column: auto;
    order: 2;
  }

  .intro-photo {
    order: 3;
    min-height: 420px;
    aspect-ratio: auto;
  }

}

body[data-page-key="maha-yant"] .top.service-top {
  margin-bottom: 6px;
}

/* 強制分頁顯示：經文畫/手機桌布不得同時出現 */
body[data-page-key="maha-yant"] #mahaPaintingView[hidden],
body[data-page-key="maha-yant"] #mahaWallpaperView[hidden]{
  display:none !important;
}
body[data-page-key="maha-yant"][data-maha-view="painting"] #mahaWallpaperView{
  display:none !important;
}
body[data-page-key="maha-yant"][data-maha-view="wallpaper"] #mahaPaintingView{
  display:none !important;
}

.maha-loading-mask{
  display:none;
  align-items:center;
  justify-content:center;
  min-height: 48vh;
  padding: 20px;
}

body.maha-initial-loading .maha-loading-mask{
  display:flex;
}

body.maha-initial-loading #mahaPaintingView,
body.maha-initial-loading #mahaWallpaperView{
  display:none !important;
}

.maha-loading-card{
  width:min(360px, 92vw);
  border:1px solid #e3d5bf;
  border-radius:16px;
  background:linear-gradient(135deg, #fffef9, #f7f1e7);
  box-shadow:0 16px 36px rgba(15,23,42,.12);
  padding:18px 18px 16px;
  display:grid;
  justify-items:center;
  gap:8px;
  color:#334155;
}

.maha-loading-spinner{
  width:28px;
  height:28px;
  border-radius:50%;
  border:3px solid rgba(31,122,88,.2);
  border-top-color:#1f7a58;
  animation:mahaSpin .75s linear infinite;
}

.maha-loading-card strong{
  font-size:17px;
  line-height:1.3;
  color:#0f172a;
}

.maha-loading-card small{
  font-size:13px;
  color:#64748b;
}

@keyframes mahaSpin{
  to{ transform:rotate(360deg); }
}

.wallpaper-page-head{
  margin-bottom: 14px;
}

#pageSubtitle{
  white-space: pre-line;
}

.wallpaper-page-head h2{
  font: 800 30px/1.2 "Noto Serif TC", serif;
  margin: 0 0 6px;
}

.wallpaper-page-head .muted{
  white-space: pre-line;
  line-height: 1.8;
}

.wallpaper-product-grid{
  display:grid;
  gap:14px;
}

.wallpaper-tabs{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-bottom: 12px;
}

.wallpaper-tab{
  min-height: 44px;
  border-radius: 999px;
  border:1px solid #d7c7ae;
  background:#fff;
  color:#0f172a;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.wallpaper-tab.is-active{
  background: linear-gradient(135deg, #2a9b70, #1f7a58);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(31,122,88,.24);
}

.wallpaper-product-card{
  border:1px solid #e4d6c0;
  border-radius:16px;
  padding:14px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.08);
  display:grid;
  gap:10px;
}

.wallpaper-product-card h3{
  margin:0;
  font:800 24px/1.25 "Noto Serif TC", serif;
  min-height: 30px;
}

.wallpaper-desc-source{
  display:none !important;
}

.wallpaper-desc-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}

.wallpaper-desc-item{
  border:1px solid #e6dcc8;
  border-radius:14px;
  background:linear-gradient(135deg,#fffcf6,#f7f2e7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  padding:12px 14px;
  color:#334155;
  position:relative;
  cursor:default;
}

.wallpaper-desc-title{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.4;
  color:#0f172a;
}

.wallpaper-desc-list{
  margin:0;
  padding-left: 18px;
  display:grid;
  gap:6px;
  font-size:15px;
  line-height:1.55;
}

.wallpaper-desc-list li{
  margin:0;
}

.wallpaper-desc-body{
  margin:0;
  font-size:15px;
  line-height:1.6;
  white-space: pre-wrap;
}

.wallpaper-desc-item.is-product{
  border-color:#b6d3fb;
}

body:not(.is-editing) .wallpaper-desc-item.is-product{
  cursor:pointer;
}

.wallpaper-desc-item.is-picked{
  border-color:#2563eb;
  box-shadow: inset 0 0 0 2px rgba(37,99,235,.22), 0 10px 20px rgba(37,99,235,.15);
}

.wallpaper-card-pick{
  position:absolute;
  top:8px;
  right:8px;
  font-size:12px;
  font-weight:800;
  color:#1e3a8a;
  background:#dbeafe;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:3px 8px;
}

.wallpaper-card-admin-toggle{
  margin-top:8px;
  min-height:30px;
  border:none;
  border-radius:999px;
  padding:0 10px;
  font-size:12px;
  font-weight:800;
  background:#e2e8f0;
  color:#334155;
  cursor:pointer;
}

body.is-editing .wallpaper-card-admin-toggle{
  display:inline-flex;
  align-items:center;
}

body:not(.is-editing) .wallpaper-card-admin-toggle{
  display:none !important;
}

.wallpaper-carousel{
  display:grid;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  align-items:center;
  gap:8px;
}

.wallpaper-carousel-grid{
  display:grid;
  grid-template-columns:repeat(var(--wp-cols, 4), minmax(0,1fr));
  gap:8px;
  align-items:start;
}

.wallpaper-carousel-grid img{
  width:100%;
  height:auto;
  max-height: 440px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#ffffff;
  display:block;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.wallpaper-zoomable{
  cursor:zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}

.wallpaper-zoomable:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,.14);
}

.wallpaper-lightbox[hidden]{
  display:none !important;
}

.wallpaper-lightbox{
  position:fixed;
  inset:0;
  z-index:2200;
}

.wallpaper-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.72);
  backdrop-filter: blur(2px);
}

.wallpaper-lightbox-panel{
  position:relative;
  z-index:1;
  height:100%;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
}

.wallpaper-lightbox-image{
  max-width:min(92vw, 1200px);
  max-height:88vh;
  width:auto;
  height:auto;
  border-radius:14px;
  border:1px solid #dbe5f2;
  background:#fff;
  box-shadow:0 24px 60px rgba(2,6,23,.5);
}

.wallpaper-lightbox-close{
  position:absolute;
  top:18px;
  right:20px;
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:#ffffff;
  color:#0f172a;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(2,6,23,.3);
}

.wallpaper-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:none;
  border-radius:999px;
  background:#ffffff;
  color:#0f172a;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(2,6,23,.3);
}

.wallpaper-lightbox-nav.is-prev{
  left:20px;
}

.wallpaper-lightbox-nav.is-next{
  right:20px;
}

body.wallpaper-lightbox-open{
  overflow:hidden;
}

.wallpaper-carousel-btn{
  width:44px;
  height:44px;
  border:1px solid #d7c7ae;
  border-radius:12px;
  background:#fff;
  font-size:22px;
  line-height:1;
  color:#0f172a;
  cursor:pointer;
}

.wallpaper-carousel-indicator{
  text-align:center;
  font-size:13px;
  color:#64748b;
  font-weight:700;
  margin-top:2px;
}

.wallpaper-price-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
  margin-top: 2px;
}

.wallpaper-price-card{
  appearance:none;
  text-align:left;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  padding:12px;
  border:1px solid #bdd2ea;
  border-radius:14px;
  background:linear-gradient(135deg,#f4f8ff,#e9f1ff);
  min-height: 92px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 18px rgba(30,64,175,.12);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.wallpaper-price-card:hover{
  transform:translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(30,64,175,.16);
}

.wallpaper-price-card.is-active{
  border-color:#3b82f6;
  background:linear-gradient(135deg,#dbeafe,#e7f1ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 26px rgba(37,99,235,.22);
}

.wallpaper-price-card.is-active .label{
  border-color:#93c5fd;
  background:#dbeafe;
  color:#1e3a8a;
}

.wallpaper-price-card.is-disabled{
  cursor:not-allowed;
  opacity:.5;
  filter:saturate(.5);
  box-shadow:none;
}

.wallpaper-price-card:focus-visible{
  outline:2px solid #60a5fa;
  outline-offset:2px;
}

.wallpaper-price-card .label{
  color:#334155;
  font-size:12px;
  font-weight:800;
  letter-spacing: .06em;
  line-height: 1;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  width:max-content;
  max-width:100%;
}

.wallpaper-price-card strong{
  font-size:22px;
  font-weight:900;
  color:#0b2e6d;
  line-height:1.1;
  letter-spacing:.01em;
  word-break:break-word;
}

.wallpaper-buy-row{
  display:grid;
  grid-template-columns: 170px 120px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-top:2px;
}

.wallpaper-buy-row select,
.wallpaper-buy-row input{
  min-height:44px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  background:#fff;
  padding:0 12px;
  font-size:14px;
  color:#0f172a;
}

.wallpaper-buy-row .wallpaper-add-cart{
  min-height:44px;
}

.wallpaper-select-hint{
  grid-column:1 / -1;
  margin:0;
  font-size:13px;
  color:#475569;
}

.wp-checkout-modal[hidden]{
  display:none !important;
}

.wp-checkout-modal{
  position:fixed;
  inset:0;
  z-index:2200;
}
.wp-checkout-modal.is-submitting .wp-checkout-close,
.wp-checkout-modal.is-submitting .wp-checkout-foot button{
  pointer-events:none;
  opacity:.55;
}

body.wp-checkout-open{
  overflow:hidden;
}

.wp-checkout-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.58);
  backdrop-filter: blur(2px);
}
.wp-checkout-wait-overlay[hidden]{
  display:none !important;
}
.wp-checkout-wait-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  background:rgba(2,6,23,.35);
  backdrop-filter:blur(3px);
}
.wp-checkout-wait-card{
  min-width:min(86vw,340px);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid #dbe5f2;
  background:#fff;
  box-shadow:0 20px 44px rgba(2,6,23,.32);
  color:#1e293b;
  font-weight:800;
}
.wp-checkout-wait-spinner{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #dbe5f2;
  border-top-color:#2563eb;
  animation:wpCheckoutWaitSpin .72s linear infinite;
}
@keyframes wpCheckoutWaitSpin{
  to{ transform:rotate(360deg); }
}

.wp-checkout-panel{
  position:relative;
  z-index:1;
  width:min(920px, 94vw);
  max-height:90vh;
  margin:4vh auto 0;
  background:#fff;
  border:1px solid #dbe5f2;
  border-radius:16px;
  box-shadow:0 24px 60px rgba(2,6,23,.35);
  display:grid;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
}

.wp-checkout-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid #e2e8f0;
}

.wp-checkout-head h3{
  margin:0;
  font-size:22px;
  color:#0f172a;
}

.wp-checkout-close{
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:#f1f5f9;
  color:#0f172a;
  font-size:28px;
  cursor:pointer;
}

.wp-checkout-body{
  padding:14px 16px;
  overflow:auto;
  display:grid;
  gap:14px;
}

.wp-checkout-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.wp-checkout-steps span{
  min-height:34px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#64748b;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
}

.wp-checkout-steps span.is-active{
  border-color:#2563eb;
  background:#dbeafe;
  color:#1e3a8a;
}

.wp-checkout-steps span.is-done{
  border-color:#86efac;
  background:#dcfce7;
  color:#166534;
}

.wp-step-panel{
  display:grid;
  gap:10px;
}
.wp-step-panel[hidden]{
  display:none !important;
}

.wp-cart-items{
  display:grid;
  gap:10px;
}

.wp-cart-item{
  border:1px solid #dbe5f2;
  border-radius:12px;
  padding:10px 12px;
  background:#f8fbff;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}

.wp-cart-item-ctl{
  display:grid;
  gap:8px;
  justify-items:end;
}

.wp-cart-item-qty{
  display:inline-grid;
  grid-template-columns:34px 64px 34px;
  gap:6px;
  align-items:center;
}

.wp-cart-item-qty input{
  min-height:34px;
  height:34px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  text-align:center;
  vertical-align:middle;
  padding:0 8px;
  font-size:14px;
  font-weight:700;
  line-height:34px;
  color:#0f172a;
  background:#fff;
  appearance:textfield;
  -moz-appearance:textfield;
}
.wp-cart-item-qty input::-webkit-outer-spin-button,
.wp-cart-item-qty input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.wp-cart-qty-btn{
  min-height:34px;
  height:34px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  color:#0f172a;
  font-size:18px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}

.wp-cart-qty-btn:hover{
  border-color:#93c5fd;
  background:#eff6ff;
}

.wp-cart-item-title{
  margin:0;
  font-weight:800;
  color:#0f172a;
}

.wp-cart-item-meta{
  margin:4px 0 0;
  font-size:13px;
  color:#475569;
}

.wp-cart-item-remove{
  min-height:36px;
}

.wp-cart-total{
  display:flex;
  justify-content:flex-end;
  font-size:18px;
  font-weight:900;
  color:#0b2e6d;
}

.wp-checkout-form{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}

.wp-checkout-form label{
  display:grid;
  gap:6px;
  font-size:13px;
  color:#334155;
  font-weight:700;
}

.wp-checkout-form input{
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:0 12px;
  font-size:14px;
}
.wp-checkout-form input[type="file"]{
  min-height:46px;
  padding:6px 8px;
  border-radius:12px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #d7e0ee;
  color:#1e293b;
}
.wp-checkout-form input[type="file"]::file-selector-button{
  margin-right:10px;
  min-height:32px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:0 14px;
  font-weight:700;
  font-size:13px;
  color:#0f172a;
  background:linear-gradient(180deg,#ffffff,#f1f5f9);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.wp-checkout-form input[type="file"]::file-selector-button:hover{
  transform:translateY(-1px);
  border-color:#94a3b8;
  box-shadow:0 6px 12px rgba(15,23,42,.12);
}
.wp-checkout-form input[type="file"]::-webkit-file-upload-button{
  margin-right:10px;
  min-height:32px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:0 14px;
  font-weight:700;
  font-size:13px;
  color:#0f172a;
  background:linear-gradient(180deg,#ffffff,#f1f5f9);
  cursor:pointer;
}
.wp-checkout-form select{
  min-height:42px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:0 12px;
  font-size:14px;
  background:#fff;
}
.wp-birth-field{
  grid-column:1 / -1;
}
.wp-birth-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:8px;
}
.wp-birth-weekday{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:#475569;
  font-weight:500;
}
.wp-birth-weekday.is-error{
  color:#b91c1c;
}

.wp-bank-box{
  border:1px solid #dbe5f2;
  border-radius:12px;
  background:#f8fafc;
  padding:12px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.wp-bank-box .info span{
  display:block;
  font-size:12px;
  color:#64748b;
}

.wp-bank-box .info strong{
  display:block;
  margin-top:2px;
  color:#0f172a;
  font-size:15px;
}

.wp-remit-form{
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.wp-remit-file-name{
  margin-top:-6px;
  font-size:12px;
  color:#64748b;
}

.wp-checkout-foot{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:12px 16px 14px;
  border-top:1px solid #e2e8f0;
}
.wp-checkout-foot button[hidden]{
  display:none !important;
}

.wp-checkout-success{
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  padding:14px;
  color:#1e3a8a;
}
.wp-checkout-success[hidden]{
  display:none !important;
}

.wp-checkout-success h4{
  margin:0 0 8px;
  font-size:20px;
  color:#0b2e6d;
}

.wp-checkout-success p{
  margin:0 0 8px;
  font-size:14px;
}

.wp-checkout-success-actions{
  margin-top:8px;
}

.wp-success-items{
  margin:0 0 8px;
  padding-left:18px;
  display:grid;
  gap:6px;
}

#mahaWallpaperView > .page-admin-inputs{
  margin-top: 14px;
}

@media (max-width: 767px){
  .wallpaper-page-head h2{
    font-size: 24px;
  }
  .wallpaper-tabs{
    grid-template-columns: 1fr;
  }
  .wallpaper-product-card{
    padding:12px;
  }
  .wallpaper-product-card h3{
    font-size:21px;
    min-height:26px;
  }
  .wallpaper-desc-grid{
    grid-template-columns: 1fr;
    gap:8px;
  }
  .wallpaper-desc-item{
    padding:10px 12px;
  }
  .wallpaper-desc-title{
    font-size:16px;
    margin-bottom:6px;
  }
  .wallpaper-desc-list{
    font-size:14px;
    gap:4px;
  }
  .wallpaper-desc-body{
    font-size:14px;
  }
  .wallpaper-carousel{
    grid-template-columns: 34px minmax(0,1fr) 34px;
  }
  .wallpaper-carousel-btn{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:16px;
  }
  .wallpaper-price-grid{
    gap:8px;
  }
  .wallpaper-price-card{
    min-height: 78px;
    padding:10px;
  }
  .wallpaper-price-card strong{
    font-size:19px;
  }
  .wallpaper-buy-row{
    grid-template-columns: 1fr 1fr;
  }
  .wallpaper-buy-row .wallpaper-add-cart{
    grid-column:1 / -1;
  }
  .wp-checkout-panel{
    width:96vw;
    margin-top:2vh;
  }
  .wp-cart-item{
    grid-template-columns:1fr;
  }
  .wp-cart-item-ctl{
    justify-items:stretch;
  }
  .wp-cart-item-qty{
    justify-content:center;
  }
  .wp-checkout-head h3{
    font-size:18px;
  }
  .wp-checkout-form{
    grid-template-columns:1fr;
  }
  .wp-checkout-steps{
    grid-template-columns:1fr;
  }
  .wp-bank-box{
    grid-template-columns:1fr;
  }
  .wp-remit-form{
    grid-template-columns:1fr;
  }
  .wallpaper-lightbox-panel{
    padding:14px;
  }
  .wallpaper-lightbox-close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    font-size:24px;
  }
  .wallpaper-lightbox-nav{
    width:40px;
    height:40px;
    font-size:22px;
  }
  .wallpaper-lightbox-nav.is-prev{
    left:10px;
  }
  .wallpaper-lightbox-nav.is-next{
    right:10px;
  }
}

@media (max-width: 767px) {
  .intro-video-frame {
    max-height: 320px;
  }
}
