td {
	padding: 8px;
}
.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
	max-width: 350px;
	margin: 0 auto;
}
.shahkar-cart .woocommerce-cart-form {
	width: 100%;
	max-width: calc(100% - 350px);
}
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
}
#shipping_method li {
	border: 1px solid #aaa;
	margin-bottom: 8px;
	border-radius: 8px;
	padding: 8px;
	list-style: none;
}
.wholesale-cart-restrictions {
	display: none;
}
.shahkar-cart .woocommerce-shipping-totals.shipping {
	display: none;
}
.coupon .btn.btn-primary.btn-lg.alt {
	min-width: 160px;
	min-height: 45px;
	margin-bottom: 1.2rem !important;
}
.shahkar-cart {
    padding:15px
}
.product-thumbnail img {
	max-width: 100% !important;
	max-height: 85px;
	border-radius: 8px;
}
.cart_totals {
    border: 1px solid rgba(0,0,0,.1);
    padding: 15px;
    border-radius: 5px;
    position: sticky;
    top: 0;
}
.cart_totals .shop_table_responsive {
    width: 100%;
    margin-bottom: 15px;

}
#billing_address_2_field , #billing_company_field{
	display: none !important;
}
.woocommerce table.shop_table {
	border-radius: 15px !important;
	border: 1px solid #333 !important;
}
#add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
	border-radius: 15px !important;
	border: 1px solid #333 !important;
}
#billing_country_field {
	display: none;
}
.shop_table.woocommerce-checkout-review-order-table {
    border-bottom: 2px solid #333 !important;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid #333 !important;
}
.woocommerce-order-details table.shop_table tbody td {
	padding-left: 0 !important;
}
.woocommerce ul.order_details li {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.woocommerce table.cart td.actions .input-text {
    width: calc(50% - 10px);
    margin-left: 10px;
}
.woocommerce .quantity .qty {
    width: 100%;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button {
    position: relative;
    border: none;
    padding: 8px;
    border-radius: 2px;
    background: unset;
}
.product-card__footer .star-rating {
    display: none !important;
}
.woocommerce-input-wrapper input, .woocommerce-input-wrapper textarea {
    width: 100%;
    padding: 5px;
    background: #f5f6f7;
    border: 1px solid #eee;
    border-radius: 8px;
}
.select2-container .select2-selection--single {
    height: 35px;
    background-color: #f5f6f7;
    border: 1px solid #eee;
}
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: #eee;
}

#shipping_method {
	padding: 0;
}

@media (min-width:769px){
    .shahkar-cart .shop_table tbody tr td {
	border-top: 1px solid #ccc;
	border-right: 1px solid #ccc;
}
.shahkar-cart .shop_table tbody tr td:last-child{
    	border-left: 1px solid #ccc;
}

}

/* type2 */
.type2.cart_item {
	display: grid;
	grid-template-columns: 116px 1fr;
	grid-column-gap: 16px;
	grid-row-gap: 12px;
	border: 1px solid #eee;
	padding: 15px;
	border-radius: 15px;
	background: var(--back-color2);
}
.shahkar-cart-info {
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 8px;
}
.shahkar-cart-info .input-number {
	background-color: #fff;
}
.product-name a {
	color: #262855;
}
.product-name dd {
	margin-right: 4px;
}
.product-name p {
	margin: 0;
		color: #666;
}
.shahkar-cart-info .qty {
	background: #fff;
	border-radius: 8px;
}
.shahkar-product-price .product-price {
	display: none;
}
.product-subtotal .woocommerce-Price-currencySymbol {
	font-size: 12px;
	transform: rotate(-90deg);
	display: inline-block;
	color: #888;
}
#coupon_code {
	width: auto !important;
}

/* dark */
.dark-mode .type2.cart_item {
	display: grid;
	border-color: var(--back-color3);
	background: var(--back-color3);
}
.dark-mode .shahkar-cart-info {
	border: 0;
}
.dark-mode .cart_totals {
	background: var(--back-color3);
	border-radius: 14px;
}
.dark-mode .product-remove a ,.dark-mode .product-name a{
	color: var(--color-text);
}
.dark-mode .shahkar-cart-info .input-number {
	background-color: var(--back-color3) !important;
}
.dark-mode .shahkar-cart-info .qty {
	background-color: #333 !important;
	color: var(--color-text);
}
.dark-mode .product-subtotal span bdi , .dark-mode .cart-subtotal bdi ,.dark-mode .order-total bdi,.dark-mode .woocommerce-Price-currencySymbol{
	color: var(--color-text);
}


/* کانتینر کلی سبد خرید */
.dark-mode .shahkar-cart {
	border-radius: 16px;
	box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* آیتم هر محصول */
.woocommerce-cart-form__cart-item {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  align-items: center;
  transition: background 0.3s;
}
.dark-mode .woocommerce-cart-form__cart-item {
  background-color: #2a2a2a;
}
.dark-mode .woocommerce-cart-form__cart-item:hover {
  background-color: #333;
}

/* تصویر محصول */
.dark-mode .product-thumbnail img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #444;
}

/* لینک عنوان محصول */
.dark-mode .product-name a {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}
.dark-mode .product-name a:hover {
  color: #de043c;
}

/* متغیرهای محصول */
.dark-mode .variation {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #bbb;
}
.dark-mode .variation dt {
  font-weight: bold;
  margin-left: 5px;
}

/* حذف محصول */
.dark-mode .product-remove a {
  font-size: 1.4rem;
  color: #ff6b6b;
  transition: color 0.3s;
}
.dark-mode .product-remove a:hover {
  color: #ff3b3b;
}

/* ورودی تعداد */
.dark-mode .input-number {
  display: flex;
  align-items: center;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a;
}
.dark-mode .input-number__input {
  width: 60px;
  padding: 0.5rem;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
}
.dark-mode .input-number__add,
.dark-mode .input-number__sub {
  width: 32px;
  height: 40px;
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.dark-mode .input-number__add:hover,
.dark-mode .input-number__sub:hover {
  background-color: #444;
}

/* قیمت و جمع جزء */
.dark-mode .shahkar-product-price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dark-mode .product-price, .product-subtotal {
  font-size: 1.1rem;
  color: #fff;
}
.dark-mode .woocommerce-Price-amount {
  font-weight: bold;
  color: #de043c;
}
.cart_footer button {
	width: auto;
}
.cart_footer .coupon {
	align-items: center;
	gap: 15px;
}
@media (max-width:767px){
    #coupon_code {
	width: 100% !important;
}
.shahkar-cart-info {
	grid-template-columns: repeat(1,1fr);
}
}
