:root {
    --brand-dark: #1f2937;
    --brand-berry: #b04a5a; /* 提取自截图的按钮颜色 */
    --brand-berry-hover: #963e4c;
    --price-red: #d32f2f;
    --bg-timer: #fdf2f2;
    --text-timer: #c53030;
    --bg-gray-bar: #f4f6f8;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark);
    background-color: white;
}

.brand-font { font-family: 'Playfair Display', serif; }

/* --- 头部样式 --- */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}
.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: #1f2937; /* 深蓝灰 */
}

/* 倒计时条 */
.timer-bar {
    background-color: var(--bg-timer);
    color: var(--text-timer);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    text-align: center;
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

/* --- 按钮样式 --- */
.btn-checkout {
    background-color: var(--brand-berry);
    color: white;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    transition: background-color 0.3s;
    text-transform: capitalize;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}
.btn-checkout:hover {
    background-color: var(--brand-berry-hover);
}

/* --- 购物车列表 --- */
.cart-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}
.item-img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.item-details {
    flex: 1;
    padding-left: 20px;
}
.item-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}
.item-variant {
    font-size: 13px;
    color: #666;
}
.item-price-block {
    text-align: right;
    min-width: 120px;
}
.current-price {
    display: block;
    font-weight: 700;
    font-size: 16px;
}
.old-price {
    display: block;
    font-size: 12px;
    text-decoration: line-through;
    color: var(--price-red);
    font-weight: 600;
}
.remove-btn {
    margin-left: 30px;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}
.remove-btn:hover { color: #d32f2f; }

/* --- 底部提示条 --- */
.currency-note {
    background-color: var(--bg-gray-bar);
    color: #555;
    font-size: 12px;
    text-align: center;
    padding: 15px;
    margin: 30px 0;
    border-radius: 4px;
}

/* --- 底部结算区 (Cart Footer) --- */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 30px;
}

.continue-shopping {
    color: #3b5998; /* 链接蓝 */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}
.continue-shopping:hover { opacity: 0.8; }

.summary-block {
    text-align: right;
    width: 100%;
    max-width: 300px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.summary-label { color: #555; }
.summary-value { font-weight: 600; }

.savings-value { color: var(--price-red); }

.divider {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
}

.grand-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--brand-dark);
}

/* 自定义图片样式 */
.item-custom-image {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.custom-image-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.custom-image-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.custom-image-label i {
    color: #4caf50;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .cart-header { flex-direction: column; align-items: flex-start; }
    .timer-bar { width: 100%; max-width: none; order: 2; }
    .btn-checkout.top { display: none; } /* 移动端隐藏顶部按钮 */
    .cart-footer { flex-direction: column-reverse; align-items: center; }
    .summary-block { max-width: 100%; width: 100%; }
    .btn-checkout.bottom { width: 100%; }
    
    .custom-image-thumb {
        width: 40px;
        height: 40px;
    }
}
