/*
Theme Name: 犀利士商城 (Sbyin)
Theme URI: https://www.sbyin.com/
Author: Sbyin
Description: 犀利士商城 WordPress 主題 — 1:1 復刻 sbyin.com 前台設計（首頁、全部商品、商品分類、商品詳情、購物車、結帳、訂單查詢、文章專欄）。商品與訂單使用 WooCommerce，前台樣式與原站逐像素相同，並保留原站 .html 網址與 /api 介面。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbyin
Tags: e-commerce, custom-colors, custom-menu, featured-images, translation-ready
*/

/* 主要樣式在 assets/css/common.css（與原站逐字相同）。
   本檔僅補 WordPress 必要相容樣式，不影響原站視覺。 */

.alignleft{float:left;margin:0 1em 1em 0;}
.alignright{float:right;margin:0 0 1em 1em;}
.aligncenter{display:block;margin-left:auto;margin-right:auto;}
.alignwide{margin-left:-24px;margin-right:-24px;}
.alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;}
.wp-caption{max-width:100%;}
.wp-caption-text,.wp-element-caption{font-size:12px;color:var(--gray);text-align:center;margin-top:6px;}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;padding:10px 16px;background:#fff;border:1px solid var(--green);
  border-radius:8px;color:var(--green);font-size:14px;z-index:100000;position:fixed!important;top:12px;left:12px;}
.sticky .nm::before{content:"置頂 ";color:var(--green);font-size:12px;}
.bypostauthor{display:block;}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:16px 0;}
.gallery-item img{width:100%;height:auto;border-radius:8px;display:block;}
.wp-block-image img{max-width:100%;height:auto;}

/* 後台工具列登入時，避免 sticky 標頭被頂掉 */
body.admin-bar .topbar{top:32px;}
@media (max-width:782px){body.admin-bar .topbar{top:46px;}}

/* WordPress 預設分頁（僅在非商城頁面出現時使用） */
.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:26px 0;}
.nav-links a,.nav-links span.page-numbers{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;
  padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:14px;color:#374151;background:#fff;}
.nav-links .current{background:var(--green);border-color:var(--green);color:#fff;font-weight:600;}
