/* ================================
   WooCommerce Cart - Wiki Style
   ================================ */

/* Cart Page Container */
.woocommerce-cart {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Success Messages */
.woocommerce-message {
  background: linear-gradient(135deg, #1b415f 0%, #222741 100%);
  border: 1px solid rgba(159, 167, 233, 0.3);
  border-left: 4px solid #ffb347;
  color: #e5e9f7;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.woocommerce-message::before {
  content: "✓";
  background: #ffb347;
  color: #2a1a0f;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.woocommerce-message .button {
  background: linear-gradient(135deg, #ff8c42, #ffb347);
  color: #2a1a0f;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  margin-left: auto;
}

.woocommerce-message .button:hover {
  background: linear-gradient(135deg, #ffb347, #ffc976);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* Cart Table */
.woocommerce-cart-form {
  background: radial-gradient(circle at top left, rgba(255,184,108,.08) 0%, transparent 55%),
              radial-gradient(circle at bottom right, rgba(80,120,255,.15) 0%, transparent 55%),
              linear-gradient(145deg, #050712 0%, #0b1021 55%, #050712 100%);
  border: 1px solid rgba(120, 130, 180, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #e5e9f7;
}

.shop_table thead {
  background: rgba(27, 65, 95, 0.4);
  border-radius: 8px 8px 0 0;
}

.shop_table thead th {
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #ffb347;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 179, 71, 0.3);
}

.shop_table tbody tr {
  border-bottom: 1px solid rgba(120, 130, 180, 0.2);
  transition: background 0.2s ease;
}

.shop_table tbody tr:hover {
  background: rgba(255, 184, 108, 0.05);
}

.shop_table tbody td {
  padding: 1.5rem 1rem;
  vertical-align: middle;
}

/* Product Thumbnail */
.product-thumbnail img {
  border: 2px solid rgba(120, 130, 180, 0.3);
  border-radius: 8px;
  max-width: 80px;
  transition: all 0.2s ease;
}

.product-thumbnail img:hover {
  border-color: rgba(255, 140, 66, 0.7);
  transform: scale(1.05);
}

/* Product Name */
.product-name a {
  color: #9fa7e9;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name a:hover {
  color: #ffb347;
}

/* Price */
.product-price,
.product-subtotal {
  color: #ffb347;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Quantity Input */
.quantity input.qty {
  background: rgba(27, 65, 95, 0.6);
  border: 1px solid rgba(120, 130, 180, 0.4);
  border-radius: 6px;
  color: #e5e9f7;
  padding: 0.5rem;
  width: 70px;
  text-align: center;
  font-weight: 600;
}

.quantity input.qty:focus {
  border-color: #ffb347;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.2);
}

/* Update Cart Button */
.actions button[name="update_cart"] {
  background: linear-gradient(135deg, #3b415f, #222741);
  color: #9fa7e9;
  border: 1px solid rgba(120, 130, 180, 0.4);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.actions button[name="update_cart"]:hover {
  background: linear-gradient(135deg, #4a5270, #2d3450);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(80, 120, 255, 0.3);
}

/* Remove Button */
.product-remove a.remove {
  background: rgba(255, 107, 107, 0.2) !important;
  color: #ff6b6b !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  border: 1px solid rgba(255, 107, 107, 0.4) !important;
  transition: all 0.2s ease !important;
}

.product-remove a.remove:hover {
  background: rgba(255, 107, 107, 0.4) !important;
  transform: scale(1.1) !important;
}

/* Cart Totals */
.cart-collaterals {
  margin-top: 2rem;
}

.cart_totals {
  background: radial-gradient(circle at top left, rgba(255,184,108,.08) 0%, transparent 55%),
              radial-gradient(circle at bottom right, rgba(80,120,255,.15) 0%, transparent 55%),
              linear-gradient(145deg, #050712 0%, #0b1021 55%, #050712 100%);
  border: 1px solid rgba(120, 130, 180, 0.35);
  border-radius: 14px;
  padding: 2rem;
  max-width: 500px;
  margin-left: auto;
}

.cart_totals h2 {
  color: #ffb347;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 179, 71, 0.3);
  padding-bottom: 0.8rem;
}

.cart_totals table {
  width: 100%;
  color: #e5e9f7;
}

.cart_totals th,
.cart_totals td {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(120, 130, 180, 0.2);
}

.cart_totals th {
  font-weight: 600;
  color: #c5cae9;
  text-align: left;
}

.cart_totals td {
  text-align: right;
  color: #ffb347;
  font-weight: 700;
}

.order-total th,
.order-total td {
  font-size: 1.3rem;
  border-bottom: none;
  padding-top: 1.2rem;
}

/* Checkout Button */
.wc-proceed-to-checkout .checkout-button {
  background: linear-gradient(135deg, #ff8c42, #ffb347) !important;
  color: #2a1a0f !important;
  border: none !important;
  padding: 1rem 2rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.45) !important;
  display: block !important;
  text-align: center !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: linear-gradient(135deg, #ffb347, #ffc976) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(255, 140, 66, 0.65) !important;
}

/* PayPal Button Styling */
.woocommerce-cart .wc-proceed-to-checkout .button.alt {
  background: #ffc439 !important;
  color: #111 !important;
  margin-bottom: 1rem !important;
}

/* Empty Cart Message */
.cart-empty {
  background: radial-gradient(circle at top left, rgba(255,184,108,.08) 0%, transparent 55%),
              linear-gradient(145deg, #050712 0%, #0b1021 55%, #050712 100%);
  border: 1px solid rgba(120, 130, 180, 0.35);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  color: #c5cae9;
  font-size: 1.1rem;
}

.return-to-shop .button {
  background: linear-gradient(135deg, #ff8c42, #ffb347) !important;
  color: #2a1a0f !important;
  border: none !important;
  padding: 0.8rem 1.8rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 1.5rem !important;
  display: inline-block !important;
  transition: all 0.25s ease !important;
}

.return-to-shop .button:hover {
  background: linear-gradient(135deg, #ffb347, #ffc976) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4) !important;
}