.pw-page-cart-s2{max-width: 1280px;}
.pw-page-cart-s2 .pw-cart-title-container{
	border-bottom: 1px solid #e0e0e2;
    display: flex;
    align-items: center;
	margin-bottom:1.5rem;
}
.pw-page-cart-s2 .pw-cart-title-container .pw-cart-title-body {
    color: #a1a3a8;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    border-radius: 0 0 4px 4px;
}
.pw-page-cart-s2 .pw-cart-title-container .pw-cart-title-body.active {
    color: #ef4056;
    border-bottom: 4px solid #ef4056;
    border-radius: 0 0 4px 4px;
}
.pw-page-cart-s2 .pw-cart-title-container .pw-cart-title-body .pw-cart-title{
	font-size:14px;
}
.pw-page-cart-s2 .pw-cart-title-container .pw-cart-title-body .pw-cart-count {
    height: 20px;
    width: 20px;
    background-color: #a1a3a8;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 4px;
}
.pw-page-cart-s2 .pw-cart-title-container .pw-cart-title-body.active .pw-cart-count {
    background-color: #ef4056;
}
.pw-page-cart-s2 .pw-text-1 {
    color: #81858b;
    font-size: 12px;
    text-align: justify;
	margin-bottom:1rem;
}
.item-count {
    color: #666;
    font-size: 0.9rem;
}

.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item .pw-row-1{
	display: flex;
	align-items: center;
}
.cart-item .pw-row-1 .item-thumbnail{
	width:140px;
	padding:15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item .pw-row-1 .item-details{}
.cart-item .pw-row-2{
	display: flex;
	align-items: center;
}
.cart-item .pw-row-2 .item-quantity-actions {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item .pw-row-2 .line-total{}
.cart-item:last-child {
    border-bottom: none;
}

.item-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}
.item-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}
.item-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}
.item-short-description{
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* number of lines to show */
	-webkit-box-orient: vertical;
    font-size: 11px;
}
.stock-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.discount-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}
.sale-price {
    color: #d32f2f;
    font-weight: bold;
}
.savings {
    color: #ef394e;
    font-size: 10px;
    font-weight: bold;
    line-height: 5px;
}
.line-total {
    margin-top: 5px;
    font-weight: bold;
    color: #333;
}

.item-quantity-actions {
    margin-left: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
	overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 0px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.quantity-btn.trash {
    color: #d32f2f;
}

.quantity-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-btn.disabled:hover {
    background: #fff;
    border-color: #ddd;
}

.quantity-number {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.coupon-section {
    margin-bottom:1rem;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
	border:1px solid #e0e0e2;
}

.coupon-section h4 {
    margin-bottom:1rem;
	font-size:13px;
    color: #333;
}
.applied-coupons {
    margin-bottom: 10px;
}
.applied-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-bottom: 5px;
    border: 1px dashed #00b088;
}
.applied-coupon code {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    direction: ltr;
}
.applied-coupon code i {
    margin-right: 5px;
    font-size: 15px;
}
#coupon-code {
    height: 45px;
    font-size: 13px;
}
#apply-coupon {
    height: 45px;
    font-size: 13px;
    background: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#apply-coupon:hover {
    background: #388e3c;
}

.cart-summary {
    margin-bottom:1rem;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e2;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
	font-size:13px;
}

.summary-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
	font-size:13px;
}
.checkout-btn {
    display: flex;
    font-size: 13px;
    height: 48px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ef4056;
    color: #fff;
    border: 1px solid #ef4056;
	padding:0 15px;
}
.checkout-btn:hover {
    background: #ef4056;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}
.pw-carts2-fixed-body {
    margin-bottom: 70px;
    background-color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pw-carts2-fixed-body .summary-item.total {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex-direction: column;
    margin-bottom: 0;
    font-size: 11px;
}

/* استایل لودر */
.cart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.cart-loader.show {
    opacity: 1;
    visibility: visible;
}
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width:575.98px){
	.pw-cart-sidebar{margin-bottom:150px;}
	.cart-summary .summary-item.total{display:none;}
	.cart-summary .cart-actions{display:none;}
}