/* ===========================================
   Hostease主题 - 产品卡片样式优化 (安全版本)
   仅作用于产品列表页面，不影响订购总额等其他页面
   文件位置: /home/manage/public_html/templates/hostease/css/product-cards.css
   =========================================== */

/* 使用更精确的选择器，仅作用于产品列表页面 */
#order-standard_cart .products {
    padding: 20px 0;
}

/* 行布局 - 仅限 .products 内部 */
#order-standard_cart .products .row.row-eq-height {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
}

/* 列布局 - 仅限 .products 内部 */
#order-standard_cart .products .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 50%;
}

/* 产品卡片 - 仅限 .products 内部 */
#order-standard_cart .products .product.clearfix {
    background: var(--he-card-bg, #ffffff);
    border-radius: 8px;
    box-shadow: var(--he-shadow-card, 0 2px 12px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--he-border, #e9ecef);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
    float: none;
    width: 100%;
    box-sizing: border-box;
}

#order-standard_cart .products .product.clearfix:hover {
    box-shadow: var(--he-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.2));
    border-color: var(--he-primary, #1976d2);
}

/* 产品头部 - 仅限 .products 内部 */
#order-standard_cart .products .product.clearfix header {
    background: var(--he-bg-light, #f7f9fc);
    padding: 15px 16px;
    margin: 0;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

#order-standard_cart .products .product.clearfix header span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    margin: 0;
    color: var(--he-primary-fg, #ffffff);
    word-break: break-word;
}

/* 产品描述 - 仅限 .products 内部 */
#order-standard_cart .products .product-desc {
    padding: 16px;
    flex-grow: 1;
    background: var(--he-card-bg, #ffffff);
    color: var(--he-fg-muted, #666);
    line-height: 1.5;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* 产品底部 - 仅限 .products 内部 */
#order-standard_cart .products .product.clearfix footer {
    background: var(--he-bg-light, #f8f9fa);
    padding: 16px;
    margin: 0;
    margin-top: auto;
    border-top: 1px solid var(--he-border-soft, #dee2e6);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 价格区域 - 仅限 .products 内部 */
#order-standard_cart .products .product-pricing {
    flex: 1;
    text-align: left;
    margin: 0;
    margin-right: 15px;
    color: var(--he-fg-muted, #666);
    line-height: 1.3;
    font-size: 11px;
}

#order-standard_cart .products .product-pricing .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--he-primary, #1976d2);
    display: block;
    line-height: 1.1;
    margin: 2px 0;
}

/* 按钮样式 - 仅限 .products 内部 */
#order-standard_cart .products .product.clearfix .btn-success {
    background: var(--he-primary, #28a745);
    border: none;
    color: var(--he-primary-fg, #ffffff);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    width: auto;
    min-width: 100px;
    transition: box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#order-standard_cart .products .product.clearfix .btn-success:hover {
    background: var(--he-primary, #28a745);
    box-shadow: none;
    color: var(--he-primary-fg, #ffffff);
}

#order-standard_cart .products .product.clearfix .btn-success i {
    margin-right: 6px;
    font-size: 12px;
}

/* 大屏幕优化 - 仅限 .products 内部 */
@media (min-width: 1200px) {
    #order-standard_cart .products .row.row-eq-height {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    #order-standard_cart .products .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
        flex: 0 0 48%;
        max-width: 48%;
    }
    
    #order-standard_cart .products .product.clearfix header span {
        font-size: 15px;
    }
    
    #order-standard_cart .products .product-desc {
        font-size: 13px;
        padding: 18px;
    }
    
    #order-standard_cart .products .product-pricing .price {
        font-size: 20px;
    }
    
    #order-standard_cart .products .product.clearfix .btn-success {
        font-size: 12px;
        padding: 12px 24px;
        min-width: 120px;
    }
}

@media (min-width: 1400px) {
    #order-standard_cart .products .col-md-6 {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    #order-standard_cart .products .product.clearfix header span {
        font-size: 16px;
    }
    
    #order-standard_cart .products .product-desc {
        font-size: 14px;
        padding: 20px;
    }
    
    #order-standard_cart .products .product-pricing .price {
        font-size: 22px;
    }
    
    #order-standard_cart .products .product.clearfix .btn-success {
        font-size: 13px;
        padding: 14px 28px;
        min-width: 140px;
    }
}

/* 响应式设计 - 仅限 .products 内部 */
@media (max-width: 1199px) {
    #order-standard_cart .products .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    #order-standard_cart .products .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    #order-standard_cart .products .product-desc {
        padding: 15px;
        font-size: 11px;
    }
    
    #order-standard_cart .products .product.clearfix header {
        padding: 12px;
    }
    
    #order-standard_cart .products .product.clearfix header span {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    #order-standard_cart .products .col-md-6 {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    #order-standard_cart .products .product.clearfix footer {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    #order-standard_cart .products .product-pricing {
        text-align: left;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #order-standard_cart .products .product.clearfix .btn-success {
        width: 100%;
        min-width: auto;
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* 清除干扰 - 仅限 .products 内部 */
#order-standard_cart .products .product.clearfix::after,
#order-standard_cart .products .product.clearfix::before {
    display: none;
}

/* 页面标题优化 */
#order-standard_cart .header-lined h1 {
    color: #263238;
    font-weight: 600;
    margin-bottom: 10px;
}

#order-standard_cart .header-lined p {
    color: var(--he-fg-muted, #666);
    font-size: 16px;
    margin-bottom: 30px;
}