/* 自定义样?*/

/* Banner样式 */
.banner-area {
    position: relative;
    margin-bottom: 80px;
}

.banner-content {
    position: relative;
}

.single-banner {
    position: relative;
}

.banner-item {
    width: 100%;
    margin-top: 30px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.banner-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.banner-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.banner-item:hover .banner-img img {
    transform: scale(1.05);
}

.banner-info {
    flex: 1;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-info-inner {
    max-width: 500px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.banner-brief {
    margin-bottom: 30px;
}

.banner-brief p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 响应式banner样式 */
@media (max-width: 991px) {
    .banner-item {
        flex-direction: column;
    }
    
    .banner-info {
        padding: 40px 30px;
        text-align: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .banner-info {
        padding: 30px 20px;
    }
    
    .banner-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .banner-brief p {
        font-size: 14px;
    }
}

/* 页面内容居中 */
#page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    float: none !important; /* 覆盖.section类的float: left */
    display: block;
    margin-top: -30px;
}

/* 让wrapper背景透明以显示body背景 */
.wrapper {
    background: transparent !important;
}
#sticky-header{
    background: #fff !important;
}

.product-details-section .container .row{
    background: #fff;
    padding: 20px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
  }

/* 美化product-detail中的数量input */
product-detail .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease;
    max-width: 150px;
}

product-detail .quantity-selector:hover {
    border-color: #31abec;
}

product-detail .quantity-btn {
    background: linear-gradient(135deg, #31abec, #2980b9);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

product-detail .quantity-btn:hover {
    background: linear-gradient(135deg, #2980b9, #cc6600);
    transform: scale(1.05);
}

product-detail .quantity-btn:active {
    transform: scale(0.95);
}

product-detail .quantity-input {
    border: none;
    height: 45px;
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}

product-detail .quantity-input::-webkit-outer-spin-button,
product-detail .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

product-detail .quantity-input:focus {
    background: #f9f9f9;
}

/* 进一步美化quantity-selector */
product-detail .quantity-selector {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

product-detail .quantity-selector::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #31abec, #2980b9, #5dade2);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

product-detail .quantity-selector:hover::before {
    opacity: 1;
}

product-detail .quantity-btn {
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

product-detail .quantity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

product-detail .quantity-btn:hover::before {
    opacity: 0.7;
}

product-detail .quantity-input {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

product-detail .quantity-input:focus {
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(255, 127, 0, 0.2);
}

/* 添加数量标签 */
product-detail .product-quantity {
    margin-bottom: 20px;
}

product-detail .product-quantity h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 响应式优?*/
@media (max-width: 767px) {
    product-detail .quantity-selector {
        max-width: 120px;
    }
    
    product-detail .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    product-detail .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }
}

/* 修复轮播图样?*/
.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slides img {
    display: block;
    width: 100%;
    height: auto;
}

/* 修复商品列表样式 */
.product-container {
    width: 100%;
}

/* 修复轮播图标题样?*/
.nivo-caption {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    padding: 0;
    opacity: 1;
    background: transparent;
    overflow: hidden;
}

.slider-caption-1,
.slider-caption-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}

.slider-title-1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-1-cap-3 p {
    max-width: 500px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 修复产品项样?*/
product-item {
    display: block;
    margin-bottom: 30px;
    height: 100%;
}

/* 商品组件统一高度和标题省?*/
product-item .product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

product-item .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

product-item .product-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: 2.8em; /* 2行高?*/
    margin-bottom: 10px;
}

product-item .product-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 修复结算页面样式 */
.cart-tab {
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
    list-style: none;
    margin: 0;
    padding: 15px;
}

.cart-tab li {
    margin-bottom: 10px;
}

.cart-tab li a {
    color: #666;
    display: block;
    font-size: 14px;
    padding: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.cart-tab li a.active {
    color: #31abec;
    font-weight: 700;
}

.cart-tab li a span {
    background: #ddd;
    border-radius: 50%;
    color: #666;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    margin-right: 10px;
    text-align: center;
    width: 30px;
}

.cart-tab li a.active span {
    background: #31abec;
    color: #fff;
}

/* Shadow DOM样式修复 */
checkout-form {
    display: block;
    width: 100%;
}

/* 移动端商品网格优?- 仅商品区域一行两?*/
@media (max-width: 767px) {
    /* 商品网格强制两列布局 - 只针对商品容?*/
    .featured-product-area .single-product,
    .product-list .single-product,
    .shop-product-area .single-product,
    .new-product-area .single-product,
    .best-seller-area .single-product,
    .special-offer-area .single-product {
        /* 商品项样式在mobile-fixes.css中定?*/
    }

    /* 商品项移动端优化 */
    .product-item {
        margin-bottom: 20px;
    }

    .product-item .product-img {
        margin-bottom: 10px;
    }

    .product-item .product-info {
        padding: 15px 10px;
    }

    .product-item .product-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .product-item .pro-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* 购物车表格移动端适配 */
    .cart-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-table {
        min-width: 600px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .product-thumbnail {
        width: 300px;
    }

    .pro-thumbnail-img {
        width: 60px;
    }

    .pro-thumbnail-info {
        width: calc(100% - 70px);
        padding-left: 10px;
    }

    .product-title-2 {
        font-size: 12px;
        margin-top: 5px;
    }

    /* 移动端容器优?*/
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 移动端头部优?*/
    .header-middle-area {
        padding: 10px 0;
    }

    .logo img {
        max-height: 35px;
    }

    /* 移动端按钮优?*/
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* 移动端表单优?*/
    .form-control {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* 移动端商品操作按?*/
    .product-action ul li {
        margin-bottom: 5px;
    }

    .product-action ul li a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }

    /* 移动端分?*/
    .shop-pagination > li > a {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 移动端侧边栏 */
    .widget {
        margin-bottom: 20px;
        padding: 15px;
    }

    .widget-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* 移动端购物车删除按钮 */
    .product-remove a {
        font-size: 16px;
        color: #dc3545;
        padding: 5px;
    }

    .product-remove a:hover {
        color: #c82333;
    }

    /* 移动端数量控?*/
    .cart-plus-minus {
        height: 35px;
        width: 100px;
    }

    .cart-plus-minus input {
        height: 33px;
        font-size: 12px;
    }

    .cart-plus-minus .dec,
    .cart-plus-minus .inc {
        width: 25px;
        height: 33px;
        line-height: 33px;
        font-size: 12px;
    }

    .cart-tab {
        margin-bottom: 30px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-item .product-info {
        padding: 10px 5px;
    }

    .product-item .product-title {
        font-size: 12px;
    }

    .product-item .pro-price {
        font-size: 13px;
    }

    .cart-table th,
    .cart-table td {
        padding: 6px 2px;
        font-size: 11px;
    }

    .product-thumbnail {
        width: 250px;
    }

    .pro-thumbnail-img {
        width: 50px;
    }

    .product-title-2 {
        font-size: 11px;
    }
}
