@media (max-width: 849px) {
  .mobile-sidebar .nav-sidebar > li > a {
    font-size: 15px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 849px) {
  .product-small .product-title a {
    font-size: 15px !important;
		font-weight: 500 !important;
    line-height: 1.5 !important;
  }

  /* 現在售價 */
  .product-small .price,
  .product-small .price .amount,
  .product-small .price bdi {
    font-size: 15px !important;
    font-weight: 400 !important;
  }

  /* 被劃掉的原價 */
  .product-small .price del,
  .product-small .price del .amount,
  .product-small .price del bdi {
    font-size: 12px !important;
    font-weight: 300 !important;
  }
}

/* 商品頁隱藏貨號與標籤 */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .tagged_as {
  display: none !important;
}

/* 商品規格選項與價格增加距離 */
.product-info .variations_form {
    margin-top: 30px;
}

/* 多規格商品：第二排選項增加上方間距 */
.product-info .variations tr:nth-child(2) td,
.product-info .variations tr:nth-child(2) th {
    padding-top: 20px !important;
}

/* 商品標題與簡短說明距離 */
.product-info .product-title {
    margin-bottom: 5px !important;
}

.product-info .product-short-description {
    margin-top: 0 !important;
}

.product-info .product-short-description p {
    margin-top: 0 !important;
}
/* ========================================
   Flatsome 手機版 Lightbox 搜尋優化
   1. 搜尋列往上移
   2. 移除外框光暈 / 陰影
   3. 保持手機左右安全距離
   ======================================== */

@media (max-width: 849px) {

    /* Lightbox 內容改成靠上排列 */
    .mfp-container {
        padding-top: 12vh !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    .mfp-content {
        vertical-align: top !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 搜尋區塊寬度 */
    .mfp-content .searchform-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;

        /* 移除外圍光暈 */
        box-shadow: none !important;
        filter: none !important;
        text-shadow: none !important;
    }

    /* 搜尋表單本體 */
    .mfp-content .searchform {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;

        box-shadow: none !important;
        filter: none !important;
        border: none !important;
        outline: none !important;
    }

    /* 輸入框 */
    .mfp-content .search-field {
        box-shadow: none !important;
        filter: none !important;
        outline: none !important;
        border: none !important;
    }

    /* 點擊輸入時也不要發光 */
    .mfp-content .search-field:focus {
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }

    /* 右側橘色搜尋按鈕也移除陰影 */
    .mfp-content .submit-button,
    .mfp-content button[type="submit"] {
        box-shadow: none !important;
        filter: none !important;
        outline: none !important;
    }
}
/* 商品頁：價格與規格之間加入灰色分隔線 */
.product-info form.variations_form {
    border-top: 1px solid #e5e5e5;
padding-top: 18px;
margin-top: 18px;
}
/* 隱藏變化商品的「清除」文字 */
.product-info .reset_variations {
    display: none !important;
}
/* 商品規格按鈕－未選取 */
.product-info .cfvsw-swatches-option .cfvsw-swatch-inner {
    background: #fff !important;
    color: #666 !important;
    border-color: #d9d9d9 !important;
    box-shadow: none !important;
}
/* 商品規格按鈕－已選取：整顆棕底白字 */
.product-info .cfvsw-swatches-option.cfvsw-selected-swatch {
    background: #7a4f2f !important;
    border-color: #7a4f2f !important;
    color: #fff !important;
    box-shadow: none !important;
}
/* 內層不要自己再產生一塊背景 */
.product-info .cfvsw-swatches-option.cfvsw-selected-swatch .cfvsw-swatch-inner {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
}
/* 手機版商品價格放大 */
@media (max-width: 849px) {
    .product-info .product-page-price {
        font-size: 25px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
    }
}
/* 手機版商品名稱放大 */
@media (max-width: 849px) {
    .product-info .product-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }
}
/* 手機版商品副標放大 */
@media (max-width: 849px) {
    .product-info .product-short-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .product-info .product-short-description p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* 隱藏商品頁社群分享圖示 */
.product-info .social-icons,
.product-info .share-icons {
    display: none !important;
}
/* 商品基本資訊與下方描述區之間縮短留白 */
.product-info {
    padding-bottom: 0 !important;
}

/* 隱藏商品頁分類與品牌 */
.product-info .product_meta {
    display: none !important;
}
/* 商品購買區與下方內容之間縮短空白 */
.product-main {
    padding-bottom: 0 !important;
}

/* 隱藏 Flatsome 商品頁「描述」標題欄 */
.product-footer .product-page-sections .product-section > .row > .large-2 {
    display: none !important;
}

/* 描述內容改成全寬 */
.product-footer .product-page-sections .product-section > .row > .large-10 {
    flex-basis: 100% !important;
    max-width: 100% !important;
}
/* 產品資訊上方灰線＋統一上下留白 */
.product-footer .product-page-sections .product-section {
    border-top: 1px solid #e5e5e5 !important;
    margin-top: 18px !important;
    padding-top: 18px !important;
}
/* 統一商品頁兩條灰線的實際留白 */
.product-info .product-page-price {
    margin-bottom: 0 !important;
}

/* 拿掉購買表單底部原生留白 */
.product-info form.variations_form {
    margin-bottom: 0 !important;
}

/* 拿掉產品資訊第一個元素原生的上方留白 */
.product-footer
.product-page-sections
.product-section
> .row
> .large-10
> *:first-child {
    margin-top: 0 !important;
}
/* 移除產品資訊內容本身額外的上方留白 */
.product-footer .product-page-sections .panel.entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 產品資訊標題本身不要再有上方距離 */
.product-footer .product-page-sections .panel.entry-content > h4:first-child {
    margin-top: 0 !important;
}
/* 商品規格選框放大－不改區塊留白與灰線 */
.product-info .cfvsw-swatches-option.cfvsw-label-option {
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 5px !important;
    border-radius: 4px !important;
}

/* 文字保持置中 */
.product-info .cfvsw-swatches-option.cfvsw-label-option .cfvsw-swatch-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    font-size: 14px !important;
}
/* 手機版：商品縮圖與商品名稱增加距離 */
@media (max-width: 849px) {
    .product-info {
        margin-top: 14px !important;
    }
}
/* 商品規格按鈕：取消點選變色動畫 */
.product-info .cfvsw-swatches-option,
.product-info .cfvsw-swatches-option .cfvsw-swatch-inner {
    transition: none !important;
    -webkit-transition: none !important;
}

/* ========================================
   商品頁｜購物車旁收藏鍵－乾淨版
   ======================================== */

/* 隱藏圖片右上角原本收藏鍵 */
.single-product .image-tools .wishlist-icon {
    display: none !important;
}


/* 數量＋加入購物車＋收藏鍵同一排 */
.single-product .woocommerce-variation-add-to-cart.variations_button {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}


/* 數量框：恢復 Flatsome 原本尺寸邏輯 */
.single-product .woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 3px 0 0 !important;
}


/* 不讓數量裡的 - / 數字 / + 被 flex 拉壞 */
.single-product .woocommerce-variation-add-to-cart .quantity .minus,
.single-product .woocommerce-variation-add-to-cart .quantity .plus,
.single-product .woocommerce-variation-add-to-cart .quantity .qty {
    flex: none !important;
    margin: 0 !important;
}


/* 加入購物車按鈕不要被撐開 */
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 0 0 auto !important;
    margin: 0 !important;
}


/* 收藏區：跟購物車留一點距離 */
.single-product .ux-cart-wishlist {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;

    margin: 0 0 0 18px !important;
    padding: 0 !important;

    flex: 0 0 36px !important;
}


/* 清除 YITH 外層原本尺寸 */
.single-product .ux-cart-wishlist .yith-wcwl-add-to-wishlist,
.single-product .ux-cart-wishlist .yith-wcwl-add-button,
.single-product .ux-cart-wishlist .yith-wcwl-wishlistaddedbrowse,
.single-product .ux-cart-wishlist .yith-wcwl-wishlistexistsbrowse {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* 收藏圓鈕固定 36 × 36 */
.single-product .ux-cart-wishlist a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;

    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;
    box-shadow: none !important;
    text-decoration: none !important;

    font-size: 0 !important;
    line-height: 1 !important;

    transition: none !important;
    animation: none !important;
}


/* YITH 原本文字、提示、Loading 全隱藏 */
.single-product .ux-cart-wishlist a span,
.single-product .ux-cart-wishlist a i,
.single-product .ux-cart-wishlist a svg,
.single-product .ux-cart-wishlist .feedback,
.single-product .ux-cart-wishlist .ajax-loading,
.single-product .ux-cart-wishlist .wishlist-popup,
.single-product .ux-cart-wishlist .yith-wcwl-tooltip {
    display: none !important;
}


/* 未收藏：白底＋灰框 */
.single-product .ux-cart-wishlist .yith-wcwl-add-button a {
    background: #fff !important;
    border: 1.5px solid #777 !important;
}


/* 未收藏：灰色空心愛心 */
.single-product .ux-cart-wishlist .yith-wcwl-add-button a::before {
    content: "" !important;
    display: block !important;

    width: 17px !important;
    height: 17px !important;

    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain no-repeat !important;
}


/* 已收藏：紅底 */
.single-product .ux-cart-wishlist .yith-wcwl-wishlistaddedbrowse a,
.single-product .ux-cart-wishlist .yith-wcwl-wishlistexistsbrowse a {
    background: #e30613 !important;
    border: 1.5px solid #e30613 !important;
}


/* 已收藏：白色實心愛心 */
.single-product .ux-cart-wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.single-product .ux-cart-wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    content: "" !important;
    display: block !important;

    width: 16px !important;
    height: 16px !important;

    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z' fill='%23ffffff'/%3E%3C/svg%3E")
        center / contain no-repeat !important;
}


/* 關閉 YITH 原本偽元素 */
.single-product .ux-cart-wishlist a::after {
    display: none !important;
    content: none !important;
}
