/*
 * Amazon Style Store - 组件样式
 * 产品卡片、购物车、结账等组件
 */

/* ========== 产品卡片 ========== */
.product-card {
    background-color: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: var(--amazon-orange);
    color: var(--amazon-black);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    z-index: 1;
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 宽高比 */
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    background-color: var(--amazon-light-gray);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.product-image-link:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.product-name-link:hover .product-name {
    color: var(--amazon-orange);
}

.product-name {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition-normal);
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--amazon-dark);
    margin-bottom: var(--spacing-md);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    color: var(--amazon-orange);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--amazon-gray);
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ========== 购物车 ========== */
.cart-item {
    display: flex;
    padding: var(--spacing-lg);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    background-color: var(--amazon-white);
}

.item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: var(--spacing-lg);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.item-details {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.item-title {
    font-size: 1.125rem;
    margin: 0;
}

.item-remove {
    background: none;
    border: none;
    color: var(--amazon-gray);
    cursor: pointer;
    padding: var(--spacing-xs);
    font-size: 1rem;
}

.item-remove:hover {
    color: #ff0000;
}

.item-price {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.item-options {
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--amazon-gray);
}

.item-options .option {
    margin-bottom: var(--spacing-xs);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.item-quantity label {
    font-weight: 600;
}

.item-quantity select {
    width: 80px;
}

/* 购物车空状态 */
.cart-empty, .checkout-empty, .confirmation-error {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--amazon-border);
    margin-bottom: var(--spacing-lg);
}

/* 订单摘要 */
.order-summary, .order-summary-checkout, .order-summary-confirmation {
    background-color: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    position: sticky;
    top: var(--spacing-lg);
}

.order-summary h2, 
.order-summary-checkout h2,
.order-summary-confirmation h2 {
    border-bottom: 1px solid var(--amazon-border);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-light-gray);
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.125rem;
    font-weight: bold;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--amazon-border);
}

.summary-row .amount {
    font-weight: 600;
}

.shipping-note, .payment-note, .confirmation-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--amazon-light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--amazon-gray);
}

.checkout-btn, .continue-shopping-btn {
    display: block;
    width: 100%;
    margin-top: var(--spacing-md);
}

.continue-shopping-btn {
    margin-top: var(--spacing-sm);
}

/* ========== 结账页面 ========== */
.checkout-step {
    background-color: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-border);
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--amazon-orange);
    color: var(--amazon-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.shipping-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.shipping-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.shipping-form input,
.shipping-form select {
    width: 100%;
}

.form-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-actions, .payment-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--amazon-border);
}

/* ========== 支付页面 ========== */
.payment-method {
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.payment-method.selected {
    border-color: var(--amazon-orange);
    box-shadow: 0 0 0 1px var(--amazon-orange);
}

.method-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background-color: var(--amazon-light-gray);
    cursor: pointer;
}

.method-radio {
    margin-right: var(--spacing-md);
}

.method-radio input[type="radio"] {
    margin: 0;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--amazon-blue);
    margin-right: var(--spacing-md);
}

.method-info {
    flex: 1;
}

.method-info h3 {
    margin: 0 0 var(--spacing-xs) 0;
}

.method-info p {
    margin: 0;
    color: var(--amazon-gray);
    font-size: 0.875rem;
}

.method-details {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--amazon-border);
}

.usdt-payment-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-light-gray);
}

.usdt-payment-info .info-row:last-child {
    border-bottom: none;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.wallet-address code {
    flex: 1;
    background-color: var(--amazon-light-gray);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.copy-address-btn {
    background-color: var(--amazon-blue);
    color: var(--amazon-white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
}

.copy-address-btn.copied {
    background-color: #28a745;
}

.payment-instructions {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--amazon-light-gray);
    border-radius: var(--border-radius-sm);
}

.payment-instructions h4 {
    margin-bottom: var(--spacing-sm);
}

.payment-instructions ol {
    margin-left: var(--spacing-lg);
}

.payment-instructions li {
    margin-bottom: var(--spacing-xs);
}

/* ========== 支付失败页面 ========== */
.payment-failure-container {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.failure-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: var(--spacing-lg);
}

.failure-message {
    margin-bottom: var(--spacing-xl);
}

.failure-message h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: #dc3545;
}

.failure-message p {
    font-size: 1.125rem;
    color: var(--amazon-gray);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
}

.failure-details {
    background-color: var(--amazon-light-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.failure-details p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.failure-details p:last-child {
    margin-bottom: 0;
}

.failure-details strong {
    color: var(--amazon-dark);
}

.failure-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.payment-help {
    background-color: var(--amazon-light-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.payment-help p {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--amazon-dark);
}

.payment-help ul {
    margin-left: var(--spacing-lg);
    margin-bottom: 0;
}

.payment-help li {
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--amazon-gray);
}

.payment-help li:last-child {
    margin-bottom: 0;
}

.payment-note.failure {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.payment-note.failure i {
    color: #dc3545;
}

/* ========== 确认页面 ========== */
.confirmation-header {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--amazon-border);
    margin-bottom: var(--spacing-xl);
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: var(--spacing-lg);
}

.confirmation-message {
    font-size: 1.125rem;
    color: var(--amazon-gray);
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-details .detail-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--amazon-border);
}

.confirmation-details .detail-section:last-child {
    border-bottom: none;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-light-gray);
}

.detail-row:last-child {
    border-bottom: none;
}

.order-number {
    font-family: monospace;
    font-weight: bold;
    color: var(--amazon-blue);
}

.status {
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status.completed {
    background-color: #d4edda;
    color: #155724;
}

.shipping-address {
    line-height: 1.6;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-light-gray);
}

.confirmation-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-quantity {
    font-size: 0.875rem;
    color: var(--amazon-gray);
    margin-top: var(--spacing-xs);
}

/* ========== 产品详情页 ========== */
.breadcrumb {
    padding: var(--spacing-md) 0;
    background-color: var(--amazon-light-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.breadcrumb a {
    color: var(--amazon-blue);
}

.breadcrumb .separator {
    margin: 0 var(--spacing-sm);
    color: var(--amazon-gray);
}

.product-detail {
    margin-bottom: var(--spacing-xl);
}

.product-images {
    margin-bottom: var(--spacing-lg);
}

.main-image {
    width: 100%;
    padding-top: 75%;
    position: relative;
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
    background-color: var(--amazon-white);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-lg);
}

.image-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    overflow: hidden;
}

.thumbnail.active {
    border-color: var(--amazon-orange);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: var(--spacing-lg);
    background-color: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
}

.product-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--amazon-orange);
}

.rating-value {
    font-weight: bold;
    color: var(--amazon-dark);
}

.review-count {
    color: var(--amazon-blue);
    font-size: 0.875rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #B12704;
    margin-bottom: var(--spacing-lg);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    color: #007600;
    font-weight: 600;
}

.color-selection, .storage-selection, .quantity-selection {
    margin-bottom: var(--spacing-lg);
}

.color-selection h3,
.storage-selection h3,
.quantity-selection h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.color-options {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.color-option {
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    cursor: pointer;
    text-align: center;
    min-width: 80px;
}

.color-option.selected {
    border-color: var(--amazon-orange);
    background-color: rgba(255, 153, 0, 0.1);
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-xs) auto;
    border: 1px solid var(--amazon-border);
}

.color-name {
    font-size: 0.75rem;
    display: block;
}

.storage-select, .quantity-select {
    width: 100%;
    max-width: 200px;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.product-actions .btn {
    flex: 1;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.stock-status .in-stock {
    color: #007600;
}

.stock-status .out-of-stock {
    color: #cc0000;
}

.product-details-tabs {
    margin-top: var(--spacing-xl);
}

.product-details-tabs .tabs {
    display: flex;
    border-bottom: 1px solid var(--amazon-border);
    margin-bottom: var(--spacing-lg);
}

.product-details-tabs .tab {
    background: none;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--amazon-gray);
    cursor: pointer;
    position: relative;
}

.product-details-tabs .tab.active {
    color: var(--amazon-dark);
}

.product-details-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--amazon-orange);
}

.tab-pane {
    display: none;
    padding: var(--spacing-lg);
    background-color: var(--amazon-white);
    border: 1px solid var(--amazon-border);
    border-radius: var(--border-radius-md);
}

.tab-pane.active {
    display: block;
}

.specifications-list {
    list-style: none;
}

.specifications-list li {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--amazon-light-gray);
}

.specifications-list li:last-child {
    border-bottom: none;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--amazon-dark);
}

.total-reviews {
    color: var(--amazon-gray);
    font-size: 0.875rem;
}

/* ========== 首页特定样式 ========== */
.hero-section {
    background: url('../images/products/iphone17-pro-max-cover.png') center/cover no-repeat;
    color: var(--amazon-white);
    padding: 0;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 600px; /* 固定高度以展示图片 */
    display: flex;
    align-items: flex-end; /* 将内容推到底部 */
    justify-content: center;
}

.hero-section::before {
    /* 移除遮罩，或只在底部添加渐变以突出按钮 */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: var(--spacing-xxl);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    font-size: 1.125rem;
    padding: var(--spacing-md) var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.featured-products {
    margin-bottom: var(--spacing-xl);
}

.payment-promo {
    background-color: var(--amazon-light-gray);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.payment-promo-content {
    max-width: 600px;
    margin: 0 auto;
}

.payment-promo-icon {
    font-size: 3rem;
    color: #26A17B;
    margin-bottom: var(--spacing-lg);
}

/* ========== 购物车侧边栏 ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--amazon-white);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--amazon-border);
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.cart-sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--amazon-border);
}

.close-cart-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--amazon-gray);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 1rem;
    }
    
    .payment-promo-icon {
        font-size: 2rem;
    }
    
    .failure-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .failure-actions .btn {
        width: 100%;
    }
    
    .payment-failure-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .failure-icon {
        font-size: 3rem;
    }
    
    .failure-message h3 {
        font-size: 1.5rem;
    }
}

/* ========== 桌面端产品横向排列 ========== */
@media (min-width: 992px) {
    .product-grid {
        display: flex;
        flex-wrap: nowrap; /* 禁止换行，确保产品横向排列 */
        overflow-x: auto; /* 如果产品过多，允许水平滚动 */
        padding-bottom: var(--spacing-md); /* 为滚动条留出空间 */
        margin: 0 calc(var(--spacing-md) * -1); /* 抵消容器内边距 */
    }
    
    .product-grid .col {
        flex: 0 0 25%; /* 每个产品占25%宽度，4个产品正好一行 */
        max-width: 25%;
        margin-bottom: 0; /* 移除底部边距，因为不换行 */
    }
    
    /* 移除水平滚动条在桌面端的显示（除非必要） */
    .product-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .product-grid::-webkit-scrollbar-track {
        background: var(--amazon-light-gray);
        border-radius: var(--border-radius-sm);
    }
    
    .product-grid::-webkit-scrollbar-thumb {
        background: var(--amazon-gray);
        border-radius: var(--border-radius-sm);
    }
    
    .product-grid::-webkit-scrollbar-thumb:hover {
        background: var(--amazon-dark);
    }
}

/* 超大屏幕优化 */
@media (min-width: 1200px) {
    .product-grid .col {
        flex: 0 0 20%; /* 在超大屏幕上，每个产品占20%宽度，5个产品一行 */
        max-width: 20%;
    }
}

/* 防止在桌面端产品卡片过高 */
@media (min-width: 768px) {
    .product-card {
        min-height: 350px; /* 确保产品卡片有最小高度 */
    }
}