/**
 * Стили WooCommerce — магазин, корзина, чекаут (Mangaly)
 * Подключается после main-style.css, переопределяет стандартный вид.
 */

/* ========== Страница корзины — в одну линию с блоками сайта (1200px, белая карточка) ========== */
/* Селекторы: body (WC/тема) ИЛИ .site-main.mangaly-cart-page (добавляется в page.php) */
body.woocommerce-cart .site-main,
body.mangaly-cart-page .site-main,
.site-main.mangaly-cart-page,
body.woocommerce-cart .entry-content,
body.mangaly-cart-page .entry-content,
.site-main.mangaly-cart-page .entry-content {
  background: #f5f7fa !important;
  padding: 0 0 4rem !important;
  min-height: 60vh;
}
body.woocommerce-cart .container,
body.mangaly-cart-page .container,
.site-main.mangaly-cart-page .container {
  padding-top: 0;
  padding-bottom: 0;
}
/* Общий блок корзины — как .products/.features: max-width 1200px, белый фон, скругления */
body.woocommerce-cart .mangaly-cart-wrap,
body.mangaly-cart-page .mangaly-cart-wrap,
.site-main.mangaly-cart-page .mangaly-cart-wrap {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart form.woocommerce-cart-form,
body.mangaly-cart-page form.woocommerce-cart-form,
.site-main.mangaly-cart-page form.woocommerce-cart-form {
  background: #fff !important;
  border-radius: 28px 28px 24px 24px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}
body.woocommerce-cart .page-header,
body.mangaly-cart-page .page-header,
.site-main.mangaly-cart-page .page-header,
body.woocommerce-cart .entry-header,
body.mangaly-cart-page .entry-header,
.site-main.mangaly-cart-page .entry-header {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 40%, #f97316 100%) !important;
  color: #fff !important;
  padding: 2.25rem 0 !important;
  margin: -32px auto 2rem auto !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 12px 40px rgba(234, 88, 12, 0.25) !important;
}
body.woocommerce-cart .page-title,
body.mangaly-cart-page .page-title,
.site-main.mangaly-cart-page .page-title,
body.woocommerce-cart .entry-header .entry-title,
body.mangaly-cart-page .entry-header .entry-title,
.site-main.mangaly-cart-page .entry-header .entry-title {
  margin: 0 !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em;
}
body.woocommerce-cart .woocommerce,
body.mangaly-cart-page .woocommerce,
.site-main.mangaly-cart-page .woocommerce {
  display: grid !important;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  body.woocommerce-cart .woocommerce,
  body.mangaly-cart-page .woocommerce,
  .site-main.mangaly-cart-page .woocommerce {
    grid-template-columns: 1fr !important;
  }
}
body.woocommerce-cart table.shop_table.cart,
body.mangaly-cart-page table.shop_table.cart,
.site-main.mangaly-cart-page table.shop_table.cart {
  border: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  background: #fff !important;
}
body.woocommerce-cart table.shop_table.cart thead th,
body.mangaly-cart-page table.shop_table.cart thead th,
.site-main.mangaly-cart-page table.shop_table.cart thead th {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 1.15rem 1.5rem !important;
  border: none !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
body.woocommerce-cart table.shop_table.cart tbody tr,
body.mangaly-cart-page table.shop_table.cart tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}
body.woocommerce-cart table.shop_table.cart tbody tr:hover,
body.mangaly-cart-page table.shop_table.cart tbody tr:hover {
  background: #fffbeb !important;
}
body.woocommerce-cart table.shop_table.cart tbody tr:last-child,
body.mangaly-cart-page table.shop_table.cart tbody tr:last-child {
  border-bottom: none !important;
}
body.woocommerce-cart table.shop_table.cart td,
body.mangaly-cart-page table.shop_table.cart td {
  padding: 1.5rem 1.5rem !important;
  vertical-align: middle !important;
  border: none !important;
}
body.woocommerce-cart .product-thumbnail img,
body.mangaly-cart-page .product-thumbnail img {
  border-radius: 16px !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
body.woocommerce-cart .product-thumbnail a,
body.mangaly-cart-page .product-thumbnail a {
  display: block !important;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  width: 100px !important;
  height: 100px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
}
body.woocommerce-cart .product-thumbnail a:hover,
body.mangaly-cart-page .product-thumbnail a:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}
body.woocommerce-cart .product-name a,
body.mangaly-cart-page .product-name a {
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 1.08rem !important;
  text-decoration: none !important;
}
body.woocommerce-cart .product-name a:hover,
body.mangaly-cart-page .product-name a:hover {
  color: #ea580c !important;
}
body.woocommerce-cart .product-name p,
body.mangaly-cart-page .product-name p {
  color: #64748b !important;
  font-size: 0.875rem !important;
  margin: 0.35rem 0 0 0 !important;
}
body.woocommerce-cart .product-price .amount,
body.mangaly-cart-page .product-price .amount,
body.woocommerce-cart .product-subtotal .amount,
body.mangaly-cart-page .product-subtotal .amount {
  color: #dc2626 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
body.woocommerce-cart .product-price del .amount,
body.mangaly-cart-page .product-price del .amount {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}
body.woocommerce-cart .cart-discount,
body.mangaly-cart-page .cart-discount,
body.woocommerce-cart .product-name .amount,
body.mangaly-cart-page .product-name .amount,
body.woocommerce-cart .product-name .savings,
body.mangaly-cart-page .product-name .savings {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #166534 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  display: inline-block !important;
  margin-top: 0.5rem !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
body.woocommerce-cart .product-quantity .quantity,
body.mangaly-cart-page .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}
body.woocommerce-cart .product-quantity input.qty,
body.mangaly-cart-page .product-quantity input.qty {
  width: 3.5rem !important;
  padding: 0.7rem 0.4rem !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  background: #fafafa !important;
  -moz-appearance: textfield !important;
}
body.woocommerce-cart .product-quantity input.qty::-webkit-outer-spin-button,
body.mangaly-cart-page .product-quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .product-quantity input.qty::-webkit-inner-spin-button,
body.mangaly-cart-page .product-quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
body.woocommerce-cart .product-remove a,
body.mangaly-cart-page .product-remove a,
body.woocommerce-cart .product-name a.remove,
body.mangaly-cart-page .product-name a.remove {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  transition: all 0.2s ease !important;
}
body.woocommerce-cart .product-remove a:hover,
body.mangaly-cart-page .product-remove a:hover,
body.woocommerce-cart .product-name a.remove:hover,
body.mangaly-cart-page .product-name a.remove:hover {
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}
body.woocommerce-cart .cart_totals,
body.mangaly-cart-page .cart_totals,
.site-main.mangaly-cart-page .cart_totals {
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  padding: 2rem !important;
  position: sticky !important;
  top: 1.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-top: 4px solid #ea580c !important;
}
body.woocommerce-cart .cart_totals h2,
body.mangaly-cart-page .cart_totals h2 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 1.5rem 0 !important;
  padding-bottom: 1rem !important;
  border-bottom: 2px solid #f1f5f9 !important;
}
body.woocommerce-cart .cart_totals th,
body.mangaly-cart-page .cart_totals th,
body.woocommerce-cart .cart_totals td,
body.mangaly-cart-page .cart_totals td {
  padding: 0.9rem 0 !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}
body.woocommerce-cart .cart_totals .order-total th,
body.mangaly-cart-page .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td,
body.mangaly-cart-page .cart_totals .order-total td {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  border-bottom: none !important;
  padding-top: 1.25rem !important;
}
body.woocommerce-cart .cart_totals .order-total .amount,
body.mangaly-cart-page .cart_totals .order-total .amount {
  color: #dc2626 !important;
  font-size: 1.5rem !important;
}
body.woocommerce-cart .coupon,
body.mangaly-cart-page .coupon {
  margin-bottom: 1.5rem !important;
  padding: 1.25rem !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.woocommerce-cart .coupon .input-text,
body.mangaly-cart-page .coupon .input-text {
  padding: 0.9rem 1.2rem !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-bottom: 0.75rem !important;
  background: #fff !important;
}
body.woocommerce-cart .coupon .input-text:focus,
body.mangaly-cart-page .coupon .input-text:focus {
  outline: none !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}
body.woocommerce-cart .coupon .button,
body.mangaly-cart-page .coupon .button {
  background: #1e293b !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}
body.woocommerce-cart .coupon .button:hover,
body.mangaly-cart-page .coupon .button:hover {
  background: #334155 !important;
  color: #fff !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .wc-proceed-to-checkout .checkout-button,
.site-main.mangaly-cart-page .wc-proceed-to-checkout .checkout-button {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 1.15rem 1.5rem !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.mangaly-cart-page .wc-proceed-to-checkout .checkout-button:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4);
}
body.woocommerce-cart form.woocommerce-cart-form .actions .button,
body.mangaly-cart-page form.woocommerce-cart-form .actions .button,
body.woocommerce-cart .actions .button[name="update_cart"],
body.mangaly-cart-page .actions .button[name="update_cart"] {
  background: #fff !important;
  color: #475569 !important;
  border: 2px solid #e2e8f0 !important;
  padding: 0.85rem 1.6rem !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
}
body.woocommerce-cart form.woocommerce-cart-form .actions .button:hover,
body.mangaly-cart-page form.woocommerce-cart-form .actions .button:hover,
body.woocommerce-cart .actions .button[name="update_cart"]:hover,
body.mangaly-cart-page .actions .button[name="update_cart"]:hover {
  background: #fffbeb !important;
  border-color: #f97316 !important;
  color: #ea580c !important;
}
/* Пустая корзина — белый блок в одну линию с остальными секциями */
body.woocommerce-cart form.woocommerce-cart-form .cart-empty,
body.mangaly-cart-page form.woocommerce-cart-form .cart-empty,
body.woocommerce-cart .cart-empty,
body.mangaly-cart-page .cart-empty {
  font-size: 1.2rem !important;
  color: #475569 !important;
  padding: 3rem 2rem 1.5rem !important;
  text-align: center !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 0 0.5rem 0 !important;
  position: relative !important;
}
body.woocommerce-cart .cart-empty::before,
body.mangaly-cart-page .cart-empty::before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border-radius: 50%;
  border: 3px solid rgba(234, 88, 12, 0.25);
  box-sizing: border-box;
}
body.woocommerce-cart .return-to-shop,
body.mangaly-cart-page .return-to-shop {
  text-align: center;
  padding: 1.5rem 2rem 2.5rem;
  background: #fff !important;
  border-radius: 0 !important;
  margin: -0.5rem 0 0 0;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid #f1f5f9 !important;
}
body.woocommerce-cart .return-to-shop .button,
body.mangaly-cart-page .return-to-shop .button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  padding: 1rem 2rem !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
}
body.woocommerce-cart .return-to-shop .button:hover,
body.mangaly-cart-page .return-to-shop .button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4) !important;
}

/* Блок «Новинка в магазине» / cross-sells на странице корзины — в стиле каталога */
body.woocommerce-cart .cross-sells,
body.mangaly-cart-page .cross-sells,
.woocommerce-cart .cross-sells,
.mangaly-cart-wrap .cross-sells {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}
body.woocommerce-cart .cross-sells h2,
body.mangaly-cart-page .cross-sells h2,
.woocommerce-cart .cross-sells h2,
.mangaly-cart-wrap .cross-sells h2 {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 1.25rem 0 !important;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #ea580c;
  display: inline-block;
}
body.woocommerce-cart .cross-sells ul.products,
body.mangaly-cart-page .cross-sells ul.products,
.mangaly-cart-wrap .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
body.woocommerce-cart .cross-sells .button,
body.mangaly-cart-page .cross-sells .button,
body.woocommerce-cart .cross-sells .add_to_cart_button,
body.mangaly-cart-page .cross-sells .add_to_cart_button,
.mangaly-cart-wrap .cross-sells .button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}
body.woocommerce-cart .cross-sells .button:hover,
body.mangaly-cart-page .cross-sells .button:hover,
.mangaly-cart-wrap .cross-sells .button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4) !important;
}
body.woocommerce-cart .cross-sells .price .amount,
body.mangaly-cart-page .cross-sells .price .amount,
.mangaly-cart-wrap .cross-sells .price .amount {
  color: #dc2626 !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
}
body.woocommerce-cart .cross-sells li.product,
body.mangaly-cart-page .cross-sells li.product,
.mangaly-cart-wrap .cross-sells li.product {
  background: #fff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.woocommerce-cart .cross-sells li.product .product-image-wrap,
body.mangaly-cart-page .cross-sells li.product .product-image-wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table.cart td,
  body.mangaly-cart-page table.shop_table.cart td {
    padding: 1rem 1.25rem !important;
  }
  body.woocommerce-cart .cart_totals,
  body.mangaly-cart-page .cart_totals {
    position: static !important;
  }
}

/* ========== Хлебные крошки на странице товара — в стиле темы ========== */
.single-product-page .mangaly-breadcrumb,
.single-product .mangaly-breadcrumb {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  padding: 0;
}
.single-product-page .mangaly-breadcrumb a,
.single-product .mangaly-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.single-product-page .mangaly-breadcrumb a:hover,
.single-product .mangaly-breadcrumb a:hover {
  color: #ea580c;
}
.single-product-page .mangaly-breadcrumb .mangaly-breadcrumb-sep,
.single-product .mangaly-breadcrumb .mangaly-breadcrumb-sep {
  color: #cbd5e1;
  margin: 0 0.25rem;
}

/* ========== Страница товара: ширина как у шаблона 1200px, один блок фото слева — контент справа ========== */
.single-product-page .single-product-container,
.single-product .single-product-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
@media (max-width: 1240px) {
  .single-product-page .single-product-container,
  .single-product .single-product-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
.single-product-page .single-product-wrap,
.single-product .single-product-wrap {
  width: 100% !important;
  max-width: 100% !important;
}
.single-product-page .single-product-wrap .woocommerce,
.single-product .single-product-wrap .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
}

/* Лупа невидима, но кликабельна — только над главным фото; миниатюры должны быть кликабельны */
.single-product .woocommerce-product-gallery__trigger,
.single-product-page .woocommerce-product-gallery__trigger,
.single-product-wrap .woocommerce-product-gallery__trigger {
  opacity: 0 !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  cursor: zoom-in;
  pointer-events: none !important;
}
/* Миниатюры поверх лупы — по ним можно выбрать другое фото */
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav {
  position: relative;
  z-index: 3;
}

.single-product .woocommerce div.product,
.single-product-page .woocommerce div.product,
.single-product-wrap div.product {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  gap: 0;
  margin-bottom: 0;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Явно: галерея — первая колонка (слева), фото по центру; ниже вкладок по слоям */
.single-product .woocommerce div.product .woocommerce-product-gallery,
.single-product-page .woocommerce div.product .woocommerce-product-gallery,
.single-product-wrap div.product .woocommerce-product-gallery {
  grid-column: 1;
  position: relative;
  top: 0;
  align-self: start;
  background: #f8fafc;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem;
  min-height: 300px;
  min-width: 0;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-viewport,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport,
.single-product-wrap .woocommerce-product-gallery .flex-viewport {
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  background: #fff;
}
/* Не ломаем нативную механику FlexSlider */
.single-product .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides,
.single-product-wrap .woocommerce-product-gallery .flex-viewport ul.slides {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block !important;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides li,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides li,
.single-product-wrap .woocommerce-product-gallery .flex-viewport ul.slides li {
  display: block !important;
  box-sizing: border-box;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-viewport [class*="woocommerce-product-gallery"] > div,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport [class*="woocommerce-product-gallery"] > div,
.single-product-wrap .woocommerce-product-gallery .flex-viewport [class*="woocommerce-product-gallery"] > div {
  display: block !important;
  width: 100%;
}
.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"],
.single-product-page .woocommerce .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"],
.single-product-wrap .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"] {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  display: block !important;
  margin: 0 auto;
}
.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product .woocommerce .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"] a,
.single-product-page .woocommerce .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"] a,
.single-product-wrap .woocommerce-product-gallery [class*="woocommerce-product-gallery_image"] a {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.single-product .woocommerce .woocommerce-product-gallery img,
.single-product-page .woocommerce .woocommerce-product-gallery img,
.single-product-wrap .woocommerce-product-gallery img {
  border-radius: 8px;
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
/* Плейсхолдер, когда у товара нет фото — по центру блока */
.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder {
  display: block !important;
  width: 100%;
  background: #f1f5f9;
  border-radius: 12px;
}
.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder img,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder img,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  opacity: 0.7;
}

/* Обёртка галереи — по ширине контейнера */
.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  max-width: 100%;
  width: 100%;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-ready .woocommerce-product-gallery__wrapper,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-ready .woocommerce-product-gallery__wrapper,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-ready .woocommerce-product-gallery__wrapper {
  display: none !important;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-main-stage,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-main-stage,
.single-product-wrap .woocommerce-product-gallery .mangaly-main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-bottom: 14px;
  touch-action: pan-y;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-main-link,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-main-link,
.single-product-wrap .woocommerce-product-gallery .mangaly-main-link {
  display: block;
  width: 100%;
  height: 100%;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-main-img,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-main-img,
.single-product-wrap .woocommerce-product-gallery .mangaly-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform .25s ease;
}
.single-product .woocommerce .woocommerce-product-gallery .mangaly-main-stage:hover .mangaly-main-img,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-main-stage:hover .mangaly-main-img,
.single-product-wrap .woocommerce-product-gallery .mangaly-main-stage:hover .mangaly-main-img {
  transform: scale(1.02);
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow,
.single-product-wrap .woocommerce-product-gallery .mangaly-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  transition: all .2s ease;
}
.single-product .woocommerce .woocommerce-product-gallery .mangaly-stage-prev,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-stage-prev,
.single-product-wrap .woocommerce-product-gallery .mangaly-stage-prev {
  left: 10px;
}
.single-product .woocommerce .woocommerce-product-gallery .mangaly-stage-next,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-stage-next,
.single-product-wrap .woocommerce-product-gallery .mangaly-stage-next {
  right: 10px;
}
.single-product .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow:hover,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow:hover,
.single-product-wrap .woocommerce-product-gallery .mangaly-stage-arrow:hover {
  background: #fff;
  border-color: #cbd5e1;
  transform: translateY(-50%) scale(1.05);
}
/* Миниатюры галереи (под главным фото) — в одну линию, без overflow */
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
  display: none;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav li {
  margin: 0;
  width: 60px;
  flex-shrink: 0;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li a,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li a,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav li a {
  cursor: pointer;
  display: block;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li img,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li img,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav li img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  display: block;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li img.flex-active,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li img.flex-active,
.single-product-wrap .woocommerce-product-gallery .flex-control-nav li img.flex-active {
  border-color: #ea580c;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .single-product .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow,
  .single-product-page .woocommerce .woocommerce-product-gallery .mangaly-stage-arrow,
  .single-product-wrap .woocommerce-product-gallery .mangaly-stage-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

/* Явно: блок с ценой и описанием — вторая колонка (справа) */
.single-product .woocommerce div.product > .summary,
.single-product-page .woocommerce div.product > .summary,
.single-product-wrap div.product > .summary {
  grid-column: 2;
  min-width: 0;
}

.single-product .woocommerce .summary,
.single-product-page .woocommerce .summary,
.single-product-wrap .summary {
  background: #fff;
  padding: 1.75rem 2rem 2rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
  display: block !important;
  overflow: visible;
  min-height: 200px;
}
.single-product .woocommerce .summary .price,
.single-product-page .woocommerce .summary .price,
.single-product-wrap .summary .price {
  display: block !important;
  margin-bottom: 1rem;
}
.single-product .woocommerce .summary form.cart,
.single-product-page .woocommerce .summary form.cart,
.single-product-wrap .summary form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0 0 !important;
  visibility: visible;
}
.single-product .woocommerce .summary .single_add_to_cart_button,
.single-product-page .woocommerce .summary .single_add_to_cart_button,
.single-product-wrap .summary .single_add_to_cart_button {
  display: inline-block !important;
  visibility: visible;
}
.single-product .woocommerce .summary .mangaly-product-delivery-info,
.single-product-page .woocommerce .summary .mangaly-product-delivery-info,
.single-product-wrap .summary .mangaly-product-delivery-info {
  display: block !important;
  visibility: visible;
}
.single-product .woocommerce .summary .mangaly-single-product-details,
.single-product-page .woocommerce .summary .mangaly-single-product-details,
.single-product-wrap .summary .mangaly-single-product-details {
  display: block !important;
  visibility: visible;
}
.single-product .woocommerce .summary .quantity,
.single-product-page .woocommerce .summary .quantity,
.single-product-wrap .summary .quantity {
  display: inline-flex !important;
  visibility: visible;
}

/* Блок вкладок (Описание + Отзывы) — поверх галереи при прокрутке, не перекрываются фото */
.single-product .woocommerce div.product .woocommerce-tabs,
.single-product-page .woocommerce div.product .woocommerce-tabs,
.single-product-wrap div.product .woocommerce-tabs {
  display: block !important;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1.5rem;
  visibility: visible !important;
  position: relative;
  z-index: 2;
  background: #fff;
}

.single-product .woocommerce div.product .related.products,
.single-product-page .woocommerce div.product .related.products,
.single-product-wrap div.product .related.products {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  background: #fff;
}

@media (max-width: 900px) {
  .single-product .woocommerce div.product,
  .single-product-page .woocommerce div.product,
  .single-product-wrap div.product {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .single-product .woocommerce div.product .woocommerce-product-gallery,
  .single-product-page .woocommerce div.product .woocommerce-product-gallery,
  .single-product-wrap div.product .woocommerce-product-gallery {
    grid-column: 1;
    position: static;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .single-product .woocommerce div.product > .summary,
  .single-product-page .woocommerce div.product > .summary,
  .single-product-wrap div.product > .summary {
    grid-column: 1;
  }
  .single-product .woocommerce .summary,
  .single-product-page .woocommerce .summary,
  .single-product-wrap .summary {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .single-product .woocommerce .woocommerce-product-gallery .flex-viewport,
  .single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport,
  .single-product-wrap .woocommerce-product-gallery .flex-viewport {
    min-height: 0 !important;
    height: auto !important;
  }
  .single-product .woocommerce .woocommerce-product-gallery img,
  .single-product-page .woocommerce .woocommerce-product-gallery img,
  .single-product-wrap .woocommerce-product-gallery img {
    max-height: none;
  }
}

/* Краткое описание в блоке справа */
.single-product .woocommerce .summary .woocommerce-product-details__short-description,
.single-product-page .woocommerce .summary .woocommerce-product-details__short-description,
.single-product-wrap .summary .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 1rem 0;
}

/* Полное описание и характеристики на странице товара (как в модалке) */
.single-product-page .mangaly-single-product-details,
.single-product-wrap .summary .mangaly-single-product-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: left;
}

.single-product-page .mangaly-single-product-details .mangaly-single-product-details-title,
.single-product-wrap .summary .mangaly-single-product-details .mangaly-single-product-details-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}
.single-product-page .mangaly-single-product-details .product-detail-description-full,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-description-full,
.single-product-page .mangaly-single-product-details .product-detail-description-short,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-description-short {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}
.single-product-page .mangaly-single-product-details .product-detail-characteristics,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-characteristics {
  margin: 0 0 1rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.single-product-page .mangaly-single-product-details .product-detail-characteristics-title,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-characteristics-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}
.single-product-page .mangaly-single-product-details .product-detail-characteristics-list,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-characteristics-list {
  margin: 0;
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: auto 1fr;
  font-size: 0.95rem;
}
.single-product-page .mangaly-single-product-details .product-detail-characteristics-list dt,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-characteristics-list dt {
  color: #64748b;
  font-weight: 500;
  margin: 0;
}
.single-product-page .mangaly-single-product-details .product-detail-characteristics-list dd,
.single-product-wrap .summary .mangaly-single-product-details .product-detail-characteristics-list dd {
  margin: 0;
  color: #1e293b;
}

/* Скрыть дублирующий заголовок (есть в .page-header) */
.single-product .woocommerce .summary h1.product_title,
.single-product-page .woocommerce .summary h1.product_title {
  display: none !important;
}

/* Мета товара (артикул, категория) — в стиле темы, ссылка «Категория» не синяя */
.single-product .woocommerce .summary .product_meta,
.single-product-page .woocommerce .summary .product_meta,
.single-product-wrap .summary .product_meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.single-product .woocommerce .summary .product_meta a,
.single-product-page .woocommerce .summary .product_meta a,
.single-product-wrap .summary .product_meta a {
  color: #ea580c;
  text-decoration: none;
}
.single-product .woocommerce .summary .product_meta a:hover,
.single-product-page .woocommerce .summary .product_meta a:hover,
.single-product-wrap .summary .product_meta a:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* Блок доставки и возврата под кнопкой — в стиле темы */
.mangaly-product-delivery-info {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.mangaly-product-delivery-info .mangaly-delivery-line {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.mangaly-product-delivery-info .mangaly-delivery-line:last-child {
  margin-bottom: 0;
}
.mangaly-product-delivery-info .mangaly-delivery-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Цена на странице товара — акцент оранжевый/красный */
.single-product .summary .price,
.single-product-page .summary .price,
.single-product-wrap .summary .price {
  color: #ea580c;
  font-size: 1.75rem;
  font-weight: 800;
}
.single-product .summary .price .amount,
.single-product-page .summary .price .amount,
.single-product-wrap .summary .price bdi {
  color: #c2410c;
}
.single-product .summary .price del,
.single-product-page .summary .price del {
  color: #94a3b8;
  font-size: 1.1rem;
}
.single-product .summary .price ins,
.single-product-page .summary .price ins {
  text-decoration: none;
}

/* ========== Вкладки: Описание, Характеристики, Отзывы — современный вид ========== */
.single-product .woocommerce-tabs,
.single-product-page .woocommerce-tabs,
.single-product-wrap .woocommerce-tabs {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.single-product .woocommerce-tabs ul.tabs,
.single-product-page .woocommerce-tabs ul.tabs,
.single-product-wrap .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product-page .woocommerce-tabs ul.tabs li,
.single-product-wrap .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}

.single-product .woocommerce-tabs ul.tabs li a,
.single-product-page .woocommerce-tabs ul.tabs li a,
.single-product-wrap .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.single-product .woocommerce-tabs ul.tabs li a:hover,
.single-product-page .woocommerce-tabs ul.tabs li a:hover,
.single-product-wrap .woocommerce-tabs ul.tabs li a:hover {
  color: #ea580c;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product-page .woocommerce-tabs ul.tabs li.active a,
.single-product-wrap .woocommerce-tabs ul.tabs li.active a {
  color: #ea580c;
  background: #fff;
  border-bottom-color: #ea580c;
}

.single-product .woocommerce-tabs .panel,
.single-product-page .woocommerce-tabs .panel,
.single-product-wrap .woocommerce-tabs .panel {
  padding: 1.5rem 2rem 2rem;
  margin: 0;
  border: none;
}

.single-product .woocommerce-tabs .panel h2,
.single-product-page .woocommerce-tabs .panel h2,
.single-product-wrap .woocommerce-tabs .panel h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  color: #1e293b;
}

.single-product .woocommerce-tabs .panel p,
.single-product-page .woocommerce-tabs .panel p,
.single-product-wrap .woocommerce-tabs .panel p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.single-product .woocommerce-tabs .shop_attributes,
.single-product-page .woocommerce-tabs .shop_attributes,
.single-product-wrap .woocommerce-tabs .shop_attributes {
  width: 100%;
  border: none;
}

.single-product .woocommerce-tabs .shop_attributes tr,
.single-product-page .woocommerce-tabs .shop_attributes tr,
.single-product-wrap .woocommerce-tabs .shop_attributes tr {
  border-bottom: 1px solid #e2e8f0;
}

.single-product .woocommerce-tabs .shop_attributes th,
.single-product-page .woocommerce-tabs .shop_attributes th,
.single-product-wrap .woocommerce-tabs .shop_attributes th {
  padding: 0.85rem 1rem 0.85rem 0;
  font-weight: 600;
  color: #1e293b;
  width: 35%;
  vertical-align: top;
}

.single-product .woocommerce-tabs .shop_attributes td,
.single-product-page .woocommerce-tabs .shop_attributes td,
.single-product-wrap .woocommerce-tabs .shop_attributes td {
  padding: 0.85rem 0;
  color: #475569;
}

/* Блок отзывов: форма отправки — звёзды и кнопка в стиле темы */
#reviews .comment-form-rating label,
#reviews .comment-form-comment label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
/* Современный дизайн звезд рейтинга - 5 звезд в ряд */
#reviews .comment-form-rating .stars,
#reviews p.stars {
  margin: 0.5rem 0 1rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
#reviews .comment-form-rating .stars a,
#reviews p.stars a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 0 !important; /* скрываем текст «1 из 5 звёзд» */
  cursor: pointer !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}
#reviews .comment-form-rating .stars a::before,
#reviews p.stars a::before {
  content: "★" !important;
  font-size: 32px !important;
  line-height: 1 !important;
  color: #e5e7eb !important;
  transition: color 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease !important;
  display: block !important;
}
/* Убираем множественные звезды - показываем только одну на элемент */
#reviews .comment-form-rating .stars a.star-1::before,
#reviews .comment-form-rating .stars a.star-2::before,
#reviews .comment-form-rating .stars a.star-3::before,
#reviews .comment-form-rating .stars a.star-4::before,
#reviews .comment-form-rating .stars a.star-5::before,
#reviews p.stars a.star-1::before,
#reviews p.stars a.star-2::before,
#reviews p.stars a.star-3::before,
#reviews p.stars a.star-4::before,
#reviews p.stars a.star-5::before {
  content: "★" !important;
}
/* Скрываем звезды после 5-й */
#reviews .comment-form-rating .stars a.star-6,
#reviews .comment-form-rating .stars a.star-7,
#reviews .comment-form-rating .stars a.star-8,
#reviews .comment-form-rating .stars a.star-9,
#reviews .comment-form-rating .stars a.star-10,
#reviews p.stars a.star-6,
#reviews p.stars a.star-7,
#reviews p.stars a.star-8,
#reviews p.stars a.star-9,
#reviews p.stars a.star-10 {
  display: none !important;
}
/* Активная/выбранная звезда */
#reviews .comment-form-rating .stars a.active::before,
#reviews p.stars a.active::before {
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4) !important;
}
/* Эффект при наведении */
#reviews .comment-form-rating .stars a:hover::before,
#reviews p.stars a:hover::before {
  color: #fbbf24 !important;
  transform: scale(1.15) !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5) !important;
}
#reviews .comment-form-rating .stars a:hover,
#reviews p.stars a:hover {
  transform: translateY(-2px) !important;
}
/* Эффект при клике */
#reviews .comment-form-rating .stars a:active,
#reviews p.stars a:active {
  transform: translateY(0) scale(0.95) !important;
}
/* Скрываем весь текст внутри звезд - полностью */
#reviews .comment-form-rating .stars a span,
#reviews .comment-form-rating .stars a text,
#reviews p.stars a span,
#reviews p.stars a text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Скрываем текстовые узлы */
#reviews .comment-form-rating .stars,
#reviews p.stars {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

/* Скрываем все дочерние элементы кроме ::before */
#reviews .comment-form-rating .stars a > *,
#reviews p.stars a > * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Скрываем псевдоэлементы с текстом */
#reviews .comment-form-rating .stars::before,
#reviews .comment-form-rating .stars::after,
#reviews p.stars::before,
#reviews p.stars::after {
  display: none !important;
  content: none !important;
}
#reviews .comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}
#reviews .comment-form-comment textarea:focus {
  border-color: #ea580c;
  outline: none;
}
#reviews .form-submit input[type="submit"],
#reviews input#submit {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
#reviews .form-submit input[type="submit"]:hover,
#reviews input#submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

/* Форма «В корзину» на странице товара: количество + кнопка в одну строку */
.single-product .summary form.cart,
.single-product-page .summary form.cart,
.single-product-wrap .summary form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0 0;
}

.single-product .summary .quantity,
.single-product-page .summary .quantity,
.single-product-wrap .summary .quantity {
  margin: 0;
  display: inline-flex;
}

.single-product .summary .quantity input.qty,
.single-product-page .summary .quantity input.qty,
.single-product-wrap .summary .quantity input.qty {
  width: 4rem;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
}

.single-product .summary .single_add_to_cart_button,
.single-product-page .summary .single_add_to_cart_button,
.single-product-wrap .summary .single_add_to_cart_button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.single-product .summary .single_add_to_cart_button:hover,
.single-product-page .summary .single_add_to_cart_button:hover,
.single-product-wrap .summary .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

/* ========== Пагинация каталога товаров ========== */
.woocommerce nav.woocommerce-pagination {
  margin: 2rem 0 0;
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
}
.woocommerce nav.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.woocommerce nav.woocommerce-pagination .page-numbers:hover {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.2);
}
.woocommerce nav.woocommerce-pagination .page-numbers.current {
  border-color: #ea580c;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  cursor: default;
}
.woocommerce nav.woocommerce-pagination .page-numbers.prev,
.woocommerce nav.woocommerce-pagination .page-numbers.next {
  min-width: 2.6rem;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

/* Страница оформления заказа — тот же фон и стиль */
.woocommerce-checkout .site-main,
.woocommerce-checkout .entry-content {
  background: #f8fafc !important;
  padding: 0 0 4rem 0 !important;
}

/* ========== Жёсткие переопределения корзины (последние в файле) ========== */
/* Чтобы стиль корзины точно применился поверх любых других тем/плагинов */
.woocommerce-cart a:not(.cart-count):not(.remove),
body.mangaly-cart-page .woocommerce a:not(.cart-count):not(.remove) {
  color: #1e293b !important;
  text-decoration: none !important;
}
.woocommerce-cart a:hover:not(.cart-count):not(.remove),
body.mangaly-cart-page .woocommerce a:hover:not(.cart-count):not(.remove) {
  color: #ea580c !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.mangaly-cart-page .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 1rem 1.5rem !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 16px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35) !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.mangaly-cart-page .wc-proceed-to-checkout a.checkout-button:hover {
  color: #fff !important;
  opacity: 0.95;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45) !important;
}
/* Бейдж скидки в корзине — любой элемент с текстом типа «СЭКОНОМЬТЕ» */
.woocommerce-cart .cart-discount .amount,
.woocommerce-cart .product-name .amount,
.woocommerce-cart .product-name [class*="savings"],
.woocommerce-cart .product-name .coupon-savings,
body.mangaly-cart-page .cart-discount .amount,
body.mangaly-cart-page .product-name .amount,
body.mangaly-cart-page .product-name [class*="savings"],
body.mangaly-cart-page .product-name .coupon-savings {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #166534 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}

/* ========== Стили по обёртке .mangaly-cart-wrap (не зависят от body) ========== */
/* Контейнер корзины получает класс в page.php — эти правила всегда применяются */
.mangaly-cart-wrap .woocommerce {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 2rem !important;
  align-items: start !important;
}
@media (max-width: 1024px) {
  .mangaly-cart-wrap .woocommerce {
    grid-template-columns: 1fr !important;
  }
}
.mangaly-cart-wrap table.shop_table.cart {
  border: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  background: #fff !important;
}
.mangaly-cart-wrap table.shop_table.cart thead th {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 1.15rem 1.5rem !important;
  border: none !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
}
.mangaly-cart-wrap table.shop_table.cart tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}
.mangaly-cart-wrap table.shop_table.cart tbody tr:hover {
  background: #fffbeb !important;
}
.mangaly-cart-wrap table.shop_table.cart td {
  padding: 1.5rem !important;
  border: none !important;
  vertical-align: middle !important;
}
.mangaly-cart-wrap .product-name a {
  color: #1e293b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.mangaly-cart-wrap .product-name a:hover {
  color: #ea580c !important;
}
.mangaly-cart-wrap .product-price .amount,
.mangaly-cart-wrap .product-subtotal .amount {
  color: #dc2626 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.mangaly-cart-wrap .cart_totals {
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  padding: 2rem !important;
  border-top: 4px solid #ea580c !important;
}
.mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button,
.mangaly-cart-wrap a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 1rem 1.5rem !important;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35) !important;
}
.mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button:hover,
.mangaly-cart-wrap a.checkout-button:hover {
  color: #fff !important;
  opacity: 0.95 !important;
}
.mangaly-cart-wrap .product-thumbnail img {
  border-radius: 16px !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
}
.mangaly-cart-wrap .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}
.mangaly-cart-wrap .product-name .amount,
.mangaly-cart-wrap .product-name [class*="savings"],
.mangaly-cart-wrap .cart-discount .amount {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #166534 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}

/* Ссылка «Просмотр корзины» в модалке быстрого просмотра — всегда оранжевая, без подчёркивания */
#productModal .product-modal-body a.mangaly-quickview-view-cart,
.product-modal#productModal a.mangaly-quickview-view-cart,
.product-modal .product-modal-body a.mangaly-quickview-view-cart,
.product-modal-body a.mangaly-quickview-view-cart,
a.mangaly-quickview-view-cart {
  display: inline-block !important;
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #ea580c !important;
  text-decoration: none !important;
  border: none !important;
  transition: color 0.2s, opacity 0.2s;
}
#productModal .product-modal-body a.mangaly-quickview-view-cart:hover,
.product-modal#productModal a.mangaly-quickview-view-cart:hover,
.product-modal .product-modal-body a.mangaly-quickview-view-cart:hover,
.product-modal-body a.mangaly-quickview-view-cart:hover,
a.mangaly-quickview-view-cart:hover {
  color: #c2410c !important;
  text-decoration: none !important;
  opacity: 0.9;
}

/* Скрываем только ссылку из quickview, не кнопку add-to-cart карточки */
.product-card-modern a.mangaly-quickview-view-cart,
li.product a.mangaly-quickview-view-cart {
  display: none !important;
}

/* Ссылка WooCommerce "Просмотр корзины" после AJAX-добавления ломает action-row карточки. */
.product-card-modern .mangaly-product-actions .added_to_cart.wc-forward,
li.product .mangaly-product-actions .added_to_cart.wc-forward,
.product-card-modern > .added_to_cart.wc-forward,
li.product > .added_to_cart.wc-forward {
  display: none !important;
}

/* Цена в карточке товара — выравнивание вправо */
li.product .price,
li.product-card-modern .price {
  text-align: right !important;
  margin-bottom: 1rem;
  padding: 0 1.25rem 0 0;
}
li.product .price del,
li.product .price ins,
li.product .price .amount,
li.product-card-modern .price del,
li.product-card-modern .price ins,
li.product-card-modern .price .amount {
  display: block;
  text-align: right;
}

/* Ссылка «Просмотр корзины» в сообщениях WooCommerce (после добавления) — оранжевая */
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a {
  color: #ea580c !important;
  text-decoration: none !important;
  font-weight: 600;
}
.woocommerce .woocommerce-message a:hover,
.woocommerce .woocommerce-info a:hover {
  color: #c2410c !important;
  text-decoration: none !important;
}

/* Блок с селектором количества и кнопкой "В корзину" — ровная линия */
.product-card-modern .mangaly-product-actions,
li.product .mangaly-product-actions {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  margin: 0 1.25rem 1rem;
  margin-top: auto;
  padding: 0;
  width: calc(100% - 2.5rem);
  min-height: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}
.product-card-modern:hover .mangaly-product-actions,
li.product:hover .mangaly-product-actions {
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.15), 0 2px 8px rgba(234, 88, 12, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
}

/* Селектор количества — фиксированная высота, в одну линию с кнопкой */
.product-card-modern .mangaly-quantity-selector,
li.product .mangaly-quantity-selector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 48px;
  gap: 0;
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  box-shadow: none;
  transition: background 0.3s ease;
}
.product-card-modern .mangaly-quantity-selector:focus-within,
li.product .mangaly-quantity-selector:focus-within {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.product-card-modern .mangaly-quantity-selector .qty-btn,
li.product .mangaly-quantity-selector .qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  flex-shrink: 0;
  box-sizing: border-box;
}
.product-card-modern .mangaly-quantity-selector .qty-btn:hover,
li.product .mangaly-quantity-selector .qty-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  transform: scale(1.05);
}
.product-card-modern .mangaly-quantity-selector .qty-btn:active,
li.product .mangaly-quantity-selector .qty-btn:active {
  background: #c2410c;
  color: #fff;
  transform: scale(0.95);
}
.product-card-modern .mangaly-quantity-selector .qty-btn:disabled,
li.product .mangaly-quantity-selector .qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.product-card-modern .mangaly-quantity-selector .qty-input,
li.product .mangaly-quantity-selector .qty-input {
  width: 3rem;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(226, 232, 240, 0.6);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
  -moz-appearance: textfield;
  transition: background 0.2s ease;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
}
.product-card-modern .mangaly-quantity-selector .qty-input::-webkit-outer-spin-button,
.product-card-modern .mangaly-quantity-selector .qty-input::-webkit-inner-spin-button,
li.product .mangaly-quantity-selector .qty-input::-webkit-outer-spin-button,
li.product .mangaly-quantity-selector .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-card-modern .mangaly-quantity-selector .qty-input:focus,
li.product .mangaly-quantity-selector .qty-input:focus {
  outline: none;
  background: #fff7ed;
}

/* Кнопка "В корзину" — ровно в одну линию с селектором (перебиваем .button) */
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn {
  flex: 1;
  height: 48px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 1rem !important;
  border-radius: 0;
  border: none;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn::before,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn:hover,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  transform: translateY(-1px);
}
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn:hover::before,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn:hover::before {
  left: 100%;
}
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn:active,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn:active {
  transform: translateY(0);
}
.product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn:disabled,
li.product .mangaly-product-actions .mangaly-add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========== Адаптация WooCommerce под мобильные ========== */
@media (max-width: 768px) {
  .single-product .woocommerce .summary,
  .single-product-page .woocommerce .summary,
  .single-product-wrap .summary {
    padding: 1rem 1rem 1.25rem;
  }
  .single-product .woocommerce .woocommerce-product-gallery,
  .single-product-page .woocommerce .woocommerce-product-gallery,
  .single-product-wrap .woocommerce-product-gallery {
    padding: 1rem;
    min-height: 240px;
  }
  .single-product .woocommerce-tabs .panel,
  .single-product-page .woocommerce-tabs .panel,
  .single-product-wrap .woocommerce-tabs .panel {
    padding: 1rem 1rem 1.5rem;
  }
  body.woocommerce-cart .woocommerce,
  body.mangaly-cart-page .woocommerce,
  .site-main.mangaly-cart-page .woocommerce {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-cart table.shop_table.cart thead,
  body.mangaly-cart-page table.shop_table.cart thead {
    display: none;
  }
  body.woocommerce-cart table.shop_table.cart tbody tr,
  body.mangaly-cart-page table.shop_table.cart tbody tr {
    display: block;
    padding: 1rem 0 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-right: 2.5rem;
  }
  body.woocommerce-cart table.shop_table.cart td,
  body.mangaly-cart-page table.shop_table.cart td {
    display: block;
    padding: 0.35rem 0 !important;
    text-align: left !important;
  }
  body.woocommerce-cart table.shop_table.cart .product-remove,
  body.mangaly-cart-page table.shop_table.cart .product-remove {
    position: absolute;
    top: 1rem;
    right: 0;
    padding: 0 !important;
  }
  body.woocommerce-cart table.shop_table.cart .product-thumbnail,
  body.mangaly-cart-page table.shop_table.cart .product-thumbnail {
    margin-bottom: 0.5rem;
  }
  body.woocommerce-cart .cart_totals,
  body.mangaly-cart-page .cart_totals,
  .site-main.mangaly-cart-page .cart_totals {
    position: static !important;
    margin-top: 1rem;
  }
  .product-card-modern .mangaly-product-actions,
  li.product .mangaly-product-actions {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .single-product .summary .price,
  .single-product-page .summary .price,
  .single-product-wrap .summary .price {
    font-size: 1.5rem;
  }
  .product-card-modern .mangaly-product-actions,
  li.product .mangaly-product-actions {
    margin: 0 0.75rem 0.75rem;
    width: calc(100% - 1.5rem);
    min-height: 44px;
  }
  .product-card-modern .mangaly-quantity-selector,
  li.product .mangaly-quantity-selector {
    height: 44px;
  }
  .product-card-modern .mangaly-quantity-selector .qty-btn,
  li.product .mangaly-quantity-selector .qty-btn {
    width: 2.5rem;
    height: 44px;
  }
  .product-card-modern .mangaly-quantity-selector .qty-input,
  li.product .mangaly-quantity-selector .qty-input {
    width: 2.75rem;
    height: 44px;
  }
  .product-card-modern .mangaly-product-actions .mangaly-add-to-cart-btn,
  li.product .mangaly-product-actions .mangaly-add-to-cart-btn {
    height: 44px !important;
    min-height: 44px;
    padding: 0 0.75rem !important;
    font-size: 0.95rem;
  }
  body.woocommerce-cart table.shop_table.cart td,
  body.mangaly-cart-page table.shop_table.cart td {
    padding: 0.25rem 0 !important;
  }
  body.woocommerce-cart .product-thumbnail img,
  body.mangaly-cart-page .product-thumbnail img {
    width: 70px !important;
    height: 70px !important;
  }
  body.woocommerce-cart .product-thumbnail a,
  body.mangaly-cart-page .product-thumbnail a {
    width: 70px !important;
    height: 70px !important;
  }
  body.woocommerce-cart .cart_totals,
  body.mangaly-cart-page .cart_totals,
  .site-main.mangaly-cart-page .cart_totals {
    padding: 1.25rem !important;
  }
  .single-product .woocommerce .summary,
  .single-product-page .woocommerce .summary,
  .single-product-wrap .summary {
    padding: 0.75rem 0.75rem 1rem;
  }
  .single-product .woocommerce .woocommerce-product-gallery,
  .single-product-page .woocommerce .woocommerce-product-gallery,
  .single-product-wrap .woocommerce-product-gallery {
    padding: 0.75rem;
    min-height: 200px;
  }
}

@media (max-width: 360px) {
  .single-product .summary .price,
  .single-product-page .summary .price,
  .single-product-wrap .summary .price {
    font-size: 1.35rem;
  }
  .single-product .woocommerce .summary .product_title,
  .single-product-page .woocommerce .summary .product_title,
  .single-product-wrap .summary .product_title {
    font-size: 1.1rem;
  }
  body.woocommerce-cart .product-thumbnail img,
  body.mangaly-cart-page .product-thumbnail img {
    width: 56px !important;
    height: 56px !important;
  }
  body.woocommerce-cart .product-thumbnail a,
  body.mangaly-cart-page .product-thumbnail a {
    width: 56px !important;
    height: 56px !important;
  }
  .product-card-modern .mangaly-product-actions,
  li.product .mangaly-product-actions {
    margin: 0 0.5rem 0.5rem;
    width: calc(100% - 1rem);
  }
  .product-card-modern .mangaly-add-to-cart-btn,
  li.product .mangaly-add-to-cart-btn {
    font-size: 0.85rem;
    padding: 0 0.5rem !important;
  }
}

/* Корзина: принудительно наш стиль (шаблон cart-empty.php + кнопки в cross-sells) */
/* Скрываем стандартное эмодзи WooCommerce */
.mangaly-cart-wrap .cart-empty::before,
.mangaly-cart-wrap .woocommerce-info::before,
body.woocommerce-cart .cart-empty::before,
body.woocommerce-cart .woocommerce-info::before,
body.mangaly-cart-page .cart-empty::before,
body.mangaly-cart-page .woocommerce-info::before {
  display: none !important;
}
/* Убираем стандартный текст с эмодзи */
.mangaly-cart-wrap .cart-empty,
.mangaly-cart-wrap .mangaly-cart-empty,
.mangaly-cart-wrap .cart-empty.mangaly-cart-empty,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .mangaly-cart-empty,
body.mangaly-cart-page .cart-empty,
body.mangaly-cart-page .mangaly-cart-empty {
  font-size: 1.2rem !important;
  color: #475569 !important;
  padding: 3rem 2rem 1.5rem !important;
  text-align: center !important;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%) !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
  border-bottom: none !important;
  margin: 0 !important;
  position: relative !important;
}
.mangaly-cart-wrap .mangaly-cart-empty::before,
.mangaly-cart-wrap .cart-empty.mangaly-cart-empty::before,
body.woocommerce-cart .mangaly-cart-empty::before,
body.woocommerce-cart .cart-empty.mangaly-cart-empty::before,
body.mangaly-cart-page .mangaly-cart-empty::before,
body.mangaly-cart-page .cart-empty.mangaly-cart-empty::before {
  content: '' !important;
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 1.5rem !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  border-radius: 50% !important;
  border: 3px solid rgba(234, 88, 12, 0.25) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}
.mangaly-cart-wrap .return-to-shop,
body.woocommerce-cart .return-to-shop,
body.mangaly-cart-page .return-to-shop {
  text-align: center !important;
  padding: 1.5rem 2rem 3rem !important;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%) !important;
  border-radius: 0 0 24px 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
  border-top: none !important;
  margin: 0 !important;
}
.mangaly-cart-wrap .return-to-shop .button,
.mangaly-cart-wrap .return-to-shop a.button,
body.woocommerce-cart .return-to-shop .button,
body.woocommerce-cart .return-to-shop a.button,
body.mangaly-cart-page .return-to-shop .button,
body.mangaly-cart-page .return-to-shop a.button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem 2rem !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
  display: inline-block !important;
}
.mangaly-cart-wrap .return-to-shop .button:hover,
.mangaly-cart-wrap .return-to-shop a.button:hover,
body.woocommerce-cart .return-to-shop .button:hover,
body.woocommerce-cart .return-to-shop a.button:hover,
body.mangaly-cart-page .return-to-shop .button:hover,
body.mangaly-cart-page .return-to-shop a.button:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45) !important;
}
.mangaly-cart-wrap .cross-sells .button,
.mangaly-cart-wrap .cross-sells a.button,
.mangaly-cart-wrap .cross-sells .add_to_cart_button,
.mangaly-cart-wrap .cross-sells a.add_to_cart_button,
.mangaly-cart-wrap .cross-sells .product_type_simple,
.mangaly-cart-wrap .cross-sells .ajax_add_to_cart,
.mangaly-cart-wrap .cross-sells li.product .button,
.mangaly-cart-wrap .cross-sells li.product a.button,
.mangaly-cart-wrap .cross-sells li.product .add_to_cart_button,
.mangaly-cart-wrap .cross-sells li.product a.add_to_cart_button,
body.woocommerce-cart .cross-sells .button,
body.woocommerce-cart .cross-sells a.button,
body.woocommerce-cart .cross-sells .add_to_cart_button,
body.woocommerce-cart .cross-sells a.add_to_cart_button,
body.mangaly-cart-page .cross-sells .button,
body.mangaly-cart-page .cross-sells a.button,
body.mangaly-cart-page .cross-sells .add_to_cart_button,
body.mangaly-cart-page .cross-sells a.add_to_cart_button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}
.mangaly-cart-wrap .cross-sells .button:hover,
.mangaly-cart-wrap .cross-sells a.button:hover,
.mangaly-cart-wrap .cross-sells .add_to_cart_button:hover,
.mangaly-cart-wrap .cross-sells a.add_to_cart_button:hover,
body.woocommerce-cart .cross-sells .button:hover,
body.woocommerce-cart .cross-sells a.button:hover,
body.mangaly-cart-page .cross-sells .button:hover,
body.mangaly-cart-page .cross-sells a.button:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
}
.mangaly-cart-wrap .cross-sells h2,
body.woocommerce-cart .cross-sells h2,
body.mangaly-cart-page .cross-sells h2 {
  border-bottom: 3px solid #ea580c !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}
.mangaly-cart-wrap .cross-sells .price .amount,
.mangaly-cart-wrap .cross-sells .price bdi,
.mangaly-cart-wrap .cross-sells .price,
body.woocommerce-cart .cross-sells .price .amount,
body.woocommerce-cart .cross-sells .price bdi,
body.mangaly-cart-page .cross-sells .price .amount,
body.mangaly-cart-page .cross-sells .price bdi {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

/* ========== КРИТИЧЕСКИЕ СТИЛИ: Максимальная специфичность для гарантированного применения ========== */
/* Эти стили должны применяться в последнюю очередь, перебивая все остальные */

/* Скрываем стандартное эмодзи WooCommerce полностью */
body.woocommerce-cart .entry-content .cart-empty::before,
body.woocommerce-cart .entry-content .woocommerce-info::before,
body.mangaly-cart-page .entry-content .cart-empty::before,
body.mangaly-cart-page .entry-content .woocommerce-info::before,
.mangaly-cart-wrap .entry-content .cart-empty::before,
.mangaly-cart-wrap .entry-content .woocommerce-info::before,
body.woocommerce-cart .woocommerce .cart-empty::before,
body.woocommerce-cart .woocommerce .woocommerce-info::before,
body.mangaly-cart-page .woocommerce .cart-empty::before,
body.mangaly-cart-page .woocommerce .woocommerce-info::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Пустая корзина - принудительный стиль */
body.woocommerce-cart .entry-content .cart-empty,
body.woocommerce-cart .entry-content .mangaly-cart-empty,
body.mangaly-cart-page .entry-content .cart-empty,
body.mangaly-cart-page .entry-content .mangaly-cart-empty,
.mangaly-cart-wrap .entry-content .cart-empty,
.mangaly-cart-wrap .entry-content .mangaly-cart-empty,
body.woocommerce-cart .woocommerce .cart-empty,
body.woocommerce-cart .woocommerce .mangaly-cart-empty,
body.mangaly-cart-page .woocommerce .cart-empty,
body.mangaly-cart-page .woocommerce .mangaly-cart-empty {
  font-size: 1.2rem !important;
  color: #475569 !important;
  padding: 3rem 2rem 1.5rem !important;
  text-align: center !important;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%) !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
  border-bottom: none !important;
  margin: 0 !important;
  position: relative !important;
}

/* Кастомная иконка для пустой корзины */
body.woocommerce-cart .entry-content .mangaly-cart-empty::before,
body.mangaly-cart-page .entry-content .mangaly-cart-empty::before,
.mangaly-cart-wrap .entry-content .mangaly-cart-empty::before,
body.woocommerce-cart .woocommerce .mangaly-cart-empty::before,
body.mangaly-cart-page .woocommerce .mangaly-cart-empty::before {
  content: '' !important;
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 1.5rem !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  border-radius: 50% !important;
  border: 3px solid rgba(234, 88, 12, 0.25) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Кнопки в cross-sells - максимальная специфичность */
body.woocommerce-cart .entry-content .cross-sells .button,
body.woocommerce-cart .entry-content .cross-sells .add_to_cart_button,
body.woocommerce-cart .entry-content .cross-sells a.button,
body.woocommerce-cart .entry-content .cross-sells a.add_to_cart_button,
body.woocommerce-cart .entry-content .cross-sells .product_type_simple,
body.woocommerce-cart .entry-content .cross-sells .ajax_add_to_cart,
body.woocommerce-cart .entry-content .cross-sells li.product .button,
body.woocommerce-cart .entry-content .cross-sells li.product a.button,
body.mangaly-cart-page .entry-content .cross-sells .button,
body.mangaly-cart-page .entry-content .cross-sells .add_to_cart_button,
body.mangaly-cart-page .entry-content .cross-sells a.button,
.mangaly-cart-wrap .entry-content .cross-sells .button,
.mangaly-cart-wrap .entry-content .cross-sells .add_to_cart_button,
.mangaly-cart-wrap .entry-content .cross-sells a.button,
body.woocommerce-cart .woocommerce .cross-sells .button,
body.woocommerce-cart .woocommerce .cross-sells .add_to_cart_button,
body.woocommerce-cart .woocommerce .cross-sells a.button,
body.mangaly-cart-page .woocommerce .cross-sells .button,
body.mangaly-cart-page .woocommerce .cross-sells .add_to_cart_button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}

/* Цены в cross-sells */
body.woocommerce-cart .entry-content .cross-sells .price .amount,
body.woocommerce-cart .entry-content .cross-sells .price bdi,
body.mangaly-cart-page .entry-content .cross-sells .price .amount,
body.mangaly-cart-page .entry-content .cross-sells .price bdi,
.mangaly-cart-wrap .entry-content .cross-sells .price .amount,
.mangaly-cart-wrap .entry-content .cross-sells .price bdi,
body.woocommerce-cart .woocommerce .cross-sells .price .amount,
body.woocommerce-cart .woocommerce .cross-sells .price bdi,
body.mangaly-cart-page .woocommerce .cross-sells .price .amount,
body.mangaly-cart-page .woocommerce .cross-sells .price bdi {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

/* Заголовок cross-sells */
body.woocommerce-cart .entry-content .cross-sells h2,
body.mangaly-cart-page .entry-content .cross-sells h2,
.mangaly-cart-wrap .entry-content .cross-sells h2,
body.woocommerce-cart .woocommerce .cross-sells h2,
body.mangaly-cart-page .woocommerce .cross-sells h2 {
  border-bottom: 3px solid #ea580c !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

/* Блок пустой корзины (вставляется скриптом cart-fix.js) */
.mangaly-empty-cart-block {
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(249, 115, 22, 0.12) !important;
  overflow: hidden;
}
.mangaly-empty-cart-block .cart-empty {
  font-size: 1.2rem !important;
  color: #475569 !important;
  padding: 3rem 2rem 1.5rem !important;
  text-align: center !important;
  margin: 0 !important;
}
.mangaly-empty-cart-block .cart-empty::before {
  content: '' !important;
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 1.5rem !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  border-radius: 50% !important;
  border: 3px solid rgba(234, 88, 12, 0.25) !important;
  box-sizing: border-box !important;
}
.mangaly-empty-cart-block .return-to-shop {
  text-align: center !important;
  padding: 1.5rem 2rem 2.5rem !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%) !important;
  border-top: 1px solid rgba(249, 115, 22, 0.12) !important;
}
.mangaly-empty-cart-block .return-to-shop .button,
.mangaly-empty-cart-block .return-to-shop a.button {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem 2rem !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
  display: inline-block !important;
}

/* ========== КРИТИЧЕСКИЕ СТИЛИ ДЛЯ КНОПОК CROSS-SELLS: Максимальная специфичность ========== */
/* Эти стили применяются в последнюю очередь, перебивая ВСЕ остальные стили */
body .cross-sells .button,
body .cross-sells a.button,
body .cross-sells .add_to_cart_button,
body .cross-sells a.add_to_cart_button,
body .cross-sells button,
body .cross-sells input[type="submit"],
body .cross-sells .product_type_simple,
body .cross-sells .ajax_add_to_cart,
body .cross-sells .single_add_to_cart_button,
body .cross-sells li.product .button,
body .cross-sells li.product a.button,
body .cross-sells li.product .add_to_cart_button,
body .cross-sells li.product a.add_to_cart_button,
body .entry-content .cross-sells .button,
body .entry-content .cross-sells a.button,
body .entry-content .cross-sells .add_to_cart_button,
body .woocommerce .cross-sells .button,
body .woocommerce .cross-sells a.button,
body .woocommerce .cross-sells .add_to_cart_button,
body.woocommerce-cart .cross-sells .button,
body.woocommerce-cart .cross-sells a.button,
body.woocommerce-cart .cross-sells .add_to_cart_button,
body.woocommerce-cart .cross-sells button,
body.woocommerce-cart .cross-sells input[type="submit"],
body.mangaly-cart-page .cross-sells .button,
body.mangaly-cart-page .cross-sells a.button,
body.mangaly-cart-page .cross-sells .add_to_cart_button,
.mangaly-cart-wrap .cross-sells .button,
.mangaly-cart-wrap .cross-sells a.button,
.mangaly-cart-wrap .cross-sells .add_to_cart_button,
.mangaly-cart-wrap .cross-sells button,
.mangaly-cart-wrap .cross-sells input[type="submit"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  background-color: #f97316 !important;
  background-image: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
  text-decoration: none !important;
  display: inline-block !important;
  cursor: pointer !important;
}
body .cross-sells .button:hover,
body .cross-sells a.button:hover,
body .cross-sells .add_to_cart_button:hover,
body .cross-sells button:hover,
body.woocommerce-cart .cross-sells .button:hover,
body.woocommerce-cart .cross-sells a.button:hover,
body.mangaly-cart-page .cross-sells .button:hover,
.mangaly-cart-wrap .cross-sells .button:hover,
.mangaly-cart-wrap .cross-sells a.button:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-color: #ea580c !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4) !important;
}

/* ========== КРИТИЧЕСКИЕ СТИЛИ ДЛЯ КНОПКИ CHECKOUT: Максимальная специфичность ========== */
body .wc-proceed-to-checkout .checkout-button,
body .wc-proceed-to-checkout a.checkout-button,
body a.checkout-button,
body .cart_totals .checkout-button,
body .cart_totals a.checkout-button,
body .cart_totals .button,
body .cart_totals a.button,
body .entry-content .wc-proceed-to-checkout .checkout-button,
body .entry-content .cart_totals .checkout-button,
body .entry-content .cart_totals .button,
body .woocommerce .wc-proceed-to-checkout .checkout-button,
body .woocommerce .cart_totals .checkout-button,
body .woocommerce .cart_totals .button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .cart_totals .checkout-button,
body.woocommerce-cart .cart_totals a.checkout-button,
body.woocommerce-cart .cart_totals .button,
body.woocommerce-cart .cart_totals a.button,
body.mangaly-cart-page .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .wc-proceed-to-checkout a.checkout-button,
body.mangaly-cart-page a.checkout-button,
body.mangaly-cart-page .cart_totals .checkout-button,
body.mangaly-cart-page .cart_totals a.checkout-button,
body.mangaly-cart-page .cart_totals .button,
body.mangaly-cart-page .cart_totals a.button,
.mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button,
.mangaly-cart-wrap .wc-proceed-to-checkout a.checkout-button,
.mangaly-cart-wrap a.checkout-button,
.mangaly-cart-wrap .cart_totals .checkout-button,
.mangaly-cart-wrap .cart_totals a.checkout-button,
.mangaly-cart-wrap .cart_totals .button,
.mangaly-cart-wrap .cart_totals a.button {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-color: #ea580c !important;
  background-image: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35) !important;
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
body .wc-proceed-to-checkout .checkout-button:hover,
body .wc-proceed-to-checkout a.checkout-button:hover,
body a.checkout-button:hover,
body .cart_totals .button:hover,
body .cart_totals a.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart a.checkout-button:hover,
body.woocommerce-cart .cart_totals .button:hover,
body.woocommerce-cart .cart_totals a.button:hover,
body.mangaly-cart-page .wc-proceed-to-checkout .checkout-button:hover,
body.mangaly-cart-page a.checkout-button:hover,
body.mangaly-cart-page .cart_totals .button:hover,
body.mangaly-cart-page .cart_totals a.button:hover,
.mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button:hover,
.mangaly-cart-wrap a.checkout-button:hover,
.mangaly-cart-wrap .cart_totals .button:hover,
.mangaly-cart-wrap .cart_totals a.button:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%) !important;
  background-color: #c2410c !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4) !important;
}

/* ========== СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА (CHECKOUT) ========== */
/* Кнопка «Оформить заказ» / Place order — оранжевый стиль темы */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button[name="woocommerce_checkout_place_order"],
body.woocommerce-checkout .woocommerce-checkout-place-order .button,
body.woocommerce-checkout .woocommerce-checkout-place-order button,
body.woocommerce-checkout .woocommerce-checkout-payment .button,
body.woocommerce-checkout .woocommerce-checkout-payment button#place_order,
.woocommerce-checkout #place_order,
.woocommerce-checkout button[name="woocommerce_checkout_place_order"],
.woocommerce-checkout .woocommerce-checkout-place-order .button,
.woocommerce-checkout .woocommerce-checkout-place-order button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-color: #ea580c !important;
  background-image: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.5rem !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35) !important;
  width: 100% !important;
  cursor: pointer !important;
}
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button[name="woocommerce_checkout_place_order"]:hover,
body.woocommerce-checkout .woocommerce-checkout-place-order .button:hover,
body.woocommerce-checkout .woocommerce-checkout-place-order button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout .woocommerce-checkout-place-order .button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%) !important;
  background-color: #c2410c !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4) !important;
}
/* Ссылка «Вернуться в корзину» на странице checkout */
body.woocommerce-checkout .woocommerce-form-coupon-toggle + .checkout_coupon,
body.woocommerce-checkout .site-main a:not(.button):not(.remove) {
  color: #1e293b !important;
}
body.woocommerce-checkout .site-main a:hover:not(.button):not(.remove) {
  color: #ea580c !important;
}

/* Не даем checkout-правилам затемнять ссылки в футере */
body.woocommerce-checkout .footer-contact-list a,
body.woocommerce-checkout .footer-nav a,
body.woocommerce-checkout .footer-nav-list a {
  color: #cbd5e1 !important;
}

body.woocommerce-checkout .footer-contact-list a:hover,
body.woocommerce-checkout .footer-nav a:hover,
body.woocommerce-checkout .footer-nav-list a:hover {
  color: #f97316 !important;
}

/* ========== Исправление контрастности футера на странице корзины ========== */
body.woocommerce-cart .footer-section p,
body.mangaly-cart-page .footer-section p,
.site-main.mangaly-cart-page ~ .footer .footer-section p {
  color: #cbd5e1 !important;
}

body.woocommerce-cart .footer-contact-list li,
body.mangaly-cart-page .footer-contact-list li,
body.woocommerce-cart .footer-contact-list li span:not(.footer-contact-icon),
body.mangaly-cart-page .footer-contact-list li span:not(.footer-contact-icon),
.site-main.mangaly-cart-page ~ .footer .footer-contact-list li,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list li span:not(.footer-contact-icon) {
  color: #cbd5e1 !important;
}

body.woocommerce-cart .footer-contact-list a,
body.mangaly-cart-page .footer-contact-list a,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a {
  color: #cbd5e1 !important;
}

body.woocommerce-cart .footer-nav a,
body.mangaly-cart-page .footer-nav a,
body.woocommerce-cart .footer-nav-list a,
body.mangaly-cart-page .footer-nav-list a,
.site-main.mangaly-cart-page ~ .footer .footer-nav a,
.site-main.mangaly-cart-page ~ .footer .footer-nav-list a {
  color: #cbd5e1 !important;
  transition: color 0.2s, transform 0.2s !important;
}

body.woocommerce-cart .footer-nav a:hover,
body.mangaly-cart-page .footer-nav a:hover,
body.woocommerce-cart .footer-nav-list a:hover,
body.mangaly-cart-page .footer-nav-list a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-nav a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-nav-list a:hover {
  color: #f97316 !important;
  transform: translateX(4px) !important;
}

body.woocommerce-cart .footer-contact-list a,
body.mangaly-cart-page .footer-contact-list a,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a {
  color: #cbd5e1 !important;
  transition: color 0.2s !important;
}

body.woocommerce-cart .footer-contact-list a:hover,
body.mangaly-cart-page .footer-contact-list a:hover,
.site-main.mangaly-cart-page ~ .footer .footer-contact-list a:hover {
  color: #f97316 !important;
}

body.woocommerce-cart .footer-copyright,
body.mangaly-cart-page .footer-copyright,
.site-main.mangaly-cart-page ~ .footer .footer-copyright {
  color: #94a3b8 !important;
}

/* Галерея товара: оставляем нативную механику WooCommerce/FlexSlider */
.single-product .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides,
.single-product-wrap .woocommerce-product-gallery .flex-viewport ul.slides {
  display: block !important;
}

.single-product .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides li,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport ul.slides li,
.single-product-wrap .woocommerce-product-gallery .flex-viewport ul.slides li {
  display: block !important;
  min-height: 0 !important;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image {
  display: block !important;
  min-height: 0 !important;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image a {
  display: block !important;
}

/* Fallback-режим галереи: собственное главное фото + миниатюры */
.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport {
  height: auto !important;
  min-height: 0 !important;
  position: relative;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides {
  transform: none !important;
  left: 0 !important;
  width: 100% !important;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides > li,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides > li,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .flex-viewport .slides > li {
  display: none !important;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder {
  display: block !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  z-index: 4;
  border-radius: 10px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder::before,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder::before,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image-holder::before {
  content: "";
  position: absolute;
  inset: -6%;
  background-image: var(--mangaly-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(0.9);
  opacity: 0.22;
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  transform: none;
  position: relative;
  z-index: 1;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 6;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  transition: all .2s ease, opacity .2s ease;
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow:hover,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow:hover,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow:hover {
  background: #fff;
  border-color: rgba(100, 116, 139, 0.55);
  transform: translateY(-1px) scale(1.03);
}

@media (max-width: 900px) {
  .single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
  .single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
  .single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav {
    padding: 0 10px;
  }
  .single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow,
  .single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow,
  .single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-arrow {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .woocommerce-product-gallery__wrapper,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .woocommerce-product-gallery__wrapper,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .woocommerce-product-gallery__wrapper,
.single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .slides,
.single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .slides,
.single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .slides {
  display: none !important;
}

/* Модальный просмотр фото (без зависания Woo lightbox) */
body.mangaly-no-scroll {
  overflow: hidden !important;
}

.mangaly-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.mangaly-image-modal.is-open {
  display: flex;
}

.mangaly-image-modal__img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.mangaly-image-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Миниатюры галереи в одну линию + стрелки прокрутки */
.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-row,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-row,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 100%;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track::-webkit-scrollbar,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track::-webkit-scrollbar,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track::-webkit-scrollbar {
  display: none;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin: 0 !important;
  width: max-content;
  max-width: none;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li a,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li a,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li img,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li img,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 6px;
  box-sizing: border-box;
  background: #fff;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25), 0 8px 18px rgba(234, 88, 12, 0.18);
  background: rgba(234, 88, 12, 0.06);
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active img,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active img,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-track .flex-control-nav li.is-active img {
  border-color: #ea580c !important;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 2;
  transition: all .2s ease;
  font-weight: 700;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow:hover:not(:disabled),
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow:hover:not(:disabled),
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-arrow:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow:disabled,
.single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow:disabled,
.single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 768px) {
  .single-product .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
  .single-product-page .woocommerce .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav,
  .single-product-wrap .woocommerce-product-gallery.mangaly-gallery-fallback .mangaly-main-nav {
    display: none;
  }

  .single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-row,
  .single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-row,
  .single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-row {
    grid-template-columns: 1fr;
  }

  .single-product .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow,
  .single-product-page .woocommerce .woocommerce-product-gallery .mangaly-thumbs-arrow,
  .single-product-wrap .woocommerce-product-gallery .mangaly-thumbs-arrow {
    display: none;
  }

  /* Миниатюры: полноценный свайп по горизонтали для всех фото */
  .single-product .woocommerce .woocommerce-product-gallery .flex-control-nav,
  .single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav,
  .single-product-wrap .woocommerce-product-gallery .flex-control-nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    gap: 10px;
    padding-bottom: 4px;
  }

  .single-product .woocommerce .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar,
  .single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar,
  .single-product-wrap .woocommerce-product-gallery .flex-control-nav::-webkit-scrollbar {
    display: none;
  }

  .single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li,
  .single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li,
  .single-product-wrap .woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 10px;
    transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
  }

  .single-product .woocommerce .woocommerce-product-gallery .flex-control-nav li img.flex-active,
  .single-product-page .woocommerce .woocommerce-product-gallery .flex-control-nav li img.flex-active,
  .single-product-wrap .woocommerce-product-gallery .flex-control-nav li img.flex-active {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95) inset !important;
  }
}

/* Карточка товара в каталоге: бейдж "Распродажа!" видим и в прежнем месте */
.woocommerce ul.products li.product .product-image-wrap .onsale,
.woocommerce-page ul.products li.product .product-image-wrap .onsale {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0.48rem 0.95rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.3 !important;
  z-index: 12 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35) !important;
}

/* Страница товара: убираем "уехавший" стандартный бейдж */
.single-product .woocommerce div.product > .onsale,
.single-product-page .woocommerce div.product > .onsale,
.single-product-wrap div.product > .onsale {
  display: none !important;
}

/* Страница товара: современный бейдж поверх галереи для товара со скидкой */
.single-product .woocommerce div.product.sale .woocommerce-product-gallery::before,
.single-product-page .woocommerce div.product.sale .woocommerce-product-gallery::before,
.single-product-wrap div.product.sale .woocommerce-product-gallery::before {
  content: "Распродажа!";
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.36);
}

/* ===== Cart Page: modern cleanup ===== */
body.woocommerce-cart .mangaly-empty-cart-block,
body.mangaly-cart-page .mangaly-empty-cart-block {
  max-width: 680px;
  margin: 1.5rem auto 2rem auto !important;
  background: #fff !important;
  border-radius: 22px !important;
  border: 1px solid #e7edf5 !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden !important;
}

body.woocommerce-cart .mangaly-empty-cart-block .cart-empty,
body.mangaly-cart-page .mangaly-empty-cart-block .cart-empty {
  margin: 0 !important;
  padding: 2rem 1.25rem 1rem !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-align: center !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-empty-cart-block .cart-empty::before,
body.mangaly-cart-page .mangaly-empty-cart-block .cart-empty::before {
  content: "" !important;
  display: block !important;
  width: 74px !important;
  height: 74px !important;
  margin: 0 auto 1rem auto !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  border: 3px solid rgba(234, 88, 12, 0.24) !important;
}

body.woocommerce-cart .mangaly-empty-cart-block .return-to-shop,
body.mangaly-cart-page .mangaly-empty-cart-block .return-to-shop {
  margin: 0 !important;
  padding: 1rem 1.25rem 1.75rem !important;
  text-align: center !important;
  background: #fff !important;
  border-top: 1px solid #eef2f7 !important;
}

body.woocommerce-cart .cross-sells,
body.mangaly-cart-page .cross-sells {
  margin-top: 1.25rem !important;
  padding-top: 0 !important;
  border-top: none !important;
}

body.woocommerce-cart .cross-sells h2,
body.mangaly-cart-page .cross-sells h2 {
  display: block !important;
  text-align: center !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  margin: 0 0 1.35rem 0 !important;
  border: none !important;
  padding: 0 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .cross-sells ul.products,
body.mangaly-cart-page .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1.15rem !important;
}

body.woocommerce-cart .cross-sells li.product,
body.mangaly-cart-page .cross-sells li.product {
  background: #fff !important;
  border: 1px solid #e8eef5 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
  padding-bottom: 0.75rem !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

body.woocommerce-cart .cross-sells li.product:hover,
body.mangaly-cart-page .cross-sells li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

body.woocommerce-cart .cross-sells li.product > a:first-child,
body.mangaly-cart-page .cross-sells li.product > a:first-child {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body.woocommerce-cart .cross-sells li.product > a:first-child img,
body.mangaly-cart-page .cross-sells li.product > a:first-child img {
  width: 100% !important;
  height: 170px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 14px 14px 0 0 !important;
  background: #fff !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .cross-sells li.product h2,
body.woocommerce-cart .cross-sells li.product .woocommerce-loop-product__title,
body.mangaly-cart-page .cross-sells li.product h2,
body.mangaly-cart-page .cross-sells li.product .woocommerce-loop-product__title {
  font-size: 1rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0.75rem 0.75rem 0.45rem !important;
  text-align: center !important;
}

body.woocommerce-cart .cross-sells li.product .price,
body.mangaly-cart-page .cross-sells li.product .price {
  margin: 0 0.75rem 0.6rem !important;
  text-align: center !important;
}

body.woocommerce-cart .cross-sells li.product .button,
body.woocommerce-cart .cross-sells li.product a.button,
body.mangaly-cart-page .cross-sells li.product .button,
body.mangaly-cart-page .cross-sells li.product a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  margin: 0 auto !important;
}

/* WooCommerce: без зазора между шапкой и первым оранжевым блоком */
body.woocommerce .site-main > .page-header:first-child,
body.woocommerce-page .site-main > .page-header:first-child,
body.woocommerce-cart .site-main > .page-header:first-child,
body.mangaly-cart-page .site-main > .page-header:first-child,
body.woocommerce .site-main > .entry-header:first-child,
body.woocommerce-page .site-main > .entry-header:first-child,
body.woocommerce-cart .site-main > .entry-header:first-child,
body.mangaly-cart-page .site-main > .entry-header:first-child {
  margin-top: 0 !important;
}

/* ========== Cart Modern Refresh (final override) ========== */
body.woocommerce-cart .mangaly-cart-wrap .woocommerce,
body.mangaly-cart-page .mangaly-cart-wrap .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 1.5rem !important;
  align-items: start !important;
}

body.woocommerce-cart .mangaly-cart-wrap form.woocommerce-cart-form,
body.mangaly-cart-page .mangaly-cart-wrap form.woocommerce-cart-form {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart thead th,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 1rem 1.25rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart td,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart td {
  padding: 1.2rem 1.25rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart tr:last-child td,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart tr:last-child td {
  border-bottom: none !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-name a,
body.mangaly-cart-page .mangaly-cart-wrap .product-name a {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-price .amount,
body.woocommerce-cart .mangaly-cart-wrap .product-subtotal .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-price .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-subtotal .amount {
  color: #0f172a !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-thumbnail a,
body.mangaly-cart-page .mangaly-cart-wrap .product-thumbnail a {
  width: 84px !important;
  height: 84px !important;
  border-radius: 14px !important;
  padding: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-thumbnail img,
body.mangaly-cart-page .mangaly-cart-wrap .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 10px !important;
  object-fit: contain !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-quantity .quantity,
body.mangaly-cart-page .mangaly-cart-wrap .product-quantity .quantity {
  border: 1px solid #dbe3ee !important;
  border-radius: 12px !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-quantity .qty,
body.mangaly-cart-page .mangaly-cart-wrap .product-quantity .qty {
  width: 3rem !important;
  min-height: 38px !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-remove .remove,
body.mangaly-cart-page .mangaly-cart-wrap .product-remove .remove {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  line-height: 28px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-remove .remove:hover,
body.mangaly-cart-page .mangaly-cart-wrap .product-remove .remove:hover {
  color: #fff !important;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .cart-collaterals .cart_totals,
body.mangaly-cart-page .mangaly-cart-wrap .cart-collaterals .cart_totals {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
  padding: 1.25rem 1.25rem 1.35rem !important;
  position: sticky !important;
  top: 1rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .cart_totals h2,
body.mangaly-cart-page .mangaly-cart-wrap .cart_totals h2 {
  font-size: 0.88rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  font-weight: 800 !important;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .cart_totals table.shop_table th,
body.woocommerce-cart .mangaly-cart-wrap .cart_totals table.shop_table td,
body.mangaly-cart-page .mangaly-cart-wrap .cart_totals table.shop_table th,
body.mangaly-cart-page .mangaly-cart-wrap .cart_totals table.shop_table td {
  border-bottom: 1px solid #eef2f7 !important;
  color: #64748b !important;
  padding: 0.7rem 0 !important;
  font-size: 0.95rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .cart_totals .order-total th,
body.woocommerce-cart .mangaly-cart-wrap .cart_totals .order-total td,
body.mangaly-cart-page .mangaly-cart-wrap .cart_totals .order-total th,
body.mangaly-cart-page .mangaly-cart-wrap .cart_totals .order-total td {
  color: #0f172a !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  border-bottom: 0 !important;
  padding-top: 0.95rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-proceed-to-checkout,
body.mangaly-cart-page .mangaly-cart-wrap .wc-proceed-to-checkout {
  padding-top: 0.6rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button {
  border-radius: 14px !important;
  min-height: 52px !important;
  padding: 0.95rem 1rem !important;
  font-size: 1.03rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #dc2626 100%) !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32) !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button:hover,
body.mangaly-cart-page .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4) !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .mangaly-cart-wrap .woocommerce,
  body.mangaly-cart-page .mangaly-cart-wrap .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .cart-collaterals .cart_totals,
  body.mangaly-cart-page .mangaly-cart-wrap .cart-collaterals .cart_totals {
    position: static !important;
    top: auto !important;
  }
}

/* ========== Cart row polish (product line) ========== */
body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart td.product-name,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart td.product-name {
  min-width: 320px;
}

body.woocommerce-cart .mangaly-cart-wrap table.shop_table.cart td.product-subtotal,
body.mangaly-cart-page .mangaly-cart-wrap table.shop_table.cart td.product-subtotal {
  text-align: right !important;
  white-space: nowrap;
}

body.woocommerce-cart .mangaly-cart-wrap .product-name a,
body.mangaly-cart-page .mangaly-cart-wrap .product-name a {
  display: inline-block !important;
  margin-bottom: 0.45rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-price,
body.mangaly-cart-page .mangaly-cart-wrap .product-price {
  color: #64748b !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-price del .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-price del .amount {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  margin-right: 0.3rem;
}

body.woocommerce-cart .mangaly-cart-wrap .product-price ins .amount,
body.woocommerce-cart .mangaly-cart-wrap .product-price > .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-price ins .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-price > .amount {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-name .amount,
body.woocommerce-cart .mangaly-cart-wrap .product-name [class*="savings"],
body.woocommerce-cart .mangaly-cart-wrap .cart-discount .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-name .amount,
body.mangaly-cart-page .mangaly-cart-wrap .product-name [class*="savings"],
body.mangaly-cart-page .mangaly-cart-wrap .cart-discount .amount {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.62rem !important;
  margin-top: 0.4rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-quantity .quantity,
body.mangaly-cart-page .mangaly-cart-wrap .product-quantity .quantity {
  min-height: 38px;
}

body.woocommerce-cart .mangaly-cart-wrap .product-quantity .qty,
body.mangaly-cart-page .mangaly-cart-wrap .product-quantity .qty {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .product-remove a,
body.mangaly-cart-page .mangaly-cart-wrap .product-remove a {
  text-decoration: none !important;
}

/* ========== Cart readability boost (last) ========== */
body.woocommerce-cart .woocommerce table.shop_table.cart,
body.mangaly-cart-page .woocommerce table.shop_table.cart {
  border-radius: 20px !important;
}

body.woocommerce-cart .woocommerce table.shop_table.cart th,
body.mangaly-cart-page .woocommerce table.shop_table.cart th {
  font-size: 0.82rem !important;
  color: #475569 !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .woocommerce table.shop_table.cart td,
body.mangaly-cart-page .woocommerce table.shop_table.cart td {
  font-size: 0.98rem !important;
}

body.woocommerce-cart .woocommerce .product-name a,
body.mangaly-cart-page .woocommerce .product-name a {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .woocommerce .product-price,
body.woocommerce-cart .woocommerce .product-subtotal,
body.mangaly-cart-page .woocommerce .product-price,
body.mangaly-cart-page .woocommerce .product-subtotal {
  font-size: 1rem !important;
  color: #0f172a !important;
}

body.woocommerce-cart .woocommerce .product-subtotal .amount,
body.mangaly-cart-page .woocommerce .product-subtotal .amount {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .woocommerce .product-quantity .quantity,
body.mangaly-cart-page .woocommerce .product-quantity .quantity {
  min-height: 40px !important;
  border-radius: 12px !important;
}

body.woocommerce-cart .woocommerce .product-quantity .qty,
body.mangaly-cart-page .woocommerce .product-quantity .qty {
  min-height: 40px !important;
  font-size: 1rem !important;
}

body.woocommerce-cart .woocommerce .product-remove a,
body.mangaly-cart-page .woocommerce .product-remove a {
  font-size: 0.9rem !important;
  color: #475569 !important;
}

body.woocommerce-cart .woocommerce .product-name .variation,
body.mangaly-cart-page .woocommerce .product-name .variation {
  margin: 0.55rem 0 0.3rem !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals,
body.mangaly-cart-page .woocommerce .cart-collaterals .cart_totals {
  border-radius: 20px !important;
  padding: 1.35rem !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2,
body.mangaly-cart-page .woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 0.95rem !important;
  color: #475569 !important;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total th,
body.woocommerce-cart .woocommerce .cart_totals .order-total td,
body.mangaly-cart-page .woocommerce .cart_totals .order-total th,
body.mangaly-cart-page .woocommerce .cart_totals .order-total td {
  font-size: 1.25rem !important;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total .amount,
body.mangaly-cart-page .woocommerce .cart_totals .order-total .amount {
  color: #0f172a !important;
}

body.woocommerce-cart .woocommerce .coupon .input-text,
body.mangaly-cart-page .woocommerce .coupon .input-text {
  border-radius: 12px !important;
  min-height: 44px !important;
}

body.woocommerce-cart .woocommerce .coupon .button,
body.mangaly-cart-page .woocommerce .coupon .button {
  border-radius: 12px !important;
  min-height: 44px !important;
}

/* ========== Cart hard override (wins over all previous cart rules) ========== */
body.woocommerce-cart .site-main .mangaly-cart-wrap .woocommerce,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .woocommerce {
  gap: 2rem !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .woocommerce-cart-form__contents,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .woocommerce-cart-form__contents {
  background: #ffffff !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart thead th,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  padding: 1rem 1.15rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart tbody td,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart tbody td {
  padding: 1.05rem 1.15rem !important;
  border-bottom: 1px solid #edf2f7 !important;
  font-size: 0.98rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-name a,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-name a {
  color: #0f172a !important;
  font-size: 1.06rem !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-price .amount,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-price .amount {
  color: #334155 !important;
  font-size: 1rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-subtotal .amount,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-subtotal .amount {
  color: #0f172a !important;
  font-size: 1.16rem !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-name .amount,
body.woocommerce-cart .site-main .mangaly-cart-wrap .product-name [class*="savings"],
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-name .amount,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-name [class*="savings"] {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
  border-radius: 999px !important;
  padding: 0.32rem 0.66rem !important;
  font-size: 0.79rem !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-quantity .quantity,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-quantity .quantity {
  border: 1px solid #d5deea !important;
  border-radius: 12px !important;
  min-height: 40px !important;
  background: #fff !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-quantity .qty,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-quantity .qty {
  width: 3.1rem !important;
  min-height: 40px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals {
  background: #ffffff !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
  padding: 1.35rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals h2,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals h2 {
  margin: 0 0 0.9rem !important;
  color: #334155 !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals .order-total th,
body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals .order-total td,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals .order-total th,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals .order-total td {
  font-size: 1.28rem !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button {
  min-height: 54px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #dc2626 100%) !important;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.34) !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .site-main .mangaly-cart-wrap .woocommerce,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ========== Cart visual final pass ========== */
body.woocommerce-cart .site-main .mangaly-cart-wrap {
  font-size: 16px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart {
  table-layout: auto !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart thead th,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart thead th {
  font-size: 0.86rem !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart td.product-name,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart td.product-name {
  width: 58% !important;
  min-width: 420px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap table.shop_table.cart td.product-subtotal,
body.mangaly-cart-page .site-main .mangaly-cart-wrap table.shop_table.cart td.product-subtotal {
  width: 170px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-thumbnail a,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-thumbnail a {
  width: 92px !important;
  height: 92px !important;
  border-radius: 14px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-thumbnail img,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-thumbnail img {
  width: 78px !important;
  height: 78px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-name a,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-name a {
  font-size: 1.14rem !important;
  line-height: 1.4 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-price,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-price {
  margin-top: 0.15rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-price .amount,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-price .amount {
  font-size: 1.02rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-subtotal .amount,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-subtotal .amount {
  font-size: 1.2rem !important;
  letter-spacing: -0.01em;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-name .variation,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-name .variation {
  font-size: 0.95rem !important;
  margin: 0.6rem 0 0.45rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-quantity .quantity,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-quantity .quantity {
  min-height: 42px !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .product-quantity .qty,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .product-quantity .qty {
  min-height: 42px !important;
  width: 3.2rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals {
  padding: 1.55rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals h2,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart-collaterals .cart_totals h2 {
  font-size: 1rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals table.shop_table td,
body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals table.shop_table th,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals table.shop_table td,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals table.shop_table th {
  font-size: 1rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals .order-total th,
body.woocommerce-cart .site-main .mangaly-cart-wrap .cart_totals .order-total td,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals .order-total th,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .cart_totals .order-total td {
  font-size: 1.34rem !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-proceed-to-checkout .checkout-button {
  min-height: 56px !important;
  font-size: 1.08rem !important;
}

/* ========== CART FORCE V2 (broad selectors, guaranteed visual change) ========== */
body.woocommerce-cart .woocommerce table.shop_table.cart,
body.mangaly-cart-page .woocommerce table.shop_table.cart {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

body.woocommerce-cart .woocommerce table.shop_table.cart thead th,
body.mangaly-cart-page .woocommerce table.shop_table.cart thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 16px 18px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

body.woocommerce-cart .woocommerce table.shop_table.cart td,
body.mangaly-cart-page .woocommerce table.shop_table.cart td {
  padding: 18px !important;
  border-bottom: 1px solid #eef2f7 !important;
}

body.woocommerce-cart .woocommerce .product-name a,
body.mangaly-cart-page .woocommerce .product-name a {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .woocommerce .product-price,
body.woocommerce-cart .woocommerce .product-price .amount,
body.mangaly-cart-page .woocommerce .product-price,
body.mangaly-cart-page .woocommerce .product-price .amount {
  font-size: 16px !important;
  color: #475569 !important;
}

body.woocommerce-cart .woocommerce .product-subtotal,
body.woocommerce-cart .woocommerce .product-subtotal .amount,
body.mangaly-cart-page .woocommerce .product-subtotal,
body.mangaly-cart-page .woocommerce .product-subtotal .amount {
  font-size: 21px !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .woocommerce .product-name .variation,
body.mangaly-cart-page .woocommerce .product-name .variation {
  font-size: 15px !important;
  color: #64748b !important;
}

body.woocommerce-cart .woocommerce .product-quantity .quantity,
body.mangaly-cart-page .woocommerce .product-quantity .quantity {
  border: 1px solid #d1d9e5 !important;
  border-radius: 12px !important;
  min-height: 44px !important;
  background: #fff !important;
}

body.woocommerce-cart .woocommerce .product-quantity .qty,
body.mangaly-cart-page .woocommerce .product-quantity .qty {
  min-height: 44px !important;
  width: 52px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals,
body.mangaly-cart-page .woocommerce .cart-collaterals .cart_totals {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
  padding: 20px !important;
}

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2,
body.mangaly-cart-page .woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 15px !important;
  color: #334155 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.woocommerce-cart .woocommerce .cart_totals table.shop_table th,
body.woocommerce-cart .woocommerce .cart_totals table.shop_table td,
body.mangaly-cart-page .woocommerce .cart_totals table.shop_table th,
body.mangaly-cart-page .woocommerce .cart_totals table.shop_table td {
  font-size: 17px !important;
  color: #334155 !important;
  padding: 12px 0 !important;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total th,
body.woocommerce-cart .woocommerce .cart_totals .order-total td,
body.mangaly-cart-page .woocommerce .cart_totals .order-total th,
body.mangaly-cart-page .woocommerce .cart_totals .order-total td {
  font-size: 34px !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-bottom: 0 !important;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button,
body.mangaly-cart-page .woocommerce .wc-proceed-to-checkout .checkout-button {
  min-height: 58px !important;
  border-radius: 16px !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #dc2626 100%) !important;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35) !important;
}

/* ========== WooCommerce Cart Block (current cart page) ========== */
body.woocommerce-cart .wp-block-woocommerce-cart {
  --mangaly-border: #e2e8f0;
  --mangaly-text: #0f172a;
  --mangaly-muted: #64748b;
}

body.woocommerce-cart .wc-block-cart {
  background: transparent !important;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-components-sidebar {
  background: #fff !important;
  border: 1px solid var(--mangaly-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-components-totals-wrapper {
  background: #f8fafc !important;
}

body.woocommerce-cart .wc-block-cart-items__header,
body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-components-totals-footer-item {
  border-color: var(--mangaly-border) !important;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-formatted-money-amount {
  color: var(--mangaly-text) !important;
}

body.woocommerce-cart .wc-block-components-product-name {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-product-price {
  font-size: 1rem !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  border: 1px solid var(--mangaly-border) !important;
  border-radius: 12px !important;
  min-height: 42px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
  font-weight: 700 !important;
}

body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-panel {
  border-color: var(--mangaly-border) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-checkout-place-order-button {
  min-height: 56px !important;
  border-radius: 14px !important;
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #dc2626 100%) !important;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32) !important;
  border: none !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--mangaly-text) !important;
}

/* Cart block fine-tuning */
body.woocommerce-cart .wc-block-cart-items__row {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}

body.woocommerce-cart .wc-block-components-product-name {
  margin-bottom: 0.5rem !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
  color: #334155 !important;
  font-size: 1.05rem !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-cart .wc-block-components-totals-coupon__content {
  margin-bottom: 0.4rem !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding-top: 1rem !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 2rem !important;
  line-height: 1.15 !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 2rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .wc-block-cart__submit-button {
  margin-top: 0.8rem !important;
}

/* ========== Cart Block Modern Layout (not full template width) ========== */
body.woocommerce-cart .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.mangaly-cart-page .mangaly-cart-wrap > .wp-block-woocommerce-cart {
  width: min(1120px, calc(100% - 24px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar {
  border-radius: 20px !important;
  border: 1px solid #dbe3ef !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09) !important;
  background: #ffffff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items {
  overflow: hidden !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items__header,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items__header {
  background: #f8fafc !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items__row,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items__row {
  padding: 14px 10px !important;
  border-color: #edf2f7 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-product-name,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-product-name {
  font-size: 1.32rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-product-price,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-item__prices,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-product-price,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-item__prices {
  font-size: 1.02rem !important;
  color: #334155 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-item__image img,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-item__image img {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-quantity-selector,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-quantity-selector {
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid #d7dfeb !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-item,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item {
  border-color: #edf2f7 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 2.05rem !important;
  line-height: 1.1 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit-button,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-checkout-place-order-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-checkout-place-order-button {
  min-height: 58px !important;
  font-size: 1.08rem !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 58%, #dc2626 100%) !important;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34) !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .mangaly-cart-wrap > .wp-block-woocommerce-cart,
  body.mangaly-cart-page .mangaly-cart-wrap > .wp-block-woocommerce-cart {
    width: calc(100% - 12px) !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.62rem !important;
  }
}

/* ========== Cart block layout hotfix (prevent narrow sidebar) ========== */
body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 24px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__main,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__sidebar,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
  min-width: 320px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit-button {
  white-space: nowrap !important;
  font-size: 1.02rem !important;
}

@media (max-width: 1200px) {
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex-basis: 340px !important;
    width: 340px !important;
    max-width: 340px !important;
    min-width: 300px !important;
  }
}

@media (max-width: 1024px) {
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
    display: block !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 14px !important;
  }
}

/* ========== Cart page height/spacing fix ========== */
body.woocommerce-cart .site-main,
body.mangaly-cart-page .site-main,
.site-main.mangaly-cart-page,
body.woocommerce-cart .entry-content,
body.mangaly-cart-page .entry-content {
  min-height: auto !important;
  padding-bottom: 1.25rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap,
body.mangaly-cart-page .mangaly-cart-wrap,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.mangaly-cart-page .wp-block-woocommerce-cart {
  margin-bottom: 0 !important;
}

/* ========== Cart sidebar typography cleanup ========== */
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar {
  overflow: hidden !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon__content,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon__content {
  margin-bottom: 0.25rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.7rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 1.02rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.8rem !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit-button {
  min-height: 54px !important;
  font-size: 1rem !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 0.98rem !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.55rem !important;
  }
}

/* ========== Cart coupon area cleanup ========== */
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon {
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon .wc-block-components-panel__button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon .wc-block-components-panel__button {
  min-height: 42px !important;
  padding: 0.7rem 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon__content,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon__content {
  padding-top: 0.65rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon__content .wc-block-components-totals-coupon__form,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon__content .wc-block-components-totals-coupon__form {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 0.6rem !important;
  align-items: center !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-text-input input,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-text-input input,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-text-input .wc-block-components-text-input__input,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-text-input .wc-block-components-text-input__input {
  min-height: 46px !important;
  border-radius: 10px !important;
  border: 1px solid #cfd8e3 !important;
  padding: 0 0.9rem !important;
  font-size: 1rem !important;
  color: #0f172a !important;
  background: #fff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon__button,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon__button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon button {
  min-height: 46px !important;
  border-radius: 10px !important;
  padding: 0 1.1rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit {
  margin-top: 0.9rem !important;
  padding-top: 0.35rem !important;
}

/* ========== FINAL CART ISLAND LAYOUT (narrower than template width) ========== */
body.woocommerce-cart,
body.mangaly-cart-page {
  --mangaly-cart-island-width: 1040px;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap,
body.mangaly-cart-page .site-main .mangaly-cart-wrap {
  width: min(var(--mangaly-cart-island-width), calc(100% - 32px)) !important;
  max-width: var(--mangaly-cart-island-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart {
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__main,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__main {
  min-width: 0 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
}

body.woocommerce-cart .site-main > .page-header,
body.mangaly-cart-page .site-main > .page-header {
  width: min(var(--mangaly-cart-island-width), calc(100% - 32px)) !important;
  max-width: var(--mangaly-cart-island-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .site-main .mangaly-cart-wrap,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap,
  body.woocommerce-cart .site-main > .page-header,
  body.mangaly-cart-page .site-main > .page-header {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }

  body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ========== CART REDESIGN V2 (clean and balanced) ========== */
body.woocommerce-cart,
body.mangaly-cart-page {
  --mangaly-cart-width-v2: 1160px;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap,
body.mangaly-cart-page .site-main .mangaly-cart-wrap {
  width: min(var(--mangaly-cart-width-v2), calc(100% - 28px)) !important;
  max-width: var(--mangaly-cart-width-v2) !important;
}

body.woocommerce-cart .site-main > .page-header,
body.mangaly-cart-page .site-main > .page-header {
  width: min(var(--mangaly-cart-width-v2), calc(100% - 28px)) !important;
  max-width: var(--mangaly-cart-width-v2) !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 356px !important;
  gap: 22px !important;
  align-items: start !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items__header,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items__header {
  background: #f8fafc !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-items__row,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-items__row {
  padding: 16px 14px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-product-name,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-product-name {
  font-size: 1.06rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart-item__prices,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart-item__prices {
  font-size: 0.98rem !important;
  color: #475569 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-quantity-selector,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-quantity-selector {
  min-height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid #d7dfeb !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-item,
body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item {
  border-color: #edf2f7 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  line-height: 1.25 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.72rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon__form,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon__form {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon input,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon input {
  min-height: 44px !important;
  border-radius: 10px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-coupon button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-coupon button {
  min-height: 44px !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit-button {
  min-height: 54px !important;
  font-size: 1.02rem !important;
  border-radius: 14px !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .site-main .mangaly-cart-wrap,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap,
  body.woocommerce-cart .site-main > .page-header,
  body.mangaly-cart-page .site-main > .page-header {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }

  body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart,
  body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ========== CART MERGED LAYOUT (single modern composition) ========== */
body.woocommerce-cart .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart {
  padding: 10px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #dbe3ef !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__main,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart-items,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart-items,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart-items__header,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart-items__header,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-totals-wrapper,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-totals-wrapper {
  background: #f8fafc !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart__submit-button {
  min-height: 52px !important;
  border-radius: 12px !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart {
    padding: 8px !important;
    border-radius: 18px !important;
  }

  body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ========== CHECKOUT REDESIGN (clean modern) ========== */
body.woocommerce-checkout .site-main {
  padding-bottom: 2rem !important;
}

body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.woocommerce-checkout form.checkout #customer_details {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 1rem !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

body.woocommerce-checkout form.checkout #order_review {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 1rem !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
  position: sticky !important;
  top: 12px !important;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  font-size: 1.1rem !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  margin: 0 0 0.85rem !important;
}

body.woocommerce-checkout form.checkout .form-row {
  margin-bottom: 0.75rem !important;
}

body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout textarea {
  min-height: 46px !important;
  border-radius: 10px !important;
  border: 1px solid #d6deea !important;
  background: #fff !important;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.98rem !important;
  color: #0f172a !important;
}

body.woocommerce-checkout form.checkout textarea {
  min-height: 96px !important;
}

body.woocommerce-checkout form.checkout input.input-text:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout textarea:focus {
  border-color: #fb923c !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
  outline: none !important;
}

body.woocommerce-checkout table.shop_table {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  border-color: #edf2f7 !important;
  padding: 0.7rem 0.55rem !important;
  font-size: 0.94rem !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.85rem !important;
  margin-top: 0.85rem !important;
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
  border-radius: 10px !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.92rem !important;
}

/* Block checkout support */
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
  background: #f8fafc !important;
  border-radius: 18px !important;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-checkout-order-summary {
  border-color: #edf2f7 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox-control input {
  min-height: 44px !important;
  border-radius: 10px !important;
  border-color: #d6deea !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .site-main .woocommerce,
  body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
    width: 100% !important;
    max-width: none !important;
  }

  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout form.checkout #order_review {
    position: static !important;
    top: auto !important;
  }
}

/* ===== Checkout UI FINAL OVERRIDE (single source of truth) ===== */
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout,
body.woocommerce-checkout .site-main .woocommerce {
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 16px !important;
  align-items: start !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  min-width: 0 !important;
  position: sticky !important;
  top: 12px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {
  padding: 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-formatted-money-amount,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item__value {
  white-space: nowrap !important;
}

/* Keep native radios/checkboxes; only normalize spacing around options */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  margin: 0 0 8px !important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:last-child,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:last-child {
  margin-bottom: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary__content {
  padding: 12px 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-wrapper {
  padding: 0 14px 12px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item {
  padding: 9px 0 !important;
  margin: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
  min-height: 54px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    position: static !important;
    top: auto !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container,
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary__content {
    padding: 12px !important;
  }
}

/* ===== Checkout STRICT final polish v2 ===== */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step {
  border-radius: 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {
  padding: 12px 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
}

/* Uniform fields row rhythm */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-combobox {
  margin-bottom: 10px !important;
}

/* Shipping/payment options: keep Woo native geometry, only vertical rhythm. */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  margin-bottom: 8px !important;
}

/* Right summary card alignment */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar {
  border-radius: 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item {
  padding: 8px 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__description {
  line-height: 1.35 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item__value {
  font-size: 0.95rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

/* Place order row clean alignment */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-actions-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__actions {
  align-items: center !important;
  gap: 12px !important;
}

/* ===== Checkout blocks final alignment fixes (safe) ===== */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {
  overflow: visible !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

/* ===== Checkout blocks: inner alignment polish ===== */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {
  padding: 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__description,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__content > p {
  margin: 0 0 10px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input select,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input textarea {
  border-radius: 10px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkbox {
  margin-top: 6px !important;
}

/* Не трогаем внутреннюю геометрию radio-option Woo Blocks — только вертикальный ритм. */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  margin-bottom: 8px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control__option:last-child,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:last-child {
  margin-bottom: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  align-self: start !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary {
  padding: 12px 14px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-wrapper {
  padding: 0 14px 12px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item {
  margin: 0 !important;
  padding: 10px 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-item__value {
  line-height: 1.25 !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__container {
    padding: 12px !important;
  }
}

/* ===== Order received / Thank you page ===== */
body.woocommerce-order-received .site-main .woocommerce {
  width: min(1200px, calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.woocommerce-order-received .woocommerce-order {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

body.woocommerce-order-received .woocommerce-notice--success,
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 1rem !important;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #166534;
  font-weight: 600;
}

body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received ul.woocommerce-order-overview.order_details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0 0 1.1rem !important;
  padding: 0 !important;
}

body.woocommerce-order-received .woocommerce-order-overview li,
body.woocommerce-order-received ul.woocommerce-order-overview.order_details li {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.35;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.woocommerce-order-received .woocommerce-order-overview li strong,
body.woocommerce-order-received ul.woocommerce-order-overview.order_details li strong {
  display: block;
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

/* Дублирующая строка после overview: визуально как аккуратный инфо-бейдж. */
body.woocommerce-order-received .woocommerce-order > p {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
}

body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 1.25rem 0 0.8rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.woocommerce-order-received .woocommerce-table--order-details,
body.woocommerce-order-received table.shop_table.order_details {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

body.woocommerce-order-received .woocommerce-table--order-details thead th,
body.woocommerce-order-received table.shop_table.order_details thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none !important;
  padding: 0.95rem 1rem;
}

body.woocommerce-order-received .woocommerce-table--order-details td,
body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received table.shop_table.order_details td,
body.woocommerce-order-received table.shop_table.order_details th {
  border-color: #e2e8f0 !important;
  padding: 0.9rem 1rem !important;
  vertical-align: top;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot th,
body.woocommerce-order-received table.shop_table.order_details tfoot th {
  color: #0f172a;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot td,
body.woocommerce-order-received table.shop_table.order_details tfoot td {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}

body.woocommerce-order-received .woocommerce-table--order-details .product-total,
body.woocommerce-order-received table.shop_table.order_details .product-total {
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-order-received .woocommerce-table--order-details .product-name a,
body.woocommerce-order-received table.shop_table.order_details .product-name a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}
body.woocommerce-order-received .woocommerce-table--order-details .product-name a:hover,
body.woocommerce-order-received table.shop_table.order_details .product-name a:hover {
  color: #ea580c;
}

body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-order-details {
  margin-top: 1rem;
}

body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  font-style: normal;
}

@media (max-width: 1024px) {
  body.woocommerce-order-received .site-main .woocommerce {
    width: calc(100% - 16px) !important;
  }

  body.woocommerce-order-received .woocommerce-order {
    padding: 1rem;
    border-radius: 16px;
  }

  body.woocommerce-order-received .woocommerce-order h2,
  body.woocommerce-order-received .woocommerce-order h3 {
    font-size: 1.45rem;
  }

  body.woocommerce-order-received .woocommerce-order-overview,
  body.woocommerce-order-received ul.woocommerce-order-overview.order_details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.woocommerce-order-received .woocommerce-order-overview li,
  body.woocommerce-order-received ul.woocommerce-order-overview.order_details li {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body.woocommerce-order-received .woocommerce-order-overview,
  body.woocommerce-order-received ul.woocommerce-order-overview.order_details {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received .woocommerce-table--order-details thead th,
  body.woocommerce-order-received table.shop_table.order_details thead th {
    font-size: 0.78rem;
    padding: 0.75rem 0.7rem;
  }

  body.woocommerce-order-received .woocommerce-table--order-details td,
  body.woocommerce-order-received .woocommerce-table--order-details th,
  body.woocommerce-order-received table.shop_table.order_details td,
  body.woocommerce-order-received table.shop_table.order_details th {
    padding: 0.75rem 0.7rem !important;
    font-size: 0.92rem;
  }
}

/* ===== Mobile catalog UX (force-apply) ===== */
.catalog-mobile-filters-summary {
  display: none;
}

@media (max-width: 1024px) {
  body.woocommerce .catalog-page .catalog-layout,
  body .catalog-page .catalog-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters,
  body .catalog-page .catalog-mobile-filters {
    display: block !important;
    order: -1 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters-summary,
  body .catalog-page .catalog-mobile-filters-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    list-style: none !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin: 0 0 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters-summary::-webkit-details-marker,
  body .catalog-page .catalog-mobile-filters-summary::-webkit-details-marker {
    display: none !important;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters-summary::after,
  body .catalog-page .catalog-mobile-filters-summary::after {
    content: "▾";
    color: #64748b;
    font-size: 14px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters[open] .catalog-mobile-filters-summary::after,
  body .catalog-page .catalog-mobile-filters[open] .catalog-mobile-filters-summary::after {
    transform: rotate(180deg);
  }

  body.woocommerce .catalog-page .catalog-mobile-filters .catalog-sidebar,
  body .catalog-page .catalog-mobile-filters .catalog-sidebar {
    display: block !important;
    position: static !important;
    top: auto !important;
  }

  body.woocommerce .catalog-page .catalog-mobile-filters .catalog-filters,
  body .catalog-page .catalog-mobile-filters .catalog-filters {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    padding: 14px !important;
  }
}

@media (max-width: 768px) {
  body.woocommerce .container.products.catalog-page,
  body .container.products.catalog-page {
    padding-top: 8px !important;
  }

  body.woocommerce .catalog-page ul.products,
  body .catalog-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.woocommerce .catalog-page ul.products li.product,
  body .catalog-page ul.products li.product {
    border-radius: 14px !important;
    min-height: 0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  }

  body.woocommerce .catalog-page ul.products li.product .product-image-wrap,
  body .catalog-page ul.products li.product .product-image-wrap {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }

  body.woocommerce .catalog-page ul.products li.product .product-info,
  body .catalog-page ul.products li.product .product-info {
    padding: 10px 10px 4px !important;
  }

  body.woocommerce .catalog-page ul.products li.product .woocommerce-loop-product__title,
  body .catalog-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    line-height: 1.32 !important;
    min-height: 2.3em !important;
  }

  body.woocommerce .catalog-page ul.products li.product .product-specs,
  body.woocommerce .catalog-page ul.products li.product .product-description,
  body.woocommerce .catalog-page ul.products li.product .product-features,
  body.woocommerce .catalog-page ul.products li.product .mangaly-quickview-trigger,
  body .catalog-page ul.products li.product .product-specs,
  body .catalog-page ul.products li.product .product-description,
  body .catalog-page ul.products li.product .product-features,
  body .catalog-page ul.products li.product .mangaly-quickview-trigger {
    display: none !important;
  }

  body.woocommerce .catalog-page ul.products li.product .price,
  body .catalog-page ul.products li.product .price {
    margin: 6px 0 8px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body.woocommerce .catalog-page ul.products li.product .button,
  body .catalog-page ul.products li.product .button {
    width: calc(100% - 12px) !important;
    margin: 0 6px 8px !important;
    padding: 11px 8px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 420px) {
  body.woocommerce .catalog-page ul.products,
  body .catalog-page ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Single product gallery hardening (native WooCommerce) ===== */
.single-product .woocommerce-product-gallery__trigger,
.single-product-page .woocommerce-product-gallery__trigger,
.single-product-wrap .woocommerce-product-gallery__trigger {
  display: none !important;
}

.single-product .woocommerce .woocommerce-product-gallery .flex-viewport,
.single-product-page .woocommerce .woocommerce-product-gallery .flex-viewport,
.single-product-wrap .woocommerce-product-gallery .flex-viewport {
  min-height: 280px !important;
  height: auto !important;
  background: #fff;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image {
  display: block !important;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image a {
  display: block !important;
}

.single-product .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product-page .woocommerce .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product-wrap .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}

/* Block checkout layout: keep summary on the right */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main {
  min-width: 0 !important;
  width: 100% !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
  width: 360px !important;
  min-width: 320px !important;
  max-width: 360px !important;
  position: sticky !important;
  top: 12px !important;
  align-self: start !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
    top: auto !important;
  }
}

/* ========== Checkout Alignment Polish ========== */
body.woocommerce-checkout form.checkout {
  grid-template-columns: minmax(0, 1fr) 350px !important;
  gap: 16px !important;
}

body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  padding: 1rem 1rem 1.05rem !important;
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3,
body.woocommerce-checkout #order_review_heading {
  margin-bottom: 0.75rem !important;
  line-height: 1.25 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  gap: 0.65rem !important;
}

body.woocommerce-checkout form.checkout .form-row {
  margin-bottom: 0.6rem !important;
}

body.woocommerce-checkout form.checkout .form-row label {
  margin-bottom: 0.35rem !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  color: #334155 !important;
}

body.woocommerce-checkout form.checkout .form-row .optional {
  color: #94a3b8 !important;
}

body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout textarea {
  min-height: 44px !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment ul.payment_methods {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .woocommerce-info,
body.woocommerce-checkout .woocommerce-checkout-payment .woocommerce-error {
  margin-bottom: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .form-row.place-order {
  margin-top: 0.8rem !important;
  padding-top: 0.75rem !important;
  border-top: 1px solid #edf2f7 !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .form-row.place-order .button,
body.woocommerce-checkout #place_order {
  min-height: 52px !important;
  border-radius: 12px !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper {
  margin: 0.5rem 0 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name {
  text-align: left !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total {
  text-align: right !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 0.6rem !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.woocommerce-checkout form.checkout #customer_details,
  body.woocommerce-checkout form.checkout #order_review {
    padding: 0.9rem !important;
  }
}

/* ========== Checkout centered alignment tweaks ========== */
body.woocommerce-checkout .woocommerce-checkout-payment .form-row.place-order {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
}

body.woocommerce-checkout .woocommerce-checkout-payment .form-row.place-order > a:not(.button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  width: 100% !important;
  text-align: center !important;
}

body.woocommerce-checkout .woocommerce-shipping-methods button,
body.woocommerce-checkout .woocommerce-shipping-methods .button,
body.woocommerce-checkout #order_review .wc-block-components-button {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ========== Cart totals button alignment fix (blocks) ========== */
body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit {
  margin-top: 0.85rem !important;
  padding: 0 !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-cart__submit-button,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-cart__submit-button {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: baseline !important;
  column-gap: 0.75rem !important;
}

body.woocommerce-cart .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .mangaly-cart-wrap .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.6rem !important;
  text-align: right !important;
}

/* ========== Cart width aligned to template ========== */
body.woocommerce-cart .site-main .mangaly-cart-wrap,
body.mangaly-cart-page .site-main .mangaly-cart-wrap,
body.woocommerce-cart .site-main > .page-header,
body.mangaly-cart-page .site-main > .page-header {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .site-main .mangaly-cart-wrap,
  body.mangaly-cart-page .site-main .mangaly-cart-wrap,
  body.woocommerce-cart .site-main > .page-header,
  body.mangaly-cart-page .site-main > .page-header {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }
}

/* ========== Cart totals centered row fix ========== */
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  text-align: center !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  width: 100% !important;
  text-align: center !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: clamp(1.9rem, 5vw, 2.2rem) !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}

/* Cart sidebar submit area: centered and clean */
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-cart__submit,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-cart__submit {
  display: block !important;
  width: 100% !important;
  margin: 0.95rem 0 0 !important;
  padding: 0 16px 14px !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-cart__submit-button,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar .wc-block-cart__submit-button {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 1rem 1.1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

/* Remove gray shades in cart containers */
body.woocommerce-cart .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.mangaly-cart-page .site-main .mangaly-cart-wrap > .wp-block-woocommerce-cart,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart-items,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart-items,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-sidebar,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-cart-items__header,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-cart-items__header,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-totals-wrapper,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-totals-wrapper,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-totals-item,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-totals-item,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-totals-footer-item,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-totals-footer-item,
body.woocommerce-cart .site-main .mangaly-cart-wrap .wc-block-components-totals-coupon,
body.mangaly-cart-page .site-main .mangaly-cart-wrap .wc-block-components-totals-coupon {
  background: #fff !important;
  background-image: none !important;
}

/* Checkout containers alignment */
body.woocommerce-checkout form.checkout {
  align-items: start !important;
}

body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  align-self: start !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
}

body.woocommerce-checkout form.checkout #order_review {
  top: 0 !important;
}

body.woocommerce-checkout #order_review_heading {
  margin-top: 0 !important;
}

/* Checkout content alignment cleanup (inside containers) */
body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  padding: 1.1rem 1.1rem 1.15rem !important;
}

body.woocommerce-checkout #order_review_heading {
  margin: 0 0 0.8rem !important;
  text-align: left !important;
}

body.woocommerce-checkout #order_review .shop_table,
body.woocommerce-checkout #order_review .woocommerce-checkout-payment {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  text-align: left !important;
  padding-left: 0.7rem !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
  text-align: right !important;
  padding-right: 0.7rem !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item td {
  vertical-align: top !important;
}

/* Remove double frame inside order review card */
body.woocommerce-checkout #order_review table.shop_table,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table,
body.woocommerce-checkout #order_review .woocommerce-checkout-payment {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Checkout blocks: keep only one outer frame */
body.woocommerce-checkout .wc-block-components-sidebar {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
  overflow: hidden !important;
}

body.woocommerce-checkout .wc-block-components-sidebar > *,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary__content,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

/* Fix right-shifted content inside checkout order details */
body.woocommerce-checkout .wc-block-components-sidebar > * {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__quantity,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-product-name {
  margin-left: 0 !important;
  left: auto !important;
  transform: none !important;
}

/* Force checkout area to be centered in template */
body.woocommerce-checkout .site-main .container,
body.woocommerce-checkout .site-main .entry-content,
body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
  width: min(1200px, calc(100% - 24px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .site-main .container,
  body.woocommerce-checkout .site-main .entry-content,
  body.woocommerce-checkout .site-main .woocommerce,
  body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }
}

/* ===== FINAL CHECKOUT WIDTH + ALIGNMENT FIX ===== */
body.woocommerce-checkout .site-main .container,
body.woocommerce-checkout .site-main .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
  width: min(1200px, calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-checkout form.checkout {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  width: 100% !important;
  justify-self: stretch !important;
  margin: 0 !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-panel {
  margin: 0 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-product-name {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item__value {
  margin-left: auto !important;
  text-align: right !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .site-main .woocommerce,
  body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }

  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Final inner alignment: prevent left-shift inside checkout container */
body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-checkout-order-summary {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__container,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__content {
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

/* ===== Checkout master layout reset (final) ===== */
body.woocommerce-checkout .site-main .woocommerce,
body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
  width: min(1200px, calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 20px !important;
  align-items: start !important;
}

body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout form.checkout #order_review {
  position: sticky !important;
  top: 12px !important;
}

/* Cancel accidental inner shifts */
body.woocommerce-checkout form.checkout #customer_details *,
body.woocommerce-checkout form.checkout #order_review * {
  box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-sidebar > *,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-totals-coupon {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

@media (max-width: 1024px) {
  body.woocommerce-checkout .site-main .woocommerce,
  body.woocommerce-checkout .site-main .wp-block-woocommerce-checkout {
    width: calc(100% - 16px) !important;
    max-width: none !important;
  }

  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.woocommerce-checkout form.checkout #order_review {
    position: static !important;
    top: auto !important;
  }
}
