/* ===== Base ===== */
:root{
  --bg: #cfeaf5;           /* 近似你圖那種淡藍底 */
  --card: #ffffff;
  --ink: #0b2239;
  --muted: #5b6b7a;
  --line: #e7eef5;

  --primary: #0aa6b4;      /* 偏青綠 */
  --primary-2: #067a86;

  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --radius: 18px;
  --radius-sm: 12px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body {
  margin: 0;
  padding-top: 73px;

  font-family: ui-sans-serif, system-ui, -apple-system,
    "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", Arial, sans-serif;

  color: var(--ink);
  background: var(--bg);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{
  width:min(1120px, calc(100% - 32px));
  margin-inline:auto;
}

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}

.brand__logo{
  width:44px; height:44px;
  border-radius: 12px;
  display:grid; place-items:center;
  color:#fff;
  font-weight:800;
  letter-spacing:.5px;
}

.brand__name{
  font-weight:800;
  font-size:18px;
  line-height:1.1;
}
.brand__tag{
  font-size:12px;
  color: var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  gap:22px;
  align-items:center;
}

.nav__link{
  font-size:14px;
  color:#2b3a48;
  opacity:.9;
}
.nav__link:hover{ opacity:1; }

.nav__link--cta{
  padding:10px 14px;
  border-radius: 999px;
  background: rgba(10, 166, 180, .12);
  color: var(--primary-2);
  font-weight:700;
}

/* Mobile menu (checkbox hack) */
.navToggle{ display:none; }
.navBtn{
  display:none;
  width:42px; height:42px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  padding:10px;
  gap:5px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.navBtn span{
  display:block;
  width:18px; height:2px;
  background:#334155;
  border-radius:99px;
}

.navMobile{
  display:none;
  position:absolute;
  left:0; right:0;
  top: 72px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:12px 16px 18px;
}
.navMobile a{
  display:block;
  padding:12px 10px;
  border-radius: 12px;
  color:#1f2a37;
}
.navMobile a:hover{
  background: rgba(10, 166, 180, .10);
  color: var(--primary-2);
}

/* ==================================================
   首頁純圖片輪播
================================================== */

.hero {
  padding: 22px 0 14px;
}

.heroSlider {
  width: 100%;
  height: 420px;

  position: relative;
  overflow: hidden;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;

  background: #eaf3f6;

  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.12);
}

/* 輪播圖片 */

.heroSlider__image {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;

  background: #eaf3f6;
}

.heroSlider__image--changing {
  opacity: 0;
  transform: scale(1.015);
}

/* 左右箭頭 */

.heroSlider__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 50px;
  height: 50px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;

  color: #fff;
  background: rgba(15, 23, 42, 0.42);

  box-shadow:
    0 7px 20px rgba(15, 23, 42, 0.2);

  backdrop-filter: blur(8px);

  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.heroSlider__arrow--prev {
  left: 18px;
}

.heroSlider__arrow--next {
  right: 18px;
}

.heroSlider__arrow:hover {
  background: rgba(10, 166, 180, 0.9);

  box-shadow:
    0 9px 24px rgba(10, 166, 180, 0.32);

  transform:
    translateY(-50%)
    scale(1.06);
}

.heroSlider__arrow:active {
  transform:
    translateY(-50%)
    scale(0.94);
}

.heroSlider__arrow:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

/* 下方圓點 */

.heroSlider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(8px);

  transform: translateX(-50%);
}

.heroSlider__dot {
  width: 10px;
  height: 10px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);

  cursor: pointer;

  transition:
    width 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.heroSlider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.15);
}

.heroSlider__dot--active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

/* 平板 */

@media (max-width: 900px) {
  .heroSlider {
    height: 360px;
  }
}

/* 手機 */

@media (max-width: 560px) {
  .hero {
    padding-top: 14px;
  }

  .heroSlider {
    height: 260px;
    border-radius: 18px;
  }

  .heroSlider__arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .heroSlider__arrow--prev {
    left: 10px;
  }

  .heroSlider__arrow--next {
    right: 10px;
  }

  .heroSlider__dots {
    bottom: 12px;
    padding: 7px 10px;
  }

  .heroSlider__dot {
    width: 8px;
    height: 8px;
  }

  .heroSlider__dot--active {
    width: 23px;
  }
}

/* ===== Layout ===== */
.main{ padding: 12px 0 40px; }
.layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items:start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;

    /* 隱藏 Firefox 捲軸 */
    scrollbar-width: none;

    /* 隱藏 IE / 舊版 Edge 捲軸 */
    -ms-overflow-style: none;
}

/* 隱藏 Chrome / Edge / Safari 捲軸 */
.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.panel{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  margin-bottom: 14px;
}
.panel--title h2{
  margin: 0;
  font-size: 24px;
  text-align: center;
}
.panel--title p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.panel h3{
  margin:0 0 10px;
  font-size: 14px;
  color:#233042;
}

.sideLink{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color:#243245;
  border: 1px solid transparent;
  margin: 6px 0;
  background: #f7fbff;
}
.sideLink:hover{
  border-color: rgba(10,166,180,.25);
  background: rgba(10,166,180,.08);
}
.sideLink--active{
  background: rgba(10,166,180,.12);
  border-color: rgba(10,166,180,.30);
  color: var(--primary-2);
  font-weight: 800;
}

.panel--cta p{
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Content header + toolbar */
.content{
  background: transparent;
}

.contentHead{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  display:flex;
  justify-content:space-between;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 14px;
}
.contentHead h2{
  margin:0;
  font-size: 18px;
}
.contentHead p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color: var(--muted);
}
.field input, .field select{
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfdff;
  outline: none;
}
.field input:focus, .field select:focus{
  border-color: rgba(10,166,180,.45);
  box-shadow: 0 0 0 3px rgba(10,166,180,.14);
}

/* Grid of products */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
}

.card__imgWrap{
  position:relative;
  height: 170px;
  overflow:hidden;
}
.card__imgWrap img{
  width:100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.chip{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.08);
  font-size: 12px;
  font-weight: 800;
}
.chip--new{ background: rgba(10,166,180,.14); color: var(--primary-2); }
.chip--calm{ background: rgba(2, 132, 199, .12); color: #075985; }
.chip--sweet{ background: rgba(217, 70, 239, .10); color: #86198f; }

.card__body{
  padding: 14px;
}
.card__title{
  margin:0;
  font-size: 16px;
}
.card__meta{
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.card__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
/* 貓咪卡片底部只保留詳細資料按鈕 */

.card__row--detail {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.price{
  font-weight: 900;
  color:#0f172a;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor:pointer;
  user-select:none;
}
.btn--primary{
  background: var(--primary);
  color:#fff;
}
.btn--primary:hover{ background: var(--primary-2); }
.btn--ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color:#fff;
}
.btn--ghost:hover{ background: rgba(255,255,255,.18); }
.btn--small{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10,166,180,.12);
  border-color: rgba(10,166,180,.25);
  color: var(--primary-2);
}
.btn--small:hover{
  background: rgba(10,166,180,.18);
}
.btn--block{ width:100%; }

/* Info sections */
.info{
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.info h2{
  margin:0 0 8px;
  font-size: 16px;
}
.info p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
}
.steps{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 10px;
}
.contactCard{
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.contactCard--alt{
  background: #f7fbff;
}
.contactCard h3{
  margin:0 0 8px;
  font-size: 15px;
}
.contactCard p{
  margin:0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.form{
  display:grid;
  gap: 10px;
}
.form label span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.form input, .form textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:#fff;
  outline:none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(10,166,180,.45);
  box-shadow: 0 0 0 3px rgba(10,166,180,.14);
}

.list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.note{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10,166,180,.10);
  border: 1px solid rgba(10,166,180,.18);
  color: #0b4b53;
  font-size: 12px;
  line-height: 1.6;
}

/* Footer */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
}
.footer__inner{
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.footer__links{
  display:flex;
  gap: 14px;
}
.footer__links a:hover{ color: var(--primary-2); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }

  .sidebar{
    position: static;
    max-height: none;
    overflow: visible;
  }

  .grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .field input, .field select{ width: 100%; }
  .toolbar{ width: 100%; justify-content:stretch; }
}

@media (max-width: 760px){
  .nav{ display:none; }
  .navBtn{ display:flex; }

  /* checkbox 控制手機選單 */
  .navToggle:checked ~ .navMobile{ display:block; }
  .heroCard__title{ font-size: 28px; }
  .heroCard__img{ height: 320px; }
}







/* ===== Admin ===== */



.adminMessage {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.adminMessage--success {
  color: #176b50;
  border: 1px solid #b8ead8;
  background: #e9f9f2;
}

.adminMessage--error {
  color: #a52834;
  border: 1px solid #f1bdc2;
  background: #fff0f1;
}

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

.adminCreateCard {
  grid-column: 1 / -1;
  padding: 22px;
  border: 2px dashed rgba(10, 166, 180, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.adminCreateCard__head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.adminCreateCard__head h2 {
  margin: 0 0 5px;
}

.adminCreateCard__head p {
  margin: 0;
  color: var(--muted);
}

.adminCreateIcon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-size: 28px;
  font-weight: 700;
}

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

.adminCatForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.adminCatForm label > span {
  color: #233042;
  font-size: 13px;
  font-weight: 700;
}

.adminCatForm input[type="text"],
.adminCatForm input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  outline: none;
}

.adminCatForm input[type="text"]:focus,
.adminCatForm input[type="number"]:focus {
  border-color: rgba(10, 166, 180, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 166, 180, 0.14);
}

.adminCatForm select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  outline: none;
}

.adminCatForm select:focus {
  border-color: rgba(10, 166, 180, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 166, 180, 0.14);
}

.adminCatForm input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(10, 166, 180, 0.45);
  border-radius: 12px;
  background: #f7fcfd;
  color: #233042;
  cursor: pointer;
}

.adminCatForm input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.adminCatForm input[type="file"]::file-selector-button:hover {
  background: var(--primary-2);
}

.adminCatForm textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  font: inherit;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.adminCatForm textarea:focus {
  border-color: rgba(10, 166, 180, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 166, 180, 0.14);
}

.adminUploadHint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.adminFieldFull {
  grid-column: 1 / -1;
}

.adminStatusField {
  min-height: 44px;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
}

.adminStatusField input {
  width: 18px;
  height: 18px;
}

.adminSubmit {
  display: flex;
  justify-content: flex-end;
}

.adminCatCard {
  position: relative;
}

.adminCatCard--disabled {
  opacity: 0.7;
}

.adminCatCard--disabled .card__imgWrap img {
  filter: grayscale(0.8);
}

.adminStatusBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.adminStatusBadge--on {
  color: #176b50;
  background: rgba(226, 249, 239, 0.94);
}

.adminStatusBadge--off {
  color: #6b7280;
  background: rgba(242, 244, 247, 0.94);
}

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

.adminCardActions {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.adminCardActions form {
  margin: 0;
}

.adminDeleteBtn {
  min-height: 38px;
  padding: 8px 13px;
  color: #b42333;
  border-color: rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.08);
}

.adminDeleteBtn:hover {
  color: #fff;
  background: #dc3545;
}

.emptyMessage {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

@media (max-width: 760px) {

  .adminGrid {
    grid-template-columns: 1fr;
  }

  .adminCatForm {
    grid-template-columns: 1fr;
  }

  .adminFieldFull {
    grid-column: auto;
  }

  .adminStatusField {
    padding-top: 0;
  }

  .adminCardActions {
    align-items: stretch;
    flex-direction: column;
  }

  .adminCardActions form,
  .adminCardActions .btn {
    width: 100%;
  }
}

/* ===== Cat Detail ===== */

/* ===== Cat Detail ===== */

.catDetail {
  width: 100%;
}

.catDetail__placeholder {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

/* 上方標題 */

.catDetail__head {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.catDetail__head h1 {
  margin: 4px 0;
  font-size: 28px;
}

.catDetail__head p {
  margin: 0;
  color: var(--muted);
}

.catDetail__eyebrow {
  margin: 0;
  color: var(--primary-2) !important;
  font-size: 13px;
  font-weight: 800;
}

/* 左圖、右資訊 */

.catDetail__body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

/* 左半部圖片容器 */

.catDetail__image {
  width: 100%;
  height: 560px;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

/*
  圖片依照原比例完整顯示：
  contain = 不裁切
  width/height 100% = 在左側容器內置中縮放
*/
.catDetail__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* 圖片上的標籤 */

.catDetail__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-2);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

/* 右半部資料 */

.catDetail__information {
  width: 100%;
  min-width: 0;
  min-height: 560px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.catDetail__label {
  width: fit-content;
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 999px;

  color: var(--primary-2);
  background: rgba(10, 166, 180, 0.12);

  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.catDetail__name {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.25;
}

.catDetail__dataList {
  width: 100%;
  border-top: 1px solid var(--line);
}

.catDetail__dataRow {
  width: 100%;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.catDetail__dataTitle {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.catDetail__dataValue {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* 價格 */

.catDetail__priceBox {
  margin-top: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(10, 166, 180, 0.25);
  border-radius: 14px;
  background: rgba(10, 166, 180, 0.08);
}

.catDetail__priceBox span {
  color: var(--muted);
  font-size: 14px;
}

.catDetail__priceBox strong {
  color: var(--primary-2);
  font-size: 26px;
}

/* 按鈕 */

.catDetail__actions {
  width: 100%;
  margin-top: auto;
  padding-top: 28px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;

  border-top: 1px solid var(--line);
}

/* 左右內容下方的預留區 */

.catDetail__extra {
  width: 100%;
  padding: 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.catDetail__extraInner {
  width: 100%;
}

.catDetail__extraInner h2 {
  margin: 6px 0 20px;
  color: var(--ink);
  font-size: 24px;
}

.catDetail__reservedArea {
  width: 100%;
  min-height: 420px;
  border: 2px dashed rgba(10, 166, 180, 0.25);
  border-radius: 16px;
  background: rgba(10, 166, 180, 0.03);
}

/* 平板 */

@media (max-width: 900px) {
  .catDetail__body {
    grid-template-columns: 1fr;
  }

  .catDetail__image {
    height: 420px;
  }

  .catDetail__information {
    min-height: auto;
  }
}

/* 手機 */

@media (max-width: 560px) {
  .catDetail__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catDetail__head .btn {
    width: 100%;
  }

  .catDetail__image {
    height: 300px;
  }

  .catDetail__information {
    padding: 24px 18px;
  }

  .catDetail__name {
    font-size: 28px;
  }

  .catDetail__dataRow {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }

  .catDetail__priceBox {
    align-items: flex-start;
    flex-direction: column;
  }

  .catDetail__actions {
    flex-direction: column;
  }

  .catDetail__actions .btn {
    width: 100%;
  }

  .catDetail__extra {
    padding: 24px 18px;
  }

  .catDetail__reservedArea {
    min-height: 300px;
  }
}

/* ===== 社群圖片連結 ===== */

.socials {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.socialLink {
  width: 58px;
  height: 58px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.socialLink:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.13);
}

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

/* ===== 詳細頁額外內容 ===== */

.catDetail__description {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fcfd;
}

.catDetail__description h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.catDetail__description p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

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

.catDetail__mediaItem {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.catDetail__mediaItem img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.catDetail__mediaItem video {
  width: 100%;
  height: 320px;
  display: block;
  background: #000;
  object-fit: contain;
}

.catDetail__emptyExtra {
  min-height: 180px;
  padding: 24px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(10, 166, 180, 0.25);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(10, 166, 180, 0.03);
  text-align: center;
}

@media (max-width: 760px) {
  .catDetail__mediaGrid {
    grid-template-columns: 1fr;
  }

  .catDetail__mediaItem img,
  .catDetail__mediaItem video {
    height: 260px;
  }
}

/* ==================================================
   貓咪列表分頁
   卡片下方：上一頁、數字頁碼、下一頁
================================================== */

.catPaginationArea {
  width: 100%;
}

/* 非目前頁面的貓咪卡片隱藏 */
.js-cat-card[hidden] {
  display: none !important;
}

/* 分頁控制列 */
.catPaginationControls {
  width: 100%;
  margin: 22px 0 8px;
  padding: 8px 0;

  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 上一頁與下一頁 */
.catPageArrow {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  width: 44px;
  height: 44px;
  min-width: 44px;
  flex: 0 0 44px;

  padding: 0;
  display: inline-grid;
  place-items: center;

  border: 1px solid rgba(10, 166, 180, 0.35);
  border-radius: 50%;

  color: var(--primary-2);
  background: rgba(255, 255, 255, 0.96);

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);

  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.catPageArrow:hover:not(:disabled) {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(10, 166, 180, 0.25);
  transform: translateY(-2px) !important;
}

.catPageArrow:active:not(:disabled) {
  transform: scale(0.94) !important;
}

.catPageArrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* 數字頁碼容器 */
.catPageNumbers {
  margin: 0 !important;
  padding: 0;

  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

/* 數字頁碼 */
.catPageNumber {
  width: 36px;
  height: 36px;
  min-width: 36px;

  padding: 0;

  display: inline-grid;
  place-items: center;

  border: 1px solid rgba(10, 166, 180, 0.35);
  border-radius: 50%;

  color: var(--primary-2);
  background: rgba(255, 255, 255, 0.96);

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);

  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.catPageNumber:hover {
  border-color: var(--primary);
  background: rgba(10, 166, 180, 0.12);
  transform: translateY(-2px);
}

/* 目前頁面 */
.catPageNumber--active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 6px 15px rgba(10, 166, 180, 0.28);
}

.catPageArrow:focus-visible,
.catPageNumber:focus-visible {
  outline: 3px solid rgba(10, 166, 180, 0.2);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .catPaginationControls {
    gap: 8px;
  }

  .catPageArrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-basis: 40px;
    font-size: 26px;
  }

  .catPageNumber {
    width: 33px;
    height: 33px;
    min-width: 33px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 73px;
  }

  .topbar {
    z-index: 9999;
  }

  .navMobile {
    position: fixed;
    top: 73px;
    z-index: 9998;
  }
}

/* ==================================================
   LINE 聯絡按鈕
================================================== */

.btn--lineContact {
  min-height: 52px;
  padding: 10px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid #05a83f;
  border-radius: 999px;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      #06c755,
      #00a83e
    );

  box-shadow:
    0 8px 18px rgba(6, 199, 85, 0.25);

  font-size: 15px;
  font-weight: 900;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn--lineContact img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  padding: 3px;
  display: block;

  border-radius: 9px;
  background: #fff;

  object-fit: contain;
}

.btn--lineContact:hover {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #00b84d,
      #008f35
    );

  box-shadow:
    0 11px 24px rgba(6, 199, 85, 0.32);

  transform: translateY(-2px);
}

.btn--lineContact:active {
  transform: translateY(0) scale(0.97);
}

.btn--back {
  min-height: 52px;
  padding-inline: 20px;
}

/* 導覽列 LINE 按鈕 */

.nav__link--line {
  color: #058f3e;
  background: rgba(6, 199, 85, 0.12);
  border: 1px solid rgba(6, 199, 85, 0.2);
}

.nav__link--line:hover {
  color: #fff;
  background: #06c755;
  opacity: 1;
}

/* 手機版 */

@media (max-width: 560px) {
  .catDetail__actions {
    width: 100%;
  }

  .btn--lineContact,
  .btn--back {
    width: 100%;
  }
}

/* ==================================================
   貓咪圖片點擊放大
================================================== */

/* 滑鼠移到圖片上顯示手指 */
.catImageZoomButton {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;

  -webkit-appearance: none;
  appearance: none;

  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  border-radius: 0;

  color: inherit;
  background: transparent;
  cursor: pointer !important;
}

.catImageZoomButton img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  cursor: pointer !important;
  transition: transform 0.18s ease;
}

.catImageZoomButton:hover img {
  transform: scale(1.015);
}

.catImageZoomButton:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(10, 166, 180, 0.45) !important;
}

/* 開啟原圖時鎖住背景頁面 */
body.lightboxOpen {
  overflow: hidden;
}

/* 原圖燈箱固定在整個畫面正中間 */
.imageLightbox {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.imageLightbox--open {
  display: flex;
}

/* 深色背景，點擊可關閉 */
.imageLightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 12, 20, 0.9);
  cursor: pointer;
}

/* 原圖容器 */
.imageLightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 按照原比例顯示原圖 */
.imageLightbox__image {
  width: auto;
  height: auto;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  display: block;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.5);
}

/* 原圖右上角 X 按鈕 */
.imageLightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  width: 44px;
  height: 44px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  color: #fff;
  background: rgba(0, 0, 0, 0.72);

  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;

  cursor: pointer;
}

.imageLightbox__close:hover {
  background: rgba(0, 0, 0, 0.95);
}

.imageLightbox__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .imageLightbox {
    padding: 12px;
  }

  .imageLightbox__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .imageLightbox__image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .imageLightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 27px;
  }
}

/* 僅恢復額外圖片原本的縮圖高度，不影響主要圖片與燈箱 */
.catDetail__mediaItem .catImageZoomButton {
  height: 320px;
}

@media (max-width: 760px) {
  .catDetail__mediaItem .catImageZoomButton {
    height: 260px;
  }
}

/* ==================================================
   社群圖示圖片大小自訂
   只調圖片，不改外框大小
================================================== */

.socialLink img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

/* Facebook 圖片大小 */
.socialLink img[alt="Facebook"] {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* LINE 圖片大小 */
.socialLink img[alt="LINE"] {
  width: 87%;
  height: 87%;
  margin: 6.5%;
}

/* Instagram 圖片大小 */
.socialLink img[alt="Instagram"] {
  width: 89%;
  height: 89%;
  margin: 6%;
}

/* ==================================================
   白色區塊外側右上角貓咪裝飾（修正版）
   只套用在最外層白色區塊
   不套用在 contactCard 這種內層白框
================================================== */

:root {
  --cat-corner-width: 96px;
  --cat-corner-height: 64px;
  --cat-corner-top: -34px;
  --cat-corner-right: -18px;

  --cat-card-width: 78px;
  --cat-card-height: 52px;
  --cat-card-top: -28px;
  --cat-card-right: -15px;

  --decor-border-main: rgba(10, 166, 180, 0.34);
  --decor-border-glow: rgba(255, 255, 255, 0.58);
}

/* 只保留最外層白色區塊的修飾 */
.panel,
.contentHead,
.card,
.info,
.emptyMessage {
  position: relative !important;
  overflow: visible !important;
  margin-top: 30px;
  border: 1px solid var(--decor-border-main) !important;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    0 0 0 3px var(--decor-border-glow) !important;
}

/* 第一排避免卡到上方輪播，多留一點空間 */
.layout > .sidebar > .panel:first-child,
.layout > .content > .contentHead:first-child {
  margin-top: 42px !important;
}

/* 內層白框維持原本樣式，不要貓咪與外框修飾 */
.contactCard {
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.contactCard::before,
.contactCard::after {
  content: none !important;
  display: none !important;
}

/* 不使用其他內側裝飾 */
.panel::before,
.contentHead::before,
.card::before,
.info::before,
.emptyMessage::before {
  content: none !important;
  display: none !important;
}

/* 貓咪圖片：在區塊外側右上方，不在白色內容裡 */
.panel::after,
.contentHead::after,
.card::after,
.info::after,
.emptyMessage::after {
  content: "" !important;
  position: absolute !important;
  top: var(--cat-corner-top) !important;
  right: var(--cat-corner-right) !important;
  width: var(--cat-corner-width) !important;
  height: var(--cat-corner-height) !important;
  z-index: 30 !important;
  pointer-events: none !important;
  background-image: url("../images/catimg.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  transition:
    background-image 0.15s ease,
    transform 0.18s ease;
}

.panel:hover::after,
.contentHead:hover::after,
.card:hover::after,
.info:hover::after,
.emptyMessage:hover::after {
  background-image: url("../images/catimg1.png") !important;
  transform: scale(1.06);
}

/* 貓咪卡片上的圖示小一點 */
.card::after {
  top: var(--cat-card-top) !important;
  right: var(--cat-card-right) !important;
  width: var(--cat-card-width) !important;
  height: var(--cat-card-height) !important;
}

.card::after {
  background-image: url("../images/catimg.png") !important;
}

.card:hover::after {
  background-image: url("../images/catimg2.png") !important;
  transform: none !important;
}

/* 內容維持正常層級 */
.panel > *,
.contentHead > *,
.card > *,
.info > *,
.emptyMessage > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  :root {
    --cat-corner-width: 52px;
    --cat-corner-height: 34px;
    --cat-corner-top: -18px;
    --cat-corner-right: -6px;

    --cat-card-width: 44px;
    --cat-card-height: 29px;
    --cat-card-top: -14px;
    --cat-card-right: -5px;
  }

  .panel,
  .contentHead,
  .card,
  .info,
  .emptyMessage {
    margin-top: 24px;
  }

  .layout > .sidebar > .panel:first-child,
  .layout > .content > .contentHead:first-child {
    margin-top: 34px !important;
  }
}

/* ==================================================
   關於我們證書區塊
================================================== */

.certificationBlock {
  margin-top: 28px;
  text-align: center;
}

.certificationBlock__title {
  margin: 0 0 18px !important;
  text-align: center;
  font-size: 20px !important;
  font-weight: 900;
  color: var(--ink);
}

.certificationBlock__image {
  width: min(720px, 100%);
  max-height: 860px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(10, 166, 180, 0.22);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

@media (max-width: 760px) {
  .certificationBlock {
    margin-top: 22px;
  }

  .certificationBlock__image {
    width: 100%;
    max-height: none;
    border-radius: 12px;
  }
}

/* ==================================================
   小貓常見問題：多題展開區
================================================== */

.faqList {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.faqItem {
  overflow: hidden;
  border: 1px solid rgba(10, 166, 180, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.faqItem__question {
  width: 100%;
  padding: 12px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border: 0;
  color: var(--ink);
  background: rgba(10, 166, 180, 0.07);

  font: inherit;
  font-weight: 800;
  text-align: left;

  cursor: pointer;
}

.faqItem__question:hover {
  color: var(--primary-2);
  background: rgba(10, 166, 180, 0.12);
}

.faqItem__question:focus-visible {
  outline: 3px solid rgba(10, 166, 180, 0.22);
  outline-offset: -3px;
}

.faqItem__arrow {
  flex: 0 0 auto;
  color: var(--primary-2);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faqItem__question[aria-expanded="true"] .faqItem__arrow {
  transform: rotate(180deg);
}

.faqItem__answer {
  padding: 13px 14px 15px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid rgba(10, 166, 180, 0.16);
  background: rgba(255, 255, 255, 0.76);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ==================================================
   FAQ 答案分組排版
   使用 ul/li 才會真正每一項自動換行
================================================== */

.faqItem__answer {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.faqAnswerGroup + .faqAnswerGroup {
  margin-top: 18px;
}

.faqAnswerGroup h4 {
  margin: 0 0 8px;
  color: var(--primary-2);
  font-size: 15px;
  font-weight: 900;
}

.faqAnswerGroup ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.85;
}

.faqAnswerGroup li + li {
  margin-top: 4px;
}

