/* 
Opencart 3.x 標準模板和後端通常不允許 <script> 直接寫進 css/less 或 .css 檔，應將控制 JS 嵌入模板的 footer/twig 或外部js檔，否則會無效。
解決方法：
1. 將下方 <script> ... </script> 內容放入 catalog/view/theme/yourtheme/template/common/footer.twig 或在 catalog/view/javascript 加外部 .js 檔(include)。
2. css獨立留css，JS 請外控。
*/

/* 1. 字體大小設為使用 rem 為主，rem/em/px 並存，可動態修改 html font-size 實現 +2px「A- A A+」切換 */
:root, html {
    font-size: 16px;
}
body {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    background: #fff;
}
h1, h2, h3, h4, h5, h6, label, .btn, a, p, li, td, th {
    font-weight: 700 !important;
    letter-spacing: 0.05em;
}
h1 { font-size: 2rem; font-size: 32px; }
h2 { font-size: 1.75rem; font-size: 28px; }
h3 { font-size: 1.5rem; font-size: 24px; }
h4 { font-size: 1.25rem; font-size: 20px; }
h5 { font-size: 1.125rem; font-size: 18px; }
h6 { font-size: 1rem; font-size: 16px; }

p, li, td, th, label, a { font-size: 1rem; font-size: 16px; }

.text, .content, .description, .info, .notice, .summary, .detail, .heading {
    font-size: 1.125rem; font-size: 18px;
}

a {
    color: #005fa3;
    font-size: 1rem; font-size: 16px;
}
a:focus, a:hover {
    color: #0e3b67;
    outline: 0.1875rem solid #ffd900;
    outline: 3px solid #ffd900;
}

input, select, textarea, button {
    font-size: 1em;
    font-weight: 600;
}

.btn-primary, .button, input[type="submit"] {
    background: #1a4170;
    color: #ffe;
    border: 0.125rem solid #1a4170;
    border: 2px solid #1a4170;
    font-weight: 700;
    font-size: 1.125rem; font-size: 18px;
}

.fontsize-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #fff;
    z-index: 9999;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 6px 12px;
    font-size: 1rem; font-size: 16px;
}
.fontsize-switcher button {
    font-size: 1.125rem; font-size: 18px;
    margin: 0 3px;
    padding: 4px 8px;
    background: #eaeaea;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
}
.fontsize-switcher button.active {
    background: #1a4170;
    color: #fff;
    border-color: #1a4170;
}

p, label, input, button, .form-control {
    margin-bottom: 1.125em;
    margin-bottom: 18px;
}

:focus-visible {
    outline: 3px solid #ffd900 !important;
    outline-offset: 2px;
}
.quick-checkout-wrapper div .title.section-title{
	font-size: 15px;
}