/* ============================================
   aroema 主题 CSS 修复
   ============================================ */
body {font-size: 1.4rem;}
.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12{box-sizing:border-box;}
.shop-detials *,.shops-section *,.aroema-header-area *,footer#footer *,.body-content-container *,.body-content-formal-container *{box-sizing:border-box;}
.shop-detials ul,.shops-section ul,.aroema-header-area ul,footer#footer ul{list-style:none;padding:0;margin:0;}
.shop-detials table,.shops-section table,footer#footer table{border-collapse:collapse;}
.shop-detials img,.shops-section img,footer#footer img{max-width:100%;height:auto;}
.product-slider .item img{width:100%;}
.shop-detials {padding: 30px 0 90px;}
.bi.bi-cart4{font-size: 18px;}
small.cart_counter{    
    background-color: #f5cbbc;
    color: #5f7453;
    right: -9px;
    text-align: center;}
/* ============================================
   竖排缩略图商品画廊（Bootstrap 栅格布局）
   ============================================ */
.product-gallery-wrap{margin-left:0;margin-right:0;}
.product-gallery-wrap .product-thumb-vertical-wrap{padding-right:5px;display:flex;flex-direction:column;align-items:center;}
.product-gallery-wrap .product-thumb-vertical-scroll{flex:1;overflow-y:auto;overflow-x:hidden;max-height:500px;width:100%;
    scrollbar-width:thin;scrollbar-color:#ccc transparent;}
.product-gallery-wrap .product-thumb-vertical-scroll::-webkit-scrollbar{width:4px;}
.product-gallery-wrap .product-thumb-vertical-scroll::-webkit-scrollbar-track{background:transparent;}
.product-gallery-wrap .product-thumb-vertical-scroll::-webkit-scrollbar-thumb{background:#ccc;border-radius:2px;}
.product-gallery-wrap .product-thumb-vertical{display:flex;flex-direction:column;gap:8px;}
.product-gallery-wrap .product-thumb-vertical .thumb-item{width:100%;aspect-ratio:1;border:2px solid transparent;border-radius:4px;overflow:hidden;cursor:pointer;transition:border-color 0.25s;flex-shrink:0;}
.product-gallery-wrap .product-thumb-vertical .thumb-item img{width:100%;height:100%;object-fit:cover;display:block;}
.product-gallery-wrap .product-thumb-vertical .thumb-item.active,
.product-gallery-wrap .product-thumb-vertical .thumb-item:hover{border-color:#f8b097;}
.product-gallery-wrap .thumb-arrow{width:28px;height:28px;line-height:28px;text-align:center;border-radius:50%;border:1px solid #ddd;cursor:pointer;color:#666;font-size:12px;transition:all 0.25s;flex-shrink:0;margin:4px 0;user-select:none;}
.product-gallery-wrap .thumb-arrow:hover{background:#f8b097;border-color:#f8b097;color:#fff;}
.product-gallery-wrap .product-slider-wrap{padding-left:5px;}
@media(max-width:767px){
    .product-gallery-wrap{flex-direction:column-reverse;}
    .product-gallery-wrap .product-thumb-vertical-wrap{flex-direction:row;padding-right:0;margin-top:10px;}
    .product-gallery-wrap .product-thumb-vertical-scroll{max-height:none;overflow-y:visible;overflow-x:auto;flex:1;}
    .product-gallery-wrap .product-thumb-vertical{flex-direction:row;gap:8px;}
    .product-gallery-wrap .product-thumb-vertical .thumb-item{width:70px;height:70px;flex-shrink:0;}
    .product-gallery-wrap .thumb-arrow{display:none;}
}
.portfolio_nav ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0;}
.portfolio_nav ul li a{display:inline-block;padding:8px 20px;border-radius:20px;color:#666;text-decoration:none;font-size:14px;transition:all 0.3s;}
.portfolio_nav ul li.current_menu_item a,.portfolio_nav ul li a:hover{color:#fff;}
.single-products-box{margin-bottom:30px;overflow:hidden;}
.theme-popover-mask{}
.theme-popover{}
.sku-line.selected{background:#fff5f5!important;}
.sku-items-disabled{opacity:0.4;cursor:not-allowed!important;}
/* 合约价显示：不让 initStyles() 给售价加删除线 */
.goods-sale-price-value{text-decoration:none!important;color:inherit!important;}
.am-text-center{text-align:center;}
.am-margin-top-xl{margin-top:40px;}
.plugins-pricetier-contract-price {margin-top: 10px;
    padding: 10px;
    background: #ffb392;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    box-shadow: 0 12px 36px 0 rgba(31, 31, 51, .12);
}
 .category-price span {
    color: #fff;
    text-decoration: unset;
}
.category-price .contract-price-label{font-size: 1.6rem;}
.category-color p {
    padding: 0px;
    font-size: unset;
}
table.category-table td.table-title {
    font-size: unset;
    color: unset;
}
table.category-table td.table-text {
    color: unset;
    font-size: unset;
}
@media(max-width:991px){.shop-dtls-info{padding-left:0;margin-top:30px;}}

/* --- Quantity button 
================================*/

.category-count-button {

  display: inline-flex;
  padding: 8px 0 30px;
  background-color: hsla(0, 0%, 100%, .96);
    border: 1px solid rgba(0, 0, 0, .02);
    border-radius: 20px;
    bottom: 24px;
    box-shadow: 0 12px 36px 0 rgba(31, 31, 51, .12);
    height: 80px;
    margin-left: -5px;
    /* min-width: 400px; */
    padding: 16px 16px;
    position: fixed;
    z-index: 999999;
}
.category-count-button .category-button:nth-child(2) {
    padding-left: 0px;
}
.category-button .cart-submit{
    border-radius: 1rem 0px 0px 1rem;
}
.category-button .cart-submit:before {
    background: #f8b097;
    border-radius: 1rem 0px 0px 1rem;
}
.category-button .buy-submit{
    border-radius: 0px 1rem 1rem 0px;
    background: #415933;
}
.category-button .buy-submit:before {
    background: #f8b097;
    border-radius: 0px 1rem 1rem 0px;
}
.quantity-with_btn {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  vertical-align: middle;
}

.quantity .cart-plus-minus {
  position: relative;
  width: 170px;
  text-align: left;
  height: 54px;
  overflow: hidden;
  border-radius: 5px;
}

.quantity .cart-plus-minus > .ctnbutton-aroema {
  cursor: pointer;
  position: absolute;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  width: 38px;
  -webkit-box-align: center;
  align-items: center;
  vertical-align: middle;
  color: #fff;
  -webkit-transition: 0.5s;
  background: var(--mian-color-gray-green);
}

.quantity .cart-plus-minus > .cart-plus-minus-box-aroema {
  border: 0;
  height: 54px;
  text-align: center;
  width: 170px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  background-color: #fff !important;
  background: linear-gradient(90deg, var(--mian-color-gray-green) 50%, transparent 0) repeat-x,
    linear-gradient(90deg, var(--mian-color-gray-green) 50%, transparent 0) repeat-x,
    linear-gradient(0deg, var(--mian-color-gray-green) 50%, transparent 0) repeat-y,
    linear-gradient(0deg, var(--mian-color-gray-green) 50%, transparent 0) repeat-y;
  background-size: 6px 2px, 6px 2px, 2px 6px, 2px 7px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  -webkit-animation: linearGradientMove 0.3s infinite linear;
  animation: linearGradientMove 0.3s infinite linear;
}

.quantity .cart-plus-minus > .ctnbutton-aroema.dec {
  top: 50%;
  left: 0%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-box;
  display: flex;
  -webkit-justify-content: center;
  height: 100%;
  border-radius: 0 30px 30px 0;
}

.quantity .cart-plus-minus > .ctnbutton-aroema.inc {
  top: 50%;
  right: 0%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  height: 100%;
  border-radius: 30px 0 0 30px;
}

.theme-options {
   font-size: 1.3rem;
}
.operate-number-container .operate-number-input{
   width:170px !important;
   font-size: 16px !important;
}
.theme-options dd {
    margin: unset;
}
.theme-signin-left {
    background: unset;
}
.theme-options li i {
    bottom: -0.8rem;
}
.nav-icon.common-goods-favor-submit-event.am-hide-sm-only{
    align-items: center;
    border: none;
    color: rgba(9, 9, 10, .92);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    height: 48px;
    justify-content: center;
    letter-spacing: 0;
    width: 48px;
}
@media (min-width: 320px) and (max-width: 479px) {
    .category-title h2 {
        font-size: 20px;
    }
    .category-color p {
        font-size: 14px;
        padding: unset;
    }
    table.category-table td.table-title {
        font-size: 14px;
        color: #5d5f62;
    }
    table.category-table td.table-text {
        color: #5d5f62;
        font-size: 14px;
    }
    .category-button {
        padding-left: 0;
        margin-top: unset;
    }
}
/* ============================================
   aroema Header 增强功能样式
   ============================================ */

/* --- 购物车按钮 --- */
.aroema-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    position: relative;
}
.aroema-cart-btn .cart_counter {
    font-style: normal;
}

/* --- 多语言下拉 --- */
.aroema-lang-dropdown {
    display: inline-flex;
    align-items: center;
    margin: 0 8px;
}
.aroema-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.aroema-lang-toggle:hover { color: var(--mian-color); }
/* 下拉内容默认隐藏，am-active 时显示 */
.aroema-lang-dropdown > .am-dropdown-content { display: none; }
.aroema-lang-dropdown.am-active > .am-dropdown-content { display: block; }
.aroema-lang-menu {
    min-width: 130px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    margin: 0;
    list-style: none;
}
.aroema-lang-menu li { display: block; margin: 0; }
.aroema-lang-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.aroema-lang-menu li a:hover {
    background: #f5f5f5;
    color: var(--mian-color);
}

/* --- 用户下拉菜单 --- */
.aroema-user-dropdown {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}
.aroema-login-btn, .aroema-reg-btn {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 4px 2px;
}
.aroema-login-btn:hover, .aroema-reg-btn:hover { color: var(--mian-color); }
.aroema-user-divider {
    color: #ccc;
    margin: 0 2px;
    font-size: 14px;
}
.aroema-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.aroema-user-toggle:hover { color: var(--mian-color); }
/* 下拉内容默认隐藏，am-active 时显示 */
.aroema-user-dropdown > .am-dropdown-content { display: none; }
.aroema-user-dropdown.am-active > .am-dropdown-content { display: block; }
.aroema-user-menu {
    min-width: 120px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    margin: 0;
    list-style: none;
    left: unset;
}
.aroema-user-menu li { display: block; margin: 0; }
.sticky .aroema-user-menu .am-dropdown-content-li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.sticky .aroema-user-menu .am-dropdown-content-li a:hover {
    background: #f5f5f5;
    color: var(--mian-color);
}

/* --- 移动端搜索 --- */
.aroema-mobile-search {
    padding: 10px 15px;
}
.aroema-mobile-search form {
    display: flex;
    gap: 8px;
}
.aroema-mobile-search input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}
.aroema-mobile-search button {
    background: var(--mian-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
}

/* --- 移动端用户操作区 --- */
.aroema-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
}
.aroema-mobile-btn {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.aroema-mobile-btn.primary {
    background: var(--mian-color);
    color: #fff;
}
.aroema-mobile-btn.primary:hover { opacity: 0.9; }
.aroema-mobile-btn.outline {
    border: 1px solid var(--mian-color);
    color: var(--mian-color);
    background: transparent;
}
.aroema-mobile-btn.outline:hover {
    background: var(--mian-color);
    color: #fff;
}
.aroema-mobile-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    text-decoration: none !important;
    flex-shrink: 0;
}
.aroema-mobile-cart span {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--mian-color);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- 响应式微调 --- */
@media (max-width: 991px) {
    .search-containers { display: none; }
    .aroema-lang-dropdown { display: none; }
}

/* --- 页面标题条（替代 header_nav_simple） --- */
.aroema-page-title-bar {
    background: #f8f4ee;
    padding: 16px 0;
    margin-top: 0;
}
.aroema-page-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.aroema-page-title-bar .container { max-width: 1200px; }

/* ============================================
   手机端产品列表优化
   ============================================ */
@media (max-width: 767px) {
    
    .portfolio_nav ul li {
        padding: unset;
        margin: unset;
    }
    .portfolio_nav ul li a {
        padding: 8px;
    }
    ul.tabs.active {
        width: auto;
    }
    .shops-section {
        padding: 0px;
    }
    .shops-section .tabs {
         margin-top: 0px; 
    }
    .shops-section .tabs li a {
        font-size: 20px;
        width: 38px;
        height: 38px;
        line-height: 36px;
    }
}
/* 桌面端（≥768px）固定商品信息面板（JS 智能控制 fixed + 到底释放） */
@media (min-width: 768px) {
    /* ① stretch 让右侧列拉伸至与左侧等高 */
    .product-detail-wrapper {
        align-items: stretch !important;
        position: relative; /* JS 需要此定位参考 */
    }

    /* ② 左侧列顶对齐（不拉伸内容） */
    .product-detail-wrapper > .col-lg-8.col-md-8 {
        align-self: flex-start;
    }

    /* ③ fixed / release 由 footer.html 中的 JS 动态控制 */
}
