/* 由 inline style 外部化而來，供 CSP style-src 'self'（移除 'unsafe-inline'）使用。 */

/* 產品詳情主圖：黑色邊框（依產品頁微調，取代原淺灰 border-gray-200） */
.product-main-img { border: 1px solid #000; }

/* 產品圖片放大燈箱 */
.cursor-zoomin { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .85); padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    font-size: 2rem; line-height: 1; color: #fff;
    background: none; border: none; cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 3rem; line-height: 1; color: #fff;
    background: none; border: none; cursor: pointer; padding: 0 1rem;
}
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }

/* 按鈕尺寸 */
.btn-primary-tall { background-color: #1d4ed8; height: 3.5rem; min-width: 7.5rem; }
.btn-tall { height: 3.5rem; min-width: 7.5rem; }
.btn-primary-search { background-color: #1d4ed8; height: 3.25rem; min-width: 7.5rem; }
.btn-search { height: 3.25rem; min-width: 7.5rem; }
.btn-minw-5_5 { min-width: 5.5rem; }

/* 首頁輪播 */
.banner-ctrl-sq { width: 2.75rem; height: 2.75rem; }
.hero-h-420 { height: 420px; }

/* 頁尾（深色） */
.foot-top { background-color: #1f3a5f; color: #e6ebf2; }
.foot-bottom { background-color: #0f2742; color: #ffffff; }
.foot-link { color: #a9c7ff; }
.foot-muted { color: #5b7aa3; }
.foot-divider { border-top: 1px solid #3a5575; }

/* 回到頂端按鈕（捲動後由 JS 切換 display 顯示） */
.btn-back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
    width: 3rem; height: 3rem; border: none; border-radius: 9999px;
    background-color: #1f3a5f; color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    display: none; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1; cursor: pointer;
}
