/* ==================== Modern Traditional Chinese System Font Stack (Zero Extra Downloads) ==================== */
body,
button,
input,
select,
textarea,
.pure-g [class*="pure-u"] {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

div.nocount { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 200px; font-size: 20px; margin: 10px; color: #475569; }

/* ==================== Phase 1: 對齊 header.php (max-width: 1380px, padding: 0 12px) ==================== */
.s248-catalog-container {
    max-width: 1380px;
    width: 100%;
    margin: 6px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
}
.s248-catalog-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}
.s248-catalog-sidebar {
    flex: 0 0 200px;
    width: 200px;
    box-sizing: border-box;
}
.s248-catalog-main {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}
.s248-catalog-main > section.products {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== Left Sidebar Structural Rules ==================== */
.s248-side-menu {
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}
.s248-side-hd {
    text-align: center;
    padding: 5px 4px;
    font-weight: 600;
}
.s248-side-hd a { color: #0f172a; text-decoration: none; }
.s248-side-item {
    padding: 4px 6px;
    line-height: 1.4;
    transition: background-color 0.15s ease;
}
.s248-side-item.is-parent { padding-left: 15px; }
.s248-side-item > a {
    text-decoration: none;
    display: block;
}
.s248-side-sublist {
    list-style: none;
    margin: 4px -6px -4px -15px;
    padding: 0;
}
.s248-side-subitem {
    padding: 3px 6px 3px 15px;
    line-height: 1.4;
    transition: background-color 0.15s ease;
}
.s248-side-subitem a {
    text-decoration: none;
    display: block;
}

/* ==================== Classic Business Blue Toast Banner ==================== */
#s248-cart-toast {
    position: fixed;
    top: 96px;
    right: 20px;
    left: auto;
    z-index: 99999;
    align-items: center;
    gap: 10px;
    max-width: min(680px, calc(100vw - 32px));
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    display: none;
}
#s248-cart-toast.is-visible { display: inline-flex; }
#s248-cart-toast.is-success {
    background: #f0f7fb !important;
    color: #1e4e68 !important;
    border: 1px solid #93c5de;
}
#s248-cart-toast.is-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5;
}
#s248-cart-toast .s248-toast-msg,
#s248-cart-toast .s248-toast-sub,
#s248-cart-toast .s248-toast-sep,
#s248-cart-toast .s248-toast-link,
#s248-cart-toast .s248-toast-close {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
#s248-cart-toast.is-success .s248-toast-msg { color: #1e4e68 !important; font-weight: 600; }
#s248-cart-toast.is-error .s248-toast-msg { color: #991b1b !important; font-weight: 600; }
#s248-cart-toast .s248-toast-code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 6px !important;
    margin-right: 4px !important;
    border-radius: 4px;
    background: rgba(77, 143, 174, 0.16) !important;
    color: #163d52 !important;
}
#s248-cart-toast.is-error .s248-toast-code { background: rgba(153, 27, 27, 0.1) !important; color: #7f1d1d !important; }
#s248-cart-toast .s248-toast-sub { color: #2f6b8a !important; font-weight: 400; font-size: 12.5px; }
#s248-cart-toast.is-error .s248-toast-sub { color: #b91c1c !important; font-weight: 400; font-size: 12.5px; }
#s248-cart-toast .s248-toast-sep { color: #93c5de !important; }
#s248-cart-toast .s248-toast-link {
    color: #2563eb !important;
    font-weight: 700;
    text-decoration: underline !important;
    white-space: nowrap;
    cursor: pointer;
}
#s248-cart-toast .s248-toast-link:hover { color: #1d4ed8 !important; }
#s248-cart-toast.is-success .s248-toast-close { color: #60a5c8 !important; font-size: 17px; line-height: 1; cursor: pointer; padding-left: 4px !important; }
#s248-cart-toast.is-success .s248-toast-close:hover { color: #1e4e68 !important; }
#s248-cart-toast.is-error .s248-toast-close { color: #f87171 !important; font-size: 17px; line-height: 1; cursor: pointer; padding-left: 4px !important; }
#s248-cart-toast.is-error .s248-toast-close:hover { color: #991b1b !important; }
@media screen and (max-width: 767px) {
    html:not(.s248-force-pc) #s248-cart-toast {
        top: auto;
        bottom: 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 92vw;
        max-width: 92vw;
        flex-wrap: wrap;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* CLS-safe & Responsive Product Image Containers */
.watermarkedsmall, .nowatermarkedsmall {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    overflow: hidden;
}
.watermarkedsmall:after, .nowatermarkedsmall:after {
    content: ""; display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    background-size: contain; background-position: 0 0; background-repeat: no-repeat; opacity: 0.7;
}
.watermarkedsmall:after { background-image: url("/images/shop248_text_watermark_S.png"); }
.nowatermarkedsmall:after { background-image: url("/images/shop248_text_watermark_Sno.png"); }

.watermarksmall1, .nowatermarksmall1 {
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
}
.watermarksmall1 img, .nowatermarksmall1 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.watermarksmall1:after, .nowatermarksmall1:after {
    content: ""; position: absolute; display: block; left: 0; top: 0; width: 100%; height: 100%; z-index: 1;
    background-size: contain; background-position: 0 0; background-repeat: no-repeat;
}
.watermarksmall1:after { background-image: url("/images/shop248_text_watermark_S.png"); }
.nowatermarksmall1:after { background-image: url("/images/shop248_text_watermark_Sno.png"); }

/* ==================== Modern Catalog Header, Breadcrumb & Classic Business Blue Pills ==================== */
.s248-breadcrumb-wrap {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    letter-spacing: 0.01em;
    word-spacing: normal;
}
.s248-crumb-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.s248-crumb-bar:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.s248-breadcrumb-wrap .type04_breadcrumb {
    width: 100%;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    word-spacing: normal;
    color: #64748b;
}
.s248-breadcrumb-wrap .type04_breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}
.s248-breadcrumb-wrap .type04_breadcrumb a:hover { color: #1e4e68; }
.s248-breadcrumb-wrap .type04_breadcrumb h1,
.s248-breadcrumb-wrap .type04_breadcrumb h1 a {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
}
.s248-crumb-sep { color: #94a3b8; margin: 0 4px; }
.s248-result-meta {
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}
.s248-result-meta strong { color: #0f172a; font-weight: 700; }
.s248-result-meta a { color: #1e4e68; font-weight: 600; text-decoration: none; }
.s248-result-meta a:hover { text-decoration: underline; }

/* Capsule Filter & Sort Pills (Button-based, zero SEO dilution) */
.s248-filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.s248-filter-pills:first-of-type { margin-top: 0; }
.s248-sort-row {
    padding-top: 8px;
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
}
.s248-filter-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    margin-right: 2px;
    white-space: nowrap;
}
.s248-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.s248-pill:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.s248-pill.is-active {
    background: #4d8fae !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(77, 143, 174, 0.28);
}

.s248-page-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 29px;
    font-size: 13px;
    color: #475569;
    margin-top: 12px;
}
.s248-page-bar a { color: #1e4e68; font-weight: 600; text-decoration: none; }
.s248-page-bar a:hover { text-decoration: underline; }

/* ==================== Modern Product Grid Cards ==================== */
.s248-prd-grid {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% + 12px);
    margin-left: -6px;
    margin-right: -6px;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
}
.s248-prd-grid.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.s248-prd-grid > article.product {
    box-sizing: border-box;
    padding: 6px !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    display: flex;
}
.s248-card-inner {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.s248-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #94a3b8;
}

.s248-prd-sku {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1e293b;
    margin-top: 8px;
}
.s248-prd-title-box {
    min-height: 44px;
    height: auto !important;
    max-height: none !important;
    margin: 5px 0 8px 0;
    overflow: visible !important;
    line-height: 1.45;
}
#stat .s248-prd-title-box,
#stat .s248-prd-title-box h3 {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
}
#stat .s248-prd-title-box a.s248-prd-title-link,
#stat .s248-prd-title-box a.s248-prd-title-link:link,
#stat .s248-prd-title-box a.s248-prd-title-link:visited {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.15s ease;
}
#stat .s248-prd-title-box a.s248-prd-title-link:hover,
#stat .s248-prd-title-box a.s248-prd-title-link:focus { color: #1e4e68 !important; }

.s248-prd-price-box { margin-bottom: 8px; }
.s248-prd-price-box .price {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    font-weight: 700 !important;
    color: #dc2626 !important;
}
.s248-prd-price-box .price-old {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}
.s248-prd-controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 8px;
}
.s248-prd-controls .choose-btns { display: inline-flex; align-items: center; }
.s248-prd-controls .choose-amount,
#stat .s248-prd-controls .choose-btns .choose-amount { width: 53px; margin-right: 2px; float: none; }
.s248-prd-controls .buy-num {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #0f172a;
    border-radius: 5px;
}
.s248-prd-unit { font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; }
.s248-prd-notices { margin-top: auto; }
.s248-prd-notices > div { margin-bottom: 4px; }
.s248-prd-notices select {
    font-family: inherit;
    font-size: 12.5px;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 6px;
    background-color: #ffffff;
}

.s248-bulk-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
}
.s248-bulk-badge a { color: #b45309 !important; text-decoration: none; }
.s248-bulk-badge a:hover { text-decoration: underline; }

.s248-prd-controls .pure-button,
.s248-prd-controls .saveimg,
.s248-prd-controls .hsaveimg {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    line-height: 1;
    text-decoration: none !important;
    vertical-align: middle;
}

.s248-btn-buy {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #4886a3;
    background: #4d8fae !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(77, 143, 174, 0.25);
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}
.s248-prd-controls .saveimg:hover .s248-btn-buy { background: #3b7c9b !important; border-color: #367390; }
.s248-btn-buy span { background: transparent !important; color: #ffffff !important; padding: 0 !important; margin: 0 !important; }
.s248-btn-buy svg { display: block; width: 13px; height: 13px; flex-shrink: 0; stroke: #ffffff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.s248-btn-buy-mobile {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #4886a3;
    background: #4d8fae !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(77, 143, 174, 0.25);
}
.s248-prd-controls .hsaveimg:hover .s248-btn-buy-mobile { background: #3b7c9b !important; }
.s248-btn-buy-mobile svg { display: block; width: 14px; height: 14px; stroke: #ffffff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.s248-btn-quote {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #4d8fae;
    background: #ffffff !important;
    color: #1e4e68 !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(77, 143, 174, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}
.s248-prd-controls .s248-quote-link:hover .s248-btn-quote { background: #f0f7fb !important; border-color: #3b7c9b; color: #163d52 !important; }
.s248-btn-quote span { background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; }
.s248-btn-quote svg { display: block; width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media screen and (max-width: 35.49em) {
    html:not(.s248-force-pc) .s248-prd-controls .saveimg { display: none !important; }
    html:not(.s248-force-pc) .s248-prd-controls .hsaveimg { display: inline-flex !important; align-items: center; }
}
@media screen and (min-width: 35.5em) {
    .s248-prd-controls .saveimg { display: inline-flex !important; align-items: center; }
    .s248-prd-controls .hsaveimg { display: none !important; }
}
html.s248-force-pc .s248-prd-controls .saveimg { display: inline-flex !important; align-items: center; }
html.s248-force-pc .s248-prd-controls .hsaveimg { display: none !important; }

article.product.s248-offscreen-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
}

@media screen and (max-width: 767px) {
    html:not(.s248-force-pc) .s248-catalog-layout { display: block; }
    html:not(.s248-force-pc) .s248-catalog-sidebar { display: none !important; }
    html:not(.s248-force-pc) .s248-catalog-main { width: 100% !important; margin: 0 !important; }
    html:not(.s248-force-pc) .s248-card-inner { padding: 10px; }
}

a.hsaveimg, div.mobile, ul.mobile, nav.mobile { display: contents; }
@media screen and (min-width: 768px) {
    a.hsaveimg, div.mobile, ul.mobile, nav.mobile { display: none; }
    div.footer2 { position: fixed; bottom: 0; width: 80%; }
    div.footer { position: fixed; left: 0; bottom: 0; width: 100%; z-index: 900; }
}
html.s248-force-pc a.hsaveimg,
html.s248-force-pc div.mobile,
html.s248-force-pc ul.mobile,
html.s248-force-pc nav.mobile { display: none !important; }
html.s248-force-pc .s248-catalog-layout { display: flex !important; align-items: flex-start !important; gap: 16px !important; }
html.s248-force-pc .s248-catalog-sidebar { display: block !important; flex: 0 0 200px !important; width: 200px !important; }
html.s248-force-pc .s248-catalog-main { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; position: static !important; margin: 0 !important; }
html.s248-force-pc article.product { width: 25% !important; }

.aeo-summary-box {
    margin: 22px 0 14px 0;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.65;
}
.aeo-summary-title { margin: 0 0 8px 0; font-size: 14px; font-weight: 700; }
.aeo-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 20px;
    margin-top: 8px;
}
.aeo-faq-item h3 { margin: 0 0 3px 0; font-size: 13px; font-weight: 600; }
.aeo-faq-item p { margin: 0; font-size: 12.5px; color: #334155; }
