@charset "utf-8";

/* =========================================
   Toy-Mountain 玩具山 - 專業時尚模型銷售前台
   配色方案：
   - 主色白色: #fff
   - 主色灰色: #545454
   - 主色咖啡: #7a6a55
   - 輔助色黃色: #fff100
   ========================================= */

:root {
    --color-white: #ffffff;
    --color-grey: #545454;
    --color-brown: #7a6a55;
    --color-yellow: #fff100;
    --color-grey-dark: #434343;
    --color-grey-light: #636363;
    --color-border: #E3E3E3;
    --color-footer-bg: #D1D1D1;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    background-color: var(--color-white);
    color: var(--color-grey);
}

a {
    color: var(--color-grey);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-brown);
    text-decoration: none;
}

/* =========================================
   左側導覽列標籤
   ========================================= */
.menu_top {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.menu_footer {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.cd-label {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-white);
    font-size: 1rem;
    letter-spacing: .1em;
    background-color: var(--color-grey);
    width: 100%;
    height: 35px;
    padding-left: 20px;
    padding-top: 10px;
}

.left_nav_badge {
    float: right;
    margin-top: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--color-brown);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

/* =========================================
   通用列表樣式
   ========================================= */
ul {
    padding: 0px;
    list-style-type: none;
}

/* =========================================
   商品列表區塊
   ========================================= */
.lists_res {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 商品列表：Flex 網格，避免 float 破版 */
.lists_res ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 略縮間距讓大螢幕穩定 6 欄 */
}

.lists_res li {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 60px) / 6); /* 6 欄，5 個 gap×12px */
    margin: 0;
    margin-bottom: 20px;
}

/* 價格區固定高度，避免特價+原價兩行造成破版 */
.lists_res li p {
    min-height: 2.2em;
    margin: 0;
    line-height: 1.5;
}

.lists_res h2 {
    font-size: 16px;
    padding: 0px;
    line-height: 25px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--color-grey);
}

.lists_res li h3 {
    font-size: 12px;
    color: var(--color-grey);
    margin-top: 8px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.lists_res li img {
    width: 100%;
    aspect-ratio: 125 / 120;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lists_res li:hover img {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lists_res_price {
    color: var(--color-brown);
    font-size: 14px;
    font-weight: normal;
}

/* 原價（特價時顯示）：換行顯示、改小、劃線 */
.lists_res_price_original {
    display: block;
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-left: 0;
    margin-top: 4px;
}

/* 商品列表：單一價格行（list_products 用，原價不顯示） */
.lists_res_price_line {
    color: var(--color-brown);
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    line-height: 1.5;
}

/* 商品列表：價格下方小標籤（特價/售完/新品/春季特賣） */
.lists_res_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 0;
}

.product_tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: #fff;
    border: none;
    border-radius: 4px;
    line-height: 1.4;
}

.product_tag.tag_sale { background-color: #c00; }
.product_tag.tag_sold_out { background-color: #6a6a6a; }
.product_tag.tag_new { background-color: var(--color-brown); }
.product_tag.tag_spring { background-color: #0a7b0a; }

/* 商品列表：圖片容器（用於標籤定位） */
.lists_res li .product_img_wrap {
    position: relative;
    display: block;
}

/* 售完：圖片灰階 */
.lists_res li.item_sold_out .product_img_wrap img {
    filter: none;
    opacity: 1;
}

/* 售完：灰底白字（僅當價格區使用 .lists_res_price 時，如首頁） */
.lists_res li.item_sold_out .lists_res_price {
    display: inline-block;
    background-color: #9a9a9a;
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
}

/* 售完：list_products 單一價格行維持正常顯示，售完標籤在下方 */
.lists_res li.item_sold_out .lists_res_price_line {
    color: var(--color-brown);
}

/* 商品圖片上小標籤 */
.product_badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 2;
    line-height: 1.2;
}

.product_badge.badge_new {
    background-color: var(--color-brown);
}

.product_badge.badge_sale {
    background-color: #c00;
}

.product_badge.badge_spring {
    background-color: #0a0;
}

/* =========================================
   頂部導覽圖示
   ========================================= */
.nav_header li {
    float: right;
    list-style-type: none;
}

.nav_header_cart, .nav_header_avater, .nav_header_explain, .nav_header_news, .nav_header_currency,
.lists_res_icon, .lists_res_icon_avater, .lists_res_icon_explain, .lists_res_icon_news,
.flag_usa, .flag_jc, .flag_tw {
    background-image: url(../images/nav-icons_2.svg);
}

.nav_header_cart, .nav_header_avater, .nav_header_explain, .nav_header_news, .nav_header_currency {
    width: 20px;
    height: 20px;
    margin-left: 15px;
}

.nav_header_cart {
    background-position: -1px 0;
}

.nav_header_avater {
    background-position: -19px 0;
}

.nav_header_explain {
    background-position: -37px 0;
}

.nav_header_news {
    background-position: -56px 0;
}

.nav_header_currency {
    background-position: -74px 0;
}

.nav_header_member_status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 18px;
    white-space: nowrap;
}

.nav_header_member_icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-image: url(../images/nav-icons_2.svg);
    background-position: -19px 0;
    background-repeat: no-repeat;
}

.nav_header_member_separator {
    color: #727171;
}

.lists_res_icon, .lists_res_icon_avater, .lists_res_icon_explain, .lists_res_icon_news {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    display: inline-block;
    margin-bottom: -3px;
}

.lists_res_icon {
    background-position: 2% -30px;
    margin-right: 10px;
}

.lists_res_icon_avater {
    background-position: -113px 3px;
    margin-right: 5px;
}

.lists_res_icon_explain {
    background-position: -132px 3px;
    margin-right: 5px;
}

.lists_res_icon_news {
    background-position: -150px 3px;
    margin-right: 5px;
}

/* =========================================
   國旗圖示
   ========================================= */
.flag_usa, .flag_jc, .flag_tw {
    width: 14px;
    height: 9px;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 10px;
}

.flag_usa {
    background-position: -57px -35px;
}

.flag_jc {
    background-position: -81.5px -35px;
}

.flag_tw {
    background-position: -33px -35px;
}

/* =========================================
   下拉選單樣式
   ========================================= */
.dropdown-menu-style-1 > li > a {
    display: block;
    clear: both;
    font-weight: normal;
    line-height: 25px;
    color: var(--color-grey);
    white-space: nowrap;
    border-bottom: 1px solid #D0D0D0;
    margin: 0px;
    padding-right: 10px;
    padding-left: 10px;
    width: 150px;
}

.dropdown-menu-style > li > a {
    padding: 8px 15px;
    color: var(--color-grey);
}

.dropdown-menu-style > li > a:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
}

/* =========================================
   頁尾
   ========================================= */
.footer {
    padding: 10px;
    background-color: var(--color-footer-bg);
    margin-top: 20px;
}

.footer_nav a {
    color: var(--color-grey);
}

.footer_nav a:hover {
    color: var(--color-brown);
}

.footer_copyright {
    font-size: 10px;
    color: #767676;
}

/* =========================================
   廣告三欄
   ========================================= */
.AD_Column_3 ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.AD_Column_3 li {
    display: block;
    flex: 1 1 0;
    aspect-ratio: 247 / 150;
    overflow: hidden;
    border-radius: 6px;
    background: #f2f2f2;
}

.AD_Column_3 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.AD_Column_3 li:hover img {
    transform: translateY(-3px);
}

/* =========================================
   輪播圓角與 AD Carousel
   ========================================= */
#carousel1.carousel,
#carousel1 .carousel-inner,
#carousel1 .item {
    width: 100%;
    aspect-ratio: 800 / 400;
    overflow: hidden;
    background: #f2f2f2;
}

#carousel1 .item > a,
#carousel1 .item > img,
#carousel1 .item > a > img {
    width: 100%;
    height: 100%;
    display: block;
}

#carousel1 .item > img,
#carousel1 .item > a > img {
    object-fit: cover;
    object-position: center center;
}

.fillet {
    border-radius: 6px;
}

/* AD Carousel：左右箭頭上下置中（Font Awesome 圖示） */
.carousel-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control .fa-solid,
.carousel-control .fa-chevron-left,
.carousel-control .fa-chevron-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.carousel-control.right .fa-solid,
.carousel-control.right .fa-chevron-right {
    left: auto;
    right: 50%;
    transform: translate(50%, -50%);
}

.carousel-control .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* AD Carousel：僅 768px 及以下滿版寬度、無左右間隙、無圓角（769px 以上維持電腦版） */
@media (max-width: 768px) {
    .container_r .carousel.slide,
    .container_r #carousel1.carousel.slide {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        overflow: hidden;
    }
}

/* =========================================
   按鈕樣式
   ========================================= */
.btn-primary {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-grey);
    border-color: var(--color-grey);
}

.btn-warning {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-grey);
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #e6d900;
    border-color: #e6d900;
    color: var(--color-grey);
}

/* 商品頁：加入購物車（橙黃、圓角 12、Font Awesome 購物車圖示 #f39c3a） */
.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    height: 48px;
    background: linear-gradient(180deg, #ffb347 0%, #f39c3a 100%);
    border: 1px solid #e68a2e;
    color: var(--color-white);
    border-radius: 12px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.btn-cart:hover {
    background: linear-gradient(180deg, #f39c3a 0%, #e68a2e 100%);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-cart .btn-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-white);
    border-radius: 50%;
    color: #f39c3a;
}
.btn-cart .btn-cart-icon i,
.btn-cart .btn-cart-icon .fa-solid,
.btn-cart .btn-cart-icon .fa-cart-shopping {
    color: #f39c3a;
    font-size: 14px;
}
/* 商品頁：結帳去（#e18152、圓角 12、與加入購物車同大小） */
.btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    background: linear-gradient(180deg, #e8936a 0%, #e18152 100%);
    border: 1px solid #d17142;
    color: var(--color-white);
    border-radius: 12px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.btn-checkout:hover {
    background: linear-gradient(180deg, #e18152 0%, #d17142 100%);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product_action_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.product_action_btns .btn-cart,
.product_action_btns .btn-checkout {
    text-decoration: none;
}

.btn-sold-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    background: linear-gradient(180deg, #a6a6a6 0%, #8f8f8f 100%);
    border: 1px solid #7f7f7f;
    color: #fff;
    border-radius: 12px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    cursor: not-allowed;
    text-decoration: none;
}

.btn-sold-out:hover,
.btn-sold-out:focus {
    color: #fff;
    background: linear-gradient(180deg, #a6a6a6 0%, #8f8f8f 100%);
    border-color: #7f7f7f;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* =========================================
   表單樣式
   ========================================= */
.form-control:focus {
    border-color: var(--color-brown);
    box-shadow: 0 0 0 0.2rem rgba(122, 106, 85, 0.25);
}

/* =========================================
   麵包屑導覽
   ========================================= */
.breadcrumb {
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 15px;
}

.breadcrumb > li + li:before {
    color: var(--color-grey-light);
}

.breadcrumb > .active {
    color: var(--color-brown);
}

/* =========================================
   分頁（圓形按鈕，一個一個）
   ========================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination > li {
    display: inline-block;
}
.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: var(--color-grey);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.pagination > li > a:hover {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
    color: var(--color-white);
}
.pagination > .disabled > span,
.pagination > .disabled > a {
    cursor: not-allowed;
    opacity: 0.6;
}
.pagination > li {
    float: none;
}
/* 覆寫 Bootstrap 4764 行：最前一頁、最後一頁也改為圓形 */
.pagination > li:first-child > a,
.pagination > li:first-child > span,
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-radius: 50%;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

/* =========================================
   卡片樣式
   ========================================= */
.panel-primary {
    border-color: var(--color-brown);
}

.panel-primary > .panel-heading {
    background-color: var(--color-brown);
    border-color: var(--color-brown);
}

/* =========================================
   表格樣式
   ========================================= */
.table > thead > tr > th {
    background-color: var(--color-grey);
    color: var(--color-white);
    border-bottom: none;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.wishlist_table .wishlist_product {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wishlist_table .wishlist_product img {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.wishlist_table .wishlist_product a {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* =========================================
   內容頁面容器
   ========================================= */
.content_box {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* 商品列表頁：內容區略寬，與橫幅/篩選條一致且可排滿 6 欄 */
.content_box.product_list_page {
    padding-left: 12px;
    padding-right: 12px;
}

.page_title {
    font-size: 20px;
    color: var(--color-grey);
    border-left: 4px solid var(--color-brown);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* 頁面標題橫幅（圓角長形、底圖、文字靠右上下置中） */
.page_title_banner {
    min-height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 30px;
}

.page_title_banner .page_title {
    margin: 0;
    border-left: none;
    padding-left: 0;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 商品列表頁：篩選條（品牌/分類 + 排序同一行右側） */
.filter_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.filter_bar .filter_count {
    color: #999;
    font-size: 14px;
}
.filter_bar .filter_controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.filter_bar .filter_controls select {
    min-width: 140px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-grey);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-white);
    cursor: pointer;
}
.filter_bar .filter_controls select:hover,
.filter_bar .filter_controls select:focus {
    border-color: var(--color-brown);
    outline: none;
}

/* =========================================
   商品詳情頁
   ========================================= */
/* 商品主圖：鎖定顯示比例，避免上傳原圖比例不同造成版面變形 */
.product_main_img {
    width: 100%;
    max-width: 342px;
    aspect-ratio: 342 / 229;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f0f0f0;
    line-height: 0;
    padding: 0;
    box-sizing: border-box;
}
.product_main_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.product_info {
    padding-left: 20px;
}

.product_name {
    font-size: 22px;
    color: var(--color-grey);
    margin-bottom: 15px;
    font-weight: bold;
}

.product_price_box {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product_price_row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1.8;
}

.product_price_label {
    color: #999;
    font-size: 14px;
    min-width: 70px;
}

.product_suggested_price {
    color: var(--color-grey);
    font-size: 18px;
    font-weight: normal;
}

.product_price {
    font-size: 28px;
    color: var(--color-brown);
    font-weight: bold;
}

.product_original_price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-left: 0;
    margin-top: 6px;
}

.product_stock {
    color: #5cb85c;
    font-size: 14px;
    margin-top: 10px;
}

.product_stock.out {
    color: #d9534f;
}

.product_detail_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px;
}

.qty_selector {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.qty_selector label {
    margin-right: 10px;
    color: var(--color-grey);
}

.qty_selector input {
    width: 80px;
    text-align: center;
}

/* =========================================
   標籤頁
   ========================================= */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--color-brown);
    border-bottom-color: transparent;
}

.nav-tabs > li > a:hover {
    border-color: var(--color-border) var(--color-border) #ddd;
}

/* =========================================
   會員中心
   ========================================= */
.member_menu {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.member_menu ul {
    margin: 0;
}

.member_menu li {
    border-bottom: 1px solid var(--color-border);
}

.member_menu li:last-child {
    border-bottom: none;
}

.member_menu a {
    display: block;
    padding: 12px 15px;
    color: var(--color-grey);
}

.member_menu a:hover,
.member_menu a.active {
    color: var(--color-brown);
    background-color: var(--color-white);
}

.member_info_card {
    background-color: var(--color-brown);
    color: var(--color-white);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.member_info_card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* 會員中心：頁籤在上方切換 */
.member_tabs {
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--color-border);
}
.member_tabs > li > a {
    color: var(--color-grey);
    border-radius: 6px 6px 0 0;
}
.member_tabs > li > a:hover {
    border-color: var(--color-border);
    color: var(--color-brown);
}
.member_tabs > li.active > a,
.member_tabs > li.active > a:hover,
.member_tabs > li.active > a:focus {
    color: var(--color-brown);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-bottom-color: transparent;
}
.member_tabs > li.pull-right > a {
    color: #999;
}
.member_tabs > li.pull-right > a:hover {
    color: var(--color-brown);
}
.member_tab_content {
    padding-top: 0;
}

/* =========================================
   購物車
   ========================================= */
.cart_table {
    margin-bottom: 20px;
    font-size: 14px;
}

/* 購物車商品圖片：不強制高度、無白框，隨圖片比例縮放 */
.cart_table img,
.cart_table .img-thumbnail {
    width: 50px;
    max-width: 50px;
    height: auto;
    display: block;
    border-radius: 4px;
    border: none;
    padding: 0;
    background: transparent;
}

.cart_summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.cart_summary h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--color-grey);
}

.cart_summary_row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.cart_summary_row:last-child {
    border-bottom: none;
}

.cart_total {
    font-size: 14px;
    color: var(--color-brown);
    font-weight: bold;
}

/* 購物須知：與商品小計同字級 */
.cart_notice {
    font-size: 14px;
    color: var(--color-grey);
}

.cart_notice h5 {
    font-size: 16px;
}

.cart_table .cart_product_brand {
    font-size: 14px;
}

/* =========================================
   新聞列表
   ========================================= */
/* 新聞列表：一般（無縮圖） */
.news_item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.news_item:last-child {
    border-bottom: none;
}

/* 新聞列表：縮圖三個一排 */
.news_list_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.news_list_grid .news_item {
    flex: 0 0 calc((100% - 40px) / 3);
    height: 320px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    border-bottom: none;
    background: var(--color-white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.news_list_grid .news_item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.news_list_grid .news_thumb {
    flex: 0 0 180px;
    display: block;
    line-height: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.news_list_grid .news_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news_list_grid .news_item .news_date,
.news_list_grid .news_item .news_title {
    padding: 0 12px;
}

.news_list_grid .news_item .news_date {
    flex: 0 0 auto;
    padding-top: 10px;
}

.news_list_grid .news_item .news_title {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 12px;
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.news_list_grid .news_item .news_title a {
    display: block;
}

.news_date {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.news_title {
    font-size: 16px;
    color: var(--color-grey);
    margin-bottom: 8px;
}

.news_title a {
    color: var(--color-grey);
}

.news_title a:hover {
    color: var(--color-brown);
}

.news_excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 新聞列表響應：平板兩欄 */
@media (min-width: 768px) and (max-width: 991px) {
    .news_list_grid .news_item {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* 新聞列表響應：手機一欄 */
@media (max-width: 767px) {
    .news_list_grid {
        gap: 16px;
    }
    .news_list_grid .news_item {
        flex: 0 0 100%;
    }
}

/* =========================================
   登入頁面
   ========================================= */
.login_box {
    max-width: 400px;
    margin: 50px auto;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login_box h2 {
    text-align: center;
    color: var(--color-grey);
    margin-bottom: 30px;
    font-size: 24px;
}

.login_box .form-group {
    margin-bottom: 20px;
}

.login_links {
    text-align: center;
    margin-top: 20px;
}

.login_links a {
    color: var(--color-brown);
    margin: 0 10px;
}

/* 匯款帳號顯示 */
.transfer_account {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--color-grey);
}

/* =========================================
   客服頁面
   ========================================= */
.faq_item {
    margin-bottom: 10px;
}

.faq_item .panel-heading {
    cursor: pointer;
}

.faq_item .panel-title a {
    display: block;
    color: var(--color-grey);
}

.faq_item .panel-title a:hover {
    color: var(--color-brown);
}

.contact_info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.contact_info h4 {
    color: var(--color-brown);
    margin-bottom: 15px;
}

.service-center {
    color: var(--color-grey);
    line-height: 1.8;
}

.service-center-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.service-center-summary > div {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fafafa;
    padding: 14px 16px;
}

.service-center-summary h3,
.service-section h3 {
    margin: 0 0 10px;
    color: var(--color-brown);
    font-size: 17px;
    font-weight: bold;
}

.service-center-summary ul,
.service-section ul,
.service-section ol {
    padding-left: 22px;
}

.service-center-summary li {
    margin-bottom: 4px;
}

.service-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--color-border);
}

.service-section article {
    margin-top: 16px;
}

.service-section h4 {
    margin: 0 0 8px;
    color: #555;
    font-size: 15px;
    font-weight: bold;
}

.service-section p {
    margin-bottom: 10px;
}

.shopping-flow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
}

.shopping-flow-step {
    width: 108px;
    height: 96px;
    flex: 0 0 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.18);
}

.shopping-flow-step.step-login {
    background: linear-gradient(180deg, #b0ad10 0%, #8f960f 100%);
}

.shopping-flow-step.step-select {
    background: linear-gradient(180deg, #bd8f00 0%, #9f7900 100%);
}

.shopping-flow-step.step-cart {
    background: linear-gradient(180deg, #bb5600 0%, #934100 100%);
}

.shopping-flow-step.step-pay {
    background: linear-gradient(180deg, #bf3000 0%, #982500 100%);
}

.shopping-flow-step.step-confirm {
    background: linear-gradient(180deg, #bf0000 0%, #940000 100%);
}

.shopping-flow-arrow {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 26px solid #f0a000;
}

/* =========================================
   徽章/標籤
   ========================================= */
.badge-new {
    background-color: var(--color-yellow);
    color: var(--color-grey);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.badge-hot {
    background-color: #d9534f;
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.badge-sale {
    background-color: var(--color-brown);
    color: var(--color-white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* =========================================
   響應式設計 - 大螢幕 (>=1200px)
   ========================================= */
@media (min-width: 1200px) {
    .bd_box {
        width: 1030px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        margin-bottom: 0px;
        height: auto;
    }

    .container_r {
        float: right;
        width: 800px;
    }

    .container_l {
        float: left;
        width: 220px;
    }

    .nav_header {
        position: absolute;
        right: -810px;
        top: 19px;
    }

    .left_nav_box {
        width: 100%;
        background-color: var(--color-grey-dark);
        border-bottom: 1px solid var(--color-grey-light);
    }

    .left_nav_box a {
        color: #fff;
    }

    .left_nav_box a:hover {
        color: var(--color-yellow);
    }

    .dropdown-menu-style > li > a {
        color: #fff;
    }

    .top_search_box {
        margin-top: 55px;
        margin-bottom: 15px;
    }

    .top_search_box li {
        float: right;
        padding-left: 10px;
    }

    .lists_res ul {
        gap: 12px;
    }
    .lists_res li {
        flex: 0 0 calc((100% - 60px) / 6); /* 6 欄 */
        margin-bottom: 20px;
    }
}

/* =========================================
   響應式設計 - 中大螢幕 (992px-1199px)
   ========================================= */
@media (min-width: 992px) and (max-width: 1199px) {
    .bd_box {
        width: 992px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .container_r {
        float: right;
        width: 762px;
    }

    .container_l {
        float: left;
        width: 220px;
    }

    .nav_header {
        position: absolute;
        right: -770px;
        top: 19px;
    }

    .top_search_box {
        margin-top: 55px;
        margin-bottom: 15px;
    }

    .top_search_box li {
        float: right;
    }

    .left_nav_box {
        width: 100%;
        background-color: var(--color-grey-dark);
        border-bottom: 1px solid var(--color-grey-light);
    }

    .left_nav_box a {
        color: #fff;
    }

    .left_nav_box a:hover {
        color: var(--color-yellow);
    }

    .dropdown-menu-style > li > a {
        color: #fff;
    }

    .lists_res ul {
        gap: 12px;
    }
    .lists_res li {
        flex: 0 0 calc((100% - 36px) / 4); /* 4 欄，gap 12px */
        margin-bottom: 20px;
    }
}

/* =========================================
   響應式設計 - 平板 (768px-991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991px) {
    .bd_box {
        width: 770px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .container_r {
        float: right;
        width: 540px;
    }

    .container_l {
        float: left;
        width: 220px;
    }

    .nav_header {
        position: absolute;
        right: -550px;
        top: 15px;
    }

    .navbar-inverse {
        background-color: var(--color-white);
        border-color: var(--color-white);
    }

    .top_search_box {
        margin-top: 60px;
        margin-bottom: 10px;
    }

    .top_search_box li {
        float: right;
    }

    .left_nav_box {
        width: 100%;
        background-color: var(--color-grey-dark);
        border-bottom: 1px solid var(--color-grey-light);
    }

    .left_nav_box a {
        color: #fff;
    }

    .left_nav_box a:hover {
        color: var(--color-yellow);
    }

    .dropdown-menu-style > li > a {
        color: #fff;
    }

    .lists_res ul {
        gap: 12px;
    }
    .lists_res li {
        flex: 0 0 calc((100% - 36px) / 4); /* 4 欄 */
        margin-bottom: 20px;
    }

    .dropdown-menu-style-1 {
        position: absolute;
        top: 10px;
        z-index: 1000;
        display: none;
        float: right;
        min-width: 110px;
        padding: 0;
        margin: 20px 0 0;
        font-size: 12px;
        text-align: left;
        list-style: none;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
        right: -1px;
        width: 151px;
        background-color: var(--color-white);
    }
}

/* =========================================
   響應式設計 - 手機 (<768px)
   ========================================= */
@media (max-width: 767px) {
    .logo {
        width: 100%;
        height: 45px;
    }

    .logo img {
        width: 100%;
    }

    .navbar-brand {
        width: 128px;
        padding: 0px;
        margin-top: 5px;
        float: left;
        margin-bottom: 5px;
        margin-left: 5px;
    }

    .nav_header,
    .btn-search {
        display: none;
    }

    .top_search_box {
        margin-top: 10px;
        margin-bottom: 3px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn-submit, .btn-search {
        width: 100%;
    }

    .navbar-inverse {
        background-color: var(--color-grey-dark);
        border-color: var(--color-grey-dark);
    }

    /* 商品頁／列表：主內容區左右留一點間隙，不黏滿版（導航選單除外） */
    .container_r {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 購物車：手機版改為卡片式列表，方便閱覽 */
    .cart_table thead {
        display: none;
    }

    .cart_table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 8px;
        border: 1px solid var(--color-border);
    }

    .cart_table tbody td {
        display: block;
        padding: 10px 0;
        border: none;
        width: 100%;
    }

    .cart_table tbody td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        color: var(--color-grey);
        margin-right: 8px;
        min-width: 3em;
    }

    .cart_table tbody td[data-label=""]::before {
        content: none;
    }

    .cart_table tbody td:first-child {
        padding-top: 0;
        text-align: center;
        border-top: none;
    }

    .cart_table tbody td:first-child img {
        margin: 0 auto;
    }

    .cart_table tbody td:nth-child(2) {
        padding-top: 8px;
    }

    .cart_table tbody td:nth-child(2)::before {
        display: none;
    }

    .cart_table tbody td:last-child {
        padding-bottom: 0;
        text-align: right;
    }

    .cart_table tbody td:last-child::before {
        display: none;
    }

    /* 商品頁：商品圖片左右置中 */
    .container_r .product_main_img {
        margin-left: auto;
        margin-right: auto;
    }

    /* 商品頁：加入購物車、結帳去按鈕區左右置中 */
    .product_action_btns {
        justify-content: center;
    }

    .filter_bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter_bar .filter_controls {
        width: 100%;
    }
    .filter_bar .filter_controls select {
        flex: 1;
        min-width: 0;
    }

    .lists_res {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .lists_res ul {
        gap: 12px;
    }

    .lists_res li {
        flex: 0 0 calc((100% - 24px) / 3); /* 3 欄 */
        margin-bottom: 30px;
    }

    .footer_nav {
        text-align: center;
    }

    .footer_nav ul {
        display: inline-block;
    }

    .footer_nav li {
        margin-right: 1%;
        margin-left: 1%;
        padding: 5px;
        margin-bottom: 5px;
        text-align: center;
        border: 0px solid #AFAFAF;
        display: inline-block;
    }

    .footer_nav li:hover {
        border-radius: 4px;
        background-color: #ECECEC;
    }

    .footer_copyright {
        font-size: 10px;
        color: #767676;
        margin-top: 5px;
        margin-bottom: 15px;
        padding: 5px;
        width: 100%;
        text-align: center;
    }

    .AD_Column_3 {
        padding-top: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .AD_Column_3 li {
        float: left;
        width: 31.3%;
        height: auto;
        margin-right: 1%;
        margin-left: 1%;
    }

    .product_info {
        padding-left: 0;
        margin-top: 20px;
    }

    .service-center-summary {
        grid-template-columns: 1fr;
    }

    .login_box {
        margin: 20px 15px;
    }
}

/* =========================================
   響應式設計 - 桌機以上 (>=768px)
   ========================================= */
@media (min-width: 768px) {
    .lists_res {
        width: 100%;
        padding: 0px;
        margin: 0px;
    }

    .logo {
        margin-left: 14px;
        width: 200px;
        height: 120px;
    }

    .logo img {
        width: 100%;
    }

    .navbar-brand {
        padding: 0px;
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .footer_l {
        float: left;
        background-image: url(../images/nav-icons_2.svg);
        height: 60px;
        background-position: 5% 70px;
        width: 240px;
        margin-bottom: 25px;
    }

    .footer_r {
        float: left;
        margin-top: 15px;
    }

    .footer_nav li {
        float: left;
        margin-right: 20px;
    }

    .nav_header_to_l {
        display: none;
    }

    .footer_copyright {
        font-size: 10px;
        color: #767676;
        margin-top: 5px;
    }

    .AD_Column_3 {
        margin-left: -1.33%;
        padding-top: 10px;
    }

    .AD_Column_3 li {
        float: left;
        width: 32%;
        height: auto;
        margin-left: 1.33%;
    }

    .fillet {
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }
}

/* =========================================
   響應式設計 - 大桌機以上 (>=991px)
   ========================================= */
@media (min-width: 991px) {
    .dropdown-menu-style-1 {
        position: absolute;
        top: 25px;
        z-index: 1000;
        display: none;
        float: right;
        min-width: 110px;
        padding: 0;
        margin: 0;
        font-size: 12px;
        text-align: left;
        list-style: none;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
        right: -3px;
        width: 151px;
        background-color: var(--color-white);
    }
}

/* =========================================
   首頁 Banner 固定版位尺寸
   ========================================= */
#carousel1.carousel,
#carousel1 .carousel-inner,
#carousel1 .item {
    width: 100%;
    aspect-ratio: 800 / 400;
    height: auto;
    overflow: hidden;
}

#carousel1 .item > a,
#carousel1 .item > img,
#carousel1 .item > a > img {
    width: 100%;
    height: 100%;
    display: block;
}

#carousel1 .item > img,
#carousel1 .item > a > img {
    object-fit: cover;
    object-position: center center;
}

.AD_Column_3 ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.AD_Column_3 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.AD_Column_3 li {
    float: none;
    flex: 1 1 0;
    width: auto;
    height: auto;
    margin: 0;
    aspect-ratio: 247 / 150;
    overflow: hidden;
}

.AD_Column_3 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* =========================================
   清除浮動
   ========================================= */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================
   商品列表頁固定格線，避免長標題/標籤造成換列錯位
   ========================================= */
.product_list_page .lists_res ul,
.related_products_box .lists_res ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 28px;
    align-items: start;
}

.product_list_page .lists_res li,
.related_products_box .lists_res li {
    width: auto;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product_list_page .lists_res li .product_img_wrap,
.related_products_box .lists_res li .product_img_wrap {
    width: 100%;
    display: block;
}

.product_list_page .lists_res li img,
.related_products_box .lists_res li img {
    width: 100%;
    aspect-ratio: 125 / 120;
    height: auto;
    display: block;
}

.product_list_page .lists_res li h3,
.related_products_box .lists_res li h3 {
    height: 72px;
    margin-top: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.product_list_page .lists_res li h3 a,
.related_products_box .lists_res li h3 a {
    display: block;
}

.product_list_page .lists_res_price_line,
.related_products_box .lists_res_price_line {
    min-height: 21px;
    display: block;
}

.product_list_page .lists_res_tags,
.related_products_box .lists_res_tags {
    min-height: 24px;
    align-content: flex-start;
}

.product_list_page > .text-center {
    margin-top: 34px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .product_list_page .lists_res ul,
    .related_products_box .lists_res ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product_list_page .lists_res ul,
    .related_products_box .lists_res ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product_list_page .lists_res ul,
    .related_products_box .lists_res ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }
}
