.cart-section *, .cart-section *::before, .cart-section *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.cart-section {
  --cart-blue:       #2B9ED4;
  --cart-blue-dark:  #1a7aaa;
  --cart-orange:     #F5A623;
  --cart-dark:       #111827;
  --cart-gray:       #6B7280;
  --cart-border:     #E5E7EB;
  --cart-bg:         #F8FAFC;
  --cart-font:       'Heebo', sans-serif;

  font-family: var(--cart-font);
  color: var(--cart-dark);
  background: #FAFAFA;
  padding: 194px 0 112px;
}

.cart-wrap {
  width: min(1350px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 28px;
}

.woo-cart-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.cart-title {
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cart-dark);
  letter-spacing: -0.02em;
}
.cart-title .wc-cart-count {
  font-size: 15px;
  font-weight: 500;
  color: var(--cart-gray);
  margin-left: 10px;
  vertical-align: middle;
}

.woo-cart-continue-shopping-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cart-blue);
  text-decoration: none;
}
.woo-cart-continue-shopping-link:hover { text-decoration: underline; }

/* ── Body: cart table + totals ── */
.cart-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ── Cart card ── */
.cart-card {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(16,24,39,.05);
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  gap: 36px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cart-border);
}
.cart-head span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cart-dark);
  white-space: nowrap;
}
.cart-head .cart-col-price,
.cart-head .cart-col-qty,
.cart-head .cart-col-subtotal { text-align: right; }

.cart-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  gap: 36px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--cart-border);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-product-text { min-width: 0; }

.cart-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--cart-gray);
  margin-top: 4px;
}
.cart-meta p { margin: 0; }

.cart-remove {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--cart-bg);
  color: var(--cart-gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
  text-decoration: none;
}
.cart-remove:hover { background: var(--cart-border); color: var(--cart-dark); }
.cart-remove svg { width: 11px; height: 11px; }

.cart-thumb {
  width: 56px; height: 56px;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  background: var(--cart-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cart-name, .cart-name a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cart-dark);
  line-height: 1.4;
  text-decoration: none;
}
.cart-name a:hover { color: var(--cart-blue); }

.cart-price, .cart-subtotal {
  font-size: 15px;
  font-weight: 800;
  color: var(--cart-blue);
  text-align: right;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.cart-price .woocommerce-Price-amount,
.cart-subtotal .woocommerce-Price-amount { color: inherit; }

/* Quantity stepper (uses WooCommerce's own quantity_input markup) */
.cart-qty {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cart-qty .quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  overflow: hidden;
}
.cart-qty .quantity input[type="button"],
.cart-qty .quantity .qty-minus,
.cart-qty .quantity .qty-plus {
  width: 30px; height: 38px;
  background: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--cart-dark);
  cursor: pointer;
  transition: background .2s ease;
}
.cart-qty .quantity input[type="button"]:hover { background: var(--cart-bg); }
.cart-qty .quantity input[type="number"],
.cart-qty .quantity .qty {
  width: 32px; height: 38px;
  border: none;
  border-left: 1px solid var(--cart-border);
  border-right: 1px solid var(--cart-border);
  text-align: center;
  font-family: var(--cart-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--cart-dark);
  -moz-appearance: textfield;
}
.cart-qty .quantity input[type="number"]::-webkit-outer-spin-button,
.cart-qty .quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* Coupon */
.cart-coupon {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.cart-coupon input[type="text"] {
  flex: 1 1 220px;
  max-width: 280px;
  font-family: var(--cart-font);
  font-size: 14px;
  color: var(--cart-dark);
  border: 1px solid var(--cart-border);
  border-radius: 10px;
  padding: 13px 16px;
}
.cart-coupon input[type="text"]:focus { outline: none; border-color: var(--cart-blue); }
.cart-coupon button,
.cart-coupon button.button,
.cart-coupon button[name="apply_coupon"] {
  font-family: var(--cart-font);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff !important;
  background: var(--cart-blue) !important;
  border: none !important;
  border-radius: 10px;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .2s ease;
}
.cart-coupon button:hover,
.cart-coupon button.button:hover,
.cart-coupon button[name="apply_coupon"]:hover {
  background: var(--cart-blue-dark) !important;
}

.cart-coupon input[type="text"].has-error {
  border-color: #e0554f;
}
.cart-coupon input[type="text"].has-error:focus {
  border-color: #e0554f;
}
.cart-coupon .coupon-error-notice {
  flex-basis: 100%;
  width: 100%;
  margin: 4px 0 0;
  font-family: var(--cart-font);
  font-size: 13px;
  font-weight: 500;
  color: #e0554f;
}

/* Update-cart button is triggered automatically via JS when qty changes */
.cart-update-btn { display: none; }

/* Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
  font-family: var(--cart-font);
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--cart-border);
  border-left: 4px solid var(--cart-blue);
  border-radius: 10px;
  padding: 14px 50px;
  margin-bottom: 20px;
  list-style: none;
}
.woocommerce-notices-wrapper .woocommerce-error { border-left-color: #e0554f; }

/* ── Totals sidebar (styling for cart-totals.php override) ── */
.cart-totals {
  background: #fff;
  border: 1px solid var(--cart-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(16,24,39,.05);
}
.cart-totals-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cart-dark);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--cart-border);
}
.cart-totals-row span:first-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--cart-dark);
}
.cart-totals-row span:last-child,
.cart-totals-row td,
.cart-totals-row .woocommerce-Price-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--cart-blue);
}
.cart-totals-row.is-total {
  border-bottom: none;
  padding-top: 20px;
}
.cart-totals-row.is-total span:first-child { font-size: 17px; }
.cart-totals-row.is-total span:last-child,
.cart-totals-row.is-total .woocommerce-Price-amount { font-size: 24px; font-weight: 800; }

.cart-totals .wc-proceed-to-checkout { margin-top: 8px; }
.cart-totals .wc-proceed-to-checkout a.checkout-button,
.cart-totals .wc-proceed-to-checkout a.checkout-button.button,
.cart-totals .wc-proceed-to-checkout a.checkout-button.wc-forward {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  border: none !important;
  outline: none !important;
  background: var(--cart-blue) !important;
  color: #fff !important;
  font-family: var(--cart-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43,158,212,0.3) !important;
  transition: background .2s ease, transform .2s ease;
  text-decoration: none;
  text-align: center;
}
.cart-totals .wc-proceed-to-checkout a.checkout-button:hover,
.cart-totals .wc-proceed-to-checkout a.checkout-button.button:hover,
.cart-totals .wc-proceed-to-checkout a.checkout-button.wc-forward:hover,
.cart-totals .wc-proceed-to-checkout a.checkout-button:focus,
.cart-totals .wc-proceed-to-checkout a.checkout-button.button:focus,
.cart-totals .wc-proceed-to-checkout a.checkout-button.wc-forward:focus {
  background: var(--cart-blue-dark) !important;
  box-shadow: 0 6px 20px rgba(43,158,212,0.3) !important;
  transform: translateY(-2px);
}

.cart-model-area {
    font-size: 13px;
    font-weight: 400;
    color: var(--cart-gray);
    margin-top: 4px;
}

.woocommerce-message::before {
     color: var(--cart-blue);
}



/* ── Empty cart state (standalone, без .cart-section) ── */
.woocommerce-cart .woocommerce {
  --cart-blue:       #2B9ED4;
  --cart-blue-dark:  #1a7aaa;
  --cart-dark:       #111827;
  --cart-gray:       #6B7280;
  --cart-border:     #E5E7EB;
  --cart-bg:         #F8FAFC;
  --cart-font:       'Heebo', sans-serif;
   font-family: var(--cart-font);
  color: var(--cart-dark);
}

.woocommerce *, .woocommerce *::before, .woocommerce *::after {
  box-sizing: border-box;
}

.woocommerce .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce .wc-empty-cart-message {
  display: flex;
  justify-content: center;
	padding: 194px 0 0;
}

.woocommerce .cart-empty.woocommerce-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 37px 40px;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(16, 24, 39, .05);
    font-size: 16px;
    font-weight: 500;
    color: var(--cart-dark);
    list-style: none;
}

.woocommerce .cart-empty.woocommerce-info::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--cart-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B9ED4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

.woocommerce .return-to-shop {
  display: flex;
  justify-content: center;
  margin: 0;
}

.woocommerce .return-to-shop .button.wc-backward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: var(--cart-blue);
  color: #fff;
  font-family: var(--cart-font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43, 158, 212, 0.3);
  transition: background .2s ease, transform .2s ease;
}
.woocommerce .return-to-shop .button.wc-backward:hover,
.woocommerce .return-to-shop .button.wc-backward:focus {
  background: var(--cart-blue-dark);
  transform: translateY(-2px);
}

.woocommerce .return-to-shop {
       padding-bottom: 112px;
}


































/* ── Responsive ── */
@media (max-width: 1400px) {
.cart-wrap {
    width: 100%;
}
	
	
@media (max-width: 1024px) {
  .cart-body { grid-template-columns: 1fr; }
}
	
	
	
	
	
@media (max-width: 768px) {
  .cart-card, .cart-totals { padding: 24px; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr; gap: 12px; }
  .cart-price, .cart-subtotal { text-align: left; }
  .cart-qty { justify-content: flex-start; }
	
	 .woocommerce .cart-empty.woocommerce-info {
    padding: 40px 24px;
  }
	
	.cart-section {
     padding: 120px 0 60px;
}
	
 .cart-coupon { flex-direction: column; align-items: stretch; }
  .cart-coupon input[type="text"] { max-width: none; }	
	
	.cart-coupon input[type="text"] {
     flex: none;
}
	
.cart-totals .wc-proceed-to-checkout {
     padding-bottom: 0;
}	
	
.cart-totals .wc-proceed-to-checkout a.checkout-button, .cart-totals .wc-proceed-to-checkout a.checkout-button.button, .cart-totals .wc-proceed-to-checkout a.checkout-button.wc-forward {
       margin-bottom: 0;
}
	
	
	
	
	
	
	
	
	
	
}

