/* ==============================================
   WooCommerce 样式适配 - 虚拟蜡烛主题
   ============================================== */
.candle-woocommerce-page {
    background-color: #000 !important;
    color: #fff !important;
}

/* 产品列表页 */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.woocommerce-products-header h1 {
    color: #ffd700 !important;
    margin-bottom: 1rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
}

.product {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    border-color: #ffd700 !important;
}

.product img {
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.product .price {
    color: #ffd700 !important;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.add_to_cart_button {
    background-color: #ffd700 !important;
    color: #000 !important;
    border: none !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.add_to_cart_button:hover {
    background-color: #fff !important;
    color: #000 !important;
}

/* 产品详情页 */
.single-product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.product_title {
    color: #ffd700 !important;
    margin-bottom: 1rem !important;
}

.woocommerce-Price-amount {
    color: #ffd700 !important;
    font-size: 1.5rem !important;
}

.quantity {
    margin-bottom: 1rem !important;
}

.quantity input {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    padding: 0.5rem !important;
    width: 60px !important;
}

.single_add_to_cart_button {
    background-color: #ffd700 !important;
    color: #000 !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    cursor: pointer !important;
}

.single_add_to_cart_button:hover {
    background-color: #fff !important;
}

/* 购物车页面 */
.woocommerce-cart-form {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.woocommerce-cart-form th,
.woocommerce-cart-form td {
    color: #fff !important;
    border-color: #333 !important;
    padding: 1rem !important;
}

.cart_totals {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    padding: 1.5rem;
}

.cart_totals h2 {
    color: #ffd700 !important;
    margin-bottom: 1rem !important;
}

/* 结账页面 */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce-checkout h3 {
    color: #ffd700 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #333 !important;
}

.form-row input,
.form-row textarea,
.form-row select {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.woocommerce-checkout-payment {
    background-color: #000 !important;
    border: 1px solid #333 !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
}

.payment_method {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #333 !important;
}

.place-order .button {
    background-color: #ffd700 !important;
    color: #000 !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    width: 100% !important;
}

/* 订单成功页 */
.woocommerce-order {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.woocommerce-order h2 {
    color: #ffd700 !important;
    margin-bottom: 1.5rem !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .woocommerce-checkout .col2-set {
        flex-direction: column !important;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
    }
}
    