/* ==============================================
 FluentCart 商城统一美化样式 最终版
 解决：按钮一团糟/邮箱隐藏/商城列表美化
 ============================================== */

/* 一、商城页面统一隐藏顶部导航菜单 */
body.fluentcart-page #masthead,
body.single-product #masthead {
    display: none !important;
}
body.fluentcart-page {
    padding-top: 30px !important;
}

/* ==============================================
 1. 所有按钮 强制修复 告别咖啡色一团糟
 ============================================== */
.fluentcart-btn,
.fluentcart-add-cart-btn,
.fluentcart-place-order-btn,
.fluentcart-checkout-btn,
.fluentcart-cart-update-btn,
.fluentcart-cart-checkout-btn,
.fluentcart-order-note-toggle {
    background: #a67c52 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    min-height: 44px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.fluentcart-btn:hover,
.fluentcart-add-cart-btn:hover,
.fluentcart-place-order-btn:hover,
.fluentcart-checkout-btn:hover {
    background: #8b6642 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.25) !important;
}
/* 修复「留个注释」按钮，改成「订单备注」 */
.fluentcart-order-note-toggle {
    background: #f5f2ee !important;
    color: #a67c52 !important;
    border: 1px solid #e5e2dd !important;
}
.fluentcart-order-note-toggle:hover {
    background: #ebe6df !important;
    box-shadow: none !important;
    transform: none !important;
}
.fluentcart-order-note-toggle span {
    visibility: hidden !important;
    position: relative !important;
}
.fluentcart-order-note-toggle span::after {
    content: "订单备注" !important;
    visibility: visible !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==============================================
 2. 结账页字段精准修复
 ============================================== */
/* 强制隐藏邮箱字段，双重保险 */
.fluentcart-checkout .fluentcart-field-billing-email,
.fluentcart-checkout [data-field="billing_email"],
.fluentcart-checkout input[name="billing_email"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}
/* 隐藏其他多余字段 */
.fluentcart-checkout .fluentcart-field-billing-company,
.fluentcart-checkout .fluentcart-field-billing-postcode,
.fluentcart-checkout .fluentcart-create-account-wrap,
.fluentcart-checkout .fluentcart-different-shipping-wrap {
    display: none !important;
}
/* 结账页面整体美化 */
.fluentcart-checkout-wrap {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: grid !important;
    grid-template-columns: 1.7fr 1fr !important;
    gap: 40px !important;
}
.fluentcart-checkout-form-wrap {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px #eee !important;
}
.fluentcart-checkout-sidebar {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px #eee !important;
    position: sticky !important;
    top: 30px !important;
}
.fluentcart-form-input {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    padding: 12px 15px !important;
}

/* ==============================================
 3. 商城列表页 高级美化
 ============================================== */
/* 隐藏多余筛选、价格滑块 */
.fluentcart-shop-filter-wrap,
.fluentcart-shop-sort-wrap {
    display: none !important;
}
/* 商品网格布局，3列黄金比例 */
.fluentcart-products-list {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 35px !important;
}
/* 商品卡片美化 */
.fluentcart-product-item {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    padding-bottom: 25px !important;
}
.fluentcart-product-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
/* 商品图片统一尺寸，不变形 */
.fluentcart-product-thumb img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    border-bottom: 1px solid #f1f1f1 !important;
}
/* 商品标题、价格美化 */
.fluentcart-product-title {
    font-size: 15px !important;
    color: #333 !important;
    margin: 18px 15px 10px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}
.fluentcart-product-price {
    font-size: 18px !important;
    color: #a67c52 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

/* 购物车页面美化 */
.fluentcart-cart-wrap {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}
.fluentcart-cart-table {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px #eee !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fluentcart-checkout-wrap {
        grid-template-columns: 1fr !important;
    }
    .fluentcart-products-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .fluentcart-product-thumb img {
        height: 180px !important;
    }
}