/* 分店頁面（store.php） */
.st-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:8px 0 22px}
.st-head h1{font-size:34px;margin:0;line-height:1.2}
.st-badge{display:inline-block;padding:2px 12px;border-radius:14px;font-size:14px;color:#fff;background:#999}
.st-badge-closed{background:#c0392b}
.st-detail h2{font-size:22px;line-height:1.3;margin:0 0 14px;font-weight:500}
.st-block{margin:34px 0 0}
.st-card{border:1px solid #e6e6e6;border-radius:6px;padding:20px 22px;margin-bottom:22px;background:#fff}
.st-info{margin:0 0 16px;display:grid;grid-template-columns:5.5em 1fr;gap:8px 12px}
.st-info dt{font-weight:500;color:#555}
.st-info dd{margin:0;word-break:break-word}
.st-actions{display:flex;flex-wrap:wrap;gap:10px}
.st-btn{display:inline-block;padding:8px 18px;border:1px solid #8cb175;background:#8cb175;color:#fff;border-radius:4px;font-size:15px;text-align:center}
.st-btn:hover{background:#7aa062;border-color:#7aa062;color:#fff}
.st-btn-line{background:#fff;color:#5c8247}
.st-btn-line:hover{color:#fff}
/* 相簿 */
.st-gallery{margin-bottom:8px}
.st-main{display:block;background:#f4f4f4;border-radius:6px;overflow:hidden;aspect-ratio:4/3}
.st-main img{width:100%;height:100%;object-fit:cover;display:block}
.st-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;padding:0;list-style:none}
.st-thumbs li{display:block}
.st-thumb{padding:0;border:2px solid transparent;background:none;border-radius:4px;overflow:hidden;cursor:pointer;width:84px;height:63px}
.st-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.st-thumb.on{border-color:#8cb175}
/* 月曆 */
.st-cal{width:100%;border-collapse:collapse;margin:0 0 14px;table-layout:fixed}
.st-cal caption{caption-side:top;font-weight:500;padding:0 0 6px;color:#222}
.st-cal th,.st-cal td{text-align:center;padding:6px 0;font-size:14px;border:1px solid #efefef}
.st-cal th{background:#f7f7f7;font-weight:400}
.st-cal td.closed{background:#e4e4e4;color:#777;text-decoration:line-through}
.st-cal td.today{outline:2px solid #8cb175;outline-offset:-2px;font-weight:600}
.st-legend{font-size:13px;color:#666;margin:0 0 8px}
.st-dot{display:inline-block;width:12px;height:12px;background:#e4e4e4;border:1px solid #ccc;vertical-align:-1px}
.st-closed-list{margin:6px 0 0;padding:0;list-style:none}
.st-closed-list li{display:block;font-size:14px;color:#444;padding:2px 0}
/* 地圖 */
.st-map{position:relative;width:100%;max-width:100%;border-radius:6px;overflow:hidden;background:#f1f1f1;height:320px}
@media(min-width:768px){.st-map{height:auto;aspect-ratio:16/9;min-height:0}}   /* aspect-ratio 搭配 min-height 會把寬度撐開，手機改用固定高度 */
.st-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* 停車 */
.st-parking{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.st-parking li{display:block;border:1px solid #e6e6e6;border-radius:6px;padding:14px 16px}
.st-p-addr{color:#555;font-size:14px;margin-top:4px}
.st-p-note{font-size:14px;margin:6px 0}
/* 展示商品 */
.st-products{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}
.st-products li{display:block}
.st-products a{display:block;color:#222}
.st-products img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:4px;background:#f4f4f4}
.st-p-name{display:block;margin-top:8px;font-size:15px;line-height:1.4}
.st-p-price{display:block;color:#c0392b;font-size:15px}
.st-note{font-size:13px;color:#777;margin-top:10px}
/* 消息 */
.st-news{margin:0;padding:0;list-style:none}
.st-news li{display:flex;gap:16px;padding:10px 0;border-bottom:1px solid #eee}
.st-news time{color:#777;font-size:14px;flex:0 0 7.5em}
.st-back{margin-top:34px}
/* 列表頁 */
.st-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:26px}
.st-item{display:block;border:1px solid #e6e6e6;border-radius:6px;overflow:hidden;background:#fff}
.st-cover{display:block;aspect-ratio:3/2;background:#f1f1f1}
.st-cover img{width:100%;height:100%;object-fit:cover;display:block}
.st-body{padding:16px 18px 20px}
.st-body h2{font-size:20px;margin:0 0 10px;line-height:1.3}
.st-body p{margin:0 0 6px;font-size:15px}
.st-body .st-btn{margin-top:10px}
.st-notfound{padding:40px 0}
@media (max-width:767px){
  .st-head h1{font-size:26px}
  .st-card{padding:16px}
  .st-news li{flex-direction:column;gap:2px}
  .st-list{grid-template-columns:1fr}
}
.st-transit{line-height:1.8;margin:0 0 16px}
.st-sub{font-size:17px;font-weight:500;margin:6px 0 10px}

.st-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.st-tabs button{border:1px solid #bbb;background:#fff;color:#444;border-radius:20px;padding:6px 16px;font-size:15px;line-height:1.3;cursor:pointer}
.st-tabs button small{margin-left:3px;opacity:.7}
.st-tabs button.on{background:#6b8f55;border-color:#6b8f55;color:#fff}
.st-tabs button:focus-visible{outline:2px solid #333;outline-offset:2px}
.st-products+.st-products{margin-top:18px}

/* 燈箱 */
.st-main{cursor:zoom-in}
.st-lb{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:48px 56px}
.st-lb figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}
.st-lb img{max-width:100%;max-height:calc(100vh - 140px);object-fit:contain;border-radius:4px;background:#111}
.st-lb figcaption{color:#eee;font-size:14px;margin-top:10px;text-align:center}
.st-lb button{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;line-height:1;border-radius:50%}
.st-lb button:hover,.st-lb button:focus-visible{background:rgba(255,255,255,.3);outline:2px solid #fff}
.st-lb-x{top:14px;right:14px;width:44px;height:44px;font-size:30px}
.st-lb-n{top:50%;width:44px;height:44px;font-size:34px;margin-top:-22px}
.st-lb-prev{left:10px}.st-lb-next{right:10px}
@media(max-width:600px){.st-lb{padding:56px 8px}.st-lb-n{top:auto;bottom:12px;margin:0}.st-lb-prev{left:calc(50% - 56px)}.st-lb-next{right:calc(50% - 56px)}}
